﻿/* ===================================
   RESET & ROOT
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a3d62;
    --primary-light: #1a5276;
    --accent: #e67e22;
    --accent-light: #f39c12;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --radius: 14px;
    --shadow: 0 4px 24px rgba(10,61,98,.10);
    --shadow-lg: 0 12px 40px rgba(10,61,98,.16);
    /* Màu thẻ thông báo */
    --cat-tintuc: #2563eb;
    --cat-tintuc-bg: #eff6ff;
    --cat-tintuc-soft: #dbeafe;
    --cat-tintuc-text: #1e40af;
    --cat-lichthi: #ea580c;
    --cat-lichthi-bg: #fff7ed;
    --cat-lichthi-soft: #fed7aa;
    --cat-lichthi-text: #9a3412;
    --cat-khuyenmai: #db2777;
    --cat-khuyenmai-bg: #fdf2f8;
    --cat-khuyenmai-soft: #fce7f3;
    --cat-khuyenmai-text: #831843;
    --cat-khac: #7c3aed;
    --cat-khac-bg: #f5f3ff;
    --cat-khac-soft: #ede9fe;
    --cat-khac-text: #4c1d95;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--gray-900);
    background: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

section {
    padding: 72px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

/* ===================================
   TOPBAR
=================================== */
.topbar {
    background: var(--primary);
    color: #b8d4ec;
    font-size: 13px;
    padding: 8px 0;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .topbar-item a {
        color: #b8d4ec;
        transition: color .2s;
    }

        .topbar-item a:hover {
            color: #fff;
        }

.topbar-hotline {
    color: #f39c12;
    font-weight: 700;
}

/* ===================================
   NAVBAR
=================================== */
nav {
    background: #fff;
    box-shadow: 0 2px 16px rgba(10,61,98,.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.logo-text {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.25;
}

    .logo-text span {
        display: block;
        color: var(--accent);
        font-size: 11px;
        font-weight: 500;
    }

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .nav-menu li a {
        padding: 8px 14px;
        border-radius: 8px;
        color: var(--gray-700);
        font-weight: 500;
        font-size: 14px;
        transition: .25s;
        display: block;
    }

        .nav-menu li a:hover,
        .nav-menu li a.active {
            background: var(--gray-100);
            color: var(--primary);
        }

.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700 !important;
}

    .nav-cta:hover {
        background: var(--accent-light) !important;
    }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

    .hamburger span {
        width: 24px;
        height: 2px;
        background: var(--primary);
        border-radius: 2px;
        transition: .3s;
    }

#mobileMenu {
    display: none;
}

    #mobileMenu.open {
        display: block;
        background: #fff;
        border-top: 1px solid var(--gray-200);
        padding: 12px 16px 16px;
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
    }

    #mobileMenu a {
        display: block;
        padding: 11px 14px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        color: var(--gray-700);
        transition: .2s;
    }

        #mobileMenu a:hover {
            background: var(--gray-100);
            color: var(--primary);
        }

/* ===================================
   BANNER
=================================== */
.banner {
    position: relative;
    overflow: hidden;
    background: var(--primary);
    padding: 0;
}

.banner-slides {
    display: flex;
    transition: transform .7s cubic-bezier(.4,0,.2,1);
}

.banner-slide {
    min-width: 100%;
    height: 520px;
    background: linear-gradient(135deg, #0a3d62 0%, #1a5276 100%);
    position: relative;
}

.banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.banner-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: .4px;
}

.banner-title {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.15;
    color: #fff;
    font-weight: 800;
    margin-bottom: 14px;
}

    .banner-title em {
        color: var(--accent-light);
        font-style: normal;
    }

.banner-sub {
    font-size: 17px;
    color: #b8d4ec;
    max-width: 520px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.banner-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    border: none;
    cursor: pointer;
    padding: 13px 26px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 14px;
    font-family: inherit;
    transition: all .25s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

    .btn-primary:hover {
        background: var(--accent-light);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(230,126,34,.4);
    }

.btn-outline {
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.4);
    color: #fff;
}

    .btn-outline:hover {
        background: rgba(255,255,255,.22);
    }

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    transition: .25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .banner-arrow:hover {
        background: var(--accent);
    }

    .banner-arrow.prev {
        left: 16px;
    }

    .banner-arrow.next {
        right: 16px;
    }

.banner-dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: .3s;
}

    .dot.active {
        background: #fff;
        width: 24px;
        border-radius: 4px;
    }

/* ===================================
   SECTION HEADER
=================================== */
.section-header {
    margin-bottom: 48px;
}

.section-label {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(24px, 3.5vw, 36px);
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.25;
}

.section-sub {
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ===================================
   WHY / FEATURES
=================================== */
.why {
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 28px 22px;
    text-align: center;
    transition: all .28s;
}

    .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
    }

.feature-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.feature-text {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.7;
}

/* ===================================
   COURSES – ĐẸP HƠN
=================================== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.course-card,
.course-card2,
.course-card3 {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all .32s;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(10,61,98,.06);
}

    .course-card:hover,
    .course-card2:hover,
    .course-card3:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-color: transparent;
    }

/* Ảnh khoá học – tỷ lệ đẹp, object-fit */
.course-img-wrap {
    height: 200px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .course-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
        display: block;
    }

.course-card:hover .course-img-wrap img,
.course-card2:hover .course-img-wrap img,
.course-card3:hover .course-img-wrap img {
    transform: scale(1.06);
}

/* Fallback emoji khi không có ảnh */
.course-img-wrap.no-img {
    font-size: 72px;
}

/* Gradient overlay mỗi card */
.course-card .course-img-wrap {
    background: linear-gradient(135deg, #0a3d62, #2980b9);
}

.course-card2 .course-img-wrap {
    background: linear-gradient(135deg, #1a6b1a, #27ae60);
}

.course-card3 .course-img-wrap {
    background: linear-gradient(135deg, #7a2d00, #e67e22);
}

/* Badge góc ảnh */
.course-img-wrap .course-badge-img {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,.22);
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
}

.course-body {
    padding: 20px 22px 24px;
}

.course-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.course-card .course-tag {
    background: #dbeafe;
    color: #1e40af;
}

.course-card2 .course-tag {
    background: #dcfce7;
    color: #15803d;
}

.course-card3 .course-tag {
    background: #ffedd5;
    color: #c2410c;
}

.course-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.35;
}

.course-desc {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.course-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--gray-600);
}

.course-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--gray-100);
    padding-top: 14px;
    margin-top: 4px;
}

.course-price {
    color: var(--accent);
    font-size: 22px;
    font-weight: 800;
}

    .course-price small {
        font-size: 13px;
        font-weight: 400;
        color: var(--gray-600);
    }

.btn-sm {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    font-family: inherit;
    transition: all .2s;
}

    .btn-sm:hover {
        background: var(--accent);
    }

/* ===================================
   PRICING
=================================== */
.pricing {
    background: linear-gradient(135deg, #0a3d62, #1a5276);
    color: #fff;
}

    .pricing .section-title {
        color: #fff;
    }

    .pricing .section-label {
        color: var(--accent-light);
    }

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,.06);
    border-radius: 16px;
    overflow: hidden;
}

    .pricing-table thead {
        background: rgba(255,255,255,.12);
    }

    .pricing-table th {
        padding: 16px 20px;
        text-align: left;
        font-size: 14px;
        font-weight: 700;
        color: #fff;
    }

    .pricing-table td {
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255,255,255,.08);
        font-size: 14px;
        color: #e2e8f0;
    }

    .pricing-table tr:last-child td {
        border-bottom: none;
    }

    .pricing-table tbody tr {
        transition: .25s;
    }

        .pricing-table tbody tr:hover {
            background: rgba(255,255,255,.08);
        }

    .pricing-table strong {
        color: #fff;
    }

.pricing-note {
    margin-top: 22px;
    background: rgba(255,255,255,.08);
    border-left: 4px solid var(--accent-light);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    font-size: 14px;
    line-height: 1.75;
    color: #dbeafe;
}

/* ===================================
   THÔNG BÁO – REDESIGN
=================================== */

#thong-bao {
    padding: 56px 0 80px;
    background: #f7f7f5;
}

.section-header {
    margin-bottom: 36px;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    letter-spacing: -.3px;
    margin-bottom: 6px;
}

.section-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

/* === FILTER BUTTONS === */
.notif-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}

/* Filter – Tất cả (gray) */
.filter-btn-all {
    background: #F1EFE8;
    color: #444441;
    border-color: #D3D1C7;
}

    .filter-btn-all:hover,
    .filter-btn-all.active {
        background: #444441;
        color: #F1EFE8;
        border-color: #444441;
    }

/* Filter – Tin tức (blue) */
.filter-btn-news {
    background: #E6F1FB;
    color: #0C447C;
    border-color: #B5D4F4;
}

    .filter-btn-news:hover,
    .filter-btn-news.active {
        background: #185FA5;
        color: #E6F1FB;
        border-color: #185FA5;
    }

/* Filter – Lịch thi (purple) */
.filter-btn-exam {
    background: #EEEDFE;
    color: #3C3489;
    border-color: #CECBF6;
}

    .filter-btn-exam:hover,
    .filter-btn-exam.active {
        background: #534AB7;
        color: #EEEDFE;
        border-color: #534AB7;
    }

/* Filter – Khác (amber) */
.filter-btn-other {
    background: #FAEEDA;
    color: #633806;
    border-color: #FAC775;
}

    .filter-btn-other:hover,
    .filter-btn-other.active {
        background: #854F0B;
        color: #FAEEDA;
        border-color: #854F0B;
    }

/* === GRID === */
.notif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

/* === CARD === */
.notif-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    cursor: pointer;
    border: 1.5px solid #ebebeb;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .15s;
}

    .notif-card:hover {
        border-color: #bbb;
    }

    /* Colored left border by category */
    .notif-card[data-category="Tin tức"] {
        border-left: 3px solid #378ADD;
    }

    .notif-card[data-category="Lịch thi"] {
        border-left: 3px solid #7F77DD;
    }

    .notif-card[data-category="Khác"] {
        border-left: 3px solid #BA7517;
    }

/* === TOP ROW === */
.notif-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notif-date {
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
}

/* === BADGE === */
.notif-cat {
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .notif-cat .badge-icon {
        font-size: 12px;
        line-height: 1;
    }

/* Badge colors by category */
.cat-Tin\ tức {
    background: #E6F1FB;
    color: #0C447C;
}

.cat-Lịch\ thi {
    background: #EEEDFE;
    color: #3C3489;
}

.cat-Khác {
    background: #FAEEDA;
    color: #633806;
}

/* === TITLE === */
.notif-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #111;
}

/* === PREVIEW === */
.notif-preview {
    color: #777;
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* === XEM THÊM === */
.notif-more {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #bbb;
    transition: color .15s;
}

.notif-card:hover .notif-more {
    color: #111;
}

/* === NÚT XEM THÊM === */
.view-more-btn {
    padding: 9px 28px;
    border-radius: 999px;
    border: 1px solid #ccc;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
    display: inline-flex;
    justify-content: flex-start;
    margin-left: 0;
}

    .view-more-btn:hover {
        border-color: #111;
        color: #111;
    }

/* === EMPTY STATE === */
.empty-notif {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed #ddd;
}

.empty-icon {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: .3;
}

.empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.empty-desc {
    font-size: 13px;
    color: #999;
}

/* ===================================
   MODAL
=================================== */
.notif-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    backdrop-filter: blur(2px);
}

    .notif-modal-overlay.show {
        display: flex;
    }

.notif-modal {
    width: 100%;
    max-width: 680px;
    background: #fff;
    border-radius: 18px;
    padding: 36px 40px;
    animation: popIn .18s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.97) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.notif-modal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

/* Modal badge – mirrors category colors */
.notif-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

    .notif-badge.badge-news {
        background: #E6F1FB;
        color: #0C447C;
    }

    .notif-badge.badge-exam {
        background: #EEEDFE;
        color: #3C3489;
    }

    .notif-badge.badge-other {
        background: #FAEEDA;
        color: #633806;
    }

.notif-modal-title {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ebebeb;
}

.notif-modal-content {
    font-size: 15px;
    line-height: 1.85;
    color: #555;
}

/* === FILE DOWNLOAD === */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f3;
    border: 1px solid #e0e0e0;
    color: #111 !important;
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    margin-top: 18px;
    text-decoration: none;
    transition: background .15s;
}

    .download-btn:hover {
        background: #ebebeb;
    }

/* === CLOSE BUTTON === */
.notif-btn {
    width: 100%;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: all .15s;
    font-family: inherit;
}

    .notif-btn:hover {
        border-color: #111;
        color: #111;
    }

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .notif-modal {
        padding: 24px 20px;
    }

    .notif-modal-title {
        font-size: 18px;
    }

    .notif-grid {
        grid-template-columns: 1fr;
    }
}


/* ===================================
   FORM ĐĂNG KÝ
=================================== */
.register-form {
    max-width: 580px;
    margin: 0 auto;
    background: #fff;
    padding: 36px;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 7px;
        font-weight: 600;
        font-size: 14px;
        color: var(--gray-700);
    }

    .form-group input,
    .form-group select {
        width: 100%;
        padding: 12px 14px;
        border: 1.5px solid var(--gray-200);
        border-radius: 9px;
        outline: none;
        font-size: 14px;
        font-family: inherit;
        transition: border .2s;
        background: #fff;
    }

        .form-group input:focus,
        .form-group select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(10,61,98,.08);
        }

/* ===================================
   FOOTER
=================================== */
footer {
    background: var(--gray-900);
    color: #94a3b8;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 15px;
}

.footer-desc {
    line-height: 1.8;
    font-size: 14px;
}

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 14px;
        color: #94a3b8;
        transition: .2s;
    }

        .footer-links a:hover {
            color: var(--accent-light);
        }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

    .footer-contact-item a {
        color: #94a3b8;
        transition: .2s;
    }

        .footer-contact-item a:hover {
            color: var(--accent-light);
        }

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--accent);
    color: #fff;
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 10px;
    transition: .2s;
}

    .map-btn:hover {
        background: var(--accent-light);
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

    .footer-container p {
        font-size: 13px;
    }

.admin-link {
    display: inline-block;
    background: rgba(255,255,255,.08);
    color: #94a3b8;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    transition: .2s;
}

    .admin-link:hover {
        background: rgba(255,255,255,.15);
        color: #fff;
    }

/* ===================================
   SCROLL TOP
=================================== */
.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    box-shadow: 0 4px 14px rgba(230,126,34,.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .scroll-top.show {
        opacity: 1;
        visibility: visible;
    }

    .scroll-top:hover {
        background: var(--primary);
        transform: translateY(-2px);
    }

/* ===================================
   RESPONSIVE – TABLET ≤ 900px
=================================== */
@media (max-width: 900px) {
    .course-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .notif-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   RESPONSIVE – MOBILE ≤ 640px
=================================== */
@media (max-width: 640px) {

    /* TOPBAR */
    .topbar-left {
        display: none;
    }

    /* NAV */
    .nav-inner {
        height: 62px;
    }

    .logo-text {
        font-size: 14px;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .nav-menu, .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* BANNER */
    .banner-slide {
        height: 400px;
    }

    .banner-sub {
        font-size: 14px;
    }

    /* SECTION */
    section {
        padding: 48px 0;
    }

    /* FEATURES – 2 cột */
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .feature-card {
        padding: 18px 14px;
    }

    .feature-icon {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .feature-title {
        font-size: 13px;
    }

    .feature-text {
        font-size: 12px;
    }

    /* COURSES – 3 cột nhỏ gọn trên mobile */
    .course-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        max-width: 100%;
    }

    .course-card,
    .course-card2,
    .course-card3 {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(10,61,98,.08);
    }

    .course-img-wrap {
        height: 90px;
        font-size: 36px;
    }

        .course-img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .course-body {
        padding: 10px 8px 12px;
        text-align: center;
    }

    .course-tag {
        font-size: 10px;
        padding: 2px 8px;
        margin-bottom: 5px;
    }

    .course-title {
        font-size: 11px;
        line-height: 1.4;
        margin-bottom: 0;
    }

    .course-desc, .course-meta, .course-price-row {
        display: none;
    }

    .course-card:hover,
    .course-card2:hover,
    .course-card3:hover {
        transform: none;
    }

    .course-card:active,
    .course-card2:active,
    .course-card3:active {
        transform: scale(.96);
        opacity: .85;
    }

    /* PRICING */
    .pricing-table th,
    .pricing-table td {
        padding: 12px 10px;
        font-size: 12px;
    }

    .pricing-note {
        font-size: 12px;
        padding: 14px;
    }

    /* NOTIFICATIONS */
    .notif-grid {
        grid-template-columns: 1fr;
    }

    .notif-card {
        border-radius: 14px;
    }

    .notif-inner {
        padding: 16px 18px 18px;
    }

    .notif-title {
        font-size: 16px;
    }

    .notif-preview {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .filter-btn {
        padding: 7px 14px;
        font-size: 12px;
    }

    /* MODAL */
    .notif-modal {
        padding: 20px;
        border-radius: 18px;
    }

    .notif-modal-title {
        font-size: 20px;
    }

    .notif-modal-content {
        font-size: 14px;
    }

    /* FOOTER – 2 cột trên mobile như desktop */
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* ← 2 cột trên mobile */
        gap: 24px;
    }

        /* Cột đầu tiên (thương hiệu) trải full width */
        .footer-grid > div:first-child {
            grid-column: 1 / -1;
        }

    .footer-title {
        font-size: 14px;
    }

    .footer-desc {
        font-size: 13px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-contact-item {
        font-size: 13px;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .scroll-top {
        right: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ===================================
   BANNER SLIDER JS – HELPER
=================================== */
/* Đảm bảo banner-slides không bị cuộn */
.banner {
    overflow: hidden;
}

/* ===================================
   COURSE GRID – 2 CỘT CĂN GIỮA ĐẸP
=================================== */
.course-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 720px; /* rộng hơn, vừa mắt hơn */
    margin: 0 auto;
}

.app-card .app-img-wrap {
    height: 240px; /* cao hơn để logo to hơn */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: linear-gradient(135deg, #0d1b3e 0%, #1a2f5e 100%);
}

    .app-card .app-img-wrap img {
        width: 160px; /* logo to hơn */
        height: 160px;
        object-fit: contain;
        border-radius: 28px;
        box-shadow: 0 8px 32px rgba(0,0,0,.5);
        transition: transform .4s ease;
    }

.app-card:hover .app-img-wrap img {
    transform: scale(1.07) translateY(-4px);
}

.app-store-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.store-btn {
    flex: 1; /* 2 nút chia đều chiều ngang */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    transition: all .22s;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.store-ios {
    background: #000;
    color: #fff;
}

    .store-ios:hover {
        background: #222;
        transform: translateY(-2px);
    }

.store-android {
    background: #01875f;
    color: #fff;
}

    .store-android:hover {
        background: #016b4c;
        transform: translateY(-2px);
    }

/* ===================================
   MOBILE ≤ 640px
=================================== */
@media (max-width: 640px) {

    .course-grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: 100%;
    }

    .app-card .app-img-wrap {
        height: 130px;
        padding: 18px;
    }

        .app-card .app-img-wrap img {
            width: 86px;
            height: 86px;
            border-radius: 18px;
        }

    .app-store-row {
        flex-direction: column;
        gap: 6px;
    }

    .store-btn {
        font-size: 11px;
        padding: 8px 10px;
    }

    .course-desc {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Footer 2 cột */
.footer-grid-2col {
    grid-template-columns: 1.4fr 1fr; /* cột trái rộng hơn chút */
    gap: 48px;
    align-items: start;
}

@media (max-width: 640px) {
    .footer-grid-2col {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}


/* khóa đào tạo */
.kdt-section {
    padding: 3rem 0;
}

.kdt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .kdt-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .kdt-grid {
        grid-template-columns: 1fr;
    }
}

.kdt-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

    .kdt-card:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    }

.kdt-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

    .kdt-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.kdt-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
}

.kdt-body {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kdt-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.kdt-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    flex: 1;
    line-height: 1.6;
}

.kdt-btn {
    display: block;
    text-align: center;
    padding: 9px 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    margin-top: 8px;
    transition: background 0.15s;
}

    .kdt-btn:hover {
        background: #f3f4f6;
        color: #111827;
    }

/* ===================================
   REGISTER SECTION
=================================== */
/* ===================================
   REGISTER SECTION
=================================== */
.register-section {
    padding: 64px 0;
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}

    .register-section::before {
        content: '';
        position: absolute;
        top: -160px;
        right: -160px;
        width: 520px;
        height: 520px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(10,61,98,.06) 0%, transparent 70%);
        pointer-events: none;
    }

    .register-section::after {
        content: '';
        position: absolute;
        bottom: -100px;
        left: -100px;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(230,126,34,.05) 0%, transparent 70%);
        pointer-events: none;
    }

    /* Title */
    .register-section .section-title {
        text-align: center;
    }

        .register-section .section-title::after {
            content: '';
            display: block;
            width: 48px;
            height: 4px;
            background: linear-gradient(90deg, var(--accent), var(--accent-light));
            border-radius: 2px;
            margin: 12px auto 36px;
        }

/* Wrapper */
.register-wrapper {
    display: flex;
    justify-content: center;
}

/* Form box */
.register-form-box {
    width: 100%;
    max-width: 660px;
    background: #fff;
    border-radius: 22px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 40px rgba(10,61,98,.12);
    overflow: hidden;
}

/* Form title banner */
.form-title {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 22px 32px;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: .2px;
}

    .form-title::before {
        content: '';
        width: 4px;
        height: 24px;
        background: var(--accent-light);
        border-radius: 2px;
        display: inline-block;
        flex-shrink: 0;
    }

/* Form body padding */
.form-body {
    padding: 32px 32px 36px;
}

/* 2-col row cho họ tên + sđt */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* Form group */
.form-group {
    margin-bottom: 18px;
}

    .form-group:last-of-type {
        margin-bottom: 0;
    }

    .form-group label {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 13px;
        font-weight: 700;
        color: var(--gray-700);
        margin-bottom: 7px;
    }

.label-req {
    color: #e74c3c;
    font-size: 15px;
    line-height: 1;
}

/* Input wrapper với icon */
.inp-wrap {
    position: relative;
}

.inp-ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    pointer-events: none;
    line-height: 1;
}

/* Textarea icon ở trên thay vì giữa */
.inp-wrap.textarea-wrap .inp-ico {
    top: 13px;
    transform: none;
}

.inp-wrap.has-ico input,
.inp-wrap.has-ico select,
.inp-wrap.has-ico textarea {
    padding-left: 38px;
}

/* Inputs */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-900);
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    line-height: 1.5;
}

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(10,61,98,.09);
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #b0bec5;
    }

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' fill='%23475569' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 36px;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

/* Divider */
.form-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 22px 0;
}

/* Submit button */
.btn-submit {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #fff;
    border: none;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 6px 20px rgba(230,126,34,.32);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(230,126,34,.42);
    }

    .btn-submit:active {
        transform: translateY(0);
    }

/* Trust badges */
.trust-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
    justify-content: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 600;
}

.trust-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 560px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .form-body {
        padding: 22px 18px 26px;
    }

    .form-title {
        padding: 18px 20px;
        font-size: 14px;
    }

    .trust-row {
        gap: 12px;
    }
}

/* GALLERY SECTION */
.gallery-section {
    background: var(--color-background-primary);
    /* khoảng cách với section bên dưới */
    padding-bottom: 40px;
}

.gallery-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.photo-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer;
    background: var(--color-background-secondary);
}

    .photo-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

    .photo-card:hover img {
        transform: scale(1.06);
    }

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-card:hover .photo-overlay {
    background: rgba(0,0,0,0.18);
}

.photo-zoom {
    opacity: 0;
    color: white;
    font-size: 22px;
    transition: opacity 0.3s;
}

.photo-card:hover .photo-zoom {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

    .lightbox.open {
        display: flex;
    }

.lightbox-img {
    max-width: 85vw;
    max-height: 85vh;
    border-radius: var(--border-radius-lg);
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

    .lightbox-close:hover {
        opacity: 0.7;
    }

/* =========================
   TABLET
========================= */
@media (max-width: 992px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

    .gallery-section {
        padding-bottom: 28px;
    }

    .gallery-wrapper {
        padding: 0 16px;
    }

    /* 2 ảnh / 1 dòng */
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .photo-zoom {
        font-size: 18px;
    }

    .lightbox-img {
        max-width: 92vw;
        max-height: 80vh;
    }

    .lightbox-close {
        top: 14px;
        right: 16px;
        font-size: 24px;
    }
}

.error-message {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}