/* ==========================================================================
   CATEGORY STYLES: LEGAL, LITIGATION & TAX (legal.css)
   Theme: Warm Minimalist Luxury (Slight Brown Cream / Executive Navy)
   ========================================================================== */

/* 1. Category Hero Banner (แบบมีภาพพื้นหลัง) */
.hero-with-bg {
    background-color: var(--bg-light-grey);
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    padding: 120px 10% 80px;
    text-align: left;
    color: var(--primary-color);
}

.woxa-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.hero-with-bg h1 {
    color: var(--primary-color);
    font-size: 3.8rem;
    margin-bottom: 20px;
    max-width: 800px;
    line-height: 1.15;
}

.hero-with-bg p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0;
    line-height: 1.6;
}

/* 2. Services Overview Section (หน้าสารบัญ) */
.services-overview {
    padding: 100px 10%;
    background-color: var(--bg-light-grey);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(196, 151, 101, 0.12);
    border-color: var(--accent-gold);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
    flex: 1;
}

.card-link {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.service-card:hover .card-link {
    gap: 12px;
}

/* 3. Split Content Block (ซ้ายข้อความ - ขวารูปภาพ) */
.split-content-section {
    padding: 80px 10%;
    background-color: var(--bg-white);
}

.split-content-block {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.split-text-side {
    flex: 1;
    min-width: 300px;
}

.split-text-side>p {
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.split-image-side {
    flex: 1;
    min-width: 300px;
}

.split-image-side img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

.off-white-heading {
    color: var(--primary-color);
}

/* 4. Feature Grid 2x2 (สำหรับส่วนเช็คลิสต์) */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon-svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--accent-gold);
}

.feature-item-text strong {
    display: block;
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.feature-item-text span {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: block;
}

/* ปุ่มลิงก์เสริม */
.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-outline-blue {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-blue:hover {
    background-color: var(--primary-color);
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 5. Detailed Services (การ์ด 6 ใบ - จัดเรียง 3 คอลัมน์) */
.detailed-services-section {
    padding: 80px 10%;
    background-color: var(--bg-light-grey);
}

.detailed-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.detail-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(196, 151, 101, 0.12);
    border-color: var(--accent-gold);
}

.detail-icon {
    width: 35px;
    height: 35px;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.detail-card h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.detail-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* 6. Bottom CTA Box */
.cta-banner {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.cta-banner-text {
    flex: 1;
    padding-right: 40px;
}

.cta-banner-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ==========================================================================
   SPECIFIC COMPONENTS FOR TAXATION PAGE
   ========================================================================== */
.team-highlight-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--accent-gold);
}

.team-highlight-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.team-highlight-header-text h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-highlight-header-text span {
    color: var(--accent-gold);
    font-size: 0.95rem;
    font-weight: 600;
}

.team-highlight-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-highlight-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.team-highlight-card ul {
    padding-left: 20px;
}

.team-highlight-card ul li {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 500;
    list-style-type: disc;
}

.large-svg-icon {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
    color: var(--primary-color);
}

/* ==========================================================================
   SPECIFIC COMPONENTS FOR BOI PAGE & TABS
   ========================================================================== */
.tabs-section {
    padding: 60px 10% 100px;
    background-color: var(--bg-white);
}

.tab-menu {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tab-menu::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--text-muted);
    padding: 10px 0;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.tab-btn:hover {
    color: var(--accent-gold);
}

.tab-btn.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeInTab 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BOI Icon Grid: จัดเรียง 4 คอลัมน์บนจอ Mac/PC */
.boi-icon-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-top: 30px !important;
    margin-bottom: 40px !important;
}

.boi-icon-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.boi-icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(196, 151, 101, 0.15);
    border-color: var(--accent-gold);
}

.boi-icon-card svg,
.boi-icon-card img {
    width: 36px;
    height: 36px;
    color: var(--accent-gold);
    margin-bottom: 15px;
    flex-shrink: 0;
}

.boi-icon-card h4 {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.boi-icon-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.boi-icon-card.wide-card {
    align-items: flex-start;
    text-align: left;
    padding: 30px 40px;
}

.boi-icon-card.wide-card svg {
    margin-bottom: 20px;
    width: 28px;
    height: 28px;
}

/* Timeline (ขั้นตอนการทำงาน - จอคอม) */
.timeline-container {
    max-width: 700px;
    margin: 40px auto;
    padding-left: 10px;
}

/* Sub-tabs (แท็บย่อยทรงแคปซูล โทนทอง Caramel Gold) */
.sub-tab-menu {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
}

.sub-tab-btn {
    padding: 8px 22px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.sub-tab-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.sub-tab-btn.active {
    background: var(--accent-gold) !important;
    color: #fff !important;
    border-color: var(--accent-gold) !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(196, 151, 101, 0.3);
}

.sub-tab-content {
    display: none;
    animation: fadeInTab 0.4s ease forwards;
}

.sub-tab-content.active {
    display: block;
}

/* ==========================================================================
   🔥 ซ่อน Dropdown สำหรับจอคอม (ตั้งค่าเริ่มต้น)
   ========================================================================== */
.mobile-tab-dropdown {
    display: none;
}

/* ==========================================================================
   🔥 MASTER TIMELINE & NUMBERED CARDS FIX
   ========================================================================== */
.timeline-item,
.boi-icon-card.timeline-item,
.detail-card.timeline-item,
#tab-process div[class*="item"],
#tab-process div[class*="card"],
#tab-process div[class*="step"],
.boi-stepper-bar,
[class*="timeline-item"] {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 28px 24px !important;
    margin-bottom: 20px !important;
    background-color: #ffffff !important;
    border: 1px solid var(--border-color, #EAEAEA) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    height: auto !important;
    min-height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.timeline-item::before,
#tab-process div[class*="item"]::before,
#tab-process div[class*="card"]::before,
[class*="timeline-item"]::before {
    display: none !important;
}

.timeline-number,
.boi-stepper-number,
#tab-process div[class*="number"],
#tab-process div[class*="step-num"],
#tab-process div>div:first-child[style*="border-radius: 50%"],
[class*="timeline-"] [class*="number"],
[class*="step-"] [class*="number"] {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    background-color: var(--accent-gold, #C49765) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    margin: 0 0 15px 0 !important;
    flex-shrink: 0 !important;
    z-index: 10 !important;
    box-shadow: 0 4px 10px rgba(196, 151, 101, 0.3) !important;
}

.timeline-item h4,
#tab-process h3,
#tab-process h4,
[class*="timeline-item"] h4 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--primary-color, #1A1A1A) !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.4 !important;
    width: 100% !important;
}

.timeline-item p,
#tab-process p,
[class*="timeline-item"] p {
    font-size: 0.9rem !important;
    color: var(--text-muted, #666666) !important;
    margin: 0 !important;
    line-height: 1.6 !important;
    width: 100% !important;
}

.timeline-item:hover,
[class*="timeline-item"]:hover {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 10px 25px rgba(196, 151, 101, 0.15) !important;
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

/* ==========================================================================
   CONSOLIDATED RESPONSIVE RULES (ยุบรวมกฎหน้าจอขนาดกลาง)
   ========================================================================== */
@media (max-width: 1100px) {

    .boi-icon-grid,
    .detailed-services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .cta-banner-text {
        padding-right: 0;
    }
}

/* ==========================================================================
   🔥 LEGAL MOBILE MASTER FIX: ควบคุมมือถือให้สวยคลีน จบครบในก้อนเดียว
   ========================================================================== */
@media (max-width: 768px) {

    /* 1. 🔥 ป้องกัน Navbar บังเนื้อหาด้านบน (Safe Area 100px) */
    .hero-with-bg,
    .split-content-section,
    .detailed-services-section,
    .services-overview,
    .tabs-section {
        padding-top: 100px !important;
        padding-bottom: 50px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-with-bg h1 {
        font-size: 2.3rem !important;
        line-height: 1.25 !important;
    }

    /* บังคับ Grid ทุกหมวดกลับมาเรียง 1 คอลัมน์แนวดิ่ง */
    .feature-grid,
    .detailed-services-grid,
    .boi-icon-grid,
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .boi-icon-card {
        min-height: auto !important;
        padding: 24px 18px !important;
    }

    /* 2. 🔥 บังคับข้อความอยู่บนสุด และดันรูปภาพลงไปแสดงด้านล่างสุดเสมอ */
    .split-content-block,
    .hero-with-bg .woxa-container,
    [class*="split-"],
    [class*="content-block"] {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 25px !important;
        width: 100% !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        box-sizing: border-box !important;
    }

    .split-text-side,
    .hero-content,
    [class*="-text"] {
        order: 1 !important;
        width: 100% !important;
        text-align: left !important;
        padding: 0 !important;
    }

    .split-image-side,
    .hero-image,
    [class*="-image"] {
        order: 2 !important;
        width: 100% !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
        display: flex !important;
        justify-content: center !important;
    }

    .split-image-side img,
    [class*="-image"] img {
        width: 100% !important;
        height: auto !important;
        max-height: 380px !important;
        object-fit: cover !important;
        border-radius: 16px !important;
        box-shadow: 0 12px 30px rgba(11, 19, 32, 0.12) !important;
    }

    .split-text-side .btn,
    .split-text-side [class*="btn"],
    .button-group {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-top: 20px !important;
        margin-bottom: 10px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: fit-content !important;
        min-width: 220px !important;
    }

    /* =========================================
       🔥 มือถือ: Custom Dropdown Premium UI (Tabs) - อัปเกรดความเนียน
       ========================================= */
    .desktop-tabs,
    .tab-menu {
        display: none !important;
    }

    .mobile-tab-dropdown {
        display: block !important;
        position: relative !important;
        margin-bottom: 30px !important;
        width: 100% !important;
        z-index: 50 !important;
        padding: 0 24px !important;
        box-sizing: border-box !important;
    }

    .custom-dropdown-trigger {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 16px 20px !important;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        color: var(--primary-color, #0B1320) !important;
        background-color: #ffffff !important;
        border: 2px solid var(--primary-color, #0B1320) !important;
        border-radius: 12px !important;
        margin-bottom: 0 !important;
        /* 💡 ล็อกไม่ให้มีช่องว่างด้านล่าง */
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 51 !important;
        /* 💡 ให้อยู่เหนือเมนูเสมอ */
    }

    .custom-dropdown-trigger span {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 0.95rem !important;
        margin-right: 10px !important;
        display: block !important;
        width: 100% !important;
        text-align: left !important;
    }

    /* 🔥 สไตล์ตอนเปิด Dropdown (ให้เชื่อมกันเนียนๆ ไร้รอยต่อ) */
    .custom-dropdown-trigger.open {
        border-color: var(--accent-gold, #C49765) !important;
        color: var(--accent-gold, #C49765) !important;
        border-bottom-left-radius: 0 !important;
        /* 💡 บังคับมุมล่างให้เป็นสี่เหลี่ยม */
        border-bottom-right-radius: 0 !important;
        /* 💡 บังคับมุมล่างให้เป็นสี่เหลี่ยม */
        border-bottom-color: transparent !important;
        /* 💡 ลบเส้นกั้นขอบทองตรงกลางออก */
    }

    .custom-dropdown-trigger .dropdown-icon {
        width: 20px !important;
        height: 20px !important;
        transition: transform 0.3s ease !important;
    }

    .custom-dropdown-trigger.open .dropdown-icon {
        transform: rotate(180deg) !important;
    }

    .custom-dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 24px !important;
        right: 24px !important;
        width: calc(100% - 48px) !important;
        margin-top: 0 !important;
        /* 💡 ล็อกไม่ให้มีช่องว่างตรงกลาง */
        background-color: #ffffff !important;
        border: 2px solid var(--accent-gold, #C49765) !important;
        border-top: none !important;
        /* 💡 ลบขอบบนทิ้งให้กลมกลืนกับปุ่ม */
        border-top-left-radius: 0 !important;
        /* 💡 บังคับมุมบนให้เป็นสี่เหลี่ยม */
        border-top-right-radius: 0 !important;
        /* 💡 บังคับมุมบนให้เป็นสี่เหลี่ยม */
        border-bottom-left-radius: 12px !important;
        border-bottom-right-radius: 12px !important;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        z-index: 50 !important;
    }

    .custom-dropdown-trigger.open+.custom-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .custom-dropdown-option {
        padding: 15px 20px !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        color: var(--text-muted, #5A6472) !important;
        cursor: pointer !important;
        transition: background 0.2s, color 0.2s !important;
        border-bottom: 1px solid var(--border-color, rgba(11, 19, 32, 0.05)) !important;
    }

    .custom-dropdown-option:last-child {
        border-bottom: none !important;
    }

    .custom-dropdown-option:hover,
    .custom-dropdown-option.selected {
        background-color: rgba(196, 151, 101, 0.08) !important;
        color: var(--primary-color, #0B1320) !important;
        font-weight: 700 !important;
    }
}

/* ==========================================================================
   🔥 BACKGROUND FEATURE SECTION (MOBILE FIX)
   ========================================================================== */
@media (max-width: 768px) {
    .background-feature-section {
        background-image: linear-gradient(180deg,
                rgba(255, 255, 255, 1) 0%,
                rgba(255, 255, 255, 0.95) 55%,
                rgba(255, 255, 255, 0) 100%), url('../picture/legal-litigation-tax/legal-support/legal.png') !important;

        background-position: center bottom !important;
        background-size: cover !important;
        padding-top: 100px !important;
        padding-bottom: 280px !important;
    }
}

/* ==========================================================================
   🔥 TAXATION PAGE MOBILE SPECIFIC FIX
   ========================================================================== */
@media (max-width: 768px) {
    .team-highlight-card {
        padding: 30px 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
        border-top: 4px solid var(--accent-gold) !important;
        background-color: #ffffff !important;
    }

    .team-highlight-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        width: 100% !important;
        margin-bottom: 5px !important;
    }

    .team-highlight-img {
        width: 90px !important;
        height: 90px !important;
        object-fit: cover !important;
        border-radius: 50% !important;
        box-shadow: 0 6px 15px rgba(11, 19, 32, 0.1) !important;
        margin-left: 0 !important;
    }

    .team-highlight-header-text {
        width: 100% !important;
    }

    .team-highlight-header-text h4 {
        font-size: 1.2rem !important;
        color: var(--primary-color) !important;
        margin-bottom: 4px !important;
        text-align: left !important;
    }

    .team-highlight-header-text span {
        font-size: 0.9rem !important;
        color: var(--accent-gold) !important;
        display: block !important;
        text-align: left !important;
    }

    .team-highlight-card p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        color: var(--text-muted) !important;
        text-align: left !important;
        margin-bottom: 15px !important;
    }

    .team-highlight-card ul {
        padding-left: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .team-highlight-card ul li {
        font-size: 0.9rem !important;
        color: var(--primary-color) !important;
        line-height: 1.5 !important;
        margin-bottom: 10px !important;
        text-align: left !important;
        list-style-type: disc !important;
    }

    .large-svg-icon,
    .tax-illustration-img {
        width: 100% !important;
        max-width: 320px !important;
        height: auto !important;
        margin: 20px auto !important;
        display: block !important;
        opacity: 0.95;
    }

    /* =========================================
       🔥 มือถือ: ปรับ Sub-tab ให้ปัดซ้าย-ขวาได้ (Swipeable) + แก้ปัญหาปุ่มโดนตัด
       ========================================= */
    .sub-tab-menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        align-items: center !important;
        /* จัดให้อยู่กึ่งกลางแนวตั้ง */
        gap: 10px !important;
        /* 🔥 เพิ่มพื้นที่ Padding บน 10px และ ล่าง 20px ให้เงา (Shadow) มีที่หายใจ ไม่โดนตัด */
        padding: 10px 5px 25px 5px !important;
        margin-bottom: 10px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .sub-tab-menu::-webkit-scrollbar {
        display: none !important;
    }

    .sub-tab-btn {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        width: auto !important;
        margin: 0 !important;
        font-size: 0.85rem !important;
        padding: 10px 20px !important;
        border-radius: 50px !important;
        transition: all 0.3s ease !important;
    }
}