:root {
    --primary: #1e5fbe;
    --primary-dark: #0a3f8f;
    --primary-soft: #eaf2ff;
    --accent: #ff6638;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --text-main: #111827;
    --text-sub: #64748b;
    --text-soft: #94a3b8;
    --border: #dde5f0;
    --bg: #f7f9fc;
    --white: #ffffff;
    --shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    letter-spacing: -0.2px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

.container {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    height: 78px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: auto;
}

.logo-mark {
    width: 56px;
    height: 56px;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #1e5fbe;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
}

.nav-menu a {
    display: block;
    padding: 10px 18px;
    border-radius: 999px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.nav-menu a.active,
.nav-menu a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.header-actions {
    justify-self: end;
    margin-left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    position: relative;
    font-size: 20px;
}

.cart-count {
    position: absolute;
    right: -5px;
    top: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    padding: 6px 14px 6px 6px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    font-size: 22px;
}

/* ===== MOBILE MENU ===== */

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    width: 300px;
    max-width: 84vw;
    height: 100vh;
    padding: 22px 18px;
    background: #fff;
    box-shadow: 12px 0 30px rgba(15, 23, 42, 0.16);
    transform: translateX(-100%);
    transition: 0.25s ease;
}

.mobile-nav-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 18px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav a {
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    color: #334155;
    font-size: 15px;
    font-weight: 700;
}

.mobile-nav a.active,
.mobile-nav a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open .mobile-nav {
    transform: translateX(0);
}

body.mobile-menu-open .mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
}

/* ===== HERO ===== */

.hero {
    position: relative;
    overflow: hidden;

    padding: 76px 0 70px;

    background: #111827;
    color: #fff;
}

.hero .home-hero-bg,
.hero > img {
    position: absolute;
    inset: 0;
    z-index: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;

    transform: none;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(18, 18, 30, 0.62) 0%,
            rgba(20, 24, 48, 0.50) 42%,
            rgba(12, 31, 72, 0.68) 100%
        ),

        linear-gradient(
            180deg,
            rgba(8, 16, 40, 0.16) 0%,
            rgba(8, 16, 40, 0.34) 100%
        );
}

.hero::after {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 760px;

    margin: 0 auto;

    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 42px;

    padding: 0 24px;

    margin-bottom: 22px;

    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);

    background: rgba(255,255,255,0.14);

    color: #fff;

    font-size: 14px;
    font-weight: 700;

    backdrop-filter: blur(6px);
}

.hero h1 {
    margin-bottom: 18px;

    color: #fff;

    font-size: clamp(34px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -1px;

    text-shadow: 0 4px 18px rgba(0,0,0,0.28);
}

.hero h1 span {
    color: #ff7a3d;
}

.hero-desc {
    max-width: 650px;

    margin: 0 auto 34px;

    color: rgba(255,255,255,0.88);

    font-size: 17px;
    font-weight: 500;
    line-height: 1.7;
}

/* giữ nguyên search box style cũ */

.hero-search {
    max-width: 640px;

    margin: 0 auto;

    padding: 8px 8px 8px 24px;

    border-radius: 999px;

    background: #fff;

    display: flex;
    align-items: center;
    gap: 12px;

    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.hero-search input {
    flex: 1;
    min-width: 0;

    border: 0;
    outline: 0;

    font-size: 15px;

    color: var(--text-main);
}

.hero-search button {
    height: 48px;

    padding: 0 28px;

    border: 0;
    border-radius: 999px;

    background: var(--accent);

    color: #fff;

    font-size: 15px;
    font-weight: 800;

    cursor: pointer;
}

.hero-search button:hover {
    transform: translateY(-1px);
}

.hero-search button a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 1366px) {

    .hero-content {
        max-width: 720px;
    }

    .hero h1 {
        font-size: clamp(32px, 4.8vw, 50px);
    }
}

@media (max-width: 1024px) {

    .hero {
        padding: 62px 0;
    }

    .hero .home-hero-bg,
    .hero > img {
        object-fit: cover;
        object-position: 54% top;
        transform: none;
    }

    .hero-content {
        max-width: 680px;
    }

    .hero-badge {
        min-height: 38px;

        padding: 0 20px;

        font-size: 13px;
    }

    .hero h1 {
        font-size: clamp(30px, 5vw, 44px);
    }

    .hero-desc {
        font-size: 16px;
    }
}

@media (max-width: 768px) {

    .hero {
        padding: 52px 0;
    }

    .hero::before {
        background:
            linear-gradient(
                180deg,
                rgba(12,20,42,0.76) 0%,
                rgba(12,20,42,0.68) 48%,
                rgba(12,20,42,0.82) 100%
            );
    }

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

    .hero-badge {
        min-height: 34px;

        padding: 0 16px;

        margin-bottom: 18px;

        font-size: 12px;
    }

    .hero h1 {
        margin-bottom: 18px;

        font-size: clamp(28px, 8vw, 40px);

        line-height: 1.3;
    }

    .hero-desc {
        margin-bottom: 26px;

        font-size: 15px;
        line-height: 1.7;
    }

    .hero-search {
        border-radius: 22px;

        padding: 10px;

        flex-direction: column;
    }

    .hero-search input,
    .hero-search button {
        width: 100%;
    }

    .hero-search input {
        padding: 12px;
    }

    .hero .home-hero-bg,
    .hero > img {
        object-fit: cover;
        object-position: 58% top;
        transform: none;
    }
}

.home-hero-picture {
    display: block;
}

.home-hero-picture img {
    display: block;
}

/* ===== SECTION ===== */

.section {
    padding: 54px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 32px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.section-title span {
    color: var(--accent);
}

.section-sub {
    color: var(--text-sub);
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.7;
}

.view-all {
    border: 1px solid var(--border);
    background: #fff;
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
}

/* ===== FILTER ===== */

.filter-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 18px;
    margin-bottom: 10px;
    scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    flex: 0 0 auto;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    letter-spacing: -0.2px;
}

.filter-chip.active,
.filter-chip:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

/* ===== COURSE CARD ===== */

.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.course-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.course-banner {
    position: relative;
    height: 180px;
    padding: 20px;
    color: #fff;
    overflow: hidden;
}

.course-banner::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    right: -36px;
    bottom: -44px;
    background: rgba(255, 255, 255, 0.18);
}

.banner-ai { background: linear-gradient(135deg, #6865f2, #4434c9); }
.banner-ai-dark { background: linear-gradient(135deg, #4338ca, #1e1b4b); }
.banner-korean { background: linear-gradient(135deg, #e51e29, #a91417); }
.banner-viet { background: linear-gradient(135deg, #f59e0b, #d97706); }
.banner-english { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.banner-excel { background: linear-gradient(135deg, #059669, #064e3b); }
.banner-photo { background: linear-gradient(135deg, #ec4899, #be185d); }
.banner-coffee { background: linear-gradient(135deg, #92400e, #451a03); }

.banner-tag {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.92;
    margin-bottom: 10px;
}

.banner-title {
    position: relative;
    z-index: 1;
    max-width: 78%;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.banner-icon {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 1;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.ribbon {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 5;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.ribbon.hot {
    background: var(--danger);
}

.wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-sub);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow:
        0.5px 0 currentColor,
        -0.5px 0 currentColor,
        0 0.5px currentColor,
        0 -0.5px currentColor;
}

.wishlist.active,
.wishlist:hover {
    color: var(--danger);
}

.course-body {
    padding: 18px;
}

.meta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1px;
}

.tag.category {
    background: var(--primary-soft);
    color: var(--primary);
}

.tag.online {
    background: #eaf2ff;
    color: #1e5fbe;
}

.tag.offline {
    background: #fef3c7;
    color: #92400e;
}

.tag.hybrid {
    background: #d1fae5;
    color: #065f46;
}

.course-title {
    min-height: 44px;
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.35px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: "Inter", "Noto Sans KR", sans-serif;
}

.instructor {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.15px;
}

.avatar-sm {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
}

.schedule-box {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 10px;
    margin-bottom: 14px;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #475569;
    font-size: 13px;
    padding: 3px 0;
    letter-spacing: -0.15px;
}

.schedule-row span:first-child {
    color: #475569;
    white-space: nowrap;
}

.schedule-row b {
    text-align: right;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.price-box {
    display: flex;
    flex-direction: column;
}

.old-price {
    color: var(--text-soft);
    text-decoration: line-through;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.15px;
}

.current-price {
    color: var(--text-main);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.discount {
    color: var(--accent);
    font-size: 13px;
    margin-right: 4px;
}

.cart-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    transition: 0.18s;
}

.cart-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== MY QUICK ===== */

.my-quick-section {
    width: min(100%, 1280px);
    margin: clamp(20px, 3vw, 28px) auto clamp(32px, 5vw, 48px);
    padding: 0 clamp(16px, 2vw, 20px);
}

.my-quick-card {
    width: 100%;
    min-height: clamp(120px, 12vw, 140px);
    padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, var(--primary-soft) 100%);
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.5vw, 24px);
    cursor: pointer;
}

.my-quick-icon {
    width: clamp(58px, 7vw, 72px);
    height: clamp(58px, 7vw, 72px);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(24px, 3vw, 30px);
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(30, 95, 190, 0.2);
}

.my-quick-content {
    flex: 1;
    min-width: 0;
}

.my-quick-greeting {
    font-size: clamp(13px, 1.5vw, 15px);
    color: var(--text-sub);
    margin-bottom: 6px;
    font-weight: 500;
}

.my-quick-greeting b,
.my-quick-stats b {
    color: var(--primary);
    font-weight: 700;
}

.my-quick-title {
    font-size: clamp(20px, 2.6vw, 24px);
    line-height: 1.3;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.4px;
    margin-bottom: 10px;
}

.my-quick-stats {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 18px);
    flex-wrap: wrap;
    color: #475569;
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 500;
}

.my-quick-cta {
    min-width: clamp(112px, 12vw, 140px);
    height: clamp(42px, 5vw, 48px);
    border: 0;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff;
    font-size: clamp(13px, 1.5vw, 15px);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(30, 95, 190, 0.25);
    white-space: nowrap;
}

.my-quick-cta:hover {
    background: var(--primary-dark);
}
.my-quick-card .btn-enter-class {
    width: auto;
    padding: 0 26px;
    flex-shrink: 0;
}

/* ===== FOOTER ===== */

.footer {
    margin-top: 40px;
    padding: 46px 0 28px;
    background: #1e5fbe;
    color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 42px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-logo img {
    width: 300px;
    height: auto;
    display: block;
}

.footer-desc {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    font-weight: 500;
    line-height: 2;
    letter-spacing: -0.02em;
}

.footer-company-name {
    margin-bottom: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: -0.03em;
}

.footer-company-info {
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    font-weight: 500;
    line-height: 2;
    letter-spacing: -0.02em;
}

.footer-menu-wrap {
    display: contents;
}

.footer h4 {
    margin-bottom: 18px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.footer ul {
    list-style: none;
    display: grid;
    gap: 13px;
}

.footer a {
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer a:hover {
    color: #fff;
}

.copyright {
    padding-top: 22px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    letter-spacing: -0.02em;
}

/* ===== FOOTER - TABLET / IPAD MINI ===== */

@media (max-width: 860px) {
    .footer {
        padding: 40px 0 26px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-bottom: 26px;
    }

    .footer-logo {
        margin-bottom: 18px;
    }

    .footer-logo img {
        width: 232px;
    }

    .footer-company-name {
        margin-bottom: 12px;
        font-size: 15px;
    }

    .footer-company-info {
        font-size: 13px;
        line-height: 1.9;
    }

    .footer-menu-wrap {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .footer h4 {
        margin-bottom: 16px;
        font-size: 16px;
    }

    .footer ul {
        gap: 11px;
    }

    .footer a {
        font-size: 13px;
    }

    .copyright {
        padding-top: 20px;
        font-size: 12px;
        line-height: 1.6;
    }
}

/* ===== FOOTER - MOBILE ===== */

@media (max-width: 560px) {

    .footer {
        margin-top: 32px;
        padding: 34px 0 24px;
    }

    .footer-grid {
        display: grid;
        gap: 26px;
        padding-bottom: 24px;
    }

    /* block thông tin công ty */
    .footer-brand {
        width: 100%;
    }

    .footer-logo {
        margin-bottom: 14px;
    }

    /*.footer-logo img {
        width: 218px;
    }*/

    .footer-company-name {
        margin-bottom: 10px;
        font-size: 14px;
        line-height: 1.45;
    }

    .footer-company-info {
        font-size: 12px;
        line-height: 1.85;
        word-break: break-word;
    }

    /* menu footer chia 2 cột */
    .footer-menu-wrap {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 18px;
        align-items: start;
    }

    .footer-column {
        min-width: 0;
    }

    .footer h4 {
        margin-bottom: 12px;
        font-size: 14px;
        line-height: 1.4;
    }

    .footer ul {
        display: flex;
        flex-direction: column;
        gap: 9px;
    }

    .footer a {
        font-size: 12px;
        line-height: 1.6;
        word-break: break-word;
    }

    .copyright {
        padding-top: 18px;
        font-size: 11px;
        line-height: 1.6;
    }
}

/* ===== FOOTER - SMALL MOBILE ===== */

@media (max-width: 375px) {
    .footer-menu-wrap {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ===== FLOATING KAKAO ===== */
.popup-header h2, .popup-header p, .chat-connect-btn{
    color: white !important;
}
.floating-kakao {
    position: fixed;
    right: 24px;
    bottom: 44px;
    z-index: 40;
    /* width: 56px;
    height: 56px; */
    border-radius: 50%;
    border: 0;
    background: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-kakao span {
    position: absolute;
    right: 74px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: #111827;
    color: #fff;
    padding: 8px 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transition: 0.18s;
}

.floating-kakao:hover span {
    opacity: 1;
}

.schedule-row b{
    position:relative;
}

.schedule-note-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:18px;
    height:18px;
    margin-left:5px;
    margin-bottom: 2px;
    border-radius:50%;
    background: var(--primary);
    color:#fff !important;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
}

.schedule-note-box{
    position: absolute;
    bottom: 27px;
    right: 0;
    width: auto;
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    border: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.6;
    z-index: 9999;
    display: none;
    text-align: left;
    color: #111827;
    font-weight: normal;
    /*white-space: pre-line;*/
}

.schedule-note-box.show{
    display:block;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {
    .course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .container {
        padding: 0 10px;
    }

    .header-inner {
        height: 68px;
        gap: 12px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .logo-title {
        font-size: 14px;
    }

    .logo-sub,
    .user-name {
        display: none;
    }

    .hero {
        padding: 54px 0;
    }

    .hero-search {
        border-radius: 22px;
        padding: 10px;
        flex-direction: column;
    }

    .hero-search input,
    .hero-search button {
        width: 100%;
    }

    .hero-search input {
        padding: 12px;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .my-quick-card {
        align-items: flex-start;
    }

    .my-quick-stats {
        gap: 8px 14px;
    }
}

@media (max-width: 560px) {
    .course-grid {
        grid-template-columns: 1fr;
    }

    .course-banner {
        height: 170px;
    }

    .section-title {
        font-size: 26px;
    }

    .floating-kakao span {
        display: none;
    }

    .my-quick-card {
        flex-direction: column;
        align-items: stretch;
    }

    .my-quick-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .my-quick-cta {
        width: 100%;
        margin-top: 4px;
    }
}

@media (min-width: 861px) {
    .mobile-nav,
    .mobile-nav-overlay {
        display: none;
    }
}

/* ===== PROFILE DROPDOWN ===== */

.header-right {
    justify-self: end;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.profile-dropdown {
    position: relative;
    flex-shrink: 0;
}

.profile-chip {
    height: 46px;
    min-width: 200px;
    padding: 6px 14px 6px 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.profile-avatar,
.profile-head-avatar {
    border-radius: 50%;
    background: linear-gradient(135deg, #fb923c, #f97316);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.profile-avatar {
    width: 34px;
    height: 34px;
    font-size: 14px;
}

.profile-name {
    flex: 1;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.profile-arrow {
    display: inline-block;
    color: var(--text-sub);
    font-size: 11px;
    line-height: 1;
    transform: rotate(0deg); /* mặc định: ▼ */
    transition: transform 0.2s ease;
}

/* mở dropdown: ▼ xoay thành ▲ */
.profile-dropdown.open .profile-arrow {
    transform: rotate(180deg);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 100;
    width: 280px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.profile-dropdown.open .profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 14px;
    border-bottom: 1px solid var(--border);
}

.profile-head-avatar {
    width: 46px;
    height: 46px;
    font-size: 19px;
}

.profile-head-name {
    color: var(--text-main);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.profile-head-email {
    color: var(--text-sub);
    font-size: 13px;
    margin-top: 3px;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 9px 7px;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.profile-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.profile-icon {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.profile-count {
    margin-left: auto;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #94a3b8;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.profile-divider {
    height: 1px;
    background: var(--border);
    margin: 5px 0;
}

.profile-item.logout {
    color: var(--danger);
}

.profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9; /* fallback nhẹ */
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 860px) {
    .profile-chip {
        min-width: auto;
        width: 44px;
        height: 44px;
        padding: 4px;
        justify-content: center;
    }

    .profile-name,
    .profile-arrow {
        display: none;
    }

    .profile-avatar {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .profile-menu {
        position: fixed;
        top: 76px;
        right: 18px;
        width: min(300px, calc(100vw - 36px));
        padding: 14px;
    }
}

.mobile-brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.mobile-brand-link:hover {
    text-decoration: none;
}

.mobile-nav .logo-mark {
    flex-shrink: 0;
    width: auto;
    height: auto;
    background: transparent;
}

.mobile-nav .logo-mark img {
    width: 48px;
    height: auto;
    display: block;
}

.mobile-brand-text {
    min-width: 0;
    flex: 1;
}

.mobile-nav .logo-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #15428b;
    word-break: break-word;
}

.mobile-nav .logo-sub {
    margin-top: 2px;
    font-size: 12px;
    color: #7b8597;
    line-height: 1.3;
}

/* =========================
   Header Language Switch
========================= */

.header-language-switch{
    display:flex;
    align-items:center;
    margin:0;
    flex-shrink:0;
}

.lang-desktop {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-item,
.lang-mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 34px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-item:hover,
.lang-mobile-btn:hover {
    background: #eaf2ff;
    color: #1e5fbe;
}

.lang-item.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.lang-divider {
    width: 1px;
    height: 14px;
    background: #d1d5db;
}

.lang-mobile-btn {
    display: none;
    background: #111827;
    color: #ffffff;
}

/* @media (max-width: 1100px){ */
    .header-right {
        gap: 8px;
    }

    .lang-desktop {
        display: none;
    }

    .lang-mobile-btn {
        display: inline-flex;
        min-width: 42px;
        height: 36px;
        padding: 10px 18px;
        background: var(--primary-soft);
        color: var(--primary);
        font-size: 14px;
        font-weight: 600;
    }
/* } */

/* ===== CART -> WISHLIST ===== */

.course-footer .wishlist {
    position: static;
    top: auto;
    right: auto;

    width: 42px;
    height: 42px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: #fff;

    color: var(--text-sub);

    font-size: 18px;
    font-weight: 900;

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

    box-shadow: none;
    text-shadow:
        0.5px 0 currentColor,
        -0.5px 0 currentColor,
        0 0.5px currentColor,
        0 -0.5px currentColor;

    transition: 0.18s;
}

.course-footer .wishlist:hover,
.course-footer .wishlist.active,
.course-footer .wishlist.act {
    background: #fff1f2;
    border-color: #fecdd3;
    color: var(--danger);
}

/* ===== RIBBON RIGHT ===== */

.ribbon {
    right: auto; /*left: auto;*/
    left: 14px; /*right: 14px;*/
}

/* ===== BUTTON ENTER CLASS ===== */
.home-page .btn-enter-class {
    --btn-bg: #1e5fbe;
    --btn-shadow: 0 12px 24px rgba(24, 63, 120, 0.18);

    width: 100%;
    min-height: 58px;

    padding: 17px 32px;

    border-radius: 12px;
    border: 0;

    background: var(--btn-bg) !important;
    color: #fff !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    font-family:
        'Be Vietnam Pro',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;

    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;

    text-decoration: none;

    box-shadow: var(--btn-shadow);

    transition:
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.home-page .btn-enter-class:hover {
    background: #16396d !important;
    transform: translateY(-1px);
}

/* icon trái */
.home-page .btn-enter-class::before {
    content: "";

    width: 21px;
    height: 21px;

    flex: 0 0 21px;

    display: inline-block;

    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3C/svg%3E")
        center / 21px 21px no-repeat;
}

.home-page .btn-enter-class .btn-enter-text {
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

.home-page .my-quick-card .btn-enter-class {
    width: auto;
    flex-shrink: 0;
}


.schedule-day-text {
    display: block;
    font-weight: 700;
    line-height: 1.35;
}

.schedule-time-text {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== BUTTON: LOGIN & ĐĂNG KÝ ===== */
.top-account-link{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:10px 16px;

    border-radius:999px;

    /*background:#eaf2ff;*/

    color:#475569;

    font-size:14px;
    font-weight:600;
    text-decoration:none;

    transition:all .2s ease;
}

.top-account-link:hover{
    background:#eaf2ff;
    color: #1e5fbe;
}

.top-account-link i{
    font-size:15px;
}

.top-account-icon{
    width:18px;
    height:18px;
    flex-shrink:0;
    margin-bottom: 2px;
}

/* Tablet */
@media (max-width:1024px){

    .top-account-link{
        padding:10px 16px;
        font-size:15px;
    }

    .top-account-link i{
        font-size:20px;
    }
}

/* Mobile */
@media (max-width:768px){

    .top-account-link{

        padding:0 10px;
        gap:8px;
        font-size:15px;
    }

    .top-account-link i{
        font-size:18px;
    }
}

.pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    margin-top:30px;
    flex-wrap:wrap;
}

.pagination li{
    list-style:none;
}

.pagination li a,
.pagination li span{
    min-width:36px;
    height:36px;
    padding:0 10px;

    border:1px solid #ddd;
    border-radius:8px;

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

    text-decoration:none;
    color:#333;

    font-size:14px;
    font-weight:500;

    transition:all .2s ease;
}

.pagination li.active span{
    background: var(--primary);
    border-color: var(--primary);
    color:#fff;
}

.pagination li a:hover{
    background: var(--primary);
    border-color: var(--primary);
    color:#fff;
}

span.page-link {
    cursor: not-allowed;
    color: #ddd !important;
}

.course-grid-wrapper, .wrap-reviews{
    position: relative;
}

.course-loading, .loading{
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    z-index: 99;

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

    backdrop-filter: blur(2px);
}

.course-loading::after, .loading::after{
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin{
    to{
        transform: rotate(360deg);
    }
}
