body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f4f6fb;
    height: 100%;
}
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Chiều cao toàn màn hình */
}

.content {
    flex: 1; /* Đẩy footer xuống cuối */
}
.hide {
    display: none;
}
/* HEADER ĐÈ LÊN BANNER */
.site-header-home {
    top: 0;
    position: absolute; /* Đổi từ absolute -> relative */
    z-index: 30;
    background: transparent; /* để thấy banner */
    width: 100%;
}

.site-header {
    position: relative; /* Đổi từ absolute -> relative */
    z-index: 10;
    background: #00426B;
    padding: 10px;
}

.header-inner {
    position: relative;
    padding: 0 25px;
    /*aspect-ratio: 1920 / 125;*/
}
.btn-login {
    font-size: 1.2rem;
    padding: 0.5rem 2rem;
    border-radius: 5px;
    /*background: linear-gradient(96.32deg, #3023B2 1%, #7F56D9 100.05%);*/
    background: #00426B;
    border: none;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-login:focus,
.btn-login:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    filter: brightness(1.15);
    background: #00426B !important;
    color: #fff !important;
}


.header-login {
    margin-right: 50px;
}
.header-logo {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}
.logo-overlay-content .title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 3px 6px rgba(0,0,0,0.35);
    letter-spacing: 0.02em;
}

.logo-overlay-content .subtitle {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.35);
    letter-spacing: 0.12em;
}
/* Lớp phủ */
.header-overlay {
    background: #00426B;
    padding: 10px 28px 10px;
    border-radius: 0 0 20px 20px;   /* ✅ chỉ bo 2 góc dưới */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-top: none;
}
.logo-overlay-content {
    display: flex;
    align-items: center;
    /*gap: 18px;*/
}
.header-logo img {
    max-height: 80px;
}
.btn {
    text-decoration: none; /* ❌ Bỏ gạch chân */
}
.btn:active {
    filter: brightness(1.2);
    transform: translateY(2px);
}

.btn-user {
    background: rgba(0, 66, 107, 1)/*linear-gradient(96.32deg, #3023B2 1%, #7F56D9 100.05%)*/;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.btn-user:hover,
.btn-user:focus {
    color: #fff;
    filter: brightness(1.08);
    background: #00426B;

}

/*menu*/
.menu .active {
    background: linear-gradient(96.32deg, #3023B2 1%, #7F56D9 100.05%);
    color: #fff;
}
/* Dropdown container */
.user-dropdown .dropdown-menu.user-menu {
    padding: 0;
    border-radius: 16px;
    border: none;
    overflow: hidden;
    min-width: 260px;
    margin-top: 10px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.25);
}

/* Header trong dropdown */
.user-menu-header {
    padding: 16px 18px 14px;
    background: linear-gradient(135deg, #f5f5ff 0%, #ffffff 60%);
}

.user-menu-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(120, 101, 255, 0.5);
}

.user-menu-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.user-menu-email {
    font-size: 0.8rem;
    color: #6b7280; /* xám nhẹ */
}

/* Items */
.user-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 0.9rem;
}
.user-menu .active {
    border-radius: 10px;
}

.user-menu-item i {
    font-size: 1rem;
}

.user-menu-item:hover {
    background: #f4f5ff;
    color: #3023B2;
}

.user-menu-item-danger {
    color: #e11d48;
}

.user-menu-item-danger:hover {
    background: #ffeaf0;
    color: #b91c1c;
}

/* Divider mảnh hơn */
.user-menu .dropdown-divider {
    margin: 0;
    border-color: #e5e7eb;
}

/* Icon user trên mobile */
.btn-user-icon {
    background: transparent;
    border: none;
    color: rgba(0, 66, 107, 1);
    font-size: 1.6rem;
    padding: 4px 6px;
}

/* Avatar */
.user-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.6);
}

/* Kích thước & nền offcanvas */
.user-offcanvas {
    max-width: 360px;          /* panel vừa tay */
    background: #ffffff;
    box-shadow: -4px 0 25px rgba(15,23,42,0.25);
}

/* Header offcanvas */
.user-offcanvas-header {
    border-bottom: 1px solid #f1f5f9;
}

.user-offcanvas-header .offcanvas-title {
    font-weight: 700;
    font-size: 1rem;
}

/* Khối profile */
.user-offcanvas-profile {
    position: relative;
    padding-top: 16px;
}

.user-avatar-wrapper {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    margin: 0 auto;
    background: radial-gradient(circle at 30% 0, #e0e7ff 0, #ffffff 70%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-offcanvas-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(129, 140, 248, 0.6);
}

.user-offcanvas-name {
    font-weight: 700;
    margin-top: 8px;
    font-size: 0.95rem;
}

.user-offcanvas-email {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Menu items */
.user-offcanvas-menu {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.user-offcanvas-item {
    border: 0;
    background: transparent;
    padding: 10px 14px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.user-offcanvas-item i {
    font-size: 1rem;
}

.user-offcanvas-item + .user-offcanvas-item {
    border-top: 1px solid #e5e7eb;
}

.user-offcanvas-item:hover {
    background: #eef2ff;
    color: #3023B2;
}

/* Nút logout */
.btn-logout {
    background: #ef4444;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.9rem;
}

.btn-logout:hover {
    background: #dc2626;
    color: #fff;
}

.modal-header {
    background: linear-gradient(96.32deg, #3023B2 1%, #7F56D9 100.05%);
    color: #fff;
}
.btn-template {
    background: linear-gradient(96.32deg, #3023B2 1%, #7F56D9 100.05%);
    color: #fff;
}
@media (max-width: 575.98px) {
    .user-offcanvas {
        max-width: 80%;  /* full chiều ngang trên mobile nhỏ */
    }
}

/* HERO / BANNER */
.hero-section {
    position: relative;
    padding: 0; /* có thể bỏ padding nếu muốn đúng giữa */
    background: url("../image/kns/bg_web_2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    color: #fff;
    aspect-ratio: 1920 / 932;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Khung text */
.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    /*padding-top: 2rem;*/
}

/* TIÊU ĐỀ */
.hero-title {
    text-transform: uppercase;
    margin-bottom: 10px;
    font-family: "Saira Stencil One", sans-serif;
    font-weight: 400;
    font-size: 60px;
    line-height: 1.1;
    letter-spacing: 1px;
    color: #00426B;
}

/* ĐƯỜNG GẠCH NGANG */
.hero-divider {
    width: 100%;
    height: 2px;
    margin: 15px auto 20px;
    background-color: #1B4EA7;
    opacity: 0.9;
}

/* DANH SÁCH */
.hero-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 25px;
}

.hero-list li {
    font-family: "Saira", sans-serif;
    font-weight: Bold;
    font-size: 28px;
    line-height: 1.6;   /* cho chữ xếp sát */
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #00426B;
}


/* Wrapper căn giữa + sát chân banner */
.bottom-overlay-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: -1px; /* sát mép dưới banner */
    left: 0;
    z-index: 5;
}

/* Thanh overlay (mờ, bo 2 góc trên) */
.bottom-overlay {
    background: rgba(0, 66, 107, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 36px;
    border-radius: 20px 20px 0 0; /* bo 2 góc trên */
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255,255,255,0.35);
    border-bottom: none;   /* để sát đáy */
}

/* Logo VISTS */
.bottom-logo {
    height: 46px;
}

/* Text */
.bottom-text {
    color: #ffffff;
}

.bottom-text .line-1 {
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 2px 3px rgba(0,0,0,0.4);
}

.bottom-text .line-2 {
    font-size: 12px;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.hero-time {
    list-style: none;
    padding-left: 0;
    margin: 0 0 25px;
}
.hero-time li {
    font-family: "Saira", sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.6;   /* cho chữ xếp sát */
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #00426B;
}


/* NÚT */
a {
    text-decoration: none;
}
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.btn-hero {
    font-size: 1rem;
    padding: 0.6rem 2.5rem;
    border: none;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 8px;
    min-width: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-hero:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    filter: brightness(1.15);
    background: var(--btn-color, #00426B) !important;
    color: #fff !important;
}

/* Hướng dẫn – tím */
.btn-hero-guide {
    background: #00426B/*linear-gradient(96.32deg, #3023B2 1%, #7F56D9 100.05%)*/;
}

/* Học ngay – xanh hơn một chút */
.btn-hero-learn {
    background: #00426B/*linear-gradient(96.32deg, #2643e9 1%, #4170ff 100.05%)*/;
}


/* NÚT */
.btn-hero {
    font-size: 1.2rem;
    padding: 0.5rem 2rem;
    background: #00426B/*linear-gradient(96.32deg, #3023B2 1%, #7F56D9 100.05%)*/;
    border: none;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 10px;
}

/* SECTIONS */
.show-course {
    background: url("../image/kns/bg_courses.jpg");
    aspect-ratio: auto;           /* bỏ cố định chiều cao */
    background-size: cover;       /* phóng nền vừa màn */
    background-position: center;
}
.section-courses {
    padding: 60px 0;
    /*background: linear-gradient(to bottom, #f4f6fb 0%, #f7f8ff 50%, #f4f6fb 100%);*/
}

.section-title {
    text-align: center;
    text-transform: uppercase;
    font-size: 32px;
    font-weight: 800;
    color: #00426B;
    margin-bottom: 35px;
}

.course-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.course-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 18px 28px rgba(0,0,0,0.15);
}
.course-card img {
    object-fit: cover;
    aspect-ratio: 16 / 9;
}
.course-card .card-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.course-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #00426B;

}
.course-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 16px;
    flex: 1;
}
.btn-wrap {
    width: fit-content;
    transition: width 1s cubic-bezier(.175, .885, .32, 1.275);
}

/* Khi hover vào nút, wrapper mở rộng ra 100% */
.btn-wrap:hover {
    width: 100%;
}

.btn-course {
    font-size: 12px;
    padding: 6px 18px;
    border-radius: 25px;
    background: #00426B;
    border: none;
    color: #fff;
    text-transform: uppercase;

    display: block;          /* quan trọng: để fill 100% wrapper */
    width: 100%;             /* theo width wrapper */
    text-align: center;      /* nếu muốn chữ giữa */

    transition: background 0.3s ease;
}

.btn-course:hover,
.btn-course:focus {
    color: #fff;
    background: #00426B;
}

/* Nút khác */
.btn-coming-soon{
    background: #a0aec0;
    font-size: 12px;
    padding: 6px 18px;
    border-radius: 25px;
    border: none;
    color: #fff;
    text-transform: uppercase;
}

/* FOOTER */
.footer-top {
    background: url("../image/kns/bg_footer.png");
    color: #ffffff;
    font-size: 13px;
    padding: 35px 100px 35px;
}

/* Logo bên trái */
.footer-logo {
    height: 120px;
    width: auto;
}

/* Logo VISTS ở giữa */
.footer-vists-logo {
    height: 90px;
    width: auto;
}


/* Thông tin liên hệ */
.footer-contact-title {
    font-family: "Rowdies", sans-serif;

    font-weight: 700;
    font-size: 22px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    padding: 15px 0 0;
}

.footer-contact-item i {
    font-size: 14px;
    margin-top: 2px;
}

.footer-contact-item span {
    font-size: 13px;
    line-height: 1.5;
}
/* 2 logo nằm ngang */
.footer-logos {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Nhóm thông tin liên hệ */
.footer-info {
    margin-top: 8px;
}
.contact-info {
    padding: 0 100px 0;
}
@media (max-width: 1280px) {
    .logo-hide-1280 {
        display: none !important;
    }
    /* HEADER */
    .header-inner {
        padding: 0 20px;
        aspect-ratio: auto; /* bỏ tỷ lệ cố định để header không quá cao */
    }
    /* logo trong header tự co lại */
    .header-logo img {
        max-height: 60px;
        width: auto;
    }
    .hero-section {
        padding: 100px 40px 80px;
        aspect-ratio: auto;           /* bỏ cố định chiều cao */
        background-size: cover;       /* phóng nền vừa màn */
        background-position: center;
    }
    .hero-title {
        font-size: 52px;
        line-height: 1.1;
    }
    .hero-list li {
        font-size: 26px;
        line-height: 40px;
    }

    /* FOOTER */
    .footer-logo {
        height: 90px;
    }

    .footer-vists-logo {
        height: 60px;
    }
}

/*màn ipab*/
@media (max-width: 1024px) {
    /* HEADER */
    .header-inner {
        padding: 0 20px;
        aspect-ratio: auto; /* bỏ tỷ lệ cố định để header không quá cao */
    }
    /* logo trong header tự co lại */
    .header-logo img {
        max-height: 80px;
        width: auto;
    }

    .logo-hide-mobile {
        display: none !important;
    }
    .btn-login {
        font-size: 1rem;
        padding: 0.4rem 1.5rem;
    }

    /* HERO */
    .hero-section {
        padding: 140px 40px 60px;
        aspect-ratio: auto;           /* bỏ cố định chiều cao */
        background-size: cover;       /* phóng nền vừa màn */
        background-position: center;
    }

    .hero-content {
        max-width: 100%;              /* text chiếm cả chiều ngang */
        padding-bottom: 40px
    }

    .hero-title {
        font-size: 52px;
        line-height: 1.1;
    }

    .hero-list li {
        font-size: 21px;
        line-height: 30px;
    }

    /* FOOTER */
    .footer-logo {
        height: 80px;
    }

    .footer-vists-logo {
        height: 60px;
    }
    .footer-top {
        padding: 24px 20px;
    }

    .footer-row {
        flex-direction: row;
    }

    .footer-logos {
        justify-content: space-between;
        margin-bottom: 20px;
    }

    .footer-contact-title {
        text-align: left;
    }

    .footer-info {
        width: 100%;
    }
    .contact-info {
        padding: 0 20px 0 20px;
        width: 100%;
    }
}
@media (max-width: 860px) {
    .header-logo img {
        max-height: 60px;
        width: auto;
    }
}
@media (max-width: 768px) {
    .header-logo img {
        max-height: 50px;
        width: auto;
    }
    .header-login {
        margin-right: 25px;
    }
    .hero-list li {
        font-size: 20px;
        line-height: 30px;
    }
}
/*màn điện thoại*/
@media (max-width: 575.98px) {
    /* BODY */
    body {
        font-size: 14px;
    }

    .hero-section {
        padding: 10px 30px 10px;
        background: url("../image/kns/bg_mobile_2.png");
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
        /*aspect-ratio: 1170 / 2323;*/
        height: 100dvh;
    }
    .hero-time li {
        font-size: 16px;
    }
    /* HEADER */
    .header-inner {
        padding: 0 0;
        aspect-ratio: auto;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .header-overlay{
        padding: 3px 10px 5px;
    }
    /* logo trong header tự co lại */
    .header-logo img {
        max-height: 50px;
        width: auto;
    }
    .logo-text .title {
        font-size: 11px;
        font-weight: 700;
        color: #ffffff;
        text-shadow: 0 3px 6px rgba(0,0,0,0.35);
        letter-spacing: 0.02em;
    }

    .logo-text .subtitle {
        margin-top: 2px;
        font-size: 7px;
        font-weight: 400;
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0,0,0,0.35);
        letter-spacing: 0.12em;
    }
    .logo-hide-mobile {
        display: none !important;
    }
    .header-login {
        margin-right: 10px;
    }
    .btn-login {
        padding: 5px 8px;
        font-size: 0.45rem;
    }

    .bottom-logo {
        height: 26px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.15;
        margin-bottom: 20px;
    }

    .hero-list {
        margin-bottom: 20px;
    }

    .hero-list li {
        font-size: 16px;
        line-height: 20px;
    }

    .btn-hero {
        font-size: 0.85rem;
        padding: 0.45rem 1.5rem;
        min-width: 140px;
    }

    /* SECTION COURSES */
    .section-courses {
        padding: 40px 0;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .course-card img {
        /*height: 160px;*/
    }

    /* FOOTER */
    .footer-logo {
        height: 45px;
    }

    .footer-vists-logo {
        height: 40px;
    }

    .footer-top {
        padding: 20px 16px;
    }
    /* Thông tin liên hệ */
    .footer-contact-title {
        font-weight: 700;
        font-size: 18px;
    }

    .footer-contact-item i {
        font-size: 12px;
        margin-top: 2px;
    }

    .bottom-overlay img {
        max-height: 30px;
    }
    .bottom-overlay .title {
        font-size: 6px;
        font-weight: 500;
    }
    .bottom-overlay .subtitle {
        font-size: 6px;
        font-weight: 500;
    }

    @media (max-width: 360px){
        .header-logo .title {
            font-size: 9px;
            font-weight: 600;
        }

        .header-logo .subtitle {
            font-size: 6px;
            font-weight: 400;
        }
        .header-logo img {
            max-height: 40px;
            width: auto;
        }
    }
}

