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

@import url('https://use.typekit.net/pye4ydo.css');
@import url('https://use.typekit.net/jck7nww.css');
@import url('https://use.typekit.net/bex1ftj.css');

:root {
    /* MF Design Tokens */
    --mf-magenta: #c23090;
    --mf-coral: #cc8070;
    --mf-beige: #f9e5cf;
    --mf-light-pink: #ffeff0;
    --mf-brown: #c09a7a;

    --mf-text-dark: #212121;
    --mf-text-light: #ffffff;
    --mf-black: #000000;

    --mf-accent-lime: #e4f58e;

    --mf-max-width: 1440px;
    /* Header container max width */
}

/*************** HEADER CLONE CSS ***************/

/* Lock Header to top securely without Flatsome JS jump */
#header .header-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background-color: #ffffff !important;
    animation: none !important;
    transform: none !important;
    /* Nullify sticky transforms */
}

/* Push content down so it doesn't vanish under the 65px header */
#main {
    padding-top: 65px !important;
}

/* Header Container & Background */
#masthead .header-main {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e1e1e1 !important;
    height: 65px !important;
}

/* Hide Topbar entirely */
#masthead .header-top {
    display: none !important;
}

/* Force Flex Layout for Header Main */
#masthead .header-main .flex-center {
    flex: 1 !important;
}

#masthead .header-main .flex-center .nav {
    justify-content: flex-end !important;
    /* Push menu to right side */
}

/* Dán sát biên trang theo màn hình 4K */
#masthead .header-inner {
    max-width: none !important;
    width: 100% !important;
    padding: 0 45px !important;
}

#logo {
    margin: 0 !important;
    padding: 0 !important;
}

/* Logo settings */
#logo img {
    max-height: 55px !important;
    /* Căn gọn gàng lại chiều cao logo */
    width: 245px;
    object-fit: contain;
}

/* Main Menu Navigation Links */
.header-nav>li {
    height: 65px;
    /* Giữ khung li full 65px để bám dính đỉnh margin */
    display: flex;
    align-items: center;
}

.header-nav>li>a,
.header-nav>li>a.nav-top-link {
    height: 100% !important;
    /* Chữ kéo dài 100% để border áp đỉnh header */
    font-size: 1rem;
    font-weight: 600;
    color: #222222;
    padding: 0 1rem !important;
    border-top: 3px solid transparent !important;
    letter-spacing: -0.01em !important;
    /* Thu gọn khoảng cách chữ giống bản gốc */
    transition: all 0.2s;
    display: flex !important;
    align-items: center;
    line-height: 1;
    text-transform: none;
}

/* Hover State for Menu Links */
.header-nav>li:not(.xc-menu-free-training-btn)>a:hover,
.header-nav>li.active:not(.xc-menu-free-training-btn)>a {
    border-top: 3px solid var(--mf-coral) !important;
    color: var(--mf-coral) !important;
    background-color: transparent !important;
}

/* Remove default Flatsome hover styles (e.g. underline/pills) */
.header-nav>li>a::after {
    display: none !important;
}

/* Dropdown styling */
.header-nav .nav-dropdown {
    border-top: 3px solid var(--mf-coral);
    background-color: #f5f5f5;
    /* Light gray dropdown */
}

/* "Free Training" Button in Header (Custom Menu Item) */
.header-nav>li.xc-menu-free-training-btn {
    display: flex;
    align-items: center;
}

.header-nav>li.xc-menu-free-training-btn>a.nav-top-link {
    height: auto !important;
    display: inline-block !important;
    background-color: var(--mf-accent-lime) !important;
    color: var(--mf-black) !important;
    border-radius: 30px !important;
    padding: 10px 25px 12px !important;
    margin-left: 20px;
    /* Khoảng cách với menu liền kề */
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    box-shadow: 3px 3px 0 0 var(--mf-black) !important;
    /* Đổ bóng sắc cạnh đặc trưng (Hard Shadow) */
    transition: box-shadow 0.23s cubic-bezier(0.645, 0.045, 0.355, 1), background-color 0.2s, color 0.2s !important;
    border-top: none !important;
    text-transform: capitalize !important;
    line-height: inherit;
}

.header-nav>li.xc-menu-free-training-btn>a.nav-top-link:hover {
    box-shadow: -2px -2px 0 0 var(--mf-black) !important;
    /* Đổ bóng ngược khi hover */
    background-color: var(--mf-accent-lime) !important;
    color: var(--mf-black) !important;
}

/* --- MOBILE HEADER FIXES --- */
@media screen and (max-width: 991px) {
    /* 1. Header Tỉ lệ & Căn lề chuẩn */
    #masthead .header-main {
        height: 65px !important; /* Chiều cao header bản gốc là ~65px */
    }

    #masthead .header-inner {
        padding: 0 20px !important; /* Khoảng thở bản gốc (padding hông 20px) */
        justify-content: flex-start !important; /* Đẩy Logo sang trái thay vì căn giữa */
    }

    /* 2. Kéo Logo sang Trái, căn lề đúng Form gốc */
    #logo {
        margin: 0 !important;
        display: flex;
        align-items: center;
        height: 100%;
        flex: 1; /* Để Logo đẩy menu sang phải */
    }

    #logo img {
        width: 190px !important;
        max-height: 48px !important;
        object-fit: contain;
    }

    /* 3. Tinh chỉnh giao diện viền đáy & xóa bóng rườm rà */
    #header .header-wrapper {
        border-bottom: 1px solid #f1f1f1 !important;
        box-shadow: none !important;
    }

    #masthead .header-main {
        border-bottom: none !important;
    }

    /* 4. Hamburger Menu (Make it sleeker & fix "Trắng Tinh") */
    .mobile-nav {
        margin: 0 !important;
        padding: 0 !important;
        color: var(--mf-text-dark) !important;
        display: flex;
        justify-content: flex-end; /* Căn Hamburger sang phải cùng */
    }
    
    /* Ghi đè màu gốc của Flatsome khi trạng thái active (đừng để nó biến màu trắng ngớ ngẩn) */
    .custom-mobile-menu-toggle {
        color: #1d1d42 !important; 
        background: transparent !important;
    }
    
    .custom-mobile-menu-toggle.is-active,
    .custom-mobile-menu-toggle:focus,
    .custom-mobile-menu-toggle:hover {
        color: #1d1d42 !important; /* Khóa màu đen chống lóa mờ */
    }

    .custom-mobile-menu-toggle i.icon-menu {
        font-size: 30px !important; /* Tăng từ 24 lên 30px */
        color: #1d1d42 !important;
        border-top-width: 3px !important; /* Cho thanh trên cùng dày lên */
        font-weight: bolder !important; /* Dùng nếu icon là Font */
    }
    
    /* Cho 2 thanh còn lại của icon menu dày theo nếu Flatsome sử dụng CSS borders */
    .custom-mobile-menu-toggle i.icon-menu::before,
    .custom-mobile-menu-toggle i.icon-menu::after {
        border-top-width: 3px !important;
    }

    /* Ẩn chữ 'Menu' thừa thãi bên cạnh hamburger */
    .mobile-nav .menu-title {
        display: none !important;
    }

    /* Đẩy khung nội dung xuống tương ứng chiều cao 65px */
    #main {
        padding-top: 65px !important;
    }

    /* ====================================================
       5. CUSTOM MOBILE MENU DROPDOWN STYLING (Webflow Clone)
       ==================================================== */

    /* Khung tổng chứa Menu trượt từ trái sang */
    #mf-mobile-menu {
        background-color: #f9f7f2 !important; /* Màu Beige nhạt đặc trưng của menu mobile */
        position: fixed;
        top: 65px; /* Bắt đầu ngay dưới header 65px */
        left: 0;
        width: 100%;
        height: calc(100vh - 65px);
        z-index: 999;
        transform: translateX(-100%); /* Ẩn ra bên trái */
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        overflow-y: auto;
    }

    /* Hiển thị khi được bật */
    #mf-mobile-menu.is-open {
        transform: translateX(0);
    }
    
    #mf-mobile-menu .mf-mobile-menu-content {
        padding: 10px 20px 40px 20px;
    }

    /* Reset danh sách menu và đặt thành Flex để đảo vị trí */
    .mf-mobile-nav-list {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
    }

    .mf-mobile-nav-list > li {
        width: 100% !important;
        margin: 0 !important;
        border-bottom: 1px solid #15113b !important; /* Lằn ranh màu navy đậm */
    }
    
    .mf-mobile-nav-list > li > a {
        background-color: transparent !important;
        color: #1d1d42 !important; /* Khớp màu text gốc */
        font-family: 'area-normal', 'sweet-sans-pro', sans-serif !important;
        font-size: 17px !important;
        font-weight: 400 !important;
        text-transform: none !important;
        text-align: left !important;
        padding: 18px 0 !important;
        display: block;
        width: 100%;
        border: none !important;
    }

    .mf-mobile-nav-list > li.xc-menu-free-training-btn {
        order: -10; /* Đẩy lên phần tử đầu tiên */
        background-color: #e4f58e !important; /* Màu xanh bơ */
        width: calc(100% + 40px) !important; /* Ghi đè lại 100% của wp-menu để full width */
        margin: -10px -20px 20px -20px !important; /* Trải dài sát biên padding của container */
        padding: 5% 20px !important;
        border-bottom: none !important;
    }

    .mf-mobile-nav-list > li.xc-menu-free-training-btn > a {
        background-color: #212121 !important;
        color: #ffffff !important;
        text-align: center !important;
        border-radius: 30px !important;
        padding: 10px !important;
        font-size: 14px !important;
        font-family: 'sweet-sans-pro', sans-serif !important;
        font-weight: 600 !important;
        box-shadow: 3px 3px 0 0 #000000 !important;
        transition: box-shadow 0.23s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
    }

    .mf-mobile-nav-list > li.xc-menu-free-training-btn > a:hover {
        box-shadow: -2px -2px 0 0 #000000 !important;
    }

    /* Giao diện nút Program Login ở đáy */
    .mf-program-login-btn {
        margin-top: 30px !important;
        width: 100% !important;
        background-color: transparent !important;
        color: #1d1d42 !important;
        border: 1px solid #1d1d42 !important;
        border-radius: 80px !important;
        text-align: center !important;
        padding: 12px 0 !important;
        font-weight: 600 !important;
        font-family: 'sweet-sans-pro', sans-serif !important;
    }
    .mf-program-login-btn:hover {
        background-color: #1d1d42 !important;
        color: #f9f7f2 !important;
    }
}

/* Ẩn triệt để Menu Mobile ở phiên bản Máy Tính (Desktop) */
@media screen and (min-width: 992px) {
    #mf-mobile-menu,
    .custom-mobile-menu-toggle {
        display: none !important;
    }
}

/*************** GLOBAL BODY & TYPOGRAPHY ***************/

/* Body & Generic Text */
body,
.page-wrapper {
    background-color: #ffffff;
    color: var(--mf-text-dark);
    font-family: 'sweet-sans-pro', sans-serif !important;
    font-size: 1.1rem;
    line-height: 2;
    font-weight: 400;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: 'ivypresto-display', serif !important;
    font-weight: 700 !important;
    color: var(--mf-black);
    margin-top: 20px;
    margin-bottom: 10px;
}

h1,
.h1 {
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

h2,
.h2 {
    font-size: 3rem;
    line-height: 1.3;
}

h3,
.h3 {
    font-size: 2.25rem;
    line-height: 1.3;
}

h4,
.h4 {
    font-size: 1.75rem;
    line-height: 1.3;
}

h5,
.h5 {
    font-size: 1.5rem;
    line-height: 1.3;
}

p {
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
}

/* Base Link */
a {
    color: inherit;
    transition: all .2s;
    text-decoration: none;
}

/*************** GLOBAL BUTTONS & COMPONENTS ***************/

/* Standard Primary Button inside Main Content */
#main .button.primary,
#main .button.is-primary,
.mf-button-primary {
    background-color: var(--mf-text-dark) !important;
    color: #ffffff !important;
    text-align: center;
    letter-spacing: 0.03rem;
    border-radius: 25px !important;
    padding: 10px 25px 12px !important;
    font-family: 'sweet-sans-pro', sans-serif !important;
    font-weight: 600 !important;
    line-height: 1.6;
    transition: background-color 0.2s, color 0.2s;
    text-transform: capitalize !important;
    border: none !important;
}

#main .button.primary:hover,
#main .button.is-primary:hover,
.mf-button-primary:hover {
    background-color: var(--mf-black) !important;
    color: #ffffff !important;
    text-decoration: none;
}

/* Secondary Hover Styling / Shadowed Button */
.mf-button-shadow {
    box-shadow: 3px 3px 0 0 var(--mf-black) !important;
    transition: box-shadow 0.23s cubic-bezier(0.645, 0.045, 0.355, 1), background-color 0.2s, color 0.2s !important;
}

.mf-button-shadow:hover {
    box-shadow: -2px -2px 0 0 var(--mf-black) !important;
}

/*************** MARIE FORLEO LAYOUT CLASSES ***************/

/* Custom Container Sizes */
.mf-container,
#main .container {
    max-width: 1100px !important;
}

/* Background Sections utilities (for UX Builder) */
.mf-bg-beige {
    background-color: var(--mf-beige) !important;
}

.mf-bg-pink {
    background-color: var(--mf-light-pink) !important;
}

.mf-bg-dark {
    background-color: var(--mf-text-dark) !important;
    color: var(--mf-text-light) !important;
}

.mf-bg-dark h1,
.mf-bg-dark h2,
.mf-bg-dark h3,
.mf-bg-dark h4,
.mf-bg-dark p {
    color: var(--mf-text-light) !important;
}

.mf-section-padding {
    padding: 5% 0 !important;
}

/*************** MARIE FORLEO FOOTER CLONE ***************/

/* Ghi đè Background Section Footer (mặc định đen tuyền) */
.xc-footer {
    background-color: var(--mf-text-dark) !important;
    color: #ffffff;
    padding: 70px 0 !important;
}

/* Ép cấu trúc Cột Footer sử dụng Flexbox chống gãy layout trên màn bự 4K */
.xc-footer .row:first-of-type {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 3rem;
    max-width: 1440px !important;
    margin: 3rem auto 0 auto !important;
    padding: 0 2rem !important; /* Thêm padding chống chữ chạm dính màn hình */
    /* Center chuẩn xác ở màn 4K */
    justify-content: space-between;
}

/* Chia tỷ lệ cột Flex 2:1:1 giống đúng hệ Webflow */
.xc-footer .row:first-of-type>.col {
    flex: 1 !important;
    max-width: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.xc-footer .row:first-of-type>.col:first-child {
    flex: 2 !important;
    /* Form cột 1 bự gấp đôi */
}

/* Gắn khóa form max-width và ép nằm tịt về mép trái chữ ko chỏng chơ */
.xc-footer .row:first-of-type>.col:first-child .col-inner {
    max-width: 420px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Box chứa Links ngang dưới cùng */
.xc-footer .row:last-of-type {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px !important;
    margin: 4rem auto 0 auto !important;
    padding: 0 2rem !important; /* Thêm padding 2 cạnh */
    width: 100%;
}

.xc-footer .row:last-of-type>.col {
    max-width: none !important;
    width: auto !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

/* Override cột Flatsome khi kết hợp CSS Grid */
.xc-footer .col {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

/* Tiêu đề mục (Eyebrow) */
.xc-footer .ux-menu-title {
    font-family: 'ivypresto-display', serif !important;
    color: #ffd8d8 !important;
    /* Rose-200 nhạt */
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: none !important;
    margin-bottom: 1rem;
    padding: 0;
}

/* Link dọc (Company / Courses) */
.xc-footer .ux-menu--divider-solid .ux-menu-link__link {
    border-bottom: none !important;
    min-height: auto;
    padding: 0.25rem 0;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    color: #b4bbc3;
    /* Nhạt bớt so với mảng trắng */
    font-family: 'sweet-sans-pro', sans-serif;
}

.xc-footer .ux-menu-link__link:hover {
    color: var(--mf-magenta) !important;
}

/* Menu ngang góc dưới cùng (Legal Links) */
.xc-footer__menu-horizon {
    display: flex !important;
    flex-direction: row !important;
    gap: 1.5rem;
}

.xc-footer__menu-horizon .ux-menu-link__link {
    font-family: 'sweet-sans-pro', sans-serif !important;
    font-size: 0.55rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff !important;
    padding: 0 !important;
}

/* Số năm Copyright phía đối diện */
.xc-footer .row:last-of-type>.col:last-child p {
    font-family: 'sweet-sans-pro', sans-serif !important;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-align: right;
    margin-bottom: 0;
    color: #b4bbc3;
}

/* Custom Form Signup Newsletter MFI (Xử lý Contact Form 7 wpautop) */
.mf-insider-widget {
    margin-top: 1rem;
    width: 100%;
}

.mf-insider-widget .mf-form-wrapper,
.mf-insider-widget .mf-form-wrapper p {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 0 !important;
}

.mf-insider-widget br {
    display: none !important;
    /* Xoá sạch thẻ BR do CF7 sinh ra */
}

.mf-input {
    height: 60px;
    background-color: #ffffff !important;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    /* Dập viền góc mặc định */
    padding: 0 16px;
    font-size: 16px;
    color: #000;
    width: 100%;
    font-family: 'sweet-sans-pro', sans-serif;
    box-sizing: border-box;
    margin: 0 !important;
    /* Triệt tiêu margin rác của Flatsome */
}

.mf-input::placeholder {
    color: #000 !important;
}

.mf-button-submit {
    height: 60px;
    background-color: #ddbdbd !important;
    /* Màu hồng nút gốc rgb(221, 189, 189) */
    border: 2px solid #000 !important;
    border-radius: 60px !important;
    color: #000 !important;
    font-weight: 900 !important;
    font-family: 'sweet-sans-pro', sans-serif !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
    transition: all 0.2s;
    cursor: pointer;
    width: 100%;
    margin: 0 !important;
    /* Triệt tiêu margin rác của Flatsome */
}

.mf-button-submit:hover {
    background-color: #caa0a0 !important;
}

.mf-form-legal p {
    font-size: 10px !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    margin-top: 10px !important;
    font-family: 'sweet-sans-pro', sans-serif;
}

.mf-form-legal p a {
    color: #ffffff;
    text-decoration: underline;
}

@media only screen and (max-width: 991px) {
    .xc-footer .row:first-of-type {
        flex-wrap: wrap !important;
    }

    .xc-footer .row:first-of-type>.col:first-child {
        flex: 0 0 100% !important;
        margin-bottom: 2rem !important;
    }

    .xc-footer .row:first-of-type>.col {
        flex: 1 !important;
    }

    .xc-footer .row:last-of-type {
        flex-direction: column !important;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .xc-footer .row:last-of-type>.col:last-child p {
        text-align: left;
    }
}

@media only screen and (max-width: 767px) {

    /* Đổ sập xuống 1 cột trên mobile */
    .xc-footer .row:first-of-type>.col {
        flex: 0 0 100% !important;
        margin-bottom: 2rem !important;
    }

    .xc-footer__menu-horizon {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/
}

/* Hide default absolute footer */
.absolute-footer {
    display: none !important;
}

/*************** MARIE FORLEO HERO VIDEO CLONE (FLATSOME BANNER COMPATIBLE) ***************/

/* Force the flatsome section to take full viewport height */
.xc-hero {
    height: 100vh !important;
    max-height: 90vh !important;
    min-height: 80vh !important;
    padding: 0 !important;
}

.xc-hero .section-content,
.xc-hero .banner {
    height: 100% !important;
    padding-top: 0 !important;
    margin: 0 !important;
}

/* Override background overlay to be black 0.7 like the original */
.xc-hero .video-overlay {
    background-color: rgba(0, 0, 0, 0.7) !important;
    z-index: 2 !important;
}

/* Force the text box to take the full width and height of the banner */
.xc-hero .banner-layers>.text-box {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
}

/* Make content flex to center the text exactly */
.xc-hero .text-box-content {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative;
    /* Acts as the boundary for our absolute buttons */
}

/* Hide auto-generated <br> tags from wpautop inside custom elements */
.xc-hero .text-box-content br {
    display: none !important;
}

/* Make text-inner standard */
.xc-hero .text-inner {
    width: 100% !important;
    max-width: 1000px !important;
    padding: 0 15px;
}

/* The custom heading inside text-inner */
.mf-hero-heading {
    font-family: 'ivypresto-display', serif !important;
    font-size: 7.5rem !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
    margin: 0 !important;
    font-weight: 400 !important;
    letter-spacing: 0.05px;
    text-transform: none !important;
}

.mf-script-accent {
    color: #ffcac7;
    font-style: italic;
    text-decoration: underline;
    font-weight: 400;
    font-family: 'meno-banner', serif !important;
}

/* Watch Video Button - Positioned relative to .text-box-content */
.mf-hero-watch-btn {
    position: absolute !important;
    right: 3%;
    bottom: 5%;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff !important;
    opacity: 0.85;
    transition: opacity 0.2s;
    text-decoration: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.mf-hero-watch-btn:focus,
.mf-hero-watch-btn:active {
    outline: none !important;
}

.mf-hero-watch-btn:hover {
    opacity: 1;
    color: #fff !important;
    background-color: transparent !important;
}

.mf-hero-watch-btn img {
    width: 25px;
    display: inline-block;
    margin: 0 !important;
}

.mf-hero-watch-btn span {
    font-family: 'ivypresto-display', serif !important;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

/* Scroll Down arrow - Positioned relative to .text-box-content */
.mf-hero-scroll-down {
    position: absolute !important;
    bottom: 2.5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    transition: opacity 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.mf-hero-scroll-down img {
    width: 15px;
    transform: rotate(90deg);
    margin: 0 !important;
}

.mf-hero-scroll-down:hover {
    opacity: 0.75;
}

/* Responsive Rules */
@media screen and (max-width: 991px) {
    .mf-hero-heading {
        font-size: 5.5rem !important;
        line-height: 1 !important;
    }
}

@media screen and (max-width: 767px) {
    .mf-hero-heading {
        font-size: 4.5rem !important;
    }

    .mf-script-accent {
        font-size: 5.25rem;
    }
}

@media screen and (max-width: 479px) {
    .xc-hero {
        height: 80vh !important;
        max-height: none !important;
    }

    .mf-hero-heading {
        font-size: 3.75rem !important;
        margin-bottom: 10% !important;
        letter-spacing: 0.5px;
    }

    .mf-script-accent {
        font-size: 3.75rem;
        transform: none;
    }

    .mf-hero-scroll-down {
        bottom: 1rem;
    }

    .mf-hero-watch-btn span {
        font-size: 12px;
    }
}

/*************** HTGAYW SECTION CLONE ***************/

.xc-home-htgayw {
    background-color: #f6f1eb !important;
    padding: 3rem 0 !important;
}

.htgayw-widget h2 {
    font-family: 'ivypresto-display', serif !important;
    font-size: 32px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    text-transform: none !important;
    color: #000;
}

.htgayw-widget h2 em {
    font-style: italic;
    font-weight: 400;
    /* Regular italic for accent */
    font-family: 'meno-banner', serif !important;
}

.htgayw-widget {
    padding-right: 5% !important;
    /* Give some breathing room to the right column image */
}

.htgayw-widget .htgayw-subtitle {
    font-size: 18px;
    margin-bottom: 25px;
    letter-spacing: 0.01em;
    color: #000;
}

.htgayw-widget .htgayw-subtitle strong,
.htgayw-widget .htgayw-subtitle em {
    font-weight: 700;
}

.htgayw-widget .htgayw-subtitle em {
    font-style: italic;
}

/* Make sure Flatsome row items align in vertical center against the image */
.xc-home-htgayw .row {
    align-items: center;
}

/* Ensure CF7 form or raw form acts as a column */
.htgayw-widget form,
.htgayw-widget form .htgayw-widget {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 0 !important;
}

.htgayw-form-row {
    width: 100%;
}

.htgayw-form-row+.htgayw-form-row {
    margin-top: 12px !important;
}

/* Fix for WPCF7 automatically wrapping inputs in spans and <p> and <br> */
.htgayw-form-row p {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.htgayw-form-row br,
.htgayw-form-row .screen-reader-response {
    display: none !important;
}

/* In case CF7 generates span wrappers for fields */
.htgayw-form-row .wpcf7-form-control-wrap {
    flex: 1;
    display: flex;
    width: 100%;
}

.htgayw-form-row .mf-input {
    flex: 1;
    height: 50px;
    background-color: #ffffff !important;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    padding: 0 16px;
    font-size: 16px;
    color: #000;
    margin: 0 !important;
    box-shadow: none !important;
}

.htgayw-form-row .mf-input:focus {
    box-shadow: none !important;
    outline: none !important;
}

.htgayw-form-row .mf-button-submit {
    flex: 1;
    background-color: #eff1ac !important;
    /* lime yellow */
    border: 1px solid #000 !important;
    border-radius: 80px !important;
    color: #000 !important;
    font-family: 'sweet-sans-pro', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    font-size: 16px !important;
    text-transform: uppercase;
    height: 50px;
    min-height: 50px !important;
    width: 100%;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    box-shadow: none !important;
}

.htgayw-form-row .mf-button-submit:hover {
    background-color: #d8da96 !important;
    box-shadow: none !important;
}

.htgayw-form-legal p {
    font-size: 9px !important;
    line-height: 1.4 !important;
    color: #595959 !important;
    margin-top: 5px !important;
    font-family: 'sweet-sans-pro', sans-serif;
    display: block;
    /* override flex behavior just in case */
}

.htgayw-form-legal p a {
    color: #595959 !important;
    text-decoration: underline !important;
}

/* Remove default column padding from bottom */
.xc-home-htgayw .col {
    padding-bottom: 0 !important;
}

@media screen and (max-width: 767px) {
    .htgayw-widget {
        padding-right: 0 !important;
    }

    .htgayw-form-row p {
        flex-direction: column;
    }
}

/* Override default Flatsome page content padding */
.entry-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/*************** HEY IM MARIE SECTION CLONE ***************/

.xc-home-marie {
    background-color: var(--mf-beige) !important;
    padding-top: 5% !important;
    padding-bottom: 0 !important;
    /* Touch bottom */
    position: relative;
    z-index: 10;
}

.xc-home-marie .row {
    align-items: flex-end;
    /* Align columns so image naturally hits bottom */
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Base adjustments for Flatsome default col padding */
.xc-home-marie .col {
    padding-bottom: 0 !important;
}

/* The left column containing the text shouldn't crash into the section bottom */
.xc-home-marie .col:first-child {
    padding-bottom: 8% !important;
}

.mf-hey-widget {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 35px !important;
    /* Gap to button */
}

.mf-hey-widget .eyebrow {
    font-family: 'sweet-sans-pro', sans-serif !important;
    color: var(--mf-coral) !important;
    /* Rose-200 */
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    margin: 0 !important;
}

.mf-hey-widget .serif_display_heading {
    font-family: 'ivypresto-display', serif !important;
    font-size: 8.5rem !important;
    line-height: 0.9 !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    color: var(--mf-black) !important;
    font-weight: 400 !important;
    /* Display weight */
}

.mf-hey-widget p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    letter-spacing: 0.01em !important;
    color: var(--mf-black) !important;
    margin-bottom: 5px !important;
}

/* Targeted styling for UX Builder Button in this section */
.xc-home-marie .button {
    background-color: var(--mf-text-dark) !important;
    color: #ffffff !important;
    border-radius: 80px !important;
    /* Pill shape */
    padding: 0 40px !important;
    height: 56px !important;
    /* Accurate button height */
    min-height: 56px !important;
    font-family: 'sweet-sans-pro', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border: none !important;
    text-transform: none !important;
    /* No uppercase per original */
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.xc-home-marie .button:hover {
    background-color: var(--mf-black) !important;
    transform: translateY(-2px);
}

.xc-home-marie .button span {
    margin: 0 !important;
    line-height: inherit !important;
}

/* Image overriding the section (Negative Margin Top + Bottom Alignment) */
.xc-home-marie .img {
    margin-top: -106px !important;
    margin-bottom: 0 !important;
    max-width: 550px !important;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
    display: block !important;
}

.xc-home-marie .img-inner {
    margin-bottom: 0 !important;
}

@media screen and (min-width: 1920px) {
    .xc-home-marie .img {
        margin-top: -140px !important;
        max-width: 600px !important;
    }
}

@media screen and (max-width: 991px) {
    .mf-hey-widget .serif_display_heading {
        font-size: 6rem !important;
        line-height: 0.95 !important;
    }

    .xc-home-marie .img {
        margin-top: -25px !important;
        max-width: 450px !important;
    }

    .xc-home-marie .col:first-child {
        padding-bottom: 5% !important;
    }
}

@media screen and (max-width: 767px) {
    .mf-hey-widget .serif_display_heading {
        font-size: 5.5rem !important;
    }

    .xc-home-marie {
        padding-top: 15% !important;
    }

    .xc-home-marie .img {
        margin-top: 10px !important;
        margin-left: -15px !important;
    }

    .xc-home-marie .col:first-child {
        padding-bottom: 25px !important;
    }
}

@media screen and (max-width: 479px) {
    .mf-hey-widget .serif_display_heading {
        font-size: 4.5rem !important;
    }
}

/*************** LOGOS SECTION CLONE ***************/

.xc-home-logos {
    background-color: var(--mf-text-dark) !important;
    padding-top: 4% !important;
    padding-bottom: 4% !important;
}

.mf-logos-title {
    font-family: 'ivypresto-display', serif !important;
    font-size: 2.25rem !important;
    color: #ffffff !important;
    text-align: center;
    margin-bottom: 40px !important;
    font-weight: 500 !important;
}

/* Transform Flatsome Row into 9-column Grid */
.xc-home-logos .row:nth-of-type(2) {
    display: grid !important;
    grid-template-columns: repeat(9, 1fr) !important;
    align-items: center !important;
    justify-items: center !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Remove clearfix pseudo-elements that break grid */
.xc-home-logos .row:nth-of-type(2)::before,
.xc-home-logos .row:nth-of-type(2)::after {
    display: none !important;
}

/* Strip Flatsome column constraints */
.xc-home-logos .row:nth-of-type(2) .col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: unset !important;
    min-height: unset !important;
}

/* Adjust image widths inside grid to scale naturally */
.xc-home-logos .row:nth-of-type(2) .col .img {
    margin: 0 auto !important;
    max-width: 120px !important;
    /* Cap logo sizes so they don't blow up */
    display: flex;
    justify-content: center;
    align-items: center;
}

.xc-home-logos .row:nth-of-type(2) .col .img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.xc-home-logos .row:nth-of-type(2) .col .img img:hover {
    opacity: 1;
}

@media screen and (max-width: 991px) {
    .xc-home-logos .row:nth-of-type(2) {
        gap: 15px !important;
    }
}

@media screen and (max-width: 767px) {
    .mf-logos-title {
        font-size: 1.8rem !important;
        margin-bottom: 25px !important;
    }

    /* 3 items per row on mobile */
    .xc-home-logos .row:nth-of-type(2) {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
        row-gap: 35px !important;
        max-width: 400px !important;
        /* Make the grid compact */
    }

    .xc-home-logos .row:nth-of-type(2) .col .img {
        max-width: 90px !important;
    }
}

@media screen and (max-width: 479px) {
    .xc-home-logos {
        padding-top: 15% !important;
        padding-bottom: 15% !important;
    }

    .mf-logos-title {
        font-size: 1.5rem !important;
    }

    .xc-home-logos .row:nth-of-type(2) {
        max-width: 320px !important;
        gap: 10px !important;
        row-gap: 30px !important;
    }

    .xc-home-logos .row:nth-of-type(2) .col .img {
        max-width: 80px !important;
    }
}

/*************** SHARED SPLIT BOX SECTIONS (TIME GENIUS & MARIETV) ***************/

/* 1. SECTION RESET
   Kill Flatsome's default padding so the margin of the box dictates the vertical rhythm */
.xc-home-tg,
.xc-home-marietv {
    padding: 0 !important;
    background-color: transparent !important;
}

/* 2. SHARED BOX CONTAINER (Light Theme Beige Box) */
.xc-home-tg .row,
.xc-home-marietv .row {
    background-color: var(--mf-beige) !important;
    border-radius: .5rem !important;
    /* Brand standard radius */
    padding: 8rem 5rem 7.5rem !important;
    /* Huge internal spacing */
    align-items: flex-start !important;
    /* Original uses place-items: start */
    max-width: 1440px !important;
    /* Matches .u-container 90rem */
    width: 95% !important;
    margin: 2rem auto !important;
    /* Replaces section padding */
}

/* 3. FLATSOME COLUMNS TO FLUID SPLIT GRID (1.25fr / 1fr) */

/* Prevent wrapping from browser rounding errors */
.xc-home-tg .row,
.xc-home-marietv .row {
    justify-content: space-between !important;
}

.xc-home-tg .row .col:nth-of-type(1),
.xc-home-marietv .row .col:nth-of-type(1) {
    flex-basis: 54% !important;
    /* Slightly reduced to prevent wrap */
    max-width: 54% !important;
    padding-bottom: 0 !important;
    padding-right: 5rem !important;
    /* Emulate 5rem grid-gap */
}

.xc-home-tg .row .col:nth-of-type(2),
.xc-home-marietv .row .col:nth-of-type(2) {
    flex-basis: 45% !important;
    /* Slightly reduced */
    max-width: 45% !important;
    padding-bottom: 0 !important;
}

/* 4. TEXT WIDGET SHARED STYLES (.mf-tg-widget & .mf-marietv-widget) */
.mf-tg-widget,
.mf-marietv-widget {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 35px !important;
}

/* 4a. Eyebrow */
.mf-tg-widget .eyebrow,
.mf-marietv-widget .eyebrow {
    font-family: 'sweet-sans-pro', sans-serif !important;
    color: var(--mf-coral) !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    margin: 0 !important;
}

/* 4b. Heading */
.mf-tg-widget .serif_display_heading,
.mf-marietv-widget .serif_display_heading {
    font-family: 'ivypresto-display', serif !important;
    font-size: 3.75rem !important;
    line-height: 1.1 !important;
    text-transform: none !important;
    margin: 0 !important;
    color: var(--mf-black) !important;
    font-weight: 400 !important;
}

/* 4c. Paragraph */
.mf-tg-widget p,
.mf-marietv-widget p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    letter-spacing: 0.01em !important;
    color: var(--mf-black) !important;
    margin-bottom: 5px !important;
}


/* --- TIME GENIUS SPECIFIC (Gradient Button & Image Effects) --- */

/* TG Gradient Button override */
#main .xc-home-tg .button.primary {
    background-image: linear-gradient(174deg, #32d6cd, #0861ae 74%) !important;
    background-color: transparent !important;
    color: #ffffff !important;
    border-radius: 80px !important;
    padding: 0 40px !important;
    height: 56px !important;
    min-height: 56px !important;
    font-family: 'sweet-sans-pro', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border: none !important;
    text-transform: none !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
    margin: 0 !important;
}

#main .xc-home-tg .button.primary:hover {
    background-image: linear-gradient(174deg, #32d6cd, #0861ae 62%) !important;
    transform: translateY(-2px);
    opacity: 1 !important;
}

#main .xc-home-tg .button.primary span {
    margin: 0 !important;
    line-height: inherit !important;
}

/* TG Image Styling */
.xc-home-tg .img-inner {
    border-radius: .5rem !important;
    overflow: hidden !important;
}

.xc-home-tg .img-inner img {
    border-radius: .5rem !important;
    transition: opacity 0.3s ease !important;
}

.xc-home-tg .img:hover .img-inner img {
    opacity: 0.8 !important;
}


/* --- MARIE TV SPECIFIC (Video Overrides) --- */

/* Original CSS specifies: .background-video.smaller-video { width: 90%; } */
.xc-home-marietv .video-fit {
    width: 90% !important;
    margin: 0 auto !important;
    /* margin-auto */
    border-radius: .5rem !important;
    overflow: hidden !important;
    position: relative !important;
    display: block !important;
}

/* Force WP Video Shortcode wrapper to absolutely fill the Flatsome 16:9 container, killing any huge gaps */
.xc-home-marietv .video-fit .wp-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

.xc-home-marietv .video-fit .wp-video .mejs-container {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
}

.xc-home-marietv .video-fit video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}


/* 7. RESPONSIVE BREAKPOINTS (SHARED) */
@media screen and (max-width: 991px) {

    .mf-tg-widget .serif_display_heading,
    .mf-marietv-widget .serif_display_heading {
        font-size: 3rem !important;
        line-height: 1.2 !important;
    }

    .xc-home-tg .row,
    .xc-home-marietv .row {
        padding: 4rem 2rem !important;
    }

    /* Break flex to 100% stack */
    .xc-home-tg .row .col:first-child,
    .xc-home-marietv .row .col:first-child {
        flex-basis: 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
        margin-bottom: 3rem !important;
    }

    .xc-home-tg .row .col:last-child,
    .xc-home-marietv .row .col:last-child {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }
}

@media screen and (max-width: 767px) {

    .mf-tg-widget .serif_display_heading,
    .mf-marietv-widget .serif_display_heading {
        font-size: 2.5rem !important;
    }

    /* Áp dụng chuẩn 30px khoảng trống cho BẢN THÂN SECTION để tách rời 2 khối */
    .xc-home-tg,
    .xc-home-marietv {
        padding: 30px 0 !important;
    }

    .xc-home-tg .row,
    .xc-home-marietv .row {
        padding: 1.5rem 0 !important; /* Trả lại một lớp padding nhẹ 24px bên trong lõi row */
        margin: 0 1.5rem !important; /* Tạo lề ngoài (margin) để khung không bị áp sát màn hình */
        width: auto !important; /* Tránh tình trạng width 100% đẩy margin tràn viền */
    }

    /* Make video full width on mobile */
    .xc-home-marietv .video-fit {
        width: 100% !important;
    }
}

@media screen and (max-width: 479px) {

    .mf-tg-widget .serif_display_heading,
    .mf-marietv-widget .serif_display_heading {
        font-size: 2.25rem !important;
    }
}

/* ====================================================
   FIX CONTACT FORM 7 ROW LAYOUT (.htgayw-form-row)
   ==================================================== */

/* Biến thẻ DIV thành lưới ngang trên PC (đã gỡ bỏ thẻ P bằng wpcf7_autop_or_not) */
.htgayw-form-row {
    display: flex;
    flex-direction: row; /* Dàn ngang */
    gap: 15px; /* Khoảng cách giữa 2 ô */
    width: 100%;
}

/* Ép width 100% cho mỗi trường để đảm bảo luôn đầy khung chia đều */
.htgayw-form-row .mf-input {
    width: 100% !important;
    height: 60px;
    background-color: #ffffff !important;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    padding: 0 16px;
    font-size: 16px;
    color: #000;
    margin: 0 !important;
    box-shadow: none !important;
}
