@font-face {
    font-family: 'FC Iconic';
    src: url('../fonts/FCIconic-LightCondensed.woff2') format('woff2'),
         url('../fonts/FCIconic-LightCondensed.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

body {
    font-family: 'FC Iconic', sans-serif;
    background-color: #000;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* --- Navigation Menu (เหมือนรูป image_184666.png) --- */
.nav-link {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 300;
    padding: 10px 0 !important;
    margin: 0 15px;
    position: relative;
    transition: color 0.3s ease;
}

/* เส้นสีทองด้านล่างเมื่อ Hover */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, transparent, #c4b59a, transparent); /* ไล่เฉดสีทองตามแบบ */
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}
/* ปรับแต่งพื้นหลังเมนูเมื่อกางออกในมือถือ */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95); /* พื้นหลังดำโปร่งแสง */
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        border: 1px solid rgba(196, 181, 154, 0.2);
    }
    
    .hero-title {
        font-size: 40px; /* ลดขนาดหัวข้อบนมือถือ */
    }
    
    .hero-subtitle {
        font-size: 24px; /* ลดขนาดหัวข้อย่อยบนมือถือ */
    }
}

/* เพิ่มเติม: ตรวจสอบให้แน่ใจว่าปุ่ม Toggler มีสีทองตาม Theme ของคุณ (Option) */
.navbar-toggler {
    border-color: rgba(196, 181, 154, 0.5);
}
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(196, 181, 154, 0.25);
}
/* สถานะเริ่มต้นบนสุด: โปร่งใสสนิท */
.navbar {
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* เพิ่มความสมูทในการเปลี่ยนสี */
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

/* สถานะเมื่อ Scroll ลงมา: เข้ม หรู และมีมิติ */
.navbar.scrolled {
    /* ใช้ไล่เฉดดำจากบนลงล่างเพื่อให้ดูไม่ทึบจนเกินไป */
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 0, 0, 0.85) 100%);
    
    /* เพิ่มเอฟเฟกต์กระจกฝ้า (Glassmorphism) ช่วยให้ดูแพงขึ้น */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    
    /* เส้นขอบล่างสีทองบางๆ เพื่อตัดรอยต่อกับเนื้อหา */
    border-bottom: 1px solid rgba(196, 181, 154, 0.3); 
}

/* ปรับสีตัวอักษรหรือโลโก้ให้เด่นขึ้นเมื่อพื้นหลังดำ */
.navbar.scrolled .nav-link {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.navbar.scrolled .nav-link:hover {
    color: #c4b59a !important; /* สีทอง TRES */
}
/* --- Buttons Styles --- */
.btn-outline-white {
    border: 1px solid #ffffff;
    color: #ffffff;
    border-radius: 50px;
    padding: 6px 24px;
    font-size: 16px;
    transition: 0.3s;
}

.search-wrapper-gold {
    background: #c4b59a;
    color: #000;
    border-radius: 50px;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    width: 140px; /* ความกว้างเริ่มต้นที่เห็นคำว่า ค้นหาสาขา */
    height: 45px;
    white-space: nowrap;
}

/* ข้อความเริ่มต้น */
.search-label {
    font-size: 16px;
    font-weight: bold;
    margin-left: 8px;
    transition: all 0.3s ease;
    opacity: 1;
}

/* ช่องพิมพ์ */
.search-input {
    background: transparent;
    border: none;
    outline: none;
    width: 0;
    padding: 0;
    opacity: 0;
    transition: all 0.4s ease;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    position: absolute;
    left: 45px; /* เว้นที่ให้ไอคอนแว่นขยาย */
}

/* สถานะเมื่อ Hover หรือถูกคลิก (Focus) */
.search-wrapper-gold:hover,
.search-wrapper-gold:focus-within {
    width: 300px; /* ยืดความกว้างออก */
    background: #d4c5aa;
    cursor: text;
}

/* เมื่อยืดออก ให้ซ่อนข้อความ "ค้นหาสาขา" */
.search-wrapper-gold:hover .search-label,
.search-wrapper-gold:focus-within .search-label {
    opacity: 0;
    transform: translateX(-20px);
}

/* เมื่อยืดออก ให้แสดงช่อง Input */
.search-wrapper-gold:hover .search-input,
.search-wrapper-gold:focus-within .search-input {
    width: 230px;
    opacity: 1;
    padding-left: 5px;
}

/* ไอคอนแว่นขยาย */
.search-wrapper-gold i {
    font-size: 18px;
    flex-shrink: 0;
    z-index: 2;
}

/* ปรับแต่ง Placeholder */
.search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
    font-style: italic;
}

/* --- Typography & Layout --- */
.hero-title {
    font-size: 42px; /* ขยายขนาดให้เด่นชัดตามแบบ */
    font-weight: bold;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 42px;
    font-weight: 300;
    color: #fff;
}

.gold-text { color: #c8b37c !important; }

.desc-text {
    font-size: 22px;
    line-height: 1.6;
    color: #d1d1d1;
    max-width: 1000px;
    margin: 0 auto;
}
.desc-small {
    font-size: 18px;
    line-height: 1.6;
    color: #d1d1d1;
    max-width: 1000px;
    margin: 0 auto;
}

/* Glassmorphism Effect for Product Cards */
.glass-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(196, 181, 154, 0.3);
    backdrop-filter: blur(15px);
    transition: 0.4s;
}

.glass-card:hover {
    border-color: #c4b59a;
    transform: translateY(-10px);
}
.btn-contact-outline {
    /* ขอบทองคงที่ */
    border: 1px solid #c4b59a; 
    color: #c4b59a; /* เปลี่ยนข้อความให้เป็นสีทองเพื่อให้เข้ากัน */
    border-radius: 50px;
    padding: 8px 25px;
    font-size: 16px;
    font-weight: 400; /* ปรับความหนาเล็กน้อยให้อ่านง่ายขึ้น */
    transition: all 0.3s ease;
    display: inline-block;
    background: transparent;
    text-transform: none;
}
.unified-vision-section {
    position: relative;
    min-height: 100vh;
    /* เพิ่ม Gradient ดำซ้อนทับภาพ Background */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9)), 
        url('../../assets/img/TRES_BG_DARK_3.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-top: 1px solid rgba(196, 181, 154, 0.1);
}

/* เพิ่ม Text Shadow ให้ตัวหนังสืออ่านง่ายขึ้นไปอีกระดับ */
.vision-description p {
    font-size: 18px;
    line-height: 1.8;
    color: #e0e0e0; /* ปรับให้ขาวขึ้นเล็กน้อย */
    font-weight: 300;
    margin-bottom: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* เพิ่มเงาหลังตัวอักษร */
}

.gold-text {
    color: #c8b37c !important;
    text-shadow: 0px 0px 10px rgba(196, 181, 154, 0.2); /* เพิ่ม Glow สีทองจางๆ */
}
/* หัวข้อ Section */
.features-section .hero-title {
    font-size: 42px;
    font-weight: 400;
}

/* Glassmorphism Card Style */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(196, 181, 154, 0.2);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
}

.glass-card:hover {
    border-color: #c4b59a;
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-title {
    color: #c4b59a;
    font-size: 28px;
    font-weight: 300;
    line-height: 1.2;
}

.feature-desc {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

/* รูปภาพขวดที่เป็นพื้นหลังในการ์ด */
.card-bg-product {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    z-index: -1;
    opacity: 0.4;
    text-align: right;
}

.card-bg-product img {
    height: 250px;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 991.98px) {
    .features-section .hero-title {
        font-size: 32px;
    }
    .feature-title {
        font-size: 24px;
    }
}
/* บัตรข้อมูลสาขา */
.branch-card {
    background: transparent;
    border: 1px solid rgba(196, 181, 154, 0.4); /* ขอบทองจาง */
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.branch-card:hover {
    border-color: #c4b59a;
    background: rgba(196, 181, 154, 0.05);
    transform: translateY(-5px);
}

/* ตกแต่งมุมบัตร (Corner decoration) */
.branch-card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: url('assets/img/IMAGE_FOOTER.png') no-repeat center; /* ใช้รูปส่วนท้ายมาตกแต่งมุม */
    background-size: contain;
    opacity: 0.2;
}

.category-tag {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
}

.branch-name {
    font-size: 24px;
    font-weight: 300;
}

.branch-info p {
    color: #a0a0a0;
    font-size: 15px;
    margin-bottom: 5px;
    line-height: 1.6;
}

.branch-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.branch-link:hover {
    color: #c4b59a;
}

.branch-contact {
    color: #c4b59a;
    font-size: 18px;
    font-weight: bold;
}

/* ปุ่มลูกศรนำทาง */
.btn-nav-arrow {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.btn-nav-arrow:hover {
    border-color: #c4b59a;
    color: #c4b59a;
}
/* ปุ่มลูกศรนำทางขอบทอง */
.btn-nav-arrow {
    background: transparent;
    border: 1px solid #c4b59a; /* ขอบทองคงที่ */
    color: #c4b59a; /* ไอคอนสีทอง */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* เอฟเฟกต์ตอน Hover */
.btn-nav-arrow:hover {
    background-color: #c4b59a; /* เปลี่ยนพื้นหลังเป็นสีทอง */
    color: #000; /* เปลี่ยนไอคอนเป็นสีดำเพื่อให้อ่านง่าย */
    box-shadow: 0 0 15px rgba(196, 181, 154, 0.4); /* เพิ่มแสงเรืองทอง */
    transform: scale(1.1); /* ขยายขนาดขึ้นเล็กน้อย */
}

/* ปรับระยะห่างระหว่างปุ่ม */
.d-flex.gap-2.mb-2 {
    gap: 15px !important;
}
.footer-section {
    background-color: #000;
    /* ไล่ระดับสีดำและเพิ่มแสงฟุ้งสีทองที่มุมขวาล่างตามภาพ */
    background-image: radial-gradient(circle at 80% 80%, rgba(196, 181, 154, 0.15), transparent 40%);
    border-top: 1px solid rgba(196, 181, 154, 0.2);
}

.footer-text {
    color: #a0a0a0;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 300;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #c4b59a;
}

/* ปุ่มไอคอน Call now วงกลมทอง */
.footer-icon-btn {
    width: 65px;
    height: 65px;
    border: 2px solid #c4b59a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 28px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.footer-icon-btn:hover {
    background-color: #c4b59a;
    color: #000;
    box-shadow: 0 0 20px rgba(196, 181, 154, 0.4);
}

/* การจัดระเบียบในมือถือ */
@media (max-width: 991.98px) {
    .footer-section {
        text-align: center;
    }
    .footer-text {
        margin-bottom: 20px;
    }
    .footer-icon-btn {
        margin: 0 auto;
    }
}
/* ปรับปุ่ม Call now ให้ดูสว่างและคมชัดขึ้น */
.call-btn-outer {
    width: 75px;
    height: 75px;
    border: 1.5px solid #c4b59a; /* ขอบหนาขึ้นเล็กน้อย */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3); /* ใส่พื้นหลังใสให้ปุ่มดูมีมิติ */
    transition: all 0.4s ease;
}

.call-btn-inner {
    width: 60px;
    height: 60px;
    background-color: #c4b59a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 26px;
    box-shadow: 0 0 15px rgba(196, 181, 154, 0.4); /* เพิ่มเงาเรืองแสงที่ตัวปุ่ม */
}

.call-btn-outer:hover {
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(196, 181, 154, 0.6);
}

.call-btn-outer:hover .call-btn-inner {
    background-color: #ffffff;
    transform: scale(0.95);
}