/* ═══════════════════════════════════════════════════════════════════════
   InterCW Academy — Udemy-Inspired Modern Light Theme
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    --bg:           #ffffff;
    --bg-soft:      #f7f9fa;
    --bg-dark:      #1c1d1f;
    --bg-darker:    #2d2f31;

    --text:         #1c1d1f;
    --text-soft:    #2d2f31;
    --text-muted:   #6a6f73;
    --text-white:   #ffffff;

    --border:       #d1d7dc;
    --border-light: #e6e9eb;

    --primary:      #6d28d9;       /* Deep purple (modern twist) */
    --primary-dark: #5b21b6;
    --primary-soft: #f3ebff;
    --accent:       #a435f0;       /* Udemy-ish accent */
    --gold:         #eb8a2f;
    --success:      #047c49;
    --info:         #0e75d6;

    --radius:       6px;
    --radius-lg:    12px;

    --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow:       0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-lg:    0 8px 20px rgba(0, 0, 0, 0.10);
    --shadow-hover: 0 4px 16px rgba(109, 40, 217, 0.12);

    --nav-h:        80px;
    --container:    1340px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Udemy Sans', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
}

a { color: inherit; text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary); }

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

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

.a-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─────── NAVBAR ─────── */
.a-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.a-nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.a-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text);
    letter-spacing: -0.01em;
    flex-shrink: 0;
}
.a-logo img { max-height: 36px; width: auto; }
.a-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
}

/* Kategori dropdown buton */
.a-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius);
    background: transparent;
    border: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.a-cat-btn:hover { background: var(--primary-soft); color: var(--primary); }

/* Büyük arama kutusu */
.a-search {
    flex: 1;
    max-width: 620px;
    position: relative;
}
.a-search input {
    width: 100%;
    height: 44px;
    padding: 0 1rem 0 2.75rem;
    border: 1px solid var(--text);
    border-radius: 24px;
    background: var(--bg-soft);
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.15s, background 0.15s;
}
.a-search input::placeholder { color: var(--text-muted); }
.a-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}
.a-search::before {
    content: "\F52A";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text);
    font-size: 1.1rem;
    pointer-events: none;
}

.a-nav-links {
    display: flex;
    gap: 0.1rem;
}
.a-nav-links a {
    padding: 0.55rem 0.85rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius);
    transition: background 0.15s, color 0.15s;
}
.a-nav-links a:hover { background: var(--primary-soft); color: var(--primary); }
.a-nav-links a.active { color: var(--primary); font-weight: 600; }

.a-nav-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.a-burger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.35rem;
}

.a-mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 1000;
    padding: 4.5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.a-mobile-menu.open { transform: translateX(0); }
.a-mobile-menu a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
}
.a-mobile-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─────── BUTONLAR ─────── */
.a-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    white-space: nowrap;
    font-family: inherit;
}
.a-btn-primary {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}
.a-btn-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

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

.a-btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--text);
}
.a-btn-outline:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }

.a-btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: transparent;
}
.a-btn-ghost:hover { background: var(--primary-soft); color: var(--primary); }

.a-btn-sm { padding: 0.45rem 0.85rem; font-size: 0.8rem; }
.a-btn-lg { padding: 0.95rem 1.75rem; font-size: 1rem; }
.a-btn-block { width: 100%; }

/* ─────── HERO ─────── */
.a-hero {
    background: linear-gradient(135deg, #f8f4ff 0%, #eeeaf6 100%);
    border-bottom: 1px solid var(--border-light);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.a-hero::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -200px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(164, 53, 240, 0.12), transparent 70%);
    pointer-events: none;
}
.a-hero::after {
    content: "";
    position: absolute;
    bottom: -250px;
    left: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.08), transparent 70%);
    pointer-events: none;
}
.a-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.a-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    background: rgba(109, 40, 217, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.a-hero-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.a-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    color: var(--text);
}
.a-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.a-hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 560px;
    margin: 0 0 2rem;
}
.a-hero-cta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.a-hero-search {
    max-width: 540px;
    position: relative;
    margin-top: 2rem;
}
.a-hero-search input {
    width: 100%;
    height: 56px;
    padding: 0 130px 0 1.25rem;
    border: 2px solid var(--text);
    border-radius: var(--radius);
    background: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
}
.a-hero-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.15);
}
.a-hero-search button {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    padding: 0 1.25rem;
    background: var(--text);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.a-hero-search button:hover { background: var(--primary); }

.a-hero-visual {
    position: relative;
}
.a-hero-visual img {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    border-radius: var(--radius-lg);
}

.a-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}
.a-hero-stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.a-hero-stat-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* ─────── SECTIONS ─────── */
.a-section {
    padding: 3.5rem 0;
    position: relative;
}
.a-section-alt { background: var(--bg-soft); }
.a-section-head {
    margin-bottom: 2rem;
    max-width: 720px;
}
.a-section-head.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.a-section-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.a-section-title {
    font-size: clamp(1.5rem, 2.8vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.6rem;
    line-height: 1.2;
    color: var(--text);
}
.a-section-sub {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.55;
    max-width: 640px;
    margin: 0;
}

.a-section-head-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ─────── GRID ─────── */
.a-grid {
    display: grid;
    gap: 1.25rem;
}
.a-grid-2 { grid-template-columns: repeat(2, 1fr); }
.a-grid-3 { grid-template-columns: repeat(3, 1fr); }
.a-grid-4 { grid-template-columns: repeat(4, 1fr); }
.a-grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ─────── KATEGORİ TILE (hero altı grid) ─────── */
.a-cat-tile {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: all 0.2s ease;
    display: block;
    color: var(--text);
}
.a-cat-tile:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--primary);
}
.a-cat-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}
.a-cat-tile-title {
    font-weight: 700;
    font-size: 0.92rem;
    margin: 0 0 0.2rem;
}
.a-cat-tile-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ─────── TILE (eğitim / eğitmen kartları) ─────── */
.a-grid-tiles { gap: 1.25rem; }

.a-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}
.a-tile:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}

.a-tile-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-soft);
}

/* Kapak yoksa logo fallback — beyaz soft arkaplan, logo küçük ve opaklığı düşük */
.a-tile-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f3ebff 0%, #faf7ff 50%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}
.a-tile-placeholder::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(164,53,240,0.18), transparent 70%);
    pointer-events: none;
}
.a-tile-placeholder::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109,40,217,0.12), transparent 70%);
    pointer-events: none;
}
.a-tile-placeholder img {
    max-width: 55%;
    max-height: 60%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.65;
    filter: saturate(0.85);
    position: relative;
    z-index: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.a-tile:hover .a-tile-placeholder img {
    opacity: 0.85;
    transform: scale(1.04);
}
.a-tile-placeholder .ph-icon {
    color: var(--primary);
    font-size: 2.75rem;
    opacity: 0.55;
    position: relative;
    z-index: 1;
}

.a-tile-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(109,40,217,0.3);
}

.a-tile-info {
    padding: 1rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}
.a-tile-kicker {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.a-tile-title {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.a-tile-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.1rem;
}

/* Büyük tile (eğitmen kartları için) */
.a-tile-lg .a-tile-img,
.a-tile-lg .a-tile-placeholder { aspect-ratio: 1 / 1; }
.a-tile-lg .a-tile-title { font-size: 1.05rem; }

/* Progress bar (my-trainings / dashboard) */
.a-progress {
    height: 4px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.4rem;
}
.a-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Mobil: grid'leri tek sütuna indir */
@media (max-width: 900px) {
    .a-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .a-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .a-grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
    .a-grid-4, .a-grid-3 { grid-template-columns: 1fr; }
    .a-grid-6 { grid-template-columns: repeat(2, 1fr); }
    .a-tile-placeholder img { max-width: 50%; }
}

/* ─────── COURSE CARD (Udemy style) ─────── */
.a-course-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    color: var(--text);
    height: 100%;
}
.a-course-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}
.a-course-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-soft);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.a-course-img-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-soft), #fff);
    display: flex;
    align-items: center;
    justify-content: center;
}
.a-course-img-placeholder img {
    max-width: 55%;
    max-height: 55%;
    opacity: 0.85;
}
.a-course-img-placeholder .ph-icon {
    color: var(--primary);
    font-size: 3rem;
    opacity: 0.5;
}

.a-course-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #eceb98;
    color: #3d3c0a;
    padding: 0.25rem 0.55rem;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    z-index: 2;
}
.a-course-badge.new { background: #cdeccd; color: #0a3d13; }
.a-course-badge.hot { background: #f9d3d3; color: #7a1a1a; }

.a-course-body {
    padding: 0.85rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.3rem;
}
.a-course-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0 0 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
}
.a-course-instructor {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}
.a-course-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    margin: 0.1rem 0;
}
.a-course-rating-num {
    font-weight: 700;
    color: #b4690e;
    font-size: 0.88rem;
}
.a-course-rating-stars { color: var(--gold); font-size: 0.82rem; }
.a-course-rating-count {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 0.15rem;
}
.a-course-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 0.4rem;
}
.a-course-meta i { color: var(--primary); }
.a-course-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-top: 0.3rem;
}
.a-course-price .free { color: var(--success); }

/* Carousel (yatay scroll) */
.a-carousel {
    position: relative;
}
.a-carousel-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    padding: 0.2rem 0.2rem 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.a-carousel-scroll > * { scroll-snap-align: start; }
.a-carousel-scroll::-webkit-scrollbar { height: 6px; }
.a-carousel-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.a-carousel-scroll::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─────── ÖZELLİK KARTI ─────── */
.a-feature {
    padding: 1.75rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
    text-align: left;
}
.a-feature:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.a-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.a-feature h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    color: var(--text);
}
.a-feature p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

/* ─────── INSTRUCTOR CARD ─────── */
.a-inst-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
    color: var(--text);
}
.a-inst-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-hover); color: var(--text); }
.a-inst-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 2rem;
}
.a-inst-photo img { width: 100%; height: 100%; object-fit: cover; }
.a-inst-name { font-weight: 800; font-size: 1rem; margin: 0 0 0.25rem; color: var(--text); }
.a-inst-title { color: var(--text-muted); font-size: 0.82rem; margin: 0 0 0.75rem; }
.a-inst-bio { color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ─────── BLOG KARTI ─────── */
.a-blog-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
    display: block;
    color: var(--text);
}
.a-blog-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--text);
}
.a-blog-image {
    aspect-ratio: 16 / 10;
    background-color: var(--bg-soft);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.a-blog-body { padding: 1.25rem; }
.a-blog-meta {
    display: flex;
    gap: 0.6rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.a-blog-cat {
    padding: 0.2rem 0.55rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 3px;
}
.a-blog-title {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.a-blog-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─────── TESTIMONIAL ─────── */
.a-testimonial {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}
.a-stars { color: var(--gold); font-size: 0.88rem; margin-bottom: 0.85rem; }
.a-testimonial-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.65;
    margin: 0 0 1.25rem;
}
.a-testimonial-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}
.a-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    overflow: hidden;
}
.a-testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.a-testimonial-name { font-weight: 700; font-size: 0.92rem; color: var(--text); }
.a-testimonial-title { font-size: 0.78rem; color: var(--text-muted); }

/* ─────── FAQ ─────── */
.a-faq-item {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 0.6rem;
    overflow: hidden;
    transition: border-color 0.2s;
}
.a-faq-item.open { border-color: var(--primary); }
.a-faq-q {
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    color: var(--text);
    font-size: 0.98rem;
    user-select: none;
}
.a-faq-q i {
    color: var(--text-muted);
    font-size: 1.15rem;
    transition: transform 0.3s, color 0.3s;
}
.a-faq-item.open .a-faq-q i { transform: rotate(180deg); color: var(--primary); }
.a-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}
.a-faq-item.open .a-faq-a { max-height: 500px; padding: 0 1.25rem 1.25rem; }

/* ─────── FORMLAR ─────── */
.a-form-group { margin-bottom: 1rem; }
.a-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}
.a-form-control {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.92rem;
    font-family: inherit;
    border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.a-form-control::placeholder { color: var(--text-muted); }
.a-form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}
textarea.a-form-control { min-height: 130px; resize: vertical; }
select.a-form-control { appearance: auto; }

/* ─────── CTA BAND ─────── */
.a-cta-band {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #3d0d78 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}
.a-cta-band::before, .a-cta-band::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.a-cta-band::before { top: -150px; right: -100px; width: 300px; height: 300px; }
.a-cta-band::after  { bottom: -100px; left: -80px; width: 240px; height: 240px; }
.a-cta-band > * { position: relative; z-index: 2; }
.a-cta-band h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}
.a-cta-band p {
    opacity: 0.9;
    max-width: 580px;
    margin: 0 auto 1.5rem;
    font-size: 1rem;
}
.a-cta-band .a-btn-primary {
    background: #fff;
    color: var(--text);
    border-color: #fff;
}
.a-cta-band .a-btn-primary:hover { background: var(--bg-soft); color: var(--primary); }
.a-cta-band .a-btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.a-cta-band .a-btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }

/* ─────── PAGE HEADER ─────── */
.a-page-header {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f4ff 0%, #eeeaf6 100%);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}
.a-page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(164,53,240,0.1), transparent 60%);
    pointer-events: none;
}
.a-page-header > * { position: relative; z-index: 2; }
.a-page-header h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}
.a-page-header p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

.a-breadcrumb {
    display: flex;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 0 0 1.5rem;
    flex-wrap: wrap;
}
.a-breadcrumb a:hover { color: var(--primary); }
.a-breadcrumb .sep::before { content: "›"; }

/* ─────── FOOTER ─────── */
.a-footer {
    background: var(--bg-dark);
    color: #cfd0d1;
    padding: 3.5rem 0 1.5rem;
    margin-top: 3.5rem;
}
.a-footer a { color: #cfd0d1; }
.a-footer a:hover { color: #fff; }
.a-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.a-footer h5 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.a-footer ul { list-style: none; padding: 0; margin: 0; }
.a-footer ul li { margin-bottom: 0.55rem; font-size: 0.88rem; }
.a-footer-brand { max-width: 320px; }
.a-footer-brand p {
    font-size: 0.88rem;
    margin: 1rem 0 1.25rem;
    line-height: 1.7;
    color: #cfd0d1;
}
.a-footer-social {
    display: flex;
    gap: 0.5rem;
}
.a-footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.15);
    color: #cfd0d1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.15s;
    border-radius: 50%;
}
.a-footer-social a:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
.a-footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
    gap: 1rem;
}

/* ─────── TOAST ─────── */
#a-toast-host {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: calc(100vw - 40px);
}
.a-toast {
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.2rem;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    animation: aToastIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.a-toast.hide { animation: aToastOut 0.25s ease-out forwards; }
.a-toast.success { border-left-color: var(--success); }
.a-toast.error   { border-left-color: #c0392b; }
.a-toast.info    { border-left-color: var(--info); }
.a-toast.warning { border-left-color: var(--gold); }

.a-toast-icon { flex-shrink: 0; color: var(--primary); font-size: 1.25rem; line-height: 1; }
.a-toast.success .a-toast-icon { color: var(--success); }
.a-toast.error   .a-toast-icon { color: #c0392b; }
.a-toast.warning .a-toast-icon { color: var(--gold); }
.a-toast.info    .a-toast-icon { color: var(--info); }
.a-toast-body { flex: 1; font-size: 0.88rem; }
.a-toast-title { font-weight: 700; margin-bottom: 0.15rem; color: var(--text); }
.a-toast-msg { color: var(--text-muted); line-height: 1.5; }
.a-toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
}

@keyframes aToastIn {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes aToastOut {
    to { opacity: 0; transform: translateX(50px); }
}

/* ─────── BADGE ─────── */
.a-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 3px;
}
.a-badge.dark { background: var(--text); color: #fff; }
.a-badge.success { background: #e6f4ea; color: var(--success); }
.a-badge.gold { background: #fff1db; color: #b4690e; }

/* ─────── AUTH PAGES ─────── */
.a-auth-wrap {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, #f8f4ff 0%, #eeeaf6 100%);
    position: relative;
    overflow: hidden;
}
.a-auth-wrap::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(164,53,240,0.14), transparent 70%);
    pointer-events: none;
}
.a-auth-wrap::after {
    content: "";
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109,40,217,0.10), transparent 70%);
    pointer-events: none;
}
.a-auth-card {
    position: relative;
    z-index: 2;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.25rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 50px rgba(109,40,217,0.10), 0 4px 12px rgba(0,0,0,0.04);
}
.a-auth-card-lg { max-width: 560px; }
.a-auth-header { text-align: center; margin-bottom: 2rem; }
.a-auth-header .a-logo-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(109,40,217,0.25);
}
.a-auth-header h2 {
    font-weight: 900;
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
    font-size: 1.8rem;
    color: var(--text);
}
.a-auth-header p { color: var(--text-muted); margin: 0; font-size: 0.92rem; }
.a-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}
.a-auth-footer a { color: var(--primary); font-weight: 700; }
.a-auth-footer a:hover { color: var(--primary-dark); }

.a-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}
@media (max-width: 560px) {
    .a-form-row { grid-template-columns: 1fr; }
    .a-auth-card { padding: 2rem 1.5rem; }
}

.a-alert {
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.a-alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.a-alert-success { background: #ecfdf5; color: #047c49; border: 1px solid #bbf7d0; }

/* ─────── COURSE DETAIL LIGHT HERO ─────── */
.a-course-hero-light {
    padding: 3.5rem 0 2.5rem;
    min-height: auto;
}
.a-course-hero-light .a-hero-inner { padding-top: 0; padding-bottom: 0; }

/* ─────── HOME SPOTLIGHT CARDS (quiz, firma, panel) ─────── */
.a-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.a-spotlight {
    position: relative;
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.a-spotlight:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); color: #fff; }
.a-spotlight.quiz { background: linear-gradient(135deg, #6d28d9 0%, #a435f0 100%); }
.a-spotlight.company { background: linear-gradient(135deg, #0e75d6 0%, #0ea5e9 100%); }
.a-spotlight.panel { background: linear-gradient(135deg, #047c49 0%, #10b981 100%); }
.a-spotlight-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.a-spotlight-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.6rem;
}
.a-spotlight h3 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 0.6rem;
    line-height: 1.25;
}
.a-spotlight p {
    font-size: 0.92rem;
    opacity: 0.92;
    line-height: 1.55;
    margin: 0 0 1.25rem;
    flex: 1;
}
.a-spotlight-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    width: fit-content;
    transition: background 0.15s;
}
.a-spotlight:hover .a-spotlight-btn { background: rgba(255,255,255,0.28); }
.a-spotlight::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

@media (max-width: 900px) {
    .a-spotlight-grid { grid-template-columns: 1fr; }
}

/* ─────── COURSE DETAIL (Udemy style) ─────── */
.a-course-hero {
    background: var(--bg-dark);
    color: #fff;
    padding: 3rem 0;
    position: relative;
}
.a-course-hero .a-breadcrumb { color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.a-course-hero .a-breadcrumb a { color: rgba(255,255,255,0.8); }
.a-course-hero .a-breadcrumb a:hover { color: #fff; }
.a-course-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    max-width: 800px;
    color: #fff;
}
.a-course-hero p.lede {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    max-width: 720px;
    margin: 0 0 1rem;
    line-height: 1.55;
}
.a-course-hero-meta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    margin: 1rem 0;
}
.a-course-hero-meta i { color: var(--gold); }

.a-course-detail {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    padding: 3rem 0;
}
.a-course-side {
    position: sticky;
    top: calc(var(--nav-h) + 16px);
    height: fit-content;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: -180px;
    z-index: 10;
}
.a-course-side-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-soft);
}
.a-course-side-body { padding: 1.5rem; }
.a-course-side-price {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 1rem;
}
.a-course-side-price .free { color: var(--success); }
.a-course-side ul {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    font-size: 0.88rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}
.a-course-side ul li {
    padding: 0.5rem 0;
    display: flex;
    gap: 0.65rem;
    align-items: center;
}
.a-course-side ul li i { color: var(--primary); width: 18px; }

/* Module / lesson list */
.a-module {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 0.6rem;
    overflow: hidden;
}
.a-module-h {
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border-light);
}
.a-module-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: var(--bg);
}
.a-module.open .a-module-body { max-height: 1500px; }
.a-lesson-item {
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.88rem;
    color: var(--text-soft);
}
.a-lesson-item:last-child { border-bottom: none; }
.a-lesson-item i { color: var(--primary); font-size: 1rem; }

/* ─────── BELGE KARTLARI ─────── */
.a-docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.a-doc {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.2s;
}
.a-doc:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.a-doc-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.a-doc-body { flex: 1; }
.a-doc-title { font-weight: 800; font-size: 0.95rem; margin: 0 0 0.3rem; color: var(--text); }
.a-doc-desc { color: var(--text-muted); font-size: 0.82rem; line-height: 1.55; margin: 0; }

.a-doc-visual {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
}
.a-doc-visual:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.a-doc-image {
    width: 100%;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-soft);
}
.a-doc-visual-body { padding: 1rem 1.25rem 1.2rem; }
.a-doc-visual .a-doc-title { font-size: 0.95rem; }

.a-doc-image { position: relative; }
.a-doc-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}
.a-doc-thumbs {
    display: flex;
    gap: 0.4rem;
    padding: 0.6rem 0.75rem;
    overflow-x: auto;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border-light);
}
.a-doc-thumb {
    flex: 0 0 60px;
    height: 45px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s, transform 0.15s;
}
.a-doc-thumb:hover { border-color: var(--primary); transform: translateY(-2px); }

/* ─────── DOC LIGHTBOX ─────── */
.a-doc-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.a-doc-lightbox.open { display: flex; }
.a-doc-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border-radius: 6px;
}
.a-doc-lightbox .close,
.a-doc-lightbox .nav {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background 0.15s;
}
.a-doc-lightbox .close:hover,
.a-doc-lightbox .nav:hover { background: rgba(255,255,255,0.25); }
.a-doc-lightbox .close { top: 20px; right: 20px; }
.a-doc-lightbox .nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.a-doc-lightbox .nav.next { right: 20px; top: 50%; transform: translateY(-50%); }
.a-doc-lightbox .counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.1);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}
@media (max-width: 600px) {
    .a-doc-lightbox .nav { width: 40px; height: 40px; }
    .a-doc-lightbox .nav.prev { left: 8px; }
    .a-doc-lightbox .nav.next { right: 8px; }
}

/* ─────── POPUP ─────── */
.a-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: popupFade 0.25s ease;
}
.a-popup-overlay.open { display: flex; }
@keyframes popupFade { from { opacity: 0; } to { opacity: 1; } }

.a-popup {
    background: var(--bg);
    max-width: 520px;
    width: 100%;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    animation: popupIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes popupIn {
    from { opacity: 0; transform: scale(0.95) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.a-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    z-index: 10;
    transition: background 0.15s;
}
.a-popup-close:hover { background: rgba(0,0,0,0.75); }
.a-popup-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-soft);
}
.a-popup-body { padding: 1.75rem; text-align: center; }
.a-popup-kicker {
    display: inline-block;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}
.a-popup h3 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
    color: var(--text);
}
.a-popup p {
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ─────── DASHBOARD ─────── */
.a-dash-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0;
    min-height: 70vh;
}
.a-dash-side {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1rem 0.75rem;
    height: fit-content;
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}
.a-dash-side a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    color: var(--text-soft);
    font-weight: 500;
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
    border-radius: var(--radius);
    transition: all 0.15s;
}
.a-dash-side a:hover,
.a-dash-side a.active {
    background: var(--primary-soft);
    color: var(--primary);
}
.a-dash-title {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1.75rem;
}

.a-stat-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    transition: all 0.2s;
}
.a-stat-card:hover { border-color: var(--primary); }
.a-stat-card-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.a-stat-card-num {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--text);
}

.a-progress {
    background: var(--border-light);
    height: 5px;
    overflow: hidden;
    border-radius: 3px;
    margin: 0.65rem 0 0.3rem;
}
.a-progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    height: 100%;
    transition: width 0.4s;
}

/* ─────── AUTH CARDS ─────── */
.a-auth-wrap {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, #f8f4ff 0%, #eeeaf6 100%);
}
.a-auth-card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

/* ─────── UTILITIES ─────── */
.a-text-center { text-align: center; }
.a-mb-1 { margin-bottom: 0.5rem; }
.a-mb-2 { margin-bottom: 1rem; }
.a-mb-3 { margin-bottom: 1.5rem; }
.a-mb-4 { margin-bottom: 2rem; }
.a-hidden { display: none !important; }
.a-text-muted { color: var(--text-muted); }
.a-text-primary { color: var(--primary); }
.a-full-w { width: 100%; }

/* ─────── RESPONSIVE ─────── */
@media (max-width: 1100px) {
    .a-grid-6 { grid-template-columns: repeat(4, 1fr); }
    .a-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .a-hero-inner { grid-template-columns: 1fr; }
    .a-hero-visual { display: none; }
    .a-course-detail { grid-template-columns: 1fr; gap: 2rem; }
    .a-course-side { position: static; margin-top: 0; }
    .a-dash-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .a-dash-side { position: static; display: flex; overflow-x: auto; gap: 0.3rem; }
    .a-dash-side a { flex-shrink: 0; white-space: nowrap; }
}

@media (max-width: 900px) {
    .a-search { max-width: none; }
    .a-nav-links { display: none; }
    .a-footer-grid { grid-template-columns: 1fr 1fr; }
    .a-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .a-grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    :root { --nav-h: 66px; }
    .a-burger { display: flex; align-items: center; justify-content: center; }
    .a-nav-inner { gap: 0.75rem; }
    .a-search { display: none; }
    .a-cat-btn { display: none; }
    .a-nav-actions .a-btn-outline { display: none; }
    .a-hero { padding: 3rem 0 2.5rem; }
    .a-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; }
    .a-section { padding: 2.5rem 0; }
    .a-grid-2, .a-grid-3, .a-grid-4, .a-grid-6 { grid-template-columns: 1fr; }
    .a-docs-grid { grid-template-columns: 1fr; }
    .a-footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .a-cta-band { padding: 2.5rem 1.5rem; }
    #a-toast-host { top: 76px; right: 10px; left: 10px; }
    .a-toast { max-width: 100%; min-width: 0; }
    .a-faq-wrap { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .a-contact-wrap { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
    .a-carousel-scroll { grid-auto-columns: minmax(220px, 80%); }
}

@media (max-width: 480px) {
    .a-grid-cards-mobile { grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem !important; }
    .a-grid-cards-mobile .a-course-title { font-size: 0.88rem; }
    .a-grid-cards-mobile .a-course-body { padding: 0.7rem 0.8rem 0.9rem; }
}
