@font-face {
    font-family: 'FS Trajan Pro';
    src: url('/wp-content/themes/kmtheme/assets/fonts/FSTrajanPro-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    /* Performance optimization: CWV */
}

.header,
.header-wrapper {
    background-position: 50% 0;
    background-size: cover;
    position: relative;
    transition: background-color .3s, opacity .3s;
    width: 100%;
    z-index: 9999 !important;
}

.font_2 {
    font-family: 'FS Trajan Pro', serif;
    font-weight: bold;
    /* Có thể tuỳ biến thêm kích thước, màu sắc theo Responsive */
}

/* section.section.footer {
    background-image: linear-gradient(-186deg, #3a518f 0%, #23386f 100%);
} */

.text-footer-left {
    padding: 100px 30px 80px 50px;
}

.text-footer-right {
    padding: 100px 100px 80px 160px;
}

.wrap_item .item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.heading_h2 {
    font-family: 'FS Trajan Pro', serif;
    font-weight: bold;
    font-size: 40px;
    color: #223771;
}

.wrap_office>.item h3 {
    color: #23386f;
    font-size: 18px;
    margin-bottom: 12px;
}

.item .content {
    font-size: 16px;
    margin-bottom: 8px;
}

.wrap_office>.item a {
    display: inline-flex;
    align-items: center;
    color: #c2812a;
    font-size: 14px;
    font-weight: 600;
}

.dk_bt {
    padding: 30px 0 0 0;
    border-bottom: 1px solid rgba(37, 37, 37, 0.15);
    align-items: center;
    justify-content: space-between;
}

a.btn-header-custom {
    background: #f1f5f9;
    padding: 12px 20px !important;
    border-radius: 20px;
    font-size: 16px !important;
    color: #334155 !important;
}

a.btn-header-custom:hover {
    background: #E2E8F0;

}

.nav-left {
    gap: 10px;
}

.display_flex {
    display: flex;
    flex-direction: column;
}

.wrap_bottom {
    padding-top: 25px;
    justify-content: space-between;
}

div#masthead {
    border-bottom: 1px solid #c2812a;
}

.display_flex ul li {
    margin-left: 0 !important;
    margin-right: 10px !important;
    list-style: none;
    font-weight: bold;

}

.display_flex li a {
    color: #000000;

}

.wrap_item .font_2.text_white.text_up {
    margin-bottom: 30px;
}

.wrap_item .font_normal {
    margin-bottom: 25px;
}

.absolute-footer.dark.medium-text-center.small-text-center {
    display: none;
}

ul.display_flex {
    display: flex;
    flex-direction: row;
    gap: 20px
}

.header-shadow .header-wrapper,
.header-wrapper.stuck,
.layout-shadow #wrapper {
    box-shadow: none !important;
}

header#header {
    position: sticky;
    top: 0;
}

.header-full-width .container {
    max-width: 100% !important;
    padding: 0 24px 0 24px;
}

/* ==========================================================================
   Mobile Styles (max-width: 849px) - Flatsome standard mobile breakpoint
   ========================================================================== */
@media screen and (max-width: 849px) {
    .font_2 {
        font-family: 'FS Trajan Pro', serif;
        font-weight: bold;
        font-size: 24px;
    }


    /* ---- Mobile Sidebar Drawer: #main-menu is the actual ID ---- */
    #main-menu.mobile-sidebar {}

    /* ---- Inside scroll container ---- */
    #main-menu .sidebar-menu {
        padding: 12px 10px !important;
    }

    /* ---- Nav list (ul.nav.nav-sidebar) ---- */
    #main-menu .nav.nav-sidebar {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ---- Top-level list items ---- */
    #main-menu .nav.nav-sidebar>li {
        margin: 0 !important;
        padding: 0 !important;
    }

    #main-menu .nav.nav-sidebar>li:last-child {
        border-bottom: none !important;
    }

    /* ---- All nav links ---- */
    #main-menu .nav.nav-sidebar li>a {
        display: flex !important;
        align-items: center !important;
        padding: 13px 12px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        text-decoration: none !important;
        border-radius: 8px !important;
        transition: background 0.2s ease, color 0.2s ease !important;
        line-height: 1.4 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        border: none !important;
    }

    #main-menu .nav.nav-sidebar li>a:hover {
        background: #eff4fd !important;
        color: #223771 !important;
    }

    #main-menu .nav.nav-sidebar li.current-menu-item>a,
    #main-menu .nav.nav-sidebar li.current-menu-ancestor>a {
        background: #eff4fd !important;
        color: #223771 !important;
        font-weight: 700 !important;
        margin: 5px 0;
    }

    .nav-sidebar.nav-vertical>li.menu-item.active,
    .nav-sidebar.nav-vertical>li.menu-item:hover {
        background-color: #eff4fd !important;
        border-radius: 6px !important;
    }

    /* ---- Sub-menu toggle button: actual class is button.toggle ---- */
    #main-menu .nav.nav-sidebar button.toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        border: none !important;
        background: transparent !important;
        color: #94a3b8 !important;
        cursor: pointer !important;
        border-radius: 8px !important;
        transition: background 0.2s, color 0.2s !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
    }

    #main-menu .nav.nav-sidebar button.toggle:hover {
        background: #f1f5f9 !important;
        color: #223771 !important;
    }

    #main-menu .nav.nav-sidebar button.toggle i {
        font-size: 12px !important;
        transition: transform 0.3s ease !important;
    }

    #main-menu .nav.nav-sidebar li[aria-expanded="true"]>button.toggle i {
        transform: rotate(180deg) !important;
    }

    /* ---- Second-level sub-menu: ul.sub-menu.children ---- */
    #main-menu .nav.nav-sidebar ul.sub-menu {
        background: #f8fafc !important;
        border-radius: 8px !important;
        margin: 10px !important;
        padding: 4px 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    #main-menu .nav.nav-sidebar ul.sub-menu li>a {
        font-size: 14px !important;
        font-weight: 500 !important;
        padding: 10px 16px !important;
        color: #475569 !important;
        border-radius: 6px !important;
    }

    #main-menu .nav.nav-sidebar ul.sub-menu li>a:hover {
        background: #e2e8f0 !important;
        color: #223771 !important;
    }

    /* ---- Hide PC chevron arrow: li.has-child (not has-dropdown) ---- */
    #main-menu .nav.nav-sidebar li.has-child>a::after {
        display: none !important;
    }

    /* ---- Hide news icon on mobile ---- */
    .menu-item-45>a::before {
        content: none !important;
        display: none !important;
        background-image: none !important;
        width: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        position: static !important;
    }

    .nav-sidebar.nav-vertical>li+li {
        border-top: none !important;
    }

}


/* Menu Item 45: Tin tức Icon - Luôn hiển thị kể cả khi hover menu khác */
.menu-item-45>a {
    position: relative !important;
}

.menu-item-45>a::before {
    content: "" !important;
    display: inline-block !important;
    width: 50px !important;
    height: 50px !important;
    position: absolute !important;
    left: 50px !important;
    top: -5px !important;
    background-image: url(/wp-content/uploads/2026/03/parrent.png) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 999 !important;
    /* Đảm bảo nằm trên các layer khác */
    pointer-events: none !important;
    /* Không làm vướng khi click menu khác */
    transition: none !important;
    /* Ngăn theme làm mờ/ẩn bằng transition */
}

/* ==========================================================================
   Premium Drop Menu Nav (Glassmorphism & Animation)
   ========================================================================== */
.nav-dropdown {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(34, 55, 113, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    padding: 10px 0 !important;
    min-width: 230px !important;
    animation: kmDropdownFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top center;
}

@keyframes kmDropdownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dropdown Menu Items */
.nav-dropdown>li {
    margin: 0 !important;
    padding: 0 10px !important;
    border: none !important;
    /* Reset Flatsome border */
}

.nav-dropdown>li>a {
    color: #334155 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px 15px !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    position: relative;
    border-radius: 8px;
    border: none !important;
    /* Reset Flatsome border */
    display: block;
    line-height: 1.4 !important;
}

.nav-dropdown>li>a:hover {
    background: #f8fafc !important;
    color: #223771 !important;
    transform: translateX(5px);
}

.nav-dropdown>li.current-menu-item>a {
    color: #223771 !important;
    background: #f1f5f9 !important;
}

/* Arrow indicator for parent items - Premium Style */
.header-nav li.has-dropdown>a>i,
.header-nav li.has-dropdown>a .icon-angle-down {
    display: none !important;
}

li.has-dropdown>a {
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
    padding-right: 10px !important;
}

li.has-dropdown>a::before {
    content: "";
    /* Reset any theme before if exists */
}

li.has-dropdown>a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 10px;
    margin-top: -4px;
    transition: transform 0.3s ease;
}

li.has-dropdown:hover>a::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.sec-gr {
    position: relative;
    background: linear-gradient(315deg, hsla(34, 52%, 84%, .2) 21.59%, rgba(250, 252, 255, .2) 78.41%);
    z-index: 99;
    overflow: hidden;
    /* Creates a stacking context */
}

/* Hiệu ứng màu nền mờ (blur) ở 3 góc/vị trí */
.sec-gr::before {
    content: "";
    position: absolute;
    /* Mở rộng khung để blur không bị cắt cạnh */
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    z-index: -2;
    pointer-events: none;
    opacity: .5;
    -webkit-filter: blur(120px);
    filter: blur(120px);

    /* 
       Tạo 3 cục sáng bằng radial-gradient:
       - Cục 1 (dưới trái): #e0eeff
       - Cục 2 (dưới giữa): #e0eeff
       - Cục 3 (trên phải): #def (tức #ddeeff)
    */
    background-image:
        radial-gradient(circle at 10% 90%, #e0eeff 0%, #e0eeff 200px, transparent 300px),
        radial-gradient(circle at 50% 100%, #e0eeff 0%, #e0eeff 200px, transparent 300px),
        radial-gradient(circle at 90% 10%, #def 0%, #def 200px, transparent 300px);
    background-repeat: no-repeat;
}

/* Ảnh SVG (graphic) */
.sec-gr::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 320px;
    height: 320px;
    background-image: url(/wp-content/uploads/2026/03/graphic.svg);
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: contain;
    z-index: -1;
    /* Nằm trên mờ nhưng dưới nội dung (.sec-gr nội dung) */
    pointer-events: none;
}

.sec-gr-2 {
    background: linear-gradient(180deg, #fff, #fafcff 73.5%, #eef3fa);
}

.sec-gr-3 {
    background: linear-gradient(360deg, #fff, #fafcff 73.5%, #eef3fa);
}

.section-title-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    /* không cho xuống dòng */
}

.section-title-main h2 {
    margin: 0;
    white-space: nowrap;
    /* không xuống dòng */
}

.section-title-main a {
    color: #182a73;
    white-space: nowrap;
    flex-shrink: 0;
}

.section-title-main span {
    text-underline-offset: 4px;
    text-decoration: underline;
    font-size: 16px;
    font-weight: 600;
}

.section-title-main i.fa-solid.fa-chevron-right {
    font-size: 12px;
    color: #182a73;
}

.section-title-main p {
    margin: 0;
}

.section-custom .col {
    padding: 35px 0;
}

.text-cs-1 h2 {
    font-size: 40px;
    color: #223771;
}

.bg-surface-container-low {
    --tw-bg-opacity: 1;
    background-color: rgb(239 244 255 / var(--tw-bg-opacity, 1));
    border-radius: 6px;
    padding: 30px 10px 10px 30px;
}

.bg-surface-container-low-2 {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    padding: 40px 30px 15px 30px;
    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    border-radius: 6px;
}

/* ==========================================================================
   Mobile overrides — MUST be placed AFTER global rules to win the cascade
   ========================================================================== */
@media screen and (max-width: 849px) {
    .text-footer-right {
        padding: 60px 30px 80px 35px;
    }

    ul.display_flex {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .section-custom .col {
        padding: 10px 10px;
    }

    /* Force-hide the parrent.png icon on mobile sidebar — 
       This block is intentionally placed AFTER the global rule  
       so it correctly overrides via CSS cascade order */
    .menu-item-45>a::before {
        content: none !important;
        display: none !important;
        background-image: none !important;
        width: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        position: static !important;
        pointer-events: none !important;
    }

    .section-title-main span {
        display: none;
        text-underline-offset: 4px;
        text-decoration: underline;
        font-size: 16px;
        font-weight: 600;
    }

    .section-title-main i.fa-solid.fa-chevron-right {
        font-size: 18px;
        color: #182a73;
        margin-right: 10px;
    }

    /* Đổi giao diện section title thành cột trên mobile */
    .section-title-main {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        flex-wrap: nowrap;
        flex-direction: column;
    }
}

/* ==========================================================================
   CSS Variables
   ========================================================================== */
.km-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background-color: #2e438f;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.km-contact-btn:hover {
    background-color: #1e2c61;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(46, 67, 143, 0.2);
}

.km-single-main .km-contact-btn {
    padding: 8px 16px;
    font-size: 15px;
}

/* ==========================================================================
   Floating Contact Actions (Phone & Zalo)
   ========================================================================== */
.floating-contact-actions {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.fca-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fca-icon:hover {
    transform: scale(1.1);
}

.fca-icon img,
.fca-icon i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.fca-icon.fca-phone i {
    border-radius: 50%;
    background-color: #28A745;
    color: #fff;
    font-size: 24px;
}

.fca-icon.fca-zalo img {
    border-radius: 16px;
    object-fit: contain;
}

/* Animations */
.fca-pulse-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    animation: fca-pulse 2s infinite ease-in-out;
}

.fca-pulse-bg:nth-child(2) {
    animation-delay: 1s;
}

.fca-icon.fca-phone .fca-pulse-bg {
    border-radius: 50%;
    background-color: rgba(40, 167, 69, 0.5);
}

.fca-icon.fca-zalo .fca-pulse-bg {
    border-radius: 28px;
    background-color: rgba(0, 104, 255, 0.5);
}

@keyframes fca-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Tooltip on hover */
.fca-tooltip {
    position: absolute;
    right: 70px;
    background: #fff;
    color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    border: 1px solid #eee;
}

/* Tooltip Arrow */
.fca-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.fca-icon:hover .fca-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Mobile adjustments */
@media (max-width: 849px) {
    .floating-contact-actions {
        bottom: 80px;
        right: 15px;
        gap: 15px;
    }

    .fca-icon {
        width: 48px;
        height: 48px;
    }

    .fca-tooltip {
        display: none;
    }
}