﻿/* =========================================================
   TechLearn LMS  |  New theme: Violet / Indigo
   ========================================================= */

:root {
    --violet-900: #2e1065;
    --violet-800: #3b1d8f;
    --violet-700: #4c1d95;
    --violet-600: #5b21b6;
    --violet-500: #6d28d9;
    --violet-400: #8b5cf6;
    --violet-300: #a78bfa;
    --violet-100: #ede9fe;
    --violet-50:  #f5f3ff;

    --cyan-500: #06b6d4;
    --amber-500: #f59e0b;
    --rose-500: #f43f5e;
    --emerald-500: #10b981;

    --ink: #17132b;
    --body: #4b4664;
    --muted: #7b7697;
    --line: #e9e6f4;
    --bg: #faf9ff;
    --surface: #ffffff;
    --surface-2: #f6f4ff;

    --grad: linear-gradient(135deg, var(--violet-600) 0%, var(--violet-400) 55%, var(--cyan-500) 130%);
    --grad-soft: linear-gradient(135deg, var(--violet-50), #ffffff 70%);

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 2px 10px rgba(46, 16, 101, 0.07);
    --shadow-md: 0 10px 30px rgba(46, 16, 101, 0.10);
    --shadow-lg: 0 24px 60px rgba(46, 16, 101, 0.16);

    --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Tahoma, Geneva, Verdana, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

img { max-width: 100%; display: block; }

.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 22px rgba(109, 40, 217, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(109, 40, 217, 0.45);
}

.btn-accent {
    background: var(--violet-900);
    color: #fff;
}
.btn-accent:hover { background: var(--violet-800); }

.btn-ghost {
    background: transparent;
    color: var(--violet-700);
    border-color: transparent;
}
.btn-ghost:hover { background: var(--violet-50); }

.btn-outline {
    background: transparent;
    color: var(--violet-600);
    border-color: var(--violet-300);
}
.btn-outline:hover {
    background: var(--violet-600);
    border-color: var(--violet-600);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--violet-700);
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.btn-white:hover { transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 15px 40px; font-size: 16px; }

/* =========================================================
   TOP NAVIGATION
   ========================================================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 23px;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: -.5px;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--grad);
    color: #fff;
    font-size: 19px;
    box-shadow: 0 6px 16px rgba(109, 40, 217, .35);
}

.logo-text em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--body);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    transition: color .2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--grad);
    border-radius: 2px;
    transition: width .25s ease;
}

.nav-links a:hover { color: var(--violet-600); }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--violet-600);
    font-size: 17px;
    cursor: pointer;
    transition: all .2s;
}
.icon-btn:hover {
    background: var(--violet-50);
    border-color: var(--violet-300);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: var(--violet-50);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}
.hamburger span {
    width: 20px; height: 2px;
    background: var(--violet-700);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 90px;
    background:
        radial-gradient(1000px 500px at 8% -10%, var(--violet-100), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, #e0f2fe, transparent 55%),
        linear-gradient(180deg, #ffffff, var(--bg));
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    pointer-events: none;
}
.blob-a { width: 340px; height: 340px; background: var(--violet-300); top: -80px; left: -90px; }
.blob-b { width: 300px; height: 300px; background: var(--cyan-500); bottom: -110px; right: -60px; opacity: .32; }

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--violet-200, #ddd6fe);
    color: var(--violet-700);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 1.12;
    letter-spacing: -1.6px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 20px;
}

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

.hero-sub {
    font-size: 18px;
    color: var(--body);
    max-width: 560px;
    margin-bottom: 30px;
}

.hero-search {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-width: 540px;
}

.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 15px;
    font-family: var(--font);
    background: transparent;
    color: var(--ink);
    min-width: 0;
}
.hero-search input::placeholder { color: var(--muted); }

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}

.tag {
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--violet-700);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.tag:hover { background: var(--violet-600); color: #fff; border-color: var(--violet-600); }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 38px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px dashed var(--line);
}

.hstat strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--violet-700);
    letter-spacing: -.5px;
}
.hstat span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Hero visual / mock dashboard ---------- */
.hero-visual { position: relative; }

.dash-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 26px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.dash-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}
.dash-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--muted);
    font-weight: 700;
}
.dash-head h4 { font-size: 19px; color: var(--ink); letter-spacing: -.3px; }

.pill {
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: var(--violet-100);
    color: var(--violet-700);
    white-space: nowrap;
}
.pill-live { background: #dcfce7; color: #15803d; }

.dash-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}
.dash-row:last-of-type { border-bottom: none; }

.dash-ico {
    display: grid;
    place-items: center;
    min-width: 46px;
    height: 46px;
    padding: 0 6px;
    border-radius: 13px;
    background: var(--grad);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}
.dash-ico.alt  { background: linear-gradient(135deg, #f59e0b, #f43f5e); }
.dash-ico.alt2 { background: linear-gradient(135deg, #10b981, #06b6d4); }

.dash-info { flex: 1; min-width: 0; }
.dash-info p { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }

.bar {
    height: 7px;
    border-radius: 999px;
    background: var(--violet-100);
    overflow: hidden;
}
.bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--grad);
}

.dash-pct { font-size: 13px; font-weight: 800; color: var(--violet-600); }

.dash-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.dash-foot p { font-size: 13px; color: var(--muted); }

.avatars { display: flex; }
.avatars span {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--violet-600);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid #fff;
    margin-left: -9px;
}
.avatars span:first-child { margin-left: 0; background: var(--cyan-500); }
.avatars span:nth-child(2) { background: var(--amber-500); }

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 11px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 17px;
    box-shadow: var(--shadow-md);
    z-index: 3;
    animation: floaty 4s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 14px; color: var(--ink); }
.float-card small { font-size: 12px; color: var(--muted); }

.fc-ico {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 12px;
    font-size: 17px;
    background: #dcfce7;
    color: #15803d;
}
.fc-cert { top: -26px; right: 6px; }
.fc-streak { bottom: -28px; left: -22px; animation-delay: 1.6s; }
.fc-streak .fc-ico { background: #fef3c7; color: #b45309; }

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========================================================
   BRAND STRIP
   ========================================================= */
.brands {
    background: #fff;
    border-block: 1px solid var(--line);
    padding: 26px 0;
}
.brands-inner {
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
    justify-content: center;
}
.brands-inner p {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: var(--muted);
    font-weight: 700;
}
.brands-inner ul {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
}
.brands-inner li {
    font-size: 17px;
    font-weight: 800;
    color: #b6b1cc;
    letter-spacing: -.4px;
    transition: color .2s;
}
.brands-inner li:hover { color: var(--violet-600); }

/* =========================================================
   SECTIONS (shared)
   ========================================================= */
.section { padding: 84px 0; }
.section.alt { background: var(--surface-2); }

.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 42px;
    flex-wrap: wrap;
}
.center-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--violet-500);
    margin-bottom: 10px;
}

.sec-head h2 {
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -1.1px;
    color: var(--ink);
    line-height: 1.2;
}

.sec-note {
    max-width: 400px;
    color: var(--muted);
    font-size: 15px;
}

/* =========================================================
   CATEGORIES
   ========================================================= */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cat-card {
    display: block;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 22px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    position: relative;
    overflow: hidden;
}
.cat-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--grad);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .25s ease;
}
.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--violet-200, #ddd6fe);
}
.cat-card:hover::before { transform: scaleY(1); }

.cat-ico {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 15px;
    font-size: 24px;
    margin-bottom: 16px;
}
.c1 { background: #ede9fe; } .c2 { background: #e0f2fe; }
.c3 { background: #fef3c7; } .c4 { background: #dcfce7; }
.c5 { background: #ffe4e6; } .c6 { background: #fce7f3; }
.c7 { background: #e0e7ff; } .c8 { background: #ccfbf1; }

.cat-card h3 {
    font-size: 16.5px;
    color: var(--ink);
    margin-bottom: 5px;
    letter-spacing: -.3px;
}
.cat-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }

.cat-count {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--violet-600);
    background: var(--violet-50);
    padding: 4px 11px;
    border-radius: 999px;
}

/* =========================================================
   COURSES
   ========================================================= */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #fff;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.tab {
    padding: 9px 20px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--body);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.tab:hover { color: var(--violet-600); background: var(--violet-50); }
.tab.active {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 6px 16px rgba(109, 40, 217, .3);
}

.course-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}
.course-toolbar input {
    flex: 1;
    padding: 15px 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-family: var(--font);
    font-size: 15px;
    color: var(--ink);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    min-width: 0;
}
.course-toolbar input:focus {
    border-color: var(--violet-400);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .16);
}
.count-badge {
    font-size: 13px;
    font-weight: 700;
    color: var(--violet-700);
    background: #fff;
    border: 1px solid var(--line);
    padding: 9px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

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

.course-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease;
}
.course-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
}

.c-thumb {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px;
    height: 132px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.c-thumb::after {
    content: '';
    position: absolute;
    width: 150px; height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    top: -55px; right: -35px;
}
.c-thumb span {
    position: relative;
    z-index: 1;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.8px;
}
.c-thumb em {
    position: relative;
    z-index: 1;
    font-style: normal;
    font-size: 12.5px;
    font-weight: 700;
    background: rgba(0,0,0,.28);
    padding: 4px 11px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.t1 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.t2 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.t3 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.t4 { background: linear-gradient(135deg, #7c3aed, #db2777); }
.t5 { background: linear-gradient(135deg, #06b6d4, #14b8a6); }
.t6 { background: linear-gradient(135deg, #ef4444, #8b5cf6); }

.c-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.c-meta { display: flex; gap: 7px; margin-bottom: 12px; flex-wrap: wrap; }
.badge {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    letter-spacing: .2px;
}
.b-level { background: var(--violet-100); color: var(--violet-700); }
.b-hot   { background: #fef3c7; color: #b45309; }
.b-new   { background: #dcfce7; color: #15803d; }

.c-body h3 {
    font-size: 17.5px;
    line-height: 1.4;
    color: var(--ink);
    letter-spacing: -.4px;
    margin-bottom: 6px;
}

.c-author { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }

.c-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--body);
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--line);
    margin-bottom: 16px;
}
.c-info .rate { color: var(--amber-500); font-weight: 700; }

.c-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.price strong { font-size: 22px; color: var(--violet-700); font-weight: 800; }
.price s { font-size: 13.5px; color: var(--muted); margin-left: 7px; }

.enroll-btn.enrolled {
    background: #dcfce7;
    color: #15803d;
    box-shadow: none;
    border-color: transparent;
    cursor: default;
}
.enroll-btn.enrolled:hover { transform: none; box-shadow: none; }

.empty-state {
    text-align: center;
    padding: 44px 20px;
    color: var(--muted);
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    font-size: 15px;
}

#loadMore { margin-top: 36px; }

/* =========================================================
   LEARNING PATHS
   ========================================================= */
.path-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.path-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease;
}
.path-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.path-card.featured {
    background: linear-gradient(160deg, var(--violet-700), var(--violet-500) 65%, #6d28d9);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.path-card.featured h3,
.path-card.featured .path-foot { color: #fff; }
.path-card.featured .path-foot span { color: rgba(255,255,255,.8); }
.path-card.featured .link-arrow { color: #fff; }
.path-card.featured .pill { background: rgba(255,255,255,.2); color: #fff; }
.path-card.featured .path-steps li { color: rgba(255,255,255,.86); }
.path-card.featured .path-steps li.done::before { background: #fff; color: var(--violet-600); }

.path-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.path-no {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1.5px;
    opacity: .35;
}
.p1 .path-no { color: var(--violet-500); }
.p2 .path-no { color: #fff; }
.p3 .path-no { color: var(--cyan-500); }

.path-card h3 {
    font-size: 20px;
    letter-spacing: -.5px;
    color: var(--ink);
    margin-bottom: 18px;
}

.path-steps { list-style: none; display: grid; gap: 11px; margin-bottom: 22px; }
.path-steps li {
    position: relative;
    padding-left: 32px;
    font-size: 14.5px;
    color: var(--body);
}
.path-steps li::before {
    content: '1';
    position: absolute;
    left: 0; top: 1px;
    width: 21px; height: 21px;
    border-radius: 50%;
    background: var(--violet-100);
    color: var(--violet-600);
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
}
.path-steps li:nth-child(2)::before { content: '2'; }
.path-steps li:nth-child(3)::before { content: '3'; }
.path-steps li:nth-child(4)::before { content: '4'; }
.path-steps li:nth-child(5)::before { content: '5'; }
.path-steps li.done { color: var(--ink); font-weight: 600; }
.path-steps li.done::before { content: '\2713'; background: var(--emerald-500); color: #fff; }

.path-foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    color: var(--muted);
    font-weight: 600;
}
.path-card.featured .path-foot { border-top-color: rgba(255,255,255,.25); }

.link-arrow {
    color: var(--violet-600);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: transform .2s;
    display: inline-block;
}
.link-arrow:hover { transform: translateX(4px); }

/* =========================================================
   FEATURES
   ========================================================= */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform .22s ease, box-shadow .22s ease;
}
.feat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.feat-ico {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 17px;
    font-size: 26px;
    margin-bottom: 18px;
    background: var(--grad);
    box-shadow: 0 10px 24px rgba(109, 40, 217, .28);
}
.f2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); box-shadow: 0 10px 24px rgba(6,182,212,.28); }
.f3 { background: linear-gradient(135deg, #f59e0b, #f43f5e); box-shadow: 0 10px 24px rgba(245,158,11,.28); }
.f4 { background: linear-gradient(135deg, #10b981, #06b6d4); box-shadow: 0 10px 24px rgba(16,185,129,.28); }
.f5 { background: linear-gradient(135deg, #ec4899, #8b5cf6); box-shadow: 0 10px 24px rgba(236,72,153,.28); }
.f6 { background: linear-gradient(135deg, #6366f1, #0ea5e9); box-shadow: 0 10px 24px rgba(99,102,241,.28); }

.feat-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 9px; letter-spacing: -.4px; }
.feat-card p { font-size: 14.5px; color: var(--muted); }

/* =========================================================
   INSTRUCTORS
   ========================================================= */
.inst-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.inst-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    transition: transform .22s ease, box-shadow .22s ease;
}
.inst-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.inst-av {
    width: 74px; height: 74px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 23px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
}
.a1 { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.a2 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.a3 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.a4 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }

.inst-card h3 { font-size: 17px; color: var(--ink); }
.inst-role { font-size: 13.5px; color: var(--violet-600); font-weight: 700; margin-bottom: 6px; }
.inst-bio { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

.inst-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    font-size: 13px;
    font-weight: 700;
    color: var(--body);
}
.inst-stats span:first-child { color: var(--amber-500); }

/* =========================================================
   STATS BAND
   ========================================================= */
.stats-band {
    background: linear-gradient(135deg, var(--violet-900), var(--violet-700) 55%, #4338ca);
    padding: 58px 0;
    position: relative;
    overflow: hidden;
}
.stats-band::before {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    top: -180px; right: -90px;
}

.stats-inner {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    text-align: center;
}
.stat strong {
    display: block;
    font-size: clamp(30px, 3.4vw, 46px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1.5px;
    line-height: 1.1;
}
.stat span { font-size: 14px; color: rgba(255,255,255,.72); font-weight: 600; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.test-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: transform .22s ease, box-shadow .22s ease;
}
.test-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.test-card::before {
    content: '\201C';
    position: absolute;
    top: 6px; right: 22px;
    font-size: 76px;
    line-height: 1;
    color: var(--violet-100);
    font-family: Georgia, serif;
}

.stars { color: var(--amber-500); font-size: 15px; letter-spacing: 2px; }

.test-card blockquote {
    font-size: 15.5px;
    color: var(--body);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.test-card figcaption strong { display: block; font-size: 15px; color: var(--ink); }
.test-card figcaption span { font-size: 13px; color: var(--muted); }

/* =========================================================
   CTA
   ========================================================= */
.cta {
    background: var(--grad);
    padding: 62px 0;
    position: relative;
    overflow: hidden;
}
.cta::before, .cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
}
.cta::before { width: 300px; height: 300px; top: -140px; left: -70px; }
.cta::after  { width: 260px; height: 260px; bottom: -150px; right: -50px; }

.cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    flex-wrap: wrap;
}
.cta-inner h2 {
    font-size: clamp(25px, 2.8vw, 36px);
    color: #fff;
    letter-spacing: -1px;
    font-weight: 800;
    margin-bottom: 8px;
}
.cta-inner p { color: rgba(255,255,255,.88); font-size: 16px; }

.cta-form {
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,.16);
    padding: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.32);
    backdrop-filter: blur(8px);
    flex: 1;
    max-width: 470px;
    min-width: 300px;
}
.cta-form input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 13px 20px;
    color: #fff;
    font-family: var(--font);
    font-size: 15px;
    min-width: 0;
}
.cta-form input::placeholder { color: rgba(255,255,255,.72); }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    background: #140f28;
    color: #cfc9e6;
    padding: 66px 0 0;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 34px;
    padding-bottom: 44px;
}

.logo.light { color: #fff; cursor: default; }
.foot-brand p {
    font-size: 14px;
    color: #9992b8;
    margin: 16px 0 20px;
    max-width: 300px;
}

.socials { display: flex; gap: 10px; }
.socials a {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 11px;
    background: rgba(255,255,255,.07);
    color: #cfc9e6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all .2s;
}
.socials a:hover { background: var(--violet-500); color: #fff; transform: translateY(-3px); }

.foot-col { display: flex; flex-direction: column; gap: 11px; }
.foot-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 7px;
    letter-spacing: -.2px;
}
.foot-col a {
    color: #9992b8;
    text-decoration: none;
    font-size: 14px;
    transition: color .2s, transform .2s;
}
.foot-col a:hover { color: var(--violet-300); transform: translateX(3px); }

.foot-bottom {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 13px;
    color: #7d769c;
}

/* =========================================================
   MODALS  (theme-matched)
   ========================================================= */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(23, 19, 43, 0.62);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: #fff;
    padding: 36px 32px;
    border-radius: 20px;
    text-align: center;
    width: 360px;
    max-width: 100%;
    box-shadow: var(--shadow-lg);
    border-top: 5px solid transparent;
    border-image: linear-gradient(135deg, var(--violet-500), var(--cyan-500)) 1;
    border-image-slice: 1;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--violet-700);
    font-size: 21px;
    letter-spacing: -.5px;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 13px 15px;
    border: 2px solid var(--line);
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--font);
    margin-bottom: 10px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
    color: var(--ink);
}
.modal-content input:focus,
.modal-content select:focus {
    border-color: var(--violet-400);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .16);
}

.error-text {
    color: var(--rose-500);
    font-size: 13px;
    min-height: 20px;
    margin-bottom: 6px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
}
.modal-buttons button {
    padding: 12px 26px;
    border: none;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.modal-buttons button:first-child {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 20px rgba(109, 40, 217, .3);
}
.modal-buttons button:first-child:hover { transform: translateY(-2px); }
.modal-buttons button:last-child { background: var(--surface-2); color: var(--body); }
.modal-buttons button:last-child:hover { background: var(--line); }

/* =========================================================
   CHAT SCREEN
   ========================================================= */
#chatScreen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #efeafc;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 13px 18px;
    background: linear-gradient(135deg, var(--violet-700), var(--violet-500));
    color: #fff;
    gap: 13px;
    box-shadow: var(--shadow-md);
}

.back-btn {
    background: rgba(255,255,255,.16);
    border: none;
    color: #fff;
    font-size: 21px;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 10px;
    transition: background .2s;
}
.back-btn:hover { background: rgba(255,255,255,.28); }

.chat-header-info { flex: 1; min-width: 0; }
.chat-header-info h3 { font-size: 16px; font-weight: 700; }
.user-badge { font-size: 12px; opacity: .85; }

.chat-header-actions { display: flex; align-items: center; gap: 8px; }
.idle-badge {
    background: rgba(255,255,255,.2);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(139,92,246,.10), transparent 60%),
        radial-gradient(600px 300px at 0% 100%, rgba(6,182,212,.10), transparent 60%),
        #efeafc;
}

.msg {
    max-width: 65%;
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
    word-wrap: break-word;
    position: relative;
    animation: fadeIn .2s ease;
    box-shadow: 0 2px 8px rgba(46,16,101,.07);
}

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

.msg.sent {
    align-self: flex-end;
    background: var(--grad);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.msg.received {
    align-self: flex-start;
    background: #fff;
    border-bottom-left-radius: 4px;
}

.msg .time {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.75);
    text-align: right;
    margin-top: 5px;
}
.msg.received .time { color: var(--muted); }

.msg.read .time::after {
    content: ' \2713\2713';
    color: #d8ffe9;
}
.msg.received.read .time::after { color: var(--emerald-500); }

.chat-input-area {
    display: flex;
    padding: 14px 18px;
    background: #fff;
    border-top: 1px solid var(--line);
    gap: 12px;
    align-items: center;
}

#messageInput {
    flex: 1;
    padding: 13px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    background: var(--surface-2);
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
    min-width: 0;
}
#messageInput:focus {
    border-color: var(--violet-400);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .16);
    background: #fff;
}

#sendBtn {
    padding: 13px 26px;
    border: none;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: transform .18s, box-shadow .18s;
    box-shadow: 0 8px 20px rgba(109, 40, 217, .3);
}
#sendBtn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(109, 40, 217, .4); }

.chat-messages::-webkit-scrollbar { width: 7px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--violet-300); border-radius: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .course-grid, .path-grid, .feat-grid, .test-grid { grid-template-columns: repeat(2, 1fr); }
    .inst-grid { grid-template-columns: repeat(2, 1fr); }
    .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .hero { padding: 56px 0 70px; }
    .hero-grid { grid-template-columns: 1fr; gap: 54px; }
    .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
    .hero-sub { max-width: 100%; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        padding: 8px 5%;
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        width: 100%;
        padding: 14px 4px;
        border-bottom: 1px solid var(--line);
    }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links a::after { display: none; }

    .hamburger { display: flex; }
    .nav-actions .btn-ghost { display: none; }

    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .cta-form { width: 100%; max-width: 100%; }
}

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

    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .course-grid, .path-grid, .feat-grid, .test-grid,
    .inst-grid { grid-template-columns: 1fr; }

    .hero-stats { gap: 26px; }
    .hstat strong { font-size: 22px; }

    .sec-head { flex-direction: column; align-items: flex-start; }
    .center-head { align-items: center; }

    .filter-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .course-toolbar { flex-direction: column; align-items: stretch; }
    .count-badge { text-align: center; }

    .float-card { display: none; }
    .fc-cert { display: flex; top: -18px; right: 0; transform: scale(.9); }

    .brands-inner ul { gap: 18px; }
    .brands-inner li { font-size: 15px; }

    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-bottom { justify-content: center; text-align: center; }

    .cta-form { flex-direction: column; border-radius: 20px; background: transparent; border: none; padding: 0; gap: 12px; }
    .cta-form input { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; }
    .cta-form .btn { width: 100%; }

    .msg { max-width: 84%; }
}

@media (max-width: 420px) {
    .cat-grid { grid-template-columns: 1fr; }
    .hero-search { flex-direction: column; border-radius: 20px; }
    .hero-search .btn { width: 100%; }
    .nav-actions .icon-btn { display: none; }
}
