/* ============================================================
   Htet Htet Chinese Language School — Modern Design System
   ============================================================ */

:root {
    /* Brand palette */
    --brand-red: #e8112d;
    --brand-red-deep: #b30c22;
    --brand-blue: #0e8dd6;
    --brand-blue-deep: #07639c;
    --gold: #f5a623;

    /* Neutrals */
    --ink: #101828;
    --ink-soft: #344054;
    --muted: #667085;
    --line: #eaecf0;
    --border: #d1d5db;
    --surface: #ffffff;
    --white: #ffffff;
    --bg: #f7f9fc;
    --dark: #0a1220;
    --dark-2: #0f1a2e;

    /* Soft tints */
    --tint-red: #fef0f1;
    --tint-blue: #ebf6ff;
    --tint-gold: #fff7e8;

    /* Effects */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-sm: 0 4px 12px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 12px 32px rgba(16, 24, 40, 0.10);
    --shadow-lg: 0 24px 64px rgba(16, 24, 40, 0.14);
    --glow-red: 0 14px 34px rgba(232, 17, 45, 0.28);
    --glow-blue: 0 14px 34px rgba(14, 141, 214, 0.28);
    --grad-brand: linear-gradient(100deg, var(--brand-red), var(--brand-blue));
    --grad-hero: radial-gradient(60% 90% at 85% 10%, rgba(14, 141, 214, .16), transparent 60%),
                 radial-gradient(50% 70% at 8% 85%, rgba(232, 17, 45, .13), transparent 60%);
}

@font-face {
    font-family: "myfont";
    /* src: url("../fonts/myanmarangoun.ttf") format("truetype"); */
    src: url("../fonts/MyanmarChatu.ttf") format("truetype");
}

* {
    box-sizing: border-box;
    font-family: "myfont";
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.75;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

::selection { background: var(--brand-blue); color: #fff; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--brand-red), var(--brand-blue));
    border-radius: 99px;
    border: 2px solid var(--bg);
}

/* ============================================================
   NAVBAR — glass, sticky
   ============================================================ */
.topbar {
    padding: 7px 0;
    color: #dbe7f3;
    background: var(--dark);
    font-size: .82rem;
    font-weight: 700;
}

.topbar a { color: #fff; transition: opacity .2s; }
.topbar a:hover { opacity: .75; }
.topbar .social-dot {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; margin-left: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    transition: background .25s, transform .25s;
}
.topbar .social-dot:hover { background: var(--brand-blue); transform: translateY(-2px); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .82);
    border-bottom: 1px solid rgba(234, 236, 240, .8);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    transition: box-shadow .3s ease, background .3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-md);
}

.brand-logo {
    width: 168px;
    max-width: 46vw;
    height: auto;
    transition: width .25s;
}

.site-header.scrolled .brand-logo { width: 148px; }

.navbar-nav .nav-link {
    position: relative;
    margin: 0 2px;
    padding: 9px 15px !important;
    border-radius: 999px;
    color: var(--ink-soft);
    font-weight: 700;
    transition: color .22s, background .22s;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 3px;
    width: 0; height: 2.5px;
    border-radius: 2px;
    background: var(--grad-brand);
    transform: translateX(-50%);
    transition: width .28s cubic-bezier(.4, 0, .2, 1);
}

.navbar-nav .nav-link:hover { color: var(--brand-blue); }

.navbar-nav .nav-link.active { color: var(--brand-red); }
.navbar-nav .nav-link.active::after { width: 22px; }

.navbar-nav .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    padding: 8px;
    min-width: 160px;
    margin-top: 8px;
}

.navbar-nav .dropdown-item {
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink);
    transition: background .2s, color .2s;
}

.navbar-nav .dropdown-item:hover {
    background: var(--brand-red);
    color: var(--white);
}

.navbar-nav .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-nav .dropdown-toggle::after {
    display: none !important;
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
}

.navbar-toggler {
    border: 0;
    padding: 6px;
    outline: none;
    position: relative;
    width: 36px;
    height: 36px;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
    background-image: none;
    position: relative;
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: background .2s ease;
    margin: 0 auto;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease;
}
.navbar-toggler-icon::before { top: -7px; }
.navbar-toggler-icon::after  { top: 7px; }

/* Cross when menu is open */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--brand-red);
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--brand-red);
}

/* ---------- Buttons ---------- */
.btn-brand,
.btn-outline,
.btn-white,
.btn-blue {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    overflow: hidden;
    isolation: isolate;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, filter .25s;
}

.btn-brand {
    color: #fff;
    background: var(--grad-brand);
    background-size: 160% 160%;
    box-shadow: var(--glow-red);
}
.btn-brand:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 44px rgba(232, 17, 45, .35);
    filter: saturate(1.1);
}
.btn-brand:active { transform: translateY(-1px); }

.btn-blue {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
    box-shadow: 0 8px 24px rgba(14, 141, 214, .3);
}
.btn-blue:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 38px rgba(14, 141, 214, .35);
    filter: saturate(1.1);
}
.btn-blue:active { transform: translateY(-1px); }

.btn-outline {
    color: var(--ink);
    background: rgba(255,255,255,.75);
    border: 1.5px solid var(--line);
    backdrop-filter: blur(6px);
}
.btn-outline:hover {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
    transform: translateY(-3px);
    box-shadow: var(--glow-blue);
}

.btn-white {
    color: var(--dark);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.btn-white:hover { color: var(--brand-red); transform: translateY(-3px); }

.btn-glow { animation: pulseGlow 2.6s infinite; }
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 17, 45, .35); }
    55%      { box-shadow: 0 0 0 14px rgba(232, 17, 45, 0); }
}

.nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px;
    padding: 9px 18px;
    border-radius: 999px;
    color: #fff !important;
    background: var(--grad-brand);
    font-weight: 800;
    box-shadow: var(--glow-red);
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(232,17,45,.36); }

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 4px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 3px;
}
.lang-btn {
    border: 0;
    background: transparent;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    font-family: inherit;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active {
    background: var(--white);
    color: var(--brand-red);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.flag-icon {
    font-size: 1rem;
    margin-right: 4px;
    line-height: 1;
}

.text-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--brand-blue);
    font-weight: 800;
}
.text-link i { transition: transform .25s; }
.text-link:hover i { transform: translateX(5px); }
.text-link.red { color: var(--brand-red); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 110px;
    background:
        var(--grad-hero),
        linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.hero-grid-lines {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(16,24,40,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16,24,40,.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(75% 65% at 50% 35%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(75% 65% at 50% 35%, #000 30%, transparent 100%);
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    pointer-events: none;
    animation: floatBlob 11s ease-in-out infinite alternate;
}
.blob-red  { top: -120px; right: -80px;  width: 420px; height: 420px; background: rgba(232,17,45,.16); }
.blob-blue { bottom: -140px; left: -100px; width: 480px; height: 480px; background: rgba(14,141,214,.18); animation-delay: -5s; }

@keyframes floatBlob {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, 40px) scale(1.12); }
}

.hero-mark {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    border: 1px solid rgba(14,141,214,.25);
    border-radius: 999px;
    color: var(--brand-blue);
    background: rgba(235, 246, 255, .8);
    backdrop-filter: blur(4px);
    font-weight: 800;
    font-size: .88rem;
    animation: fadeUp .8s .05s both;
}
.hero-mark i { color: var(--brand-red); }

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
    background:
        radial-gradient(ellipse 70% 90% at 85% 15%, rgba(14,141,214,.12), transparent 55%),
        radial-gradient(ellipse 60% 80% at 5% 90%, rgba(232,17,45,.1), transparent 55%),
        linear-gradient(180deg, #f0f4ff 0%, var(--bg) 100%);
}
.page-hero::before {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,141,214,.08), transparent 70%);
    pointer-events: none;
}
.page-hero::after {
    content: "";
    position: absolute;
    bottom: -40px; left: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,17,45,.06), transparent 70%);
    pointer-events: none;
}

.hero h1,
.page-hero h1 {
    margin: 20px 0;
    /* font-size: clamp(1rem, 4.6vw, 3.8rem); */
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -.01em;
    animation: fadeUp .8s .15s both;
}

.grad-text {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead-text,
.page-hero p {
    max-width: 700px;
    color: var(--muted);
    font-size: 1.1rem;
    animation: fadeUp .8s .25s both;
}

.hero-actions {
    display: flex; flex-wrap: wrap; gap: 14px;
    margin-top: 32px;
    animation: fadeUp .8s .35s both;
}

.hero-trust {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
    margin-top: 34px;
    animation: fadeUp .8s .45s both;
}
.hero-trust span {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--muted); font-weight: 700; font-size: .92rem;
}
.hero-trust i { color: var(--gold); }

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

/* ---------- Hero visual panel ---------- */
.hero-panel-wrap { position: relative; animation: fadeUp .9s .3s both; }

.hero-card-main {
    position: relative;
    z-index: 2;
    padding: 26px;
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, var(--dark-2), var(--dark) 65%);
    color: #fff;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.hero-card-main::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(14,141,214,.28), transparent 55%),
        radial-gradient(100% 80% at 0% 100%, rgba(232,17,45,.22), transparent 50%);
    pointer-events: none;
}

.hero-badge-row {
    display: grid; grid-template-columns: 118px 1fr; gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius);
    background: rgba(255,255,255,.06);
}
.hero-badge-row img { width: 100%; border-radius: var(--radius-sm); background: #000; }

.eyebrow {
    display: block;
    color: #8fd0ff;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.hero-badge-row strong { display: block; font-size: 1.5rem; line-height: 1.2; font-weight: 900; }
.hero-badge-row small { color: #ffb3bd; font-weight: 800; }

.signature-block {
    margin-top: 16px;
    padding: 18px;
    border-left: 4px solid var(--brand-red);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(90deg, rgba(232,17,45,.14), transparent 45%),
        rgba(255,255,255,.05);
}
.signature-block h2 { margin: 6px 0; font-size: 1.28rem; line-height: 1.45; font-weight: 900; }
.signature-block p { margin: 0; color: #c2cfdf; font-size: .95rem; }

.metric-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    margin-top: 16px;
}
.metric {
    padding: 16px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.06);
    transition: transform .3s, background .3s;
}
.metric:hover { transform: translateY(-4px); background: rgba(255,255,255,.11); }
.metric strong {
    display: flex; align-items: center; gap: 8px;
    font-size: 1.3rem; line-height: 1;
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric span { color: #b7c5d6; font-size: .84rem; font-weight: 600; }

/* Floating mini card */
.float-chip {
    position: absolute; z-index: 3;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    font-weight: 800; font-size: .88rem;
    animation: floatChip 5s ease-in-out infinite alternate;
}
.float-chip i.chip-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px;
    color: #fff; font-size: .95rem;
}
.chip-a { top: -20px; right: 8px; }
.chip-b { bottom: -22px; left: -14px; animation-delay: -2.5s; }
.chip-a .chip-icon { background: var(--grad-brand); }
.chip-b .chip-icon { background: linear-gradient(135deg, #27ae60, #16a085); }

@keyframes floatChip {
    from { transform: translateY(-6px); }
    to   { transform: translateY(8px); }
}

/* ============================================================
   TICKER — Articles marquee
   ============================================================ */
.ticker {
    display: flex; align-items: stretch;
    overflow: hidden;
    background: #fff;
    border-block: 1px solid var(--line);
}
.ticker-label {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; gap: 9px;
    flex-shrink: 0;
    padding: 13px 20px;
    color: #fff; background: var(--grad-brand);
    font-weight: 900; white-space: nowrap;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
    padding-right: 30px;
}
.ticker-label .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #fff;
    animation: blinkDot 1.2s infinite;
}
@keyframes blinkDot { 50% { opacity: .25; } }

.ticker-view { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-track {
    display: flex; gap: 48px;
    white-space: nowrap;
    animation: tickerMove 28s linear infinite;
    padding-left: 24px;
}
.ticker-view:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--ink-soft); font-weight: 700; font-size: .95rem;
}
.ticker-track span i { color: var(--brand-red); }
.ticker-track a:hover { color: var(--brand-blue); }

@keyframes tickerMove {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 88px 0; position: relative; }
.section-tight { padding: 56px 0; }

.section-kicker {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--brand-red);
    font-size: .84rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.section-kicker::before {
    content: "";
    width: 26px; height: 3px;
    border-radius: 3px;
    background: var(--grad-brand);
}

.section-title {
    margin: 12px 0 14px;
    font-size: clamp(1.65rem, 3vw, 2.55rem);
    line-height: 1.28;
    font-weight: 900;
    letter-spacing: -.01em;
}

.section-copy { max-width: 720px; color: var(--muted); font-size: 1.03rem; }

.section-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    margin-top: -8px;
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(80% 120% at 90% 0%, rgba(14,141,214,.35), transparent 55%),
        radial-gradient(70% 110% at 5% 100%, rgba(232,17,45,.3), transparent 55%),
        linear-gradient(120deg, var(--dark-2), var(--dark));
}

.stat-cell { padding: 34px 18px; text-align: center; position: relative; }
.stat-cell + .stat-cell::before {
    content: "";
    position: absolute; left: 0; top: 22%;
    height: 56%; width: 1px;
    background: linear-gradient(transparent, rgba(255,255,255,.22), transparent);
}
@media (max-width: 767.98px) { .stat-cell + .stat-cell::before { display: none; } }

/* ============================================================
   IDENTITY SECTION
   ============================================================ */
.identity-section {
    background:
        radial-gradient(80% 120% at 90% 0%, rgba(14,141,214,.06), transparent 55%),
        radial-gradient(70% 110% at 5% 100%, rgba(232,17,45,.05), transparent 55%),
        var(--bg);
}
.identity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 991px) { .identity-grid { grid-template-columns: 1fr; } }

.identity-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 36px 30px;
    position: relative;
    transition: box-shadow .25s ease, transform .25s ease;
}
.identity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.06);
}
.identity-num {
    position: absolute;
    top: 20px; right: 24px;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--line);
    line-height: 1;
}
.identity-icon {
    width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px;
    font-size: 1.15rem;
    margin-bottom: 20px;
}
.identity-icon.red   { background: var(--tint-red);   color: var(--brand-red); }
.identity-icon.blue  { background: var(--tint-blue);  color: var(--brand-blue); }
.identity-icon.gold  { background: var(--tint-gold);  color: var(--gold); }
.identity-card h4 {
    font-family: 'myfont', sans-serif;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.6;
    font-weight: 800;
}
.identity-card p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   BAND — CTA section
   ============================================================ */
.band {
    background:
        radial-gradient(80% 120% at 90% 0%, rgba(14,141,214,.12), transparent 55%),
        radial-gradient(70% 110% at 5% 100%, rgba(232,17,45,.1), transparent 55%),
        var(--bg);
    border-radius: 20px;
}

/* Pill list */
.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.pill-list span {
    padding: 8px 20px;
    border-radius: 100px;
    background: var(--white);
    border: 1px solid var(--line);
    font-size: .88rem;
    color: var(--ink-soft);
    font-weight: 600;
    transition: border-color .2s ease, color .2s ease;
}
.pill-list span:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.stat-num {
    display: block;
    font-size: clamp(2.1rem, 3.6vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(90deg, #ff9aa8, #8fd0ff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: #aebbcd; font-weight: 700; font-size: .95rem; }

/* ============================================================
   CARDS — feature / post / course
   ============================================================ */
.card-modern {
    position: relative;
    height: 100%;
    padding: 28px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s, border-color .35s;
    overflow: hidden;
}
.card-modern::after {
    content: "";
    position: absolute; inset: 0 0 auto;
    height: 4px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(14,141,214,.35);
}
.card-modern:hover::after { transform: scaleX(1); }

.icon-box {
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px;
    margin-bottom: 18px;
    border-radius: 16px;
    color: var(--brand-blue);
    background: var(--tint-blue);
    font-size: 1.25rem;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .3s, color .3s;
}
.icon-box.red { color: var(--brand-red); background: var(--tint-red); }
.icon-box.gold { color: #d98600; background: var(--tint-gold); }
.card-modern:hover .icon-box { transform: scale(1.12) rotate(-6deg); }

.card-modern h3 { margin-bottom: 10px; font-size: 1.16rem; font-weight: 900; }
.card-modern p { color: var(--muted); margin-bottom: 0; font-size: .97rem; }

.card-index {
    position: absolute; top: 18px; right: 20px;
    font-size: 2.6rem; font-weight: 900; line-height: 1;
    color: rgba(16,24,40,.055);
    user-select: none;
}

/* ---------- Post & Course cards ---------- */
.post-card, .course-card {
    position: relative;
    display: flex; flex-direction: column;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s;
}
.post-card:hover, .course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.post-media, .course-media {
    position: relative;
    min-height: 170px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
    overflow: hidden;
}
.post-media::before, .course-media::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(255,255,255,.2), transparent 42%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px);
}

.row > [class*="col-"]:nth-child(even) .post-media,
.row > [class*="col-"]:nth-child(even) .course-media {
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-deep));
}

.media-icon {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 74px; height: 74px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    border: 1.5px solid rgba(255,255,255,.35);
    font-size: 1.7rem;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .3s;
}
.post-card:hover .media-icon, .course-card:hover .media-icon { transform: scale(1.12); background: rgba(255,255,255,.26); }

.play-pulse { position: relative; }
.play-pulse::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.55);
    animation: playPulse 1.8s infinite;
}
@keyframes playPulse {
    from { transform: scale(1); opacity: 1; }
    to   { transform: scale(1.55); opacity: 0; }
}

.badge-cat {
    position: absolute; top: 14px; left: 14px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(0,0,0,.28);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: .78rem; font-weight: 800;
    letter-spacing: .02em;
}

.post-body, .course-body {
    display: flex; flex-direction: column; flex: 1;
    padding: 22px;
}
.post-meta {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: .83rem; font-weight: 700;
}
.post-body h3, .course-body h3 {
    font-size: 1.12rem; font-weight: 900;
    transition: color .25s;
}
.post-card:hover h3, .course-card:hover h3 { color: var(--brand-blue); }
.course-body h3:hover { cursor: pointer; }
.post-body p, .course-body p {
    color: var(--muted); font-size: .94rem; margin-bottom: 16px;
}
.post-body .text-link, .course-body .text-link {
    margin-top: auto;
    font-size: .93rem;
}

/* ============================================================
   BLOG SECTION — smooth card design (home page)
   ============================================================ */
.blog-section .post-card-blog {
    position: relative;
    display: flex; flex-direction: column;
    height: 100%;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s;
    border: 1px solid var(--line);
}
.blog-section .post-card-blog:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.blog-section .post-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.blog-section .post-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.blog-section .post-card-blog:hover .post-thumb img {
    transform: scale(1.06);
}
.blog-section .post-tag {
    position: absolute; top: 14px; left: 14px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--grad-brand);
    color: #fff;
    font-size: .76rem; font-weight: 800;
    letter-spacing: .02em;
}

.blog-section .post-content {
    display: flex; flex-direction: column; flex: 1;
    padding: 22px 22px 24px;
}
.blog-section .post-content .post-meta {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: .82rem; font-weight: 600;
}
.blog-section .post-content .post-meta i {
    margin-right: 4px;
    color: var(--brand-red);
    font-size: .78rem;
}
.blog-section .post-content h3 {
    margin-bottom: 8px;
    font-size: 1.08rem; font-weight: 900;
    line-height: 1.4;
    transition: color .25s;
}
.blog-section .post-card-blog:hover .post-content h3 {
    color: var(--brand-blue);
}
.blog-section .post-content p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}
.blog-section .post-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--brand-blue);
    font-weight: 800; font-size: .88rem;
    transition: gap .25s, color .25s;
}
.blog-section .post-link:hover {
    color: var(--brand-red);
    gap: 12px;
}
.blog-section .post-link i {
    font-size: .72rem;
    transition: transform .25s;
}
.blog-section .post-card-blog:hover .post-link i {
    transform: translateX(3px);
}



/* Blog filter buttons */
.blog-filter {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: flex-end;
}
.filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
    font-weight: 700; font-size: .88rem;
    cursor: pointer;
    transition: all .25s;
}
.filter-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}
.filter-btn.active {
    background: var(--grad-brand);
    color: #fff;
    border-color: transparent;
}

/* ============================================================
   Learn - YouTube Player
   ============================================================ */
.course-featured {
    background: var(--bg);
}
.course-player-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}
.course-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.course-player iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Custom YouTube-style video player */
.video-player {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.player-poster {
    position: absolute;
    inset: 0;
    background: #000;
    cursor: pointer;
}
.player-poster img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .85;
}
.player-duration {
    position: absolute;
    bottom: 10px; right: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(0,0,0,.8);
    color: #fff;
    font-size: .75rem; font-weight: 700;
}
.player-main-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 72px; height: 72px;
    border-radius: 50%;
    border: 0;
    background: rgba(232,17,45,.95);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    transition: transform .25s ease, background .25s ease;
}
.player-main-play:hover {
    background: var(--brand-red-deep);
    transform: translate(-50%, -50%) scale(1.08);
}
.player-frame {
    position: absolute;
    inset: 0;
}
.player-frame iframe {
    width: 100%; height: 100%;
    border: 0;
}
.player-overlay {
    position: absolute;
    inset: 0;
    display: none;
}
.player-controls {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 8px 14px 12px;
    background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.4));
    z-index: 5;
}
.player-progress {
    position: relative;
    height: 4px;
    margin-bottom: 10px;
    border-radius: 2px;
    background: rgba(255,255,255,.3);
    cursor: pointer;
}
.player-progress-filled {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: var(--brand-red);
}
.player-progress-thumb {
    position: absolute;
    top: 50%;
    width: 12px; height: 12px;
    left: 0%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--brand-red);
    box-shadow: 0 0 6px rgba(0,0,0,.4);
}
.player-controls-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.player-controls-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.player-btn {
    width: 36px; height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: background .2s ease;
}
.player-btn:hover {
    background: rgba(255,255,255,.15);
}
.player-volume-track {
    position: relative;
    width: 70px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.3);
    cursor: pointer;
}
.player-volume-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 100%;
    border-radius: 2px;
    background: #fff;
}
.player-time {
    margin-left: auto;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
}

.course-info h2 {
    font-size: 1.6rem; font-weight: 900;
    margin: 12px 0;
}
.course-info p {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.7;
}
.course-meta-list {
    margin-top: 20px;
}
.course-meta-item {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
    font-size: .92rem; font-weight: 600;
    color: var(--ink-soft);
}
.course-meta-item i {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--tint-blue);
    color: var(--brand-blue);
    font-size: .88rem;
}

/* Playlist cards */
.course-card-yt {
    display: flex; flex-direction: column;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    cursor: pointer;
    transition: all .3s;
}
.course-card-yt:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(14,141,214,.3);
}
.course-card-yt.active {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 2px rgba(232,17,45,.2);
}

.course-thumb-yt {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.course-thumb-yt img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.course-card-yt:hover .course-thumb-yt img {
    transform: scale(1.06);
}

.yt-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255,0,0,.9);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    transition: all .3s;
}
.course-card-yt:hover .yt-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.yt-duration {
    position: absolute; bottom: 8px; right: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(0,0,0,.8);
    color: #fff;
    font-size: .75rem; font-weight: 700;
}
.yt-lesson {
    position: absolute; top: 8px; left: 8px;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--grad-brand);
    color: #fff;
    font-size: .75rem; font-weight: 800;
}

.course-info-yt {
    padding: 14px 16px;
}
.course-info-yt h3 {
    font-size: .95rem; font-weight: 800;
    margin-bottom: 4px;
    transition: color .25s;
}
.course-card-yt:hover .course-info-yt h3 {
    color: var(--brand-blue);
}
.course-info-yt p {
    font-size: .82rem;
    color: var(--muted);
    margin: 0;
}

.yt-cat {
    position: absolute; top: 8px; right: 8px;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: .72rem; font-weight: 700;
    backdrop-filter: blur(4px);
}

/* Filter animation */
.course-grid .col-lg-4 {
    transition: opacity .4s, transform .4s;
}
.course-grid .col-lg-4.hidden {
    opacity: 0;
    transform: scale(.9);
    position: absolute;
    pointer-events: none;
}

/* ============================================================
   COURSE DETAIL PAGE
   ============================================================ */
.course-sidebar-info {
    display: flex; flex-direction: column; gap: 14px;
}
.course-sidebar-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--bg);
}
.course-sidebar-item i {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--tint-blue);
    color: var(--brand-blue);
    font-size: .9rem;
    flex-shrink: 0;
}
.course-sidebar-item span {
    display: block;
    font-size: .78rem;
    color: var(--muted);
}
.course-sidebar-item strong {
    display: block;
    font-size: .9rem;
    color: var(--ink);
    font-weight: 800;
}

/* ============================================================
   BLOG DETAIL / COURSE DETAIL — shared
   ============================================================ */

/* Breadcrumb */
.breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: .85rem;
    color: var(--muted);
}
.breadcrumb-modern a {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s ease;
}
.breadcrumb-modern a:hover { color: var(--brand-blue); }
.breadcrumb-modern .current { color: var(--ink); font-weight: 700; }
.breadcrumb-modern i { font-size: .65rem; color: #ccc; }

/* Detail meta */
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 12px;
}
.detail-meta span {
    font-size: .88rem;
    color: var(--muted);
    font-weight: 600;
}
.detail-meta i { margin-right: 6px; color: var(--brand-blue); }

/* Detail article card */
.blog-detail {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}
.course-player-wrap { background: #000; }
.course-player iframe {
    display: block;
    width: 100%;
    border: 0;
}
.blog-detail-content {
    padding: 36px 36px 32px;
}
@media (max-width: 575px) { .blog-detail-content { padding: 24px 18px; } }
.blog-detail-content h2 {
    font-family: 'myfont', sans-serif;
    font-size: 1.4rem;
    color: var(--ink);
    margin-bottom: 16px;
    font-weight: 900;
}
.blog-detail-content p {
    font-size: .92rem;
    color: var(--ink-soft);
    line-height: 1.8;
    margin-bottom: 14px;
}
.blog-detail-content h3 {
    font-family: 'myfont', sans-serif;
    font-size: 1.1rem;
    color: var(--ink);
    margin: 24px 0 12px;
    font-weight: 800;
}
.blog-detail-content .blog-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.blog-detail-content .blog-list li {
    padding: 8px 0;
    font-size: .9rem;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
}
.blog-detail-content .blog-list li:last-child { border-bottom: 0; }
.blog-detail-content .blog-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--brand-blue);
    margin-right: 10px;
    font-size: .8rem;
}

/* Share */
.blog-detail-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.blog-detail-share span {
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink);
}
.blog-detail-share a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--bg);
    color: var(--ink-soft);
    font-size: .85rem;
    transition: background .2s ease, color .2s ease;
}
.blog-detail-share a:hover {
    background: var(--brand-blue);
    color: var(--white);
}

/* Nav */
.blog-nav { margin-top: 24px; }
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink-soft);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}
.btn-back:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.sidebar-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 24px;
}
.sidebar-box h5 {
    font-family: 'myfont', sans-serif;
    font-size: .95rem;
    color: var(--ink);
    margin-bottom: 18px;
    font-weight: 800;
}

/* Sidebar search */
.sidebar-search {
    display: flex;
    gap: 8px;
}
.sidebar-search input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 16px;
    font-size: .88rem;
    outline: none;
}
.sidebar-search input:focus { border-color: var(--brand-blue); }
.sidebar-search button {
    width: 44px; height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--brand-blue);
    color: var(--white);
    font-size: .85rem;
    cursor: pointer;
    transition: background .2s ease;
}
.sidebar-search button:hover { background: var(--brand-blue-deep); }

/* Blog search bar + results status */
.blog-search-bar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}
.search-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--tint-blue);
    border: 1px solid rgba(14, 141, 214, .25);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--ink-soft);
    font-size: .92rem;
}
.search-status strong { color: var(--brand-blue); }
.search-status a {
    margin-left: auto;
    font-weight: 700;
    color: var(--brand-red);
    text-decoration: none;
}
.search-status a:hover { text-decoration: underline; }

/* Sidebar categories */
.sidebar-cats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-cat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--bg);
    font-size: .85rem;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}
.sidebar-cat:hover {
    background: var(--tint-blue);
    color: var(--brand-blue);
}
.sidebar-cat span {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 10px;
    font-size: .75rem;
    font-weight: 700;
}
.sidebar-cat .info-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 0;
    padding: 0;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-soft);
}
.sidebar-cat .info-label i {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--tint-blue);
    color: var(--brand-blue);
    font-size: .8rem;
}

/* Sidebar posts */
.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sidebar-post {
    display: flex;
    gap: 14px;
    text-decoration: none;
    transition: opacity .2s ease;
}
.sidebar-post:hover { opacity: .8; }
.sidebar-post img {
    width: 72px; height: 72px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}
.sidebar-post h6 {
    font-family: 'myfont', sans-serif;
    font-size: .88rem;
    color: var(--ink);
    margin-bottom: 4px;
    font-weight: 800;
    line-height: 1.4;
}
.sidebar-post-date {
    display: block;
    font-size: .75rem;
    color: var(--muted);
    font-weight: 600;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

/* --- Top info cards row --- */
.contact-top-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -10px;
}
@media (max-width: 991px) { .contact-top-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .contact-top-cards { grid-template-columns: 1fr; } }

.contact-top-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    transition: box-shadow .25s ease, transform .25s ease;
}
.contact-top-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.contact-top-icon {
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px;
    font-size: 1.2rem;
    margin-bottom: 16px;
    transition: transform .2s ease;
}
.contact-top-card:hover .contact-top-icon { transform: scale(1.08); }
.contact-top-icon.red   { background: rgba(232,17,45,.1);   color: var(--brand-red); }
.contact-top-icon.blue  { background: rgba(14,141,214,.1);  color: var(--brand-blue); }
.contact-top-icon.gold  { background: rgba(245,166,35,.1);  color: var(--brand-gold); }
.contact-top-icon.green { background: rgba(40,167,69,.1);   color: #28a745; }
.contact-top-card h4 {
    font-family: 'myfont', sans-serif;
    font-size: .85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
    font-weight: 700;
}
.contact-top-card p {
    margin: 0;
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink);
}

/* --- Contact Form Card (Left) --- */
.cform-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 40px 36px;
}
@media (max-width: 575px) { .cform-card { padding: 28px 20px; } }
.cform-card h3 {
    font-family: 'myfont', sans-serif;
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 6px;
    font-weight: 900;
}
.cform-card > p {
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 24px;
}

/* Form rows */
.cform .cform-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 575px) { .cform .cform-row { grid-template-columns: 1fr; } }
.cform .cform-full {
    margin-bottom: 16px;
}
.cform .cform-field label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}
.cform .cform-field label span {
    color: var(--brand-red);
}
.cform .cform-field input,
.cform .cform-field select,
.cform .cform-field textarea {
    width: 100%;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: .92rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color .2s ease, box-shadow .2s ease;
    font-family: inherit;
}
.cform .cform-field input::placeholder,
.cform .cform-field textarea::placeholder {
    color: #aab;
}
.cform .cform-field input:focus,
.cform .cform-field select:focus,
.cform .cform-field textarea:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(14,141,214,.1);
    outline: none;
}
.cform .cform-field textarea {
    resize: vertical;
    min-height: 130px;
}

/* --- Contact Info Sidebar (Right) --- */
.cside-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 40px 36px;
}
@media (max-width: 575px) { .cside-card { padding: 28px 20px; } }
.cside-card h3 {
    font-family: 'myfont', sans-serif;
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 24px;
    font-weight: 900;
}
.cside-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}
.cside-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.cside-icon {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 11px;
    font-size: .9rem;
    flex-shrink: 0;
}
.cside-icon.red   { background: rgba(232,17,45,.1);   color: var(--brand-red); }
.cside-icon.blue  { background: rgba(14,141,214,.1);  color: var(--brand-blue); }
.cside-icon.gold  { background: rgba(245,166,35,.1);  color: var(--brand-gold); }
.cside-icon.green { background: rgba(40,167,69,.1);   color: #28a745; }
.cside-item span {
    display: block;
    font-size: .75rem;
    color: var(--muted);
    margin-bottom: 2px;
}
.cside-item strong {
    display: block;
    font-size: .88rem;
    color: var(--ink);
    font-weight: 800;
    margin: 0;
}

/* Social buttons */
.cside-social {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}
.cside-social a {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    color: var(--white);
    font-size: .9rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
.cside-social a:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.cs-fb { background: #1877f2; }
.cs-yt { background: #ff0000; }
.cs-vb { background: #7360f2; }
.cs-ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.cs-tg { background: #0088cc; }

/* Map */
.cside-map {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.cside-map iframe {
    display: block;
    width: 100%;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* --- About Intro (image + text) --- */
.about-img-wrap {
    position: relative;
}
.about-img-box {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg);
}
.about-img-box img {
    width: 100%;
    display: block;
    height: 380px;
    object-fit: cover;
}
.about-exp-box {
    position: absolute;
    bottom: -20px;
    right: 24px;
    background: var(--brand-red);
    color: var(--white);
    padding: 18px 24px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(232,17,45,.3);
}
.about-exp-num {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}
.about-exp-text {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    margin-top: 4px;
}
.about-intro {
    font-size: .95rem;
    color: var(--ink-soft);
    line-height: 1.8;
    margin-bottom: 12px;
}
.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}
@media (max-width: 575px) { .about-highlights { grid-template-columns: 1fr; } }
.about-hl {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: var(--ink-soft);
    font-weight: 600;
}
.about-hl i {
    color: var(--brand-blue);
    font-size: .85rem;
}

/* --- Mission / Vision / Values Cards --- */
.about-mvc-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 36px 30px;
    text-align: center;
    transition: box-shadow .25s ease, transform .25s ease;
    height: 100%;
}
.about-mvc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.06);
}
.mvc-icon {
    width: 60px; height: 60px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 16px;
    font-size: 1.3rem;
    margin-bottom: 20px;
}
.mvc-icon.red  { background: var(--tint-red);  color: var(--brand-red); }
.mvc-icon.blue { background: var(--tint-blue); color: var(--brand-blue); }
.mvc-icon.gold { background: var(--tint-gold); color: var(--gold); }
.about-mvc-card h4 {
    font-family: 'myfont', sans-serif;
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 12px;
    font-weight: 900;
}
.about-mvc-card p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* --- Stats Cards --- */
.about-stat-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow .25s ease, transform .25s ease;
}
.about-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
}
.about-stat-icon {
    width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: var(--tint-blue);
    color: var(--brand-blue);
    font-size: 1.1rem;
    margin-bottom: 16px;
}
.about-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 6px;
}
.about-stat-label {
    display: block;
    font-size: .85rem;
    color: var(--muted);
    font-weight: 600;
}

/* --- Teacher Cards --- */
.teacher-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
    text-align: center;
}
.teacher-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.06);
}
.teacher-img {
    position: relative;
    overflow: hidden;
    background: var(--bg);
}
.teacher-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}
.teacher-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    opacity: 0;
    transition: opacity .3s ease;
}
.teacher-card:hover .teacher-social {
    opacity: 1;
}
.teacher-social a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,.9);
    color: var(--ink);
    font-size: .8rem;
    transition: background .2s ease, color .2s ease;
}
.teacher-social a:hover {
    background: var(--brand-blue);
    color: var(--white);
}
.teacher-info {
    padding: 20px;
}
.teacher-info h4 {
    font-family: 'myfont', sans-serif;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 4px;
    font-weight: 800;
}
.teacher-info span {
    font-size: .82rem;
    color: var(--muted);
    font-weight: 600;
}

/* ============================================================
   BRANCH CARDS
   ============================================================ */
.branch-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 36px 30px;
    text-align: center;
    transition: box-shadow .25s ease, transform .25s ease;
    height: 100%;
}
.branch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.06);
}
.branch-icon {
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: var(--tint-red);
    color: var(--brand-red);
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.branch-icon.blue { background: var(--tint-blue); color: var(--brand-blue); }
.branch-icon.gold { background: var(--tint-gold); color: var(--gold); }
.branch-card h4 {
    font-family: 'myfont', sans-serif;
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 16px;
    font-weight: 900;
}
.branch-card p {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 8px;
    text-align: left;
    line-height: 1.6;
}
.branch-card p i {
    width: 20px;
    color: var(--brand-blue);
    margin-right: 8px;
    font-size: .82rem;
}
.branch-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 22px;
    border-radius: 10px;
    background: var(--brand-blue);
    color: var(--white);
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.branch-map-link:hover {
    background: var(--brand-blue-deep);
    transform: translateY(-2px);
}

/* ============================================================
   DOWNLOAD PAGE
   ============================================================ */

/* Phone mockup */
.dl-phone-mockup {
    max-width: 320px;
    margin: 0 auto;
}
.dl-phone-screen {
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: 28px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.1);
}
.dl-app-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.dl-app-header img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}
.dl-app-header span {
    font-family: 'myfont', sans-serif;
    font-size: .95rem;
    font-weight: 800;
    color: var(--ink);
}
.dl-app-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dl-app-stat {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 12px 0;
    background: var(--bg);
    border-radius: 12px;
}
.dl-app-stat-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--brand-blue);
}
.dl-app-stat-label {
    display: block;
    font-size: .72rem;
    color: var(--muted);
    font-weight: 600;
}
.dl-app-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: 10px;
    font-size: .85rem;
    color: var(--ink-soft);
    font-weight: 600;
}
.dl-app-feature i {
    color: var(--brand-red);
    font-size: .9rem;
    width: 20px;
    text-align: center;
}

/* Description */
.dl-desc {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 28px;
}

/* Store buttons */
.dl-store-btns {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
}
@media (max-width: 575px) { .dl-store-btns { flex-direction: column; } }
.dl-store-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    border-radius: 14px;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.dl-store-btn:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.dl-store-btn i { font-size: 2rem; }
.dl-store-btn small {
    display: block;
    font-size: .72rem;
    color: rgba(255,255,255,.65);
}
.dl-store-btn strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
}

/* QR section */
.dl-qr-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg);
    border-radius: 14px;
    border: 1px solid var(--line);
}
.dl-qr-box {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 1.8rem;
    color: var(--ink);
    flex-shrink: 0;
}
.dl-qr-section h5 {
    font-family: 'myfont', sans-serif;
    font-size: .9rem;
    color: var(--ink);
    margin-bottom: 4px;
    font-weight: 800;
}
.dl-qr-section p {
    font-size: .8rem;
    color: var(--muted);
    margin: 0;
}

/* Guide cards */
.dl-guide-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: box-shadow .25s ease, transform .25s ease;
    height: 100%;
}
.dl-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.06);
}
.dl-guide-step {
    position: absolute;
    top: 16px; right: 20px;
    font-size: 2rem;
    font-weight: 900;
    color: var(--line);
}
.dl-guide-icon {
    width: 60px; height: 60px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 16px;
    font-size: 1.3rem;
    margin-bottom: 20px;
}
.dl-guide-icon.red   { background: var(--tint-red);  color: var(--brand-red); }
.dl-guide-icon.blue  { background: var(--tint-blue); color: var(--brand-blue); }
.dl-guide-icon.gold  { background: var(--tint-gold); color: var(--gold); }
.dl-guide-icon.green { background: rgba(40,167,69,.1); color: #28a745; }
.dl-guide-card h4 {
    font-family: 'myfont', sans-serif;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 10px;
    font-weight: 800;
}
.dl-guide-card p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* Features row */
.dl-features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 991px) { .dl-features-row { grid-template-columns: 1fr; } }
.dl-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: box-shadow .25s ease;
}
.dl-feature-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.dl-feature-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--tint-blue);
    color: var(--brand-blue);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.dl-feature-item h5 {
    font-family: 'myfont', sans-serif;
    font-size: .9rem;
    color: var(--ink);
    margin-bottom: 4px;
    font-weight: 800;
}
.dl-feature-item p {
    font-size: .82rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

/* Feature icon colors */
.dl-feature-icon.red   { background: var(--tint-red);  color: var(--brand-red); }
.dl-feature-icon.blue  { background: var(--tint-blue); color: var(--brand-blue); }
.dl-feature-icon.gold  { background: var(--tint-gold); color: var(--gold); }
.dl-feature-icon.green { background: rgba(40,167,69,.1); color: #28a745; }

/* Stats band */
.dl-stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: var(--dark);
    border-radius: 18px;
    padding: 40px 24px;
}
@media (max-width: 767px) { .dl-stats-band { grid-template-columns: repeat(2, 1fr); } }
.dl-stat {
    text-align: center;
    color: var(--white);
}
.dl-stat-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 6px;
}
.dl-stat-label {
    display: block;
    font-size: .85rem;
    color: rgba(255,255,255,.55);
    font-weight: 600;
}

/* Store button colors */
.dl-store-btn.apple { background: #000; }
.dl-store-btn.google { background: linear-gradient(135deg, #01875f, #00c853); }
.dl-store-btn.apple:hover { box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.dl-store-btn.google:hover { box-shadow: 0 12px 30px rgba(0,200,83,.3); }

/* ============================================================
   TERMS & CONDITIONS PAGE
   ============================================================ */
.terms-content {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 40px 36px;
}
@media (max-width: 575px) { .terms-content { padding: 24px 18px; } }

.terms-update {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg);
    border-radius: 8px;
    font-size: .82rem;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 28px;
}
.terms-update i { color: var(--brand-blue); }

.terms-section {
    margin-bottom: 32px;
}
.terms-section:last-child { margin-bottom: 0; }
.terms-section h2 {
    font-family: 'myfont', sans-serif;
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-weight: 900;
}
.terms-section p {
    font-size: .92rem;
    color: var(--ink-soft);
    line-height: 1.8;
    margin-bottom: 12px;
}
.terms-list {
    padding-left: 0;
    list-style: none;
    margin-bottom: 12px;
}
.terms-list li {
    padding: 8px 0 8px 24px;
    position: relative;
    font-size: .9rem;
    color: var(--ink-soft);
    line-height: 1.7;
    border-bottom: 1px solid var(--bg);
}
.terms-list li:last-child { border-bottom: 0; }
.terms-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--brand-blue);
    font-size: .78rem;
    top: 10px;
}

/* Contact box inside terms */
.terms-contact {
    background: var(--bg);
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 12px;
}
.terms-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: .9rem;
    color: var(--ink-soft);
}
.terms-contact-item + .terms-contact-item {
    border-top: 1px solid var(--line);
}
.terms-contact-item i {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: var(--tint-blue);
    color: var(--brand-blue);
    font-size: .85rem;
    flex-shrink: 0;
}

/* Sidebar TOC */
.terms-toc {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.terms-toc a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .85rem;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}
.terms-toc a:hover {
    background: var(--tint-blue);
    color: var(--brand-blue);
}
.terms-toc a span {
    font-weight: 800;
    color: var(--brand-red);
    min-width: 24px;
}

/* Sidebar icon post */
.sidebar-post-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--bg);
    color: var(--brand-blue);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ============================================================
   BRANCH MAP CARDS
   ============================================================ */
.branch-map-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
    height: 100%;
}
.branch-map-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.06);
}
.branch-map-info {
    padding: 28px 24px 20px;
}
.branch-map-icon {
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    font-size: 1.1rem;
    margin-bottom: 16px;
}
.branch-map-icon.red   { background: var(--tint-red);  color: var(--brand-red); }
.branch-map-icon.blue  { background: var(--tint-blue); color: var(--brand-blue); }
.branch-map-icon.gold  { background: var(--tint-gold); color: var(--gold); }
.branch-map-info h4 {
    font-family: 'myfont', sans-serif;
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 14px;
    font-weight: 900;
}
.branch-map-info p {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 8px;
    line-height: 1.6;
}
.branch-map-info p:last-child { margin-bottom: 0; }
.branch-map-info p i {
    width: 18px;
    color: var(--brand-blue);
    margin-right: 8px;
    font-size: .82rem;
}
.branch-map-embed {
    border-top: 1px solid var(--line);
}
.branch-map-embed iframe {
    display: block;
    width: 100%;
    height: 200px;
}

/* ============================================================
   CEO SECTION
   ============================================================ */
.ceo-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 48px 44px;
}
@media (max-width: 991px) { .ceo-card { padding: 36px 28px; } }
@media (max-width: 575px) { .ceo-card { padding: 28px 20px; } }

.ceo-img-wrap {
    position: relative;
    display: inline-block;
}
.ceo-img {
    width: 220px;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--line);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.ceo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ceo-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 44px;
    height: 44px;
    background: var(--brand-red);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(232,17,45,.3);
}

.ceo-name {
    font-family: 'myfont', sans-serif;
    font-size: 1.6rem;
    color: var(--ink);
    margin-bottom: 4px;
    font-weight: 900;
}
.ceo-title {
    display: block;
    font-size: .9rem;
    color: var(--brand-blue);
    font-weight: 700;
    margin-bottom: 20px;
}
.ceo-quote {
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.9;
    font-style: italic;
    border-left: 3px solid var(--brand-red);
    padding-left: 20px;
    margin: 0 0 24px;
    background: var(--bg);
    padding: 20px;
    border-radius: 0 12px 12px 0;
}
.ceo-sign {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ceo-sign-line {
    width: 40px;
    height: 2px;
    background: var(--brand-red);
}
.ceo-sign span {
    font-family: 'myfont', sans-serif;
    font-size: 1rem;
    color: var(--ink);
    font-weight: 900;
}

/* ============================================================
   ABOUT FEATURES GRID
   ============================================================ */
.about-features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
@media (max-width: 1199px) { .about-features-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .about-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .about-features-grid { grid-template-columns: 1fr; } }

.about-feature-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    transition: box-shadow .25s ease, transform .25s ease;
    height: 100%;
}
.about-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.06);
}
.about-feature-icon {
    width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px;
    font-size: 1.2rem;
    margin-bottom: 16px;
}
.about-feature-icon.red   { background: var(--tint-red);  color: var(--brand-red); }
.about-feature-icon.blue  { background: var(--tint-blue); color: var(--brand-blue); }
.about-feature-icon.gold  { background: var(--tint-gold); color: var(--gold); }
.about-feature-icon.green { background: rgba(40,167,69,.1); color: #28a745; }
.about-feature-card h4 {
    font-family: 'myfont', sans-serif;
    font-size: .95rem;
    color: var(--ink);
    margin-bottom: 8px;
    font-weight: 800;
}
.about-feature-card p {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   CUSTOM VIDEO PLAYER
   ============================================================ */
.custom-player {
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.custom-player video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    cursor: pointer;
}

.custom-player-poster {
    position: relative;
    cursor: pointer;
}

.custom-player-poster img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.custom-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    border: 0;
    border-radius: 50%;
    background: rgba(232, 17, 45, .9);
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(232, 17, 45, .4);
}

.custom-play-btn i { margin-left: 4px; }

.custom-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--brand-red);
}

.custom-duration {
    position: absolute;
    bottom: 16px; right: 16px;
    background: rgba(0,0,0,.75);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 700;
}

/* YouTube iframe container */
.custom-player-iframe {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.custom-player-iframe iframe,
.custom-player-iframe div {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* Hide YouTube UI overlay */
.yt-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    cursor: pointer;
}

/* Hide YouTube branding and Watermark */
.custom-player-iframe iframe {
    pointer-events: none;
}

/* Hide YouTube watermark and annotations */
.custom-player-iframe .ytp-chrome-top,
.custom-player-iframe .ytp-chrome-bottom,
.custom-player-iframe .ytp-gradient-top,
.custom-player-iframe .ytp-gradient-bottom,
.custom-player-iframe .ytp-watermark,
.custom-player-iframe .ytp-ce-element {
    display: none !important;
    pointer-events: none !important;
}

.custom-player-controls {
    padding: 0 16px 12px;
    background: #000;
    border-radius: 0 0 18px 18px;
}
.custom-progress {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,.2);
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 12px;
    position: relative;
}
.custom-progress:hover { height: 6px; }
.custom-progress-filled {
    height: 100%;
    background: var(--brand-red);
    border-radius: 4px;
    width: 0%;
    position: relative;
    transition: width .1s linear;
}
.custom-progress-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px; height: 14px;
    background: var(--brand-red);
    border-radius: 50%;
    left: 0%;
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(232,17,45,.5);
}
.custom-progress:hover .custom-progress-thumb { opacity: 1; }

.custom-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.custom-controls-left,
.custom-controls-right {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ctrl-btn {
    width: 36px; height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease, color .2s ease;
}
.ctrl-btn:hover {
    background: rgba(255,255,255,.1);
    color: var(--white);
}
.custom-time {
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    font-weight: 600;
    margin-left: 8px;
}

/* Volume */
.custom-volume {
    display: flex;
    align-items: center;
    gap: 0;
}
.custom-volume-slider {
    width: 0;
    overflow: hidden;
    transition: width .2s ease;
}
.custom-volume:hover .custom-volume-slider {
    width: 80px;
}
.volume-track {
    width: 70px;
    height: 4px;
    background: rgba(255,255,255,.2);
    border-radius: 4px;
    margin: 0 8px;
    cursor: pointer;
}
.volume-fill {
    height: 100%;
    background: var(--white);
    border-radius: 4px;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,.75);
    padding: 72px 0 0;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 575px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-brand-col { grid-column: 1 / -1; }
    .footer-col:last-child { grid-column: 1 / -1; }
}

.footer-brand-col { padding-right: 20px; }
.footer-logo {
    height: 42px;
    margin-bottom: 18px;
    /* filter: brightness(0) invert(1); */
}
.footer-desc {
    font-size: .88rem;
    line-height: 1.7;
    color: rgba(255,255,255,.55);
    margin-bottom: 22px;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.7);
    font-size: .85rem;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer-social a:hover {
    background: var(--brand-red);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col h5 {
    font-family: 'myfont', sans-serif;
    font-size: .88rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 20px;
    font-weight: 800;
}
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-list li {
    margin-bottom: 12px;
    font-size: .88rem;
    color: rgba(255,255,255,.55);
}
.footer-list li i {
    width: 18px;
    color: var(--brand-red);
    margin-right: 6px;
}
.footer-list li a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: color .2s ease;
}
.footer-list li a:hover {
    color: var(--white);
}

.footer-app-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-app-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}
.footer-app-btn:hover {
    border-color: rgba(255,255,255,.25);
    background: rgba(255,255,255,.05);
}
.footer-app-btn i { font-size: 1.4rem; }
.footer-app-btn small {
    display: block;
    font-size: .68rem;
    color: rgba(255,255,255,.45);
}
.footer-app-btn strong {
    display: block;
    font-size: .88rem;
    color: var(--white);
    font-weight: 800;
}

.footer-bottom {
    padding: 24px 0;
    font-size: .82rem;
    color: rgba(255,255,255,.4);
}

/* Brand pagination */
.brand-pagination {
    gap: 6px;
}

.brand-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .75rem;
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    transition: all .25s ease;
}

.brand-pagination .page-link:hover {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
    background: var(--tint-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.brand-pagination .page-item.active .page-link {
    color: var(--white);
    border-color: var(--brand-red);
    background: var(--grad-brand);
    box-shadow: var(--glow-red);
}

.brand-pagination .page-item.disabled .page-link {
    color: #a4abb8;
    background: #f1f3f6;
    border-color: var(--line);
}

/* ============================================================
   Navbar notifications (bell + dropdown panel)
   Used by resources/views/frontend/partials/notifications.blade.php
   ============================================================ */

.notif-bell {
    position: relative;
}

.notif-bell-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.notif-bell:hover .notif-bell-icon {
    background: var(--tint-red);
    color: var(--brand-red);
    transform: translateY(-1px);
}

/* Unread pill on the bell */
.notif-badge {
    position: absolute;
    top: 3px;
    right: 4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .62rem;
    font-weight: 800;
    line-height: 1;
    color: var(--white);
    background: var(--brand-red);
    border: 2px solid var(--white);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(232, 17, 45, .45);
    pointer-events: none;
}

/* The bell rings once on page load while something is unread */
@keyframes notif-ring {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(16deg); }
    30% { transform: rotate(-13deg); }
    45% { transform: rotate(9deg); }
    60% { transform: rotate(-6deg); }
    75% { transform: rotate(3deg); }
}

.notif-bell.has-unread .notif-bell-icon {
    color: var(--brand-red);
    animation: notif-ring .9s cubic-bezier(.36, .07, .19, .97) .35s 1;
    transform-origin: 50% 15%;
}

/* ---------- Dropdown panel ---------- */

.notif-menu {
    width: 360px;
    max-width: calc(100vw - 24px);
    max-height: min(72vh, 560px);
    overflow-y: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    scrollbar-width: thin;
    scrollbar-color: #d0d5dd transparent;
}

.notif-menu::-webkit-scrollbar {
    width: 6px;
}

.notif-menu::-webkit-scrollbar-track {
    background: transparent;
}

.notif-menu::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 999px;
}

.notif-menu::-webkit-scrollbar-thumb:hover {
    background: #98a2b3;
}

/* Entrance: opacity + independent `scale`, so it never fights the
   positioning transform Popper writes inline on the menu. */
@keyframes notif-in {
    from { opacity: 0; scale: .96; }
    to { opacity: 1; scale: 1; }
}

.notif-menu.show {
    animation: notif-in .18s cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Header ---------- */

.notif-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 12px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.notif-head::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-brand);
    opacity: .8;
}

.notif-head-title {
    font-size: .92rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.01em;
}

.notif-count {
    margin-left: auto;
    padding: 3px 9px;
    font-size: .68rem;
    font-weight: 800;
    color: var(--brand-red);
    background: var(--tint-red);
    border-radius: 999px;
}

/* ---------- Items ---------- */

.notif-item + .notif-item {
    border-top: 1px solid var(--line);
}

.notif-item-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    color: inherit;
    text-decoration: none;
    transition: background .18s ease;
}

.notif-item-link:hover {
    background: var(--bg);
}

/* Ad-hoc pushes have no destination — same look, but not a link */
.notif-item-link:not([href]) {
    cursor: default;
}

.notif-item.is-unread {
    background: rgba(232, 17, 45, .045);
    box-shadow: inset 3px 0 0 var(--brand-red);
}

.notif-item.is-unread:hover {
    background: rgba(232, 17, 45, .075);
}

.notif-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: .92rem;
}

.notif-icon.is-exam {
    background: var(--tint-blue);
    color: var(--brand-blue-deep);
}

.notif-icon.is-school {
    background: var(--tint-red);
    color: var(--brand-red-deep);
}

.notif-icon.is-holiday {
    background: var(--tint-gold);
    color: #d18a00;
}

.notif-icon.is-manual {
    background: #f2f4f7;
    color: var(--ink-soft);
}

.notif-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.notif-item-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-item-title {
    font-size: .84rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notif-item.is-unread .notif-item-title {
    font-weight: 800;
}

/* Unread dot */
.notif-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--brand-red);
    box-shadow: 0 0 0 4px rgba(232, 17, 45, .14);
}

.notif-item-body {
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notif-item-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .69rem;
    color: #98a2b3;
}

/* ---------- Empty state ---------- */

.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 30px 20px 26px;
}

.notif-empty-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    font-size: 1.3rem;
    color: #98a2b3;
    background: #f2f4f7;
    border-radius: 50%;
}

.notif-empty-title {
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.notif-empty-hint {
    font-size: .75rem;
    color: var(--muted);
    max-width: 230px;
    line-height: 1.5;
}
