:root {
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --secondary: #06B6D4;
    --dark: #0F172A;
    --text: #334155;
    --muted: #64748B;
    --line: #CBD5E1;
    --line-soft: #E2E8F0;
    --bg: #F8FAFC;
    --white: #ffffff;
    --soft: #EFF6FF;
    --soft-2: #ECFEFF;
    --success: #16A34A;
    --danger: #DC2626;
    --warning: #F59E0B;

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;

    --shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 18px 42px rgba(15, 23, 42, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "Be Vietnam Pro", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: rgba(37, 99, 235, 0.16);
    color: var(--dark);
}

/* =========================
   COMMON
========================= */

.section-padding {
    padding: 86px 0;
}

.section-title {
    margin-bottom: 42px;
}

.section-title.center {
    text-align: center;
}

.section-title .eyebrow,
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 14px;
}

.section-title h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -0.035em;
}

.section-title p {
    margin: 0;
    color: var(--muted);
    max-width: 760px;
}

.section-title.center p {
    margin-left: auto;
    margin-right: auto;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-primary-custom {
    color: var(--primary) !important;
}

.bg-light-custom {
    background: var(--bg);
}

/* =========================
   BUTTONS
========================= */

.btn-primary-custom,
.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 850;
    font-size: 15px;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    color: #fff !important;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.32);
}

.btn-outline-custom {
    background: #fff;
    color: var(--primary) !important;
    border-color: #bfdbfe;
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}

.btn-sm.btn-outline-custom,
.btn-sm.btn-primary-custom {
    padding: 9px 15px;
    font-size: 14px;
}

/* =========================
   TOPBAR
========================= */

.topbar {
    background: #0F172A;
    color: rgba(255, 255, 255, .82);
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar a {
    color: rgba(255,255,255,.88);
}

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

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

.main-header {
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
    z-index: 1000;
}

.navbar {
    padding: 13px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: var(--dark) !important;
    letter-spacing: -0.035em;
}

.navbar-brand img {
    max-height: 46px;
    object-fit: contain;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.navbar .nav-link {
    color: var(--dark) !important;
    font-weight: 800;
    padding: 9px 12px !important;
    border-radius: var(--radius-sm);
    font-size: 15px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important;
    background: #eff6ff;
}

.navbar-toggler {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 7px 9px;
}

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

.hero-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(37,99,235,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,.035) 1px, transparent 1px),
        linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    background-size: 40px 40px, 40px 40px, auto;
    padding: 104px 0 88px;
}

.hero-content,
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 900;
    border: 1px solid #bfdbfe;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
    font-weight: 950;
    color: var(--dark);
    margin: 0 0 18px;
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 660px;
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-meta-item {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 13px 14px;
}

.hero-meta-item strong {
    display: block;
    color: var(--dark);
    font-size: 18px;
    font-weight: 950;
}

.hero-meta-item span {
    color: var(--muted);
    font-size: 14px;
}

.hero-visual {
    min-height: 470px;
}

.hero-panel {
    position: absolute;
    inset: 24px 0 0 38px;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 24px;
}

.hero-panel-top {
    display: flex;
    gap: 9px;
    margin-bottom: 16px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: #cbd5e1;
}

.hero-card-main {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.hero-card-main h4 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 950;
}

.hero-card-main p {
    margin: 0;
    color: rgba(255,255,255,.82);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hero-box {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 16px;
}

.hero-box h5 {
    margin: 0 0 7px;
    font-size: 16px;
    font-weight: 950;
    color: var(--dark);
}

.hero-box p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.hero-floating {
    position: absolute;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 13px 15px;
    z-index: 2;
}

.hero-floating.one {
    top: 0;
    right: 0;
}

.hero-floating.two {
    bottom: 16px;
    left: 0;
}

.hero-floating strong {
    display: block;
    color: var(--dark);
    font-size: 17px;
    font-weight: 950;
}

.hero-floating span {
    color: var(--muted);
    font-size: 13px;
}

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

.page-header {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(37,99,235,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,.035) 1px, transparent 1px),
        linear-gradient(180deg, #fff, #f8fafc);
    background-size: 40px 40px, 40px 40px, auto;
    border-bottom: 1px solid var(--line-soft);
    padding: 78px 0;
}

.page-header h1 {
    margin: 14px 0 12px;
    font-weight: 950;
    font-size: clamp(31px, 4vw, 48px);
    line-height: 1.15;
    color: var(--dark);
    letter-spacing: -0.04em;
}

.page-header p {
    max-width: 760px;
}

/* =========================
   BLOCK CARDS
========================= */

.feature-card,
.course-card,
.post-card,
.info-card,
.stat-card,
.cta-card,
.category-card,
.detail-box,
.sidebar-box,
.contact-box {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: none;
    transition: all .22s ease;
}

.feature-card:hover,
.course-card:hover,
.post-card:hover,
.info-card:hover,
.stat-card:hover,
.cta-card:hover,
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #bfdbfe;
}

.feature-card,
.info-card,
.category-card {
    padding: 26px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    color: var(--primary);
    border: 1px solid #bfdbfe;
    font-size: 24px;
    margin-bottom: 17px;
    flex-shrink: 0;
}

.feature-card h4,
.info-card h5,
.category-card h5 {
    margin: 0 0 10px;
    font-weight: 950;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.feature-card p,
.info-card p,
.category-card p {
    margin: 0;
    color: var(--muted);
}

.category-card {
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: "";
    position: absolute;
    width: 115px;
    height: 115px;
    right: -34px;
    top: -34px;
    background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(6,182,212,.14));
    border-radius: 0 0 0 70px;
}

.category-card .feature-icon,
.category-card h5,
.category-card p {
    position: relative;
    z-index: 1;
}

/* =========================
   COURSE / POST
========================= */

.course-card,
.post-card {
    overflow: hidden;
}

.course-img,
.post-img {
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 46px;
    border-bottom: 1px solid var(--line-soft);
}

.course-img img,
.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .32s ease;
}

.course-card:hover .course-img img,
.post-card:hover .post-img img {
    transform: scale(1.035);
}

.course-card .card-body,
.post-card .card-body {
    padding: 22px;
}

.course-card h3,
.post-card h3 {
    color: var(--dark);
    font-size: 20px;
    font-weight: 950;
    line-height: 1.35;
    margin-bottom: 9px;
    letter-spacing: -0.025em;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.price {
    color: var(--primary);
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.02em;
}

/* =========================
   DETAIL / SIDEBAR
========================= */

.detail-box {
    padding: 30px;
}

.sidebar-box {
    padding: 22px;
    margin-bottom: 22px;
}

.sidebar-box h4 {
    font-size: 20px;
    font-weight: 950;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.sidebar-box a:hover {
    color: var(--primary) !important;
}

.detail-content {
    font-size: 17px;
    color: var(--text);
}

.detail-content h1,
.detail-content h2,
.detail-content h3,
.detail-content h4,
.detail-content h5 {
    color: var(--dark);
    font-weight: 950;
    margin-top: 28px;
    margin-bottom: 13px;
    line-height: 1.28;
    letter-spacing: -0.025em;
}

.detail-content p {
    margin-bottom: 16px;
}

.detail-content ul,
.detail-content ol {
    margin-bottom: 18px;
    padding-left: 1.35rem;
}

.detail-content li {
    margin-bottom: 8px;
}

.detail-content img {
    border-radius: var(--radius-md);
    margin: 18px 0;
    border: 1px solid var(--line-soft);
}

.detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
}

.detail-content table th,
.detail-content table td {
    border: 1px solid var(--line-soft);
    padding: 11px 13px;
}

.detail-content table th {
    background: #f1f5f9;
    color: var(--dark);
}

/* =========================
   FORM / CONTACT
========================= */

.contact-box {
    padding: 30px;
}

.form-label {
    color: var(--dark);
    font-weight: 750;
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--text);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(37, 99, 235, .55);
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12);
}

/* =========================
   CTA
========================= */

.cta-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,64,175,.96)),
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: auto, 36px 36px, 36px 36px;
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 42px;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: var(--shadow);
}

.cta-panel::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -90px;
    top: -90px;
    background: rgba(6, 182, 212, .18);
    border-radius: 0 0 0 170px;
}

.cta-panel h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.18;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.cta-panel p {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,.82);
    margin-bottom: 22px;
    max-width: 760px;
}

.cta-panel .btn-outline-custom {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255,255,255,.36);
}

.cta-panel .btn-outline-custom:hover {
    background: #fff;
    color: var(--primary) !important;
}

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

.footer {
    background: #0F172A;
    color: #fff;
    padding-top: 72px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer h5 {
    color: #fff;
    font-weight: 950;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.footer p,
.footer li,
.footer a {
    color: rgba(255,255,255,.72);
}

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

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    margin-bottom: 9px;
}

.footer-bottom {
    margin-top: 34px;
    padding: 17px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    text-align: center;
    color: rgba(255,255,255,.55);
}

/* =========================
   PAGINATION
========================= */

.pagination {
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
    gap: 5px;
}

.page-link {
    border-radius: var(--radius-sm) !important;
    color: var(--primary);
    border: 1px solid var(--line-soft);
    font-weight: 750;
}

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

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* =========================
   SCROLL TOP
========================= */

.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: var(--radius-sm);
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    z-index: 9999;
    box-shadow: var(--shadow);
}

.scroll-top:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

/* =========================
   BOOTSTRAP OVERRIDES
========================= */

.rounded-4 {
    border-radius: var(--radius-lg) !important;
}

.shadow-soft {
    box-shadow: var(--shadow);
}

.border-soft {
    border: 1px solid var(--line-soft);
}

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

@media (max-width: 1199.98px) {
    .hero-panel {
        inset: 36px 0 0 20px;
    }
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 68px 0;
    }

    .hero-section {
        padding: 82px 0 68px;
    }

    .hero-visual {
        min-height: auto;
    }

    .hero-panel {
        position: relative;
        inset: auto;
        margin-top: 18px;
    }

    .hero-floating {
        position: relative;
        display: inline-block;
        margin-top: 12px;
    }

    .hero-floating.one,
    .hero-floating.two {
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
    }

    .topbar .d-flex {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .navbar .navbar-nav {
        padding-top: 14px;
    }

    .navbar .btn-primary-custom {
        margin-top: 8px;
        width: 100%;
    }

    .page-header {
        padding: 62px 0;
    }

    .hero-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 15px;
    }

    .hero-title {
        font-size: 34px;
    }

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

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        padding: 18px;
    }

    .course-img,
    .post-img {
        height: 200px;
    }

    .contact-box,
    .detail-box,
    .sidebar-box {
        padding: 22px;
    }

    .cta-panel {
        padding: 30px 24px;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        padding: 12px 18px;
    }

    .footer {
        padding-top: 54px;
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 54px 0;
    }

    .page-header h1 {
        font-size: 30px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .hero-title {
        font-size: 31px;
    }

    .feature-card,
    .info-card,
    .category-card {
        padding: 22px;
    }

    .scroll-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}
/* =========================
   HOME EQUAL BLOCKS
========================= */

.home-equal-row > [class*="col-"] {
    display: flex;
}

.home-equal-row .category-card,
.home-equal-row .course-card,
.home-equal-row .post-card,
.home-equal-row .info-card,
.home-equal-row .feature-card,
.home-equal-row .cta-panel,
.home-equal-row .home-banner-card {
    width: 100%;
    height: 100%;
}

.course-card,
.post-card,
.category-card,
.info-card,
.feature-card {
    display: flex;
    flex-direction: column;
}

.course-card .card-body,
.post-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-card .card-body .mt-auto,
.post-card .card-body .mt-auto {
    margin-top: auto !important;
}

.category-card,
.info-card,
.feature-card {
    min-height: 100%;
}

/* =========================
   HOME BANNER IMAGE / TEXT
========================= */

.home-banner-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xl);
    min-height: 300px;
    display: flex;
    box-shadow: var(--shadow);
}

.home-banner-image {
    position: relative;
    width: 100%;
    min-height: 320px;
    overflow: hidden;
    background: #0f172a;
}

.home-banner-image img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.home-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.88) 0%,
        rgba(15, 23, 42, 0.66) 45%,
        rgba(15, 23, 42, 0.18) 100%
    );
    display: flex;
    align-items: center;
    padding: 42px;
}

.home-banner-content {
    max-width: 680px;
    color: #fff;
}

.home-banner-content h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.home-banner-content p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
}

.home-banner-text {
    width: 100%;
    min-height: 300px;
    padding: 42px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 64, 175, .96)),
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: auto, 36px 36px, 36px 36px;
    color: #fff;
}

.home-banner-text-inner {
    max-width: 760px;
}

.home-banner-text h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.home-banner-text p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
}

.home-banner-card .btn-outline-custom {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255,255,255,.36);
}

.home-banner-card .btn-outline-custom:hover {
    background: #fff;
    color: var(--primary) !important;
}

@media (max-width: 767.98px) {
    .home-banner-overlay,
    .home-banner-text {
        padding: 28px 22px;
    }

    .home-banner-card,
    .home-banner-image,
    .home-banner-image img,
    .home-banner-text {
        min-height: 260px;
    }

    .home-banner-overlay {
        background: linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.86) 0%,
            rgba(15, 23, 42, 0.72) 100%
        );
    }
}
/* =========================
   COMPACT PAGE HEADER
========================= */

.page-header {
    padding: 42px 0 44px !important;
    min-height: auto !important;
}

.page-header .badge-soft {
    margin-bottom: 12px !important;
    padding: 6px 11px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
}

.page-header h1 {
    margin: 0 !important;
    font-size: clamp(30px, 4vw, 44px) !important;
    line-height: 1.12 !important;
}

.page-header p {
    display: none !important;
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 34px 0 36px !important;
    }

    .page-header h1 {
        font-size: 30px !important;
    }
}
/* =========================================================
   MOBILE OPTIMIZATION PATCH
   Tối ưu tổng thể giao diện điện thoại
========================================================= */

/* Tablet trở xuống */
@media (max-width: 991.98px) {
    body {
        font-size: 15px;
        line-height: 1.65;
        overflow-x: hidden;
    }

    .container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Topbar */
    .topbar {
        padding: 6px 0;
        font-size: 12px;
    }

    .topbar .container,
    .topbar .d-flex {
        gap: 4px !important;
    }

    .topbar .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .topbar a,
    .topbar span {
        font-size: 12px;
        line-height: 1.4;
    }

    /* Header */
    .main-header {
        position: sticky;
        top: 0;
        z-index: 999;
    }

    .navbar {
        padding: 8px 0;
    }

    .navbar-brand {
        font-size: 17px;
        gap: 8px;
        max-width: 70%;
    }

    .navbar-brand img {
        max-height: 38px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .navbar-toggler {
        padding: 6px 8px;
        border-radius: 4px;
    }

    .navbar-collapse {
        margin-top: 10px;
        padding: 10px;
        background: #fff;
        border: 1px solid var(--line-soft);
        border-radius: 6px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    }

    .navbar-nav {
        gap: 2px;
    }

    .navbar .nav-link {
        padding: 10px 12px !important;
        border-radius: 4px;
        font-size: 14px;
        border-bottom: 1px solid #f1f5f9;
    }

    .navbar .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .navbar .btn-primary-custom,
    .navbar .btn-outline-custom {
        width: 100%;
        margin-top: 8px;
        padding: 11px 14px;
    }

    /* Page header */
    .page-header {
        padding: 30px 0 32px !important;
    }

    .page-header .badge-soft {
        margin-bottom: 10px !important;
        padding: 5px 9px !important;
        font-size: 11px !important;
    }

    .page-header h1 {
        font-size: 28px !important;
        line-height: 1.16 !important;
        letter-spacing: -0.035em;
    }

    .page-header p {
        display: none !important;
    }

    /* Section */
    .section-padding {
        padding: 42px 0 !important;
    }

    .section-title {
        margin-bottom: 26px;
    }

    .section-title .eyebrow,
    .badge-soft {
        font-size: 11px;
        padding: 6px 10px;
        margin-bottom: 10px;
    }

    .section-title h2 {
        font-size: 26px;
        line-height: 1.18;
        margin-bottom: 10px;
    }

    .section-title p {
        font-size: 14px;
    }

    /* Hero */
    .hero-section {
        padding: 42px 0 46px !important;
        background-size: 28px 28px, 28px 28px, auto;
    }

    .hero-pill {
        font-size: 11px;
        padding: 6px 10px;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: 31px !important;
        line-height: 1.12;
        letter-spacing: -0.04em;
        margin-bottom: 12px;
    }

    .hero-desc {
        font-size: 15px;
        line-height: 1.65;
        margin-bottom: 18px;
    }

    .hero-actions {
        gap: 8px;
        margin-bottom: 16px;
    }

    .hero-actions .btn-primary-custom,
    .hero-actions .btn-outline-custom {
        width: 100%;
    }

    .hero-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hero-meta-item {
        padding: 10px 12px;
    }

    .hero-meta-item strong {
        font-size: 16px;
    }

    .hero-meta-item span {
        font-size: 13px;
    }

    .hero-visual {
        margin-top: 8px;
    }

    .hero-panel {
        padding: 16px;
        border-radius: 6px;
        margin-top: 12px;
    }

    .hero-card-main {
        padding: 18px;
        border-radius: 6px;
    }

    .hero-card-main h4 {
        font-size: 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-box {
        padding: 14px;
        border-radius: 5px;
    }

    .hero-floating {
        display: none;
    }

    /* Banner */
    .home-banner-card,
    .home-banner-image,
    .home-banner-image img,
    .home-banner-text {
        min-height: 220px !important;
    }

    .home-banner-overlay,
    .home-banner-text {
        padding: 24px 18px !important;
    }

    .home-banner-overlay {
        background: linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.86) 0%,
            rgba(15, 23, 42, 0.72) 100%
        );
    }

    .home-banner-content h2,
    .home-banner-text h2 {
        font-size: 25px;
        line-height: 1.18;
        margin-bottom: 10px;
    }

    .home-banner-content p,
    .home-banner-text p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    /* Cards */
    .feature-card,
    .info-card,
    .category-card,
    .detail-box,
    .sidebar-box,
    .contact-box {
        padding: 18px;
        border-radius: 6px;
    }

    .feature-icon {
        width: 46px;
        height: 46px;
        font-size: 21px;
        margin-bottom: 12px;
    }

    .category-card h5,
    .info-card h5,
    .feature-card h4 {
        font-size: 18px;
        line-height: 1.3;
    }

    .category-card p,
    .info-card p,
    .feature-card p {
        font-size: 14px;
    }

    .course-img,
    .post-img {
        height: 185px !important;
    }

    .course-card .card-body,
    .post-card .card-body {
        padding: 18px;
    }

    .course-card h3,
    .post-card h3 {
        font-size: 18px;
        line-height: 1.35;
    }

    .card-meta {
        font-size: 13px;
    }

    .price {
        font-size: 17px;
    }

    /* Forms */
    .detail-box form .row,
    form.row {
        row-gap: 12px;
    }

    .form-label {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .form-control,
    .form-select {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 4px;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        padding: 11px 16px;
        font-size: 14px;
        border-radius: 4px;
    }

    .btn-sm.btn-primary-custom,
    .btn-sm.btn-outline-custom {
        width: auto;
        padding: 8px 12px;
        font-size: 13px;
    }

    /* CTA */
    .cta-panel {
        padding: 24px 18px;
        border-radius: 6px;
    }

    .cta-panel h2 {
        font-size: 25px;
        line-height: 1.18;
    }

    .cta-panel p {
        font-size: 14px;
        line-height: 1.65;
    }

    .cta-panel .d-flex {
        flex-direction: column;
        gap: 8px !important;
    }

    /* Detail content */
    .detail-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .detail-content h1 {
        font-size: 27px;
    }

    .detail-content h2 {
        font-size: 24px;
    }

    .detail-content h3 {
        font-size: 21px;
    }

    .detail-content img {
        border-radius: 5px;
    }

    .detail-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Footer */
    .footer {
        padding-top: 42px;
    }

    .footer h5 {
        margin-top: 8px;
        margin-bottom: 10px;
        font-size: 17px;
    }

    .footer p,
    .footer li,
    .footer a {
        font-size: 14px;
    }

    .footer-bottom {
        margin-top: 22px;
        padding: 14px 0;
        font-size: 13px;
    }
}

/* Điện thoại nhỏ */
@media (max-width: 575.98px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .topbar {
        display: none;
    }

    .navbar-brand {
        font-size: 16px;
    }

    .navbar-brand img {
        max-height: 34px;
    }

    .page-header {
        padding: 24px 0 26px !important;
    }

    .page-header h1 {
        font-size: 25px !important;
    }

    .hero-section {
        padding: 34px 0 38px !important;
    }

    .hero-title {
        font-size: 28px !important;
    }

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

    .section-padding {
        padding: 36px 0 !important;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .course-img,
    .post-img {
        height: 170px !important;
    }

    .course-card .card-body,
    .post-card .card-body,
    .feature-card,
    .info-card,
    .category-card,
    .detail-box,
    .sidebar-box,
    .contact-box {
        padding: 16px;
    }

    .home-banner-content h2,
    .home-banner-text h2,
    .cta-panel h2 {
        font-size: 23px;
    }

    .home-banner-card,
    .home-banner-image,
    .home-banner-image img,
    .home-banner-text {
        min-height: 205px !important;
    }

    .scroll-top {
        width: 40px;
        height: 40px;
        right: 14px;
        bottom: 14px;
    }
}

/* Chống tràn ngang mobile */
@media (max-width: 991.98px) {
    .row {
        margin-left: 0;
        margin-right: 0;
    }

    [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }

    .container .row {
        margin-left: -8px;
        margin-right: -8px;
    }

    img,
    iframe,
    video {
        max-width: 100%;
    }
}
/* =========================
   HOME CATEGORY COMPACT
========================= */

.home-category-compact-section {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
}

.home-category-compact-section .section-title {
    margin-bottom: 24px !important;
}

.home-category-compact-section .section-title p {
    display: none !important;
}

.home-category-compact-row {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 14px;
}

.home-category-compact-card {
    min-height: 88px !important;
    padding: 18px 20px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.home-category-compact-card::before {
    display: none !important;
}

.home-category-compact-card .feature-icon,
.home-category-compact-card p {
    display: none !important;
}

.home-category-compact-card h5 {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
}

@media (max-width: 991.98px) {
    .home-category-compact-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .home-category-compact-section .section-title {
        margin-bottom: 18px !important;
    }

    .home-category-compact-card {
        min-height: 76px !important;
        padding: 14px 16px !important;
    }

    .home-category-compact-card h5 {
        font-size: 17px !important;
    }
}

@media (max-width: 575.98px) {
    .home-category-compact-card {
        min-height: 68px !important;
        padding: 12px 14px !important;
        border-radius: 6px !important;
    }

    .home-category-compact-card h5 {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }
}
/* =========================
   FIX COURSE DETAIL BROKEN LAYOUT
========================= */

.course-detail-page .row {
    min-width: 0;
}

.course-detail-page [class*="col-"] {
    min-width: 0;
}

.detail-content,
.detail-content * {
    max-width: 100%;
}

.detail-content img,
.detail-content iframe,
.detail-content video {
    max-width: 100%;
}

.detail-content table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.register-course-box {
    height: auto !important;
    min-height: auto !important;
}

@media (max-width: 991.98px) {
    .course-detail-page .sidebar-box {
        margin-top: 0;
    }
}
/* =========================================================
   HERO MODERN - SaaS / Agency style
========================================================= */

.hero-modern-section {
    position: relative;
    overflow: hidden;
    padding: 86px 0 92px;
    background:
        linear-gradient(rgba(37, 99, 235, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, .055) 1px, transparent 1px),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    background-size: 42px 42px, 42px 42px, auto;
    border-bottom: 1px solid #e2e8f0;
}

.hero-modern-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-modern-bg::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -180px;
    background: radial-gradient(circle, rgba(37, 99, 235, .18), transparent 65%);
    filter: blur(4px);
}

.hero-modern-bg::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: -150px;
    bottom: -190px;
    background: radial-gradient(circle, rgba(6, 182, 212, .18), transparent 65%);
    filter: blur(4px);
}

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

.hero-modern-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 4px;
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid #bfdbfe;
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: 18px;
}

.hero-modern-title {
    margin: 0 0 18px;
    color: var(--dark);
    font-size: clamp(40px, 5vw, 68px);
    line-height: .98;
    font-weight: 950;
    letter-spacing: -0.065em;
    max-width: 760px;
}

.hero-modern-desc {
    margin: 0;
    color: #475569;
    font-size: 18px;
    line-height: 1.75;
    max-width: 640px;
}

.hero-modern-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-modern-primary,
.hero-modern-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 13px 22px;
    border-radius: 5px;
    font-weight: 850;
    transition: all .22s ease;
}

.hero-modern-primary {
    color: #ffffff !important;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 14px 30px rgba(37, 99, 235, .22);
}

.hero-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(37, 99, 235, .28);
}

.hero-modern-secondary {
    color: var(--dark) !important;
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

.hero-modern-secondary:hover {
    color: var(--primary) !important;
    border-color: var(--primary);
    background: #f8fafc;
    transform: translateY(-2px);
}

.hero-modern-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 560px;
    margin-top: 34px;
}

.trust-item {
    padding: 16px 18px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.trust-item strong {
    display: block;
    color: var(--dark);
    font-size: 22px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.035em;
    margin-bottom: 6px;
}

.trust-item span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
}

/* Right visual */
.hero-modern-visual {
    position: relative;
    z-index: 2;
    min-height: 520px;
}

.hero-modern-card-main {
    position: relative;
    z-index: 2;
    margin-left: auto;
    width: min(100%, 610px);
    border-radius: 16px;
    padding: 18px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(203, 213, 225, .86);
    box-shadow: 0 30px 80px rgba(15, 23, 42, .16);
    backdrop-filter: blur(18px);
}

.hero-modern-image {
    width: 100%;
    height: 430px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.mock-browser {
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.mock-browser-top {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.mock-browser-top span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #cbd5e1;
}

.mock-browser-body {
    min-height: 385px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, .9), rgba(236, 254, 255, .78)),
        #ffffff;
}

.mock-hero-line {
    border-radius: 999px;
    background: linear-gradient(90deg, #0f172a, #2563eb);
}

.mock-hero-line.large {
    width: 72%;
    height: 22px;
    margin-bottom: 14px;
}

.mock-hero-line.medium {
    width: 48%;
    height: 12px;
    opacity: .55;
    margin-bottom: 30px;
}

.mock-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mock-stat {
    padding: 20px;
    min-height: 130px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}

.mock-stat i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--primary);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    font-size: 20px;
    margin-bottom: 14px;
}

.mock-stat strong {
    display: block;
    color: var(--dark);
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 4px;
}

.mock-stat span {
    color: #64748b;
    font-size: 13px;
}

.hero-modern-floating {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 280px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .14);
    backdrop-filter: blur(14px);
}

.hero-modern-floating i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    flex-shrink: 0;
}

.hero-modern-floating strong {
    display: block;
    color: var(--dark);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
}

.hero-modern-floating span {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.hero-modern-floating-top {
    top: 38px;
    left: -24px;
}

.hero-modern-floating-bottom {
    right: -22px;
    bottom: 38px;
}

.hero-modern-shape {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 1;
}

.hero-modern-shape.one {
    width: 210px;
    height: 210px;
    right: -40px;
    top: 20px;
    background: rgba(37, 99, 235, .13);
}

.hero-modern-shape.two {
    width: 150px;
    height: 150px;
    left: 40px;
    bottom: 30px;
    background: rgba(6, 182, 212, .14);
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-modern-section {
        padding: 58px 0 64px;
    }

    .hero-modern-title {
        font-size: 42px;
        line-height: 1.06;
    }

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

    .hero-modern-trust {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .hero-modern-visual {
        min-height: auto;
        margin-top: 16px;
    }

    .hero-modern-card-main {
        margin: 0;
    }

    .hero-modern-floating {
        display: none;
    }

    .hero-modern-image {
        height: 340px;
    }

    .mock-browser-body {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .hero-modern-section {
        padding: 42px 0 48px;
        background-size: 30px 30px, 30px 30px, auto;
    }

    .hero-modern-badge {
        font-size: 11px;
        padding: 6px 10px;
        margin-bottom: 14px;
    }

    .hero-modern-title {
        font-size: 32px;
        letter-spacing: -0.05em;
    }

    .hero-modern-desc {
        font-size: 15px;
        line-height: 1.65;
    }

    .hero-modern-actions {
        margin-top: 22px;
        gap: 9px;
    }

    .hero-modern-primary,
    .hero-modern-secondary {
        width: 100%;
        min-height: 46px;
        padding: 11px 16px;
    }

    .trust-item {
        padding: 13px 14px;
    }

    .trust-item strong {
        font-size: 19px;
    }

    .hero-modern-card-main {
        padding: 10px;
        border-radius: 10px;
    }

    .hero-modern-image {
        height: 240px;
        border-radius: 8px;
    }

    .mock-browser {
        border-radius: 8px;
    }

    .mock-browser-top {
        height: 38px;
        padding: 0 12px;
    }

    .mock-browser-body {
        padding: 16px;
    }

    .mock-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mock-stat {
        min-height: auto;
        padding: 14px;
    }

    .hero-modern-shape {
        display: none;
    }
}
/* =========================================================
   GLOBAL LUXURY EFFECTS
   Áp dụng hiệu ứng mềm, hiện đại cho toàn website
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(37, 99, 235, 0.18);
    color: #0f172a;
}

/* Hiệu ứng vào trang */
body {
    animation: pageFadeIn .45s ease both;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header sang hơn */
.main-header {
    transition: all .25s ease;
    box-shadow: 0 1px 0 rgba(226, 232, 240, .85);
}

.main-header.sticky-top {
    backdrop-filter: blur(14px);
}

/* Nút sang hơn */
.btn,
.btn-primary-custom,
.btn-outline-custom,
.btn-main {
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease, color .22s ease;
}

.btn-primary-custom::after,
.btn-main::after,
.hero-modern-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255,255,255,.28) 45%,
        transparent 100%
    );
    transform: skewX(-18deg);
    transition: left .55s ease;
    pointer-events: none;
}

.btn-primary-custom:hover::after,
.btn-main:hover::after,
.hero-modern-primary:hover::after {
    left: 140%;
}

.btn-primary-custom:hover,
.btn-main:hover,
.btn-outline-custom:hover {
    transform: translateY(-2px);
}

/* Card hover đồng bộ */
.course-card,
.post-card,
.category-card,
.info-card,
.feature-card,
.detail-box,
.sidebar-box,
.contact-register-info,
.register-course-box,
.contact-info-card,
.contact-form-card,
.home-banner-card,
.cta-panel,
.card-admin {
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}

.course-card:hover,
.post-card:hover,
.category-card:hover,
.info-card:hover,
.feature-card:hover,
.detail-box:hover,
.sidebar-box:hover,
.contact-register-info:hover,
.register-course-box:hover,
.contact-info-card:hover,
.contact-form-card:hover,
.home-banner-card:hover,
.cta-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, .28);
    box-shadow: 0 22px 55px rgba(15, 23, 42, .10);
}

/* Ảnh zoom nhẹ */
.course-img,
.post-img,
.home-banner-image,
.course-cover,
.mock-browser,
.hero-modern-card-main {
    overflow: hidden;
}

.course-img img,
.post-img img,
.home-banner-image img,
.course-cover img,
.hero-modern-image {
    transition: transform .55s ease, filter .55s ease;
}

.course-card:hover .course-img img,
.post-card:hover .post-img img,
.home-banner-card:hover .home-banner-image img,
.course-cover:hover img,
.hero-modern-card-main:hover .hero-modern-image {
    transform: scale(1.035);
    filter: saturate(1.06) contrast(1.02);
}

/* Input focus đẹp hơn */
.form-control,
.form-select {
    transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(37, 99, 235, .65);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

/* Page header mềm hơn */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    top: -210px;
    background: radial-gradient(circle, rgba(37, 99, 235, .13), transparent 65%);
    pointer-events: none;
}

.page-header::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    left: -160px;
    bottom: -220px;
    background: radial-gradient(circle, rgba(6, 182, 212, .12), transparent 65%);
    pointer-events: none;
}

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

/* Reveal on scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .62s ease, transform .62s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Giảm hiệu ứng nếu thiết bị yêu cầu */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}
/* =========================================================
   FLOATING CONTACT
   PC: left vertical
   Mobile: bottom bar
========================================================= */

.floating-contact-pc {
    position: fixed;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 990;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-contact-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 48px;
    height: 48px;
    text-decoration: none;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    transition: all .22s ease;
}

.floating-contact-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 20px;
}

.floating-contact-text {
    max-width: 0;
    white-space: nowrap;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    color: #0f172a;
    font-weight: 850;
    font-size: 14px;
    transition: all .22s ease;
}

.floating-contact-item:hover {
    min-width: 170px;
    transform: translateX(4px);
}

.floating-contact-item:hover .floating-contact-text {
    max-width: 180px;
    opacity: 1;
    padding-right: 16px;
}

.floating-hotline .floating-contact-icon {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.floating-facebook .floating-contact-icon {
    background: linear-gradient(135deg, #1877f2, #2563eb);
}

.floating-register .floating-contact-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.floating-contact-mobile {
    display: none;
}

/* Mobile bottom bar */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 72px;
    }

    .floating-contact-pc {
        display: none;
    }

    .floating-contact-mobile {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 991;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid #e2e8f0;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(14px);
    }

    .mobile-contact-item {
        min-height: 48px;
        border-radius: 8px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        color: #ffffff !important;
        font-weight: 850;
        font-size: 11px;
        line-height: 1.1;
    }

    .mobile-contact-item i {
        font-size: 18px;
        line-height: 1;
    }

    .mobile-hotline {
        background: linear-gradient(135deg, #dc2626, #f97316);
    }

    .mobile-facebook {
        background: linear-gradient(135deg, #1877f2, #2563eb);
    }

    .mobile-register {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
    }

    .scroll-top {
        bottom: 86px !important;
    }
}

@media (max-width: 360px) {
    .floating-contact-mobile {
        left: 6px;
        right: 6px;
        bottom: 6px;
        gap: 6px;
        padding: 6px;
    }

    .mobile-contact-item {
        min-height: 44px;
        font-size: 10px;
    }

    .mobile-contact-item i {
        font-size: 16px;
    }
}
/* =========================================================
   DISABLE PAGE TRANSITION
   Tắt hiệu ứng chuyển trang
========================================================= */

body {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Nếu trước đó có khai báo pageFadeIn thì block này sẽ vô hiệu hóa */
@keyframes pageFadeIn {
    from {
        opacity: 1;
        transform: none;
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* =========================================================
   FLOATING CONTACT - FIXED BOTTOM LEFT + MOTION
   PC: cố định góc trái dưới khi cuộn
   Mobile: thanh ngang dưới màn hình
========================================================= */

/* PC wrapper */
.floating-contact-pc {
    position: fixed !important;
    left: 18px !important;
    bottom: 24px !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    z-index: 9999 !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;

    width: auto !important;
    height: auto !important;
    pointer-events: auto !important;
}

/* Chống bị footer hoặc main kéo xuống */
.footer .floating-contact-pc,
main .floating-contact-pc,
header .floating-contact-pc {
    position: fixed !important;
}

/* PC item */
.floating-contact-pc .floating-contact-item {
    position: relative !important;

    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;

    display: inline-flex !important;
    align-items: center !important;

    border-radius: 999px !important;
    overflow: visible !important;
    text-decoration: none !important;

    background: rgba(255, 255, 255, .96) !important;
    border: 1px solid rgba(226, 232, 240, .96) !important;
    box-shadow:
        0 16px 38px rgba(15, 23, 42, .18),
        0 0 0 0 rgba(37, 99, 235, .18) !important;

    backdrop-filter: blur(14px);
    animation: contactFloatFixed 3.2s ease-in-out infinite;
    transition: all .25s ease;
}

/* Mỗi nút lệch nhịp cho tự nhiên */
.floating-contact-pc .floating-contact-item:nth-child(1) {
    animation-delay: 0s;
}

.floating-contact-pc .floating-contact-item:nth-child(2) {
    animation-delay: .35s;
}

.floating-contact-pc .floating-contact-item:nth-child(3) {
    animation-delay: .7s;
}

/* Vòng sáng sau nút */
.floating-contact-pc .floating-contact-item::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 999px;
    opacity: .55;
    z-index: -1;
    animation: contactHaloFixed 2.4s ease-out infinite;
}

.floating-contact-pc .floating-hotline::after {
    background: rgba(220, 38, 38, .22);
}

.floating-contact-pc .floating-facebook::after {
    background: rgba(24, 119, 242, .22);
}

.floating-contact-pc .floating-register::after {
    background: rgba(37, 99, 235, .22);
}

/* Ánh quét */
.floating-contact-pc .floating-contact-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 80%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, .52) 45%,
        transparent 100%
    );
    transform: skewX(-18deg);
    transition: left .55s ease;
    pointer-events: none;
}

.floating-contact-pc .floating-contact-item:hover::before {
    left: 145%;
}

/* Icon */
.floating-contact-pc .floating-contact-icon {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #ffffff !important;
    font-size: 22px !important;
    border-radius: 999px !important;
    position: relative !important;
    z-index: 2 !important;
}

.floating-contact-pc .floating-contact-icon i {
    animation: contactIconWiggleFixed 2.8s ease-in-out infinite;
}

.floating-contact-pc .floating-contact-item:nth-child(1) .floating-contact-icon i {
    animation-delay: .2s;
}

.floating-contact-pc .floating-contact-item:nth-child(2) .floating-contact-icon i {
    animation-delay: .55s;
}

.floating-contact-pc .floating-contact-item:nth-child(3) .floating-contact-icon i {
    animation-delay: .9s;
}

/* Text */
.floating-contact-pc .floating-contact-text {
    max-width: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    white-space: nowrap !important;
    padding: 0 !important;

    color: #0f172a !important;
    font-weight: 850 !important;
    font-size: 14px !important;

    transition: all .25s ease;
}

/* Hover bung chữ */
.floating-contact-pc .floating-contact-item:hover {
    width: auto !important;
    min-width: 182px !important;
    transform: translateX(5px) translateY(-4px) scale(1.02) !important;
    box-shadow:
        0 22px 52px rgba(15, 23, 42, .24),
        0 0 0 5px rgba(37, 99, 235, .06) !important;
    animation-play-state: paused;
}

.floating-contact-pc .floating-contact-item:hover .floating-contact-text {
    max-width: 190px !important;
    opacity: 1 !important;
    padding-right: 16px !important;
}

/* Màu từng nút */
.floating-contact-pc .floating-hotline .floating-contact-icon {
    background: linear-gradient(135deg, #dc2626, #f97316) !important;
}

.floating-contact-pc .floating-facebook .floating-contact-icon {
    background: linear-gradient(135deg, #1877f2, #2563eb) !important;
}

.floating-contact-pc .floating-register .floating-contact-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
}

/* Animation PC */
@keyframes contactFloatFixed {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes contactHaloFixed {
    0% {
        transform: scale(.92);
        opacity: .50;
    }

    70% {
        transform: scale(1.22);
        opacity: 0;
    }

    100% {
        transform: scale(1.22);
        opacity: 0;
    }
}

@keyframes contactIconWiggleFixed {
    0%, 78%, 100% {
        transform: rotate(0deg) scale(1);
    }

    82% {
        transform: rotate(-10deg) scale(1.08);
    }

    86% {
        transform: rotate(9deg) scale(1.08);
    }

    90% {
        transform: rotate(-6deg) scale(1.06);
    }

    94% {
        transform: rotate(4deg) scale(1.04);
    }
}

/* Mobile mặc định ẩn */
.floating-contact-mobile {
    display: none;
}

/* Mobile bottom bar */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 78px !important;
    }

    .floating-contact-pc {
        display: none !important;
    }

    .floating-contact-mobile {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        top: auto !important;
        z-index: 9999 !important;

        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;

        padding: 8px !important;
        border-radius: 16px !important;
        background: rgba(255, 255, 255, .95) !important;
        border: 1px solid rgba(226, 232, 240, .98) !important;
        box-shadow: 0 18px 46px rgba(15, 23, 42, .22) !important;
        backdrop-filter: blur(16px);
        animation: mobileContactBarFloatFixed 3.2s ease-in-out infinite;
    }

    .mobile-contact-item {
        min-height: 52px !important;
        border-radius: 12px !important;

        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;

        text-decoration: none !important;
        color: #ffffff !important;
        font-weight: 850 !important;
        font-size: 11px !important;
        line-height: 1.1 !important;

        position: relative !important;
        overflow: hidden !important;
        box-shadow: 0 10px 22px rgba(15, 23, 42, .18) !important;
    }

    .mobile-contact-item i {
        font-size: 19px !important;
        line-height: 1 !important;
        animation: contactIconWiggleFixed 2.8s ease-in-out infinite;
    }

    .mobile-contact-item:nth-child(1) i {
        animation-delay: .2s;
    }

    .mobile-contact-item:nth-child(2) i {
        animation-delay: .55s;
    }

    .mobile-contact-item:nth-child(3) i {
        animation-delay: .9s;
    }

    .mobile-contact-item::after {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 80%;
        height: 100%;
        background: linear-gradient(
            110deg,
            transparent 0%,
            rgba(255, 255, 255, .30) 45%,
            transparent 100%
        );
        transform: skewX(-18deg);
        animation: mobileContactShineFixed 3.4s ease-in-out infinite;
        pointer-events: none;
    }

    .mobile-contact-item:nth-child(1)::after {
        animation-delay: 0s;
    }

    .mobile-contact-item:nth-child(2)::after {
        animation-delay: .45s;
    }

    .mobile-contact-item:nth-child(3)::after {
        animation-delay: .9s;
    }

    .mobile-hotline {
        background: linear-gradient(135deg, #dc2626, #f97316) !important;
    }

    .mobile-facebook {
        background: linear-gradient(135deg, #1877f2, #2563eb) !important;
    }

    .mobile-register {
        background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    }

    .scroll-top {
        bottom: 94px !important;
    }

    @keyframes mobileContactBarFloatFixed {
        0%, 100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-4px);
        }
    }

    @keyframes mobileContactShineFixed {
        0%, 65% {
            left: -120%;
        }

        100% {
            left: 140%;
        }
    }
}

@media (max-width: 360px) {
    .floating-contact-mobile {
        left: 6px !important;
        right: 6px !important;
        bottom: 6px !important;
        gap: 6px !important;
        padding: 6px !important;
    }

    .mobile-contact-item {
        min-height: 46px !important;
        font-size: 10px !important;
    }

    .mobile-contact-item i {
        font-size: 16px !important;
    }
}

/* Người dùng bật giảm chuyển động thì tắt animation */
@media (prefers-reduced-motion: reduce) {
    .floating-contact-pc .floating-contact-item,
    .floating-contact-pc .floating-contact-item::after,
    .floating-contact-pc .floating-contact-icon i,
    .floating-contact-mobile,
    .mobile-contact-item i,
    .mobile-contact-item::after {
        animation: none !important;
    }
}