/*
Theme Name: MaxRegen
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/


/*************** ADD CUSTOM CSS HERE.   ***************/

/* 1. Header Background & Layout */
.header,
.header-wrapper {
    background-color: #083b54 !important;
}

#top-bar {
    background-color: transparent !important;
    border-bottom: none !important;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20;
    width: auto;
}

#masthead {
    background-color: transparent !important;
    border-bottom: none !important;
    padding-top: 10px;
    /* Adjust based on valid space */
}

/* 2. Logo Area */
.header-logo {
    padding-top: 10px;
}

/* 3. Hide Original Slogan */
.html_topbar_left {
    display: none !important;
}

/* 4. Custom Menu & New Slogan Position */
.html_topbar_right {
    text-align: right;
}

.anh-menu-tuy-chinh {
    position: relative;
    display: inline-block;
    padding-top: 30px;
    /* Space for slogan */
}

/* Recreate Slogan */
.anh-menu-tuy-chinh::before {
    content: "TRANG KIẾN THỨC TỰ PHỤC HỒI CƠ XƯƠNG KHỚP";
    display: block;
    width: 100%;
    text-align: right;
    color: #fff;
    text-transform: uppercase;
    font-size: 16px;
    /* Adjust size */
    font-weight: normal;
    position: absolute;
    top: 5px;
    right: 0;
    white-space: nowrap;
}

/* 5. Menu Buttons */
.anh-menu-tuy-chinh img {
    height: 40px;
    /* Adjust height matches design */
    width: auto;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 5px;
    /* Optional: rounded corners like buttons */
}

/* 6. Hamburger Menu Adjustments */
/* Ensure it sits nicely with the custom buttons if needed */
.header-nav {
    /* Adjust if it overlaps */
}

@media only screen and (max-width: 849px) {
    /* Match Flatsome mobile breakpoint */

    /*************** ADD MOBILE ONLY CSS HERE  ***************/

    /* 1. Header Background & Layout */
    .header-main,
    #masthead {
        background-color: #083b54 !important;
        height: auto !important;
        padding-bottom: 5px;
    }

    .header-inner {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    /* 2. Logo */
    .header-logo {
        max-width: 80px;
        /* Reduced to MIN width to give space */
    }

    .header-logo img {
        max-height: 40px !important;
    }

    /* 3. Middle Column (Where HTML 2 lives) */
    .header-main .flex-col.show-for-medium.flex-left {
        flex: 1 1 auto !important;
        /* Grow to fill space */
        display: block !important;
        /* Use block to allow content flow */
        max-width: none !important;
        padding-left: 2px;
        padding-top: 4px;
        /* Fine tune vertical align */
        margin-right: auto;
    }

    /* Ensure the inner list item shows */
    .header-main .flex-col.show-for-medium .html.custom {
        display: block !important;
        width: 100%;
    }

    /* 4. Custom Content (Slogan + Buttons) */
    .header-main .flex-col.show-for-medium .anh-menu-tuy-chinh {
        display: block !important;
        /* KEY: Block allows inline images */
        text-align: left;
        /* Align left next to logo */
        width: 100%;
        padding-top: 0;
        line-height: 0;
    }

    /* Slogan - Top Line */
    .header-main .flex-col.show-for-medium .anh-menu-tuy-chinh::before {
        content: "TRANG KIẾN THỨC TỰ PHỤC HỒI CƠ XƯƠNG KHỚP";
        display: block;
        /* Forces line break */
        position: relative !important;
        /* KEY FIX: Reset from absolute */
        color: #fff;
        font-size: 11px;
        /* Reasonable readable size */
        font-weight: bold;
        white-space: nowrap;
        margin-bottom: 2px;
        line-height: 1.2;
        text-align: left;
        top: auto;
    }

    /* Buttons - Bottom Line */
    .header-main .flex-col.show-for-medium .anh-menu-tuy-chinh img {
        height: 25px !important;
        /* Tuned for single line */
        width: auto !important;
        margin-right: 0px !important;
        /* Zero margin */
        margin-bottom: 0px;
        display: inline-block !important;
        /* SHOW Images on Mobile */
        /* Sit side-by-side */
        vertical-align: middle;
        border-radius: 2px;
    }

    /* HIDE Text Menu on Mobile */
    .custom-nav-list {
        display: none !important;
    }

    /* 5. Hamburger Menu */
    .mobile-menu-trigger,
    .nav-icon {
        /* Ensure it's not hidden */
    }

    /* Reset Top Bar if it leaked */
    #top-bar {
        display: none !important;
    }
}

/*************** ADD DESKTOP ONLY CSS HERE  ***************/
@media only screen and (min-width: 850px) {

    /* 1. Header Background */
    .header-main,
    .header-inner {
        background-color: #083b54 !important;
    }

    /* 2. HIDE Hamburger, BUT SHOW MAIN NAV */
    .nav-icon,
    .mobile-menu-trigger {
        display: none !important;
    }

    /* Ensure Header Inner acts as positioning context */
    .header-inner {
        position: relative !important;
    }

    .header-nav {
        display: flex !important;
        /* Force Flex container */
        position: absolute !important;
        /* Break out of column */
        right: 15px !important;
        /* Align Right */
        top: 0 !important;
        bottom: 0 !important;
        width: auto !important;
        height: 100% !important;
        align-items: center !important;
        /* Vertically Center */
        z-index: 100 !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
    }

    /* Ensure Nav Items are horizontal */
    .header-nav ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        height: 100% !important;
        width: auto !important;
    }

    .header-nav li {
        display: block !important;
        width: auto !important;
        float: none !important;
        margin: 0 0 0 25px !important;
        height: auto !important;
    }

    .header-nav li a {
        display: block !important;
        color: #fff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        padding: 10px 0 !important;
        white-space: nowrap !important;
        line-height: normal !important;
    }

    /* 3. Hide Custom HTML (Images) on Desktop */
    .header-main .anh-menu-tuy-chinh,
    .anh-menu-tuy-chinh {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        pointer-events: none !important;
    }

    /* Hide the injected text menu if it exists (extra safety) */
    .custom-nav-list {
        display: none !important;
    }

    .custom-nav-list li a {
        color: #fff !important;
        font-weight: 700;
        font-size: 15px;
        text-transform: uppercase;
        text-decoration: none;
        transition: color 0.3s ease;
        padding: 5px 0;
        display: block;
    }

    .custom-nav-list li a:hover {
        color: #2db5e8 !important;
        /* Light blue hover */
        border-bottom: 2px solid #2db5e8;
    }

    /* 2. Force Show the "Mobile" Content Container */
    .header-main .flex-col.show-for-medium {
        display: flex !important;
        /* Override 'none' */
        flex-direction: column;
        align-items: flex-end;
        /* Align Content Right */
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto;
        flex: 1;
        /* Take remaining space */
        padding-right: 15px;
        /* Right padding */
    }

    /* 3. Custom Content Wrapper */
    .header-main .flex-col.show-for-medium .anh-menu-tuy-chinh {
        display: block !important;
        text-align: right;
        width: 100%;
        line-height: normal;
        padding-top: 0;
    }

    /* 4. Slogan (Desktop Size) */
    .header-main .flex-col.show-for-medium .anh-menu-tuy-chinh::before {
        content: "TRANG KIẾN THỨC TỰ PHỤC HỒI CƠ XƯƠNG KHỚP";
        display: block;
        color: #fff;
        font-size: 16px;
        /* Larger */
        font-weight: bold;
        margin-bottom: 8px;
        /* Spacing below slogan */
        position: static;
        /* Natural flow */
        text-align: right;
    }

    /* 5. Buttons (Desktop Size) */
    .header-main .flex-col.show-for-medium .anh-menu-tuy-chinh img {
        height: 38px !important;
        /* Larger */
        margin-left: 10px;
        /* Spacing */
        margin-right: 0;
        display: inline-block !important;
    }

    /* 6. Hide Top Bar to clean up */
    #top-bar {
        display: none !important;
    }

    /* 7. Ensure HTML Custom is visible */
    .html.custom {
        display: block !important;
    }

    /* 8. Logo Sizing */
    .header-logo {
        max-width: 200px;
    }

    .header-logo img {
        max-height: 80px !important;
    }
}

/*************** HOMEPAGE BODY CSS (Mobile First - Class Based) ***************/

/* 1. Intro Section (.text-sau-hero) */
.text-sau-hero {
    text-align: center;
    padding: 10px 5px;
}

.text-sau-hero p span,
.text-sau-hero strong {
    color: #083b54 !important;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: bold;
}

.text-sau-hero ul {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
    text-align: center;
    display: inline-block;
    /* Center the block of text */
}

.text-sau-hero li {
    font-weight: bold;
    font-style: italic;
    font-size: 15px;
    /* Increased slightly */
    margin-bottom: 3px;
    color: #000;
    text-align: left;
    /* Align text left within centered block if strictly following list format, 
                         but user image shows centered lines. Let's stick to center for now 
                         but make sure they look clean. */
    text-align: center;
}

.text-sau-hero li::before {
    content: "- ";
    font-weight: bold;
    margin-right: 3px;
}

/* 2. Section Title (XỬ LÝ PHỤC HỒI) */
/* Target the container class */
.section-title-container {
    background: linear-gradient(90deg, #094b63 0%, #0093c4 50%, #094b63 100%) !important;
    padding: 12px 0;
    margin-bottom: 20px;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

/* Force Flex Centering on the H2 */
.section-title-container .section-title {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
}

.section-title-center .section-title-main {
    color: #fff !important;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: bold;
    border: none !important;
    background-color: transparent !important;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    flex: 0 0 auto;
}

/* Hide default decorative lines */
.section-title b,
.section-title-center b {
    display: none !important;
}

/* 3. Grid Items */
/* Target generic box-text inside cols */
.col .box-text p {
    font-weight: bold;
    font-size: 13px;
    margin-top: 5px;
    color: #333;
    line-height: 1.2;
}

/* Mobile Grid Adjustment */
@media only screen and (max-width: 849px) {
    .col.small-4 {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .section-title-container {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        /* Force full width breakout */
        border-radius: 0;
    }

    /* Refine Intro Section Spacing (Aggressive) */
    /* Target the specific section identified by User */
    #section_1416853210,
    .section.section-1 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Remove generic section padding constraints on mobile for this part */
    #section_1416853210 .section-content,
    .section.section-1 .section-content {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .text-sau-hero {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 5px 5px !important;
        /* Slight padding for text readability */
        box-sizing: border-box !important;
        margin-top: 0 !important;
    }

    /* Reduce Top Gap for the Title "MAX REGEN CUNG CẤP" */
    .text-sau-hero h3,
    .text-sau-hero h2,
    .text-sau-hero .section-title {
        margin-top: 5px !important;
        margin-bottom: 5px !important;
        padding-top: 0 !important;
        line-height: 1.2;
    }

    /* Intro Paragraph - Increased Size */
    .text-sau-hero p:first-child {
        margin-top: 5px !important;
        /* Small top spacing */
        padding-top: 0 !important;
        margin-bottom: 5px !important;
        line-height: 1.3;
        font-size: 19px !important;
        /* Increased from 18px */
    }

    /* Compact List Items */
    .text-sau-hero ul {
        margin-bottom: 5px !important;
    }

    .text-sau-hero li {
        margin-bottom: 8px !important;
        /* More breathing room */
        margin-left: 15px !important;
        /* Restore slight indent for readability */
        font-size: 16px !important;
        /* Increased from 14px */
        white-space: normal !important;
        text-align: left !important;
        /* User requested Left Alignment */
        line-height: 1.5;
    }
}

/**************** GLOBAL FONT SETTINGS ****************/
/* Apply Roboto as default system font */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
span,
div,
a,
strong,
b,
i,
em {
    font-family: 'Roboto', sans-serif !important;
}

/**************** SECTION 2: DIFFERENCE TITLE STYLING ****************/
/* Base Styles (Mobile First) */
#section_1671771884,
#section_658014015,
.section.section-2 {
    background: linear-gradient(90deg, #02384a 0%, #066b8c 50%, #02384a 100%) !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    background-color: transparent !important;
    /* Override potential white bg */
}

#section_1671771884 .section-content,
#section_658014015 .section-content,
.section.section-2 .section-content {
    width: 100%;
}

/* Title Container */
#section_1671771884 .title,
#section_658014015 .title,
.section.section-2 .title {
    text-align: center;
    /* Default center for mobile */
    margin-bottom: 0 !important;
}

/* H2 Styling */
#section_1671771884 h2,
#section_658014015 h2,
.section.section-2 h2 {
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1.3;
    text-transform: uppercase;
    margin-bottom: 10px !important;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Logo Image Styling */
#section_1671771884 img,
#section_658014015 img,
.section.section-2 img {
    max-width: 150px;
    height: auto;
    display: inline-block;
    margin-top: 5px;
}

/* Desktop Responsive Layout */
@media only screen and (min-width: 850px) {

    #section_1671771884 .title,
    #section_658014015 .title,
    .section.section-2 .title {
        display: flex !important;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left !important;
        max-width: 1100px;
        margin: 0 auto !important;
    }

    #section_1671771884 h2,
    #section_658014015 h2,
    .section.section-2 h2 {
        font-size: 26px !important;
        flex: 1;
        margin-bottom: 0 !important;
        padding-right: 20px;
    }

    #section_1671771884 p,
    #section_658014015 p,
    .section.section-2 p {
        margin-bottom: 0 !important;
        flex-shrink: 0;
        /* Prevent logo from shrinking */
    }

    #section_1671771884 img,
    #section_658014015 img,
    .section.section-2 img {
        max-width: 200px !important;
        /* Ensure Desktop Logo Size is substantial */
        margin-top: 0;
        width: auto !important;
    }
}

/* Helper Class for Cyan Text */
.text-cyan {
    color: #00d4ff !important;
    /* Bright Cyan/Blue */
    display: inline;
    /* Keep inline to flow with text */
}

/* MOBILE FLEX ROW OVERRIDE */
@media only screen and (max-width: 849px) {

    #section_1671771884,
    #section_658014015,
    #section_75789267,
    .section.section-2 {
        padding-top: 10px !important;
        /* Minimized padding */
        padding-bottom: 10px !important;

        /* Force Full Width Breakout (Transform Method) */
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: 50% !important;
        transform: translateX(-50%) !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    #section_1671771884 .title,
    #section_658014015 .title,
    .section.section-2 .title {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        text-align: left !important;
        padding: 0 !important;
        /* Remove side padding to max width */
    }

    #section_1671771884 h2,
    #section_658014015 h2,
    .section.section-2 h2 {
        font-size: 16px !important;
        /* Maximized font size */
        line-height: 1.2;
        flex: 1;
        margin-bottom: 0 !important;
        letter-spacing: -0.5px;
        /* Tighten slightly to fit more text */
    }

    #section_1671771884 img,
    #section_658014015 img,
    .section.section-2 img {
        max-width: 100px !important;
        /* Maximized logo size */
        margin-left: 5px;
        margin-top: 12px !important;
        /* Push logo down to balance with text */
        height: auto !important;
    }
}

/*************** HERO IMAGE FULL WIDTH CSS ***************/

/* Force .hero-section to break out of container */
.hero-section {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 0 !important;
    max-width: none !important;
}

/* Reset inner elements to fill the new full width */
.hero-section .section-content,
.hero-section .img,
.hero-section .img-inner,
.hero-section img {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Ensure no horizontal scrollbar caused by vw units */
body {
    overflow-x: hidden;
}

/*************** HEADER & SPACING REFINEMENTS ***************/

/* 1. Remove Gap between Header and Hero */
.content-area {
    padding-top: 0 !important;
}

#masthead {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 2. Ensure Desktop Header Background is Full Width */
.header,
.header-wrapper,
.header-main {
    width: 100% !important;
    max-width: 100vw !important;
}

/*************** FINAL DESKTOP HEADER FIXES ***************/

/* 1. Remove White Gap at Top */
.header-main {
    padding-top: 0 !important;
}

.header-bg-container,
.header-bg-color,
.header-bg-image {
    top: 0 !important;
}

.header-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0 !important;
}

/* 2. Force Background Color on Outer Wrapper (Full Width) */
.header,
.header-wrapper {
    background-color: #083b54 !important;
}

/* Ensure inner background elements don't conflict */
.header-bg-color {
    background-color: #083b54 !important;
    width: 100% !important;
    left: 0 !important;
}

/* FORCE ICONS SECTION STYLES (User Class: .text-duoi-icon-tron-1) */

/* 1. Reset/Remove Icon Styles */
html body .section-2-1 .box-image .image-cover {
    border: none !important;
    width: auto !important;
    height: auto !important;
    padding-top: 100% !important;
    /* Restore aspect ratio */
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}

html body .section-2-1 .box-image img {
    padding: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    height: auto !important;
    position: relative !important;
}

/* 2. TEXT: Single Row, Equal Height, Full Width Green Bar (Edge-to-Edge via Pseudo-element) */

/* The Row:
   - Match Standard Grid Row behavior (negative margins) to align with Icons Row.
   - Use ::before for the full-width background.
*/
html body .text-duoi-icon-tron-1 {
    width: auto !important;
    max-width: none !important;
    /* Standard Grid Negative Margins to counteract container padding */
    margin-left: -15px !important;
    margin-right: -15px !important;

    position: relative !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    /* Keep 3 cols */
    box-sizing: border-box !important;

    /* Remove custom padding that caused misalignment */
    padding-left: 0 !important;
    padding-right: 0 !important;

    background-color: transparent !important;
    /* Moved to ::before */
    z-index: 1;
    /* Ensure text is above background */
}

/* The Full Width Background */
html body .text-duoi-icon-tron-1::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -50vw;
    /* Center and expand */
    width: 100vw;
    background: linear-gradient(180deg, #99ffcc 0%, #ccffeb 100%) !important;
    /* Mint Green Gradient */
    z-index: -1;
    /* Behind content */
    pointer-events: none;
}

/* The Col */
html body .text-duoi-icon-tron-1 .col {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
    /* Remove Flatsome padding */
    flex: 1 !important;
    z-index: 2;
}

/* The Inner Box */
html body .text-duoi-icon-tron-1 .col-inner {
    background-color: transparent !important;
    height: 100% !important;
    /* Full height for centering */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    margin: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    /* Remove min-height */
}

/* The Text P */
html body .text-duoi-icon-tron-1 p {
    margin-bottom: 0 !important;
    padding: 0 !important;
    /* Remove p padding */
    text-align: center !important;
    font-size: 140% !important;
    font-weight: 400;
    line-height: 1.2;
    color: #000;
}

/* SECTION 2.2 STYLES (FAQ/Accordion) */
html body .section-2-2 .accordion-item {
    border: none !important;
    /* Remove Border */
    border-radius: 0 !important;
    /* Remove Border Radius */
    margin-bottom: 10px;
    background-color: #fff;
    box-shadow: none !important;
}

/* Hide Default Flatsome Icon AND Toggle Button */
html body .section-2-2 .accordion-title::after,
html body .section-2-2 .accordion-title i,
html body .section-2-2 .accordion-title .toggle {
    display: none !important;
}

html body .section-2-2 .accordion-title {
    color: #004d66 !important;
    /* Dark Teal */
    font-weight: 700 !important;
    /* Bold */
    text-transform: none !important;
    font-size: 16px !important;
    padding: 15px !important;
    padding-left: 60px !important;
    /* increased space for icon */
    display: flex;
    align-items: center;
    position: relative;
    min-height: 50px;
}

/* Boxed Icon [ + ] */
html body .section-2-2 .accordion-title::before {
    content: "+";
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    /* Vertically Center */
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    border-radius: 4px;
    /* Slightly rounded square */
    color: #666;
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
    background: #fff;
}

/* Title "Tìm hiểu về" */
html body .section-2-2 p>strong>span {
    font-size: 18px;
    color: #000;
    display: block;
    margin-bottom: 15px;
}

/* SECTION 3: MAX REGEN KHÔNG (.text-duoi-icon-tron-2) */
html body .text-duoi-icon-tron-2 {
    width: auto !important;
    max-width: none !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    position: relative !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    /* Force columns to full height */
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background-color: transparent !important;
    z-index: 1;
}

html body .text-duoi-icon-tron-2::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    background: linear-gradient(180deg, #ffcccc 0%, #ffe6e6 100%) !important;
    /* Pink Gradient */
    z-index: -1;
    pointer-events: none;
}

html body .text-duoi-icon-tron-2 .col {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
    /* Remove specific Flatsome column padding */
    flex: 1 !important;
    z-index: 2;
}

html body .text-duoi-icon-tron-2 .col-inner {
    background-color: transparent !important;
    height: 100% !important;
    /* Full height for centering */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    padding-top: 2px !important;
    /* Ultra tight */
    padding-bottom: 2px !important;
    /* Ultra tight */
    margin: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    /* Remove min-height */
}

html body .text-duoi-icon-tron-2 p {
    margin-bottom: 0 !important;
    padding: 0 !important;
    /* Remove p padding */
    text-align: center !important;
    font-size: 140% !important;
    font-weight: 400;
    line-height: 1.2;
    /* Tighter line height */
    color: #000;
}

/* MAX REGEN VIDEO SECTION START */
/* Container Styling */
.maxgreen-video-section {
    font-family: 'Roboto', sans-serif;
    max-width: 100%;
    margin: 20px auto;
    background: transparent;
    /* Changed from #fff */
    /* Removed border-radius and box-shadow */
}

/* Header Styling */
.video-header {
    background: linear-gradient(90deg, #005c97 0%, #363795 100%);
    /* Blue Gradient */
    color: #fff;
    padding: 15px;
    text-align: center;
    position: relative;
    border-bottom: 4px solid #00a8cc;
}

.video-header h3 {
    margin: 0;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.video-header h3 span {
    display: block;
    font-size: 14px;
    font-weight: 400;
    margin-top: 5px;
    opacity: 0.9;
}

.video-header::before {
    /* Optional: Icon Decoration */
    content: "▶";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    border: 2px solid #fff;
    border-radius: 4px;
    padding: 2px 8px;
    display: none;
}

/* Fix Section Title Overflow on Mobile Globally */
/* Fix Section Title Overflow on Mobile Globally */
@media (max-width: 600px) {
    .section-title-container {
        /* Force Full Width (100vw) Breakout */
        width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        max-width: 100vw !important;

        height: auto !important;
        min-height: 40px;
        padding: 8px 0 !important;
        box-sizing: border-box;
        overflow: hidden !important;
        border-radius: 0 !important;

        /* Premium Gradient Style */
        background: linear-gradient(180deg, #05709f 0%, #004e76 100%) !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
        border-bottom: 1px solid #003d5c;
    }

    .section-title-main {
        font-size: 3.8vw !important;
        /* Slightly larger responsive size */
        line-height: 28px !important;
        white-space: nowrap !important;

        display: block !important;
        width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        font-weight: 700 !important;
        padding: 0 5px;
    }
}

/* Video List Styling */
.video-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 465px !important;
    /* Fixed height for 6 items to prevent button jump */
    /* Allow shrink-wrap to pull button up */
    display: flex;
    flex-direction: column;
}

.video-item {
    display: flex;
    align-items: flex-start;
    padding: 6px 0;
    border-top: 1px dotted #eee;
    /* Switch to border-top */
    border-bottom: none;
    /* Remove border-bottom */
    cursor: pointer;
    transition: background 0.2s;
    margin: 0 !important;
}

.video-item:first-child {
    border-top: none;
    /* Remove top border from first item */
}

.video-item:last-child {
    border-bottom: none;
}

.video-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.video-item.hidden-video {
    display: none !important;
}

/* Icon Styling */
.video-icon {
    flex-shrink: 0;
    width: 32px;
    /* Slightly smaller width */
    height: 22px;
    /* Slightly smaller height */
    background: #FF0000;
    border-radius: 4px;
    position: relative;
    margin-right: 8px;
    /* Tighter spacing to text */
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Play Triangle */
.video-icon::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    /* Smaller triangle */
    border-bottom: 4px solid transparent;
    border-left: 7px solid #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-left: 1px;
}

/* --- GUIDE FOR COLORING ICONS --- */
/* Option 1: Automatic (First 6 Red, Next Green) */
.video-item:nth-child(n+7) .video-icon {
    background: #28a745;
    /* Green */
}

/* Option 2: Manual Classes (Add class="video-icon green" in HTML) */
.video-icon.green {
    background: #28a745 !important;
}

.video-icon.red {
    background: #FF0000 !important;
}

.video-title {
    flex: 1;
    /* Take remaining width */
    font-size: 15px;
    color: #004d66;
    font-weight: 700;
    line-height: 1.25;
    /* Tighter line height */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Optional: adds ... if line clamp used */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
}

/* Show More Button - Image Style */
.video-footer {
    text-align: center;
    padding: 0 !important;
    background: transparent;
    margin-top: 4px !important;
    line-height: 0;
}

/* Hard reset for any stray breaks or paragraphs */
.video-footer br,
.video-footer p {
    display: none !important;
}

.btn-show-more {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s;
    font-size: 0;
    line-height: 0;
    height: auto;
}

.btn-show-more:hover {
    background: transparent;
    transform: scale(1.05);
}

.btn-show-more img {
    height: 35px;
    display: block;
    margin: 0 auto;
}

/* Popup Modal Styling */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16/9;
    background: #000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    font-weight: bold;
    z-index: 100000;
}

.video-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Animation Classes */
.video-modal-overlay.open {
    display: flex;
    opacity: 1;
}