﻿/* =========================================================================
   🚀 1. KHUNG KHUNG SƯỜN CHUNG (CORE STRUCTURE)
   ========================================================================= */
.site-header {
    position: relative;
    z-index: 1040; /* Đồng bộ tầng hiển thị với view cshtml */
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.site-header.is-sticky {
    position: sticky !important;
    top: 0;
}
/* 1. Khi Header dính (is-sticky), tước bỏ bệ đỡ thò sâu, đưa logo về dạng phẳng */
.is-sticky .site-header_border_logo {
    /* Ép chiều cao bằng đúng chiều cao thanh inner (ví dụ 60px) để không thò xuống banner */
    height: 100% !important;
    top: 0 !important;
    /* 🎯 CHỐT HẠ: Xóa sạch padding đáy thò sâu, dọn luôn bóng đổ lơ lửng */
    padding: 10px 14px !important;
    border-radius: 0 !important; /* Trả về hình phẳng vuông vức tiệp vào thanh header */
    box-shadow: none !important;
    display: flex !important;
    align-items: center; /* Căn logo nằm chính giữa tâm dọc của thanh Header */
    transition: all 0.2s ease-in-out !important;
}

/* 2. Thu nhỏ ảnh logo bên trong một cách tinh tế khi cuộn trang */
.is-sticky .site-header_border_logo img {
    height: 40px !important; /* Ép độ cao logo thu về 40px siêu gọn */
    width: auto !important;
    margin-top: 0 !important;
    transform: none !important;
    transition: all 0.2s ease-in-out !important;
}

/* 3. Tinh chỉnh lại thanh đệm khi Sticky thu nhỏ chiều cao tổng thể */
.is-sticky .site-header__inner {
    min-height: 60px !important;
    height: 60px !important;
    transition: all 0.3s ease-in-out;
}
.site-header__inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* =========================================================================
   🚀 2. GIAO DIỆN DESKTOP (MÀN HÌNH LỚN >= 992px)
   ========================================================================= */
@media (min-width: 992px) {
    /* 🎯 LONG MẠCH: Đẩy menu lùi sang phải cách lề 180px để không bị khối logo đè khuất chữ */
    .site-header__nav {
        margin-left: 10px !important;
        flex: 1;
        display: flex;
        justify-content: center;
        transition: all 0.3s ease-in-out;
    }

    /* Khống chế độ cao ảnh logo theo chuẩn layout bento trên PC */
    .logo-placeholder img,
    .logo-default img {
        object-fit: contain;
        transition: transform 0.3s ease;
    }

    .site-header_border_logo {
        position: absolute !important;
        top: 0 !important;
        left: 80px !important;
        z-index: 1060;
        /* 🎯 LONG MẠCH: Ép màu nền trắng cho cả khối bọc để biến nó thành một dải chữ nhật phẳng */
        background: #ffffff !important;
        /* Padding đỉnh bằng 0 để sát mép, padding 2 bên và đáy rộng ra để tạo form chữ nhật đứng */
        padding: 15px 15px 25px 15px !important;
        /* Chỉ bo tròn nhẹ 2 góc dưới đáy (Kindy City bo cực nhẹ tầm 8px đến 12px) */
        border-radius: 0 0 12px 12px !important;
        /* Đổ bóng nhẹ chuẩn chỉ */
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
        transition: all 0.3s ease !important;
    }

    .logo-placeholder {
        width: 140px;
        flex-shrink: 0;
    }
}

/* =========================================================================
   🚀 3. GIAO DIỆN MOBILE (MÀN HÌNH NHỎ < 992px)
   ========================================================================= */
@media (max-width: 991.98px) {
    .site-header__nav {
        display: none !important;
    }


    /* 1. Triệt tiêu hoàn toàn vị trí lơ lửng, kéo logo về luồng hiển thị tự nhiên */
    .site-header_border_logo,
    .site-header_default_logo {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        z-index: 10 !important;
        /* Dọn sạch bệ nền trắng và bóng đổ của PC để đỡ chiếm diện tích */
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        /* Thiết lập khoảng đệm cực gọn cho mobile */
        padding: 6px 0 !important;
        margin: 0 !important;
        display: inline-block !important;
    }

    /* 2. Ép kích thước ảnh logo căng nét, không bị bóp méo hay thu nhỏ xíu */
    .site-header_border_logo img,
    .site-header_default_logo img {
        height: 42px !important; /* Độ cao lý tưởng vừa vặn thanh Header Mobile */
        width: auto !important; /* Tự động tính chiều rộng theo tỉ lệ thực của ảnh */
        transform: none !important; /* Bỏ hiệu ứng scale thu nhỏ của tầng sticky PC */
        margin-top: 0 !important;
        opacity: 1 !important; /* Đảm bảo logo luôn hiển thị rõ nét 100% */
    }

    /* 3. Khóa chết khung đệm bên trái, không cho phép chiếm không gian chết */
    .logo-placeholder,
    .logo-default {
        width: auto !important; /* Trên Mobile không cần nhường 140px nữa */
        min-width: 0 !important;
        flex-shrink: 0;
    }

    /* 4. Định hình lại cự ly thanh Header Inner trên di động */
    .site-header__inner {
        height: 56px !important;
        min-height: 56px !important;
        padding: 0 15px !important;
    }
}
/* =========================================================================
   🚀 4. ĐIỀU HƯỚNG VÀ DANH SÁCH MENU (MENU NAVIGATION)
   ========================================================================= */
.site-header__menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__menu-item {
    position: relative;
}

.site-header__menu-item > a {
    text-decoration: none;
    font-weight: 500;
    transition: color .2s ease;
}

/* Menu Cấp 2 Dropdown lơ lửng */
.site-header__dropdown {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: 14px;
    padding: 10px 0;
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
    list-style: none;
    margin: 0;
    display: none;
    z-index: 1060;
}

.site-header__menu-item:hover .site-header__dropdown {
    display: block;
}

.site-header__dropdown a {
    display: block;
    padding: 10px 16px;
    color: #603913;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.site-header__dropdown a:hover {
    background: #fff7f2;
    color: #f1b282;
}

.site-header__search-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #f7f7f7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.site-header__search-btn:hover {
    background: #eee;
}

/* =========================================================================
   🚀 5. HỆ THỐNG MENU DRAWER TRƯỢT TRÊN MOBILE
   ========================================================================= */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%; /* Giấu gọn bên lề phải */
    width: 300px;
    max-width: 80%;
    height: 100%;
    background: #fff;
    z-index: 10000;
    transition: all 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.mobile-menu-drawer.active {
    right: 0; /* Kích nổ trượt êm ái ra màn hình */
}

.mobile-menu-drawer__content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2;
    overflow-y: auto;
}

.btn-close-menu-top {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    z-index: 10001;
    cursor: pointer;
}

.mobile-search-box .form-control {
    border-right: none;
    font-size: 14px;
    padding: 10px;
}

.mobile-search-box .input-group-text {
    border-left: none;
    cursor: pointer;
}

.mobile-nav-item a {
    letter-spacing: 0.5px;
}

.submenu-toggle {
    padding: 0 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.submenu-toggle.active i {
    transform: rotate(180deg);
}

/* Lớp mặt nạ đen mờ phủ nền */
.mobile-menu-drawer__mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 9999;
}

.mobile-menu-drawer.active + .mobile-menu-drawer__mask {
    display: block;
}

body.overflow-hidden {
    overflow: hidden; /* Khóa cứng cuộn trang khi đang mở menu mobile */
}

/* =========================================================================
   🚀 6. CONTAINER NÚT BẤM HAMBURGER MOBILE (STYLE TINY FEET)
   ========================================================================= */
.mobile-menu-btn {
    border: 2px solid var(--primary-color, #3e1919);
    background: transparent;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.hamburger-icon {
    width: 20px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color, #3e1919);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Biến hình thành dấu X khi kích hoạt trạng thái mở (.is-active) */
.mobile-menu-btn.is-active .hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-btn.is-active .hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.post-item {
    border-radius: 8px; /* Bo nhẹ hoặc để 0 nếu muốn phẳng hoàn toàn */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 1px solid rgba(0,0,0,0.05);
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.post-content {
    flex-grow: 1;
    min-height: 200px; /* Đảm bảo các khối màu bằng nhau */
}

.post-title a {
    font-size: 1.1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Giới hạn tiêu đề 3 dòng cho đều */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hiệu ứng hover cho sang */
.post-item:hover {
    filter: saturate(1.2) brightness(1.1);
    transform: scale(1.02);
    transition: 0.3s all;
}
.display-list .post-item {
    border: none;
    box-shadow: none !important;
    background: transparent !important;
}

.display-list .post-thumb img {
    border-radius: 8px;
}

/* Masonry đơn giản bằng CSS columns nếu sếp không muốn dùng JS */
.display-masonry {
    column-count: 3;
    column-gap: 1.5em;
}

@media (max-width: 768px) {
    .display-masonry {
        column-count: 1;
    }

    .display-list .post-item {
        flex-direction: column;
    }

    .display-list .post-thumb {
        width: 100%;
    }
}
.custom-pagination .page-link {
    color: @Model.TitleColor;
    border: 1px solid #eee;
    margin: 0 5px;
    border-radius: 5px;
    transition: 0.3s;
}

.custom-pagination .page-item.active .page-link {
    background-color: @Model.AccentColor !important;
    border-color: @Model.AccentColor !important;
    color: #fff !important;
}

.custom-pagination .page-link:hover {
    background-color: @Model.AccentColor;
    color: #fff;
    opacity: 0.8;
}

.custom-pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #ccc;
}

.cta-admission .form-control:focus, .cta-admission .form-select:focus {
    box-shadow: none;
    border-color: #ff7e21;
}

.btn-orange:hover {
    background: #e66d10 !important;
    transform: translateY(-2px);
    transition: 0.3s;
}
/* Container bao quanh các nút */
.age-group-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Chia 2 cột đều nhau */
    gap: 12px; /* Tạo khoảng cách giữa các nút */
    margin-bottom: 20px;
}

/* Style nút cơ bản */
.btn-age-select {
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px; /* Bo góc nhẹ nhìn hiện đại hơn */
    padding: 12px 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #555;
    transition: all 0.25s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    user-select: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-color: #eee !important;
    cursor: pointer;
}

/* Hiệu ứng Hover */
.btn-age-select:hover {
    border-color: #ff7a00 !important; /* Đổi sang màu cam tone-sur-tone với nút Đăng ký */
    color: #ff7a00;
    background-color: #fffaf5;
    }

/* Khi được chọn (Active) */
.btn-age-select.active {
    background-color: #8cc63f !important; /* Giữ màu xanh lá đặc trưng mầm non */
    color: #fff !important;
    border-color: #8cc63f !important;
    box-shadow: 0 4px 12px rgba(140, 198, 63, 0.25);
    transform: scale(1.02); /* Nhấn nhẹ khi chọn */
}
.cta-admission .form-control:focus {
    box-shadow: none;
    border-bottom: 2px solid #ff7e21 !important; /* Màu cam sếp đang dùng */
    background-color: transparent;
}

.site-footer {
    padding: 70px 0 36px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 30px;
}

.site-footer__logo img {
    max-height: 72px;
    width: auto;
    display: block;
    margin-bottom: 18px;
}

.site-footer__title {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.site-footer__desc,
.site-footer__contact-item {
    line-height: 1.8;
    font-size: 14px;
}

.site-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__menu li + li {
    margin-top: 10px;
}

.site-footer__menu a,
.site-footer__contact-item a {
    color: inherit;
    text-decoration: none;
}

.site-footer__menu a:hover,
.site-footer__contact-item a:hover {
    color: #4fb2c2;
}

.site-footer__newsletter {
    position: relative;
}

.site-footer__newsletter input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 0 110px 0 16px;
    outline: none;
}

.site-footer__newsletter button {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 90px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #4fb2c2;
    color: #fff;
    font-weight: 700;
}
.site-footer .social-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white !important;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.site-footer .social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    color: white;
}

/* Đổ màu đặc trưng cho từng nút */
.site-footer .facebook {
    background: #3b5998;
}

.site-footer .instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.site-footer .youtube {
    background: #ff0000;
}

.site-footer .pinterest {
    background: #bd081c;
}

.site-footer .twitter {
    background: #1da1f2;
}

.site-footer .tumblr {
    background: #35465c;
}

/* Riêng nút Zalo dùng ảnh nên cần chỉnh lại */
.site-footer .zalo {
    background: #0088ff;
    padding: 6px;
}

.site-footer .zalo img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
}
/* Fix cho icon FontAwesome căn giữa */
.social-btn i {
    line-height: 1;
}
@media (max-width: 991.98px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}
.fab-wrapper {
    position: fixed;
    right: 20px;
    bottom: 80px; /* Cách đáy một khoảng để tránh đè Bottom Nav mobile */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    z-index: 9999;
}

.fab-item,
.fab-item1 {
    display: flex;
    align-items: center;
    background: #2b366a; /* Màu xanh đậm của sếp */
    border-radius: 50px;
    color: white !important;
    text-decoration: none !important;
    width: 50px; /* Ban đầu là hình tròn */
    height: 50px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Hiệu ứng Bung ra khi Hover */
.fab-item:hover {
    width: 220px; /* Bung rộng ra đủ chứa text */
    background: #3f4d8c;
}

/* Icon luôn cố định */
.fab-icon {
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.fab-wrapper .zalo img {
    width: 24px;
    height: 24px;
}
/* Text ẩn lúc đầu */
.fab-text {
    white-space: nowrap;
    padding-right: 20px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.fab-item:hover .fab-text {
    opacity: 1;
    transform: translateX(0);
}

/* Màu sắc riêng biệt nếu sếp muốn */
.hotline:hover {
    background: #ce1126;
}
/* Màu đỏ cho hotline */
.register:hover {
    background: #009999;
}
/* Màu teal cho đăng ký */

/* Zalo & Messenger (Giữ nguyên tròn hoặc bung tùy ý sếp) */
.fab-zalo {
    background: #0088ff;
}
/* --- SIDEBAR PC --- */
.sticky-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    background: rgba(43, 54, 106, 0.9); /* Màu xanh đậm như ảnh */
    padding: 15px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.sticky-sidebar .sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15); /* Màu lờ mờ bên trong */
    border-radius: 40px;
    transition: 0.3s;
    font-weight: 500;
    white-space: nowrap;
}

.sticky-sidebar .sidebar-item:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateX(-5px);
}

.sticky-sidebar .sidebar-item i {
    font-size: 20px;
}

/* --- BOTTOM NAV MOBILE --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 9999;
}
.mobile-bottom-nav--hidden {
    transform: translateY(100%) !important;
}
.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-size: 12px;
    flex: 1;
}

.mobile-bottom-nav .nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
    color: #2b366a;
}

.mobile-bottom-nav .nav-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-item span {
    font-weight: 500;
}
.footer-map-container {
    position: relative;
    width: 100%;
    height: 200px; /* Sếp có thể chỉnh độ cao tùy ý */
    background: #eee;
}

/* Ép iframe của Google phải chiếm 100% khung hình */
.footer-map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Hiệu ứng bo góc cho mượt */
.rounded-xl {
    border-radius: 1rem !important;
}
.pro-footer-map {
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: 50px;
}

/* Hiệu ứng cho bản đồ nền */
.map-bg {
    width: 100%;
    height: 100%;
    filter: grayscale(100%) contrast(0.8) opacity(0.8); /* Làm mờ và xám map */
    transition: all 0.5s ease;
}

.pro-footer-map:hover .map-bg {
    filter: grayscale(0%) contrast(1) opacity(1); /* Hiện màu khi hover */
}

/* Thẻ liên hệ nổi lên trên */
.contact-floating-card {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    width: 320px;
    backdrop-filter: blur(10px); /* Hiệu ứng kính mờ */
    border: 1px solid rgba(255,255,255,0.3);
}

.contact-floating-card h3 {
    color: #8b5e3c;
    margin-bottom: 20px;
    font-size: 18px;
    letter-spacing: 1px;
}

.card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #555;
    font-size: 14px;
}

.card-item i {
    color: #56b2c2; /* Màu xanh Teal thương hiệu */
    width: 20px;
}

.btn-direction {
    display: block;
    text-align: center;
    background: #56b2c2;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-direction:hover {
    background: #3d8f9d;
    box-shadow: 0 5px 15px rgba(86, 178, 194, 0.4);
}

/* Responsive cho điện thoại */
@media (max-width: 768px) {
    .contact-floating-card {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
    }

    .pro-footer-map {
        height: auto;
    }
}
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
