/* =====================================================
   KODKITABI — Premium Dark Theme
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --sidebar-width: 280px;
    --header-height: 64px;
    --lesson-tabs-height: 52px;

    /* Ana palet */
    --bg-base: #0b0f1a;
    --bg-surface: #111827;
    --bg-elevated: #1a2236;
    --bg-card: rgba(26, 34, 54, 0.8);

    --border-subtle: rgba(148, 163, 184, 0.1);
    --border-medium: rgba(148, 163, 184, 0.18);

    /* Metin */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Aksanlar */
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #8b5cf6, #06b6d4);

    /* Kod bloğu */
    --code-bg: #0d1117;
    --code-header: #161b22;
    --code-border: #30363d;

    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'Cascadia Code', 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
}

/* =====================================================
   ANA SAYFA — HERO
   ===================================================== */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #020617 0%, #0f172a 40%, #1e1b4b 70%, #0f172a 100%);
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.55) 0%, rgba(2, 6, 23, 0.35) 40%, rgba(15, 23, 42, 0.4) 60%, rgba(2, 6, 23, 0.7) 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse 600px 400px at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 500px 300px at 80% 30%, rgba(6, 182, 212, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 300px 300px at 50% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.15) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,0.18) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.15) 0%, transparent 100%),
        radial-gradient(1.2px 1.2px at 90% 40%, rgba(255,255,255,0.12) 0%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a78bfa;
    width: fit-content;
    letter-spacing: 0.02em;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #f8fafc;
}

.hero-title-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    font-weight: 400;
    margin: 0 auto;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    justify-content: center;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity var(--transition), transform var(--transition);
    border: none;
}

.hero-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: #fff;
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--border-medium);
    transition: all var(--transition);
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.2);
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 12px;
    justify-content: center;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* =====================================================
   ANA SAYFA — DİL KARTLARI
   ===================================================== */
.languages-section {
    padding: 100px 24px;
    background: var(--bg-base);
    position: relative;
}

.languages-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.language-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

.language-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--lang-color, var(--accent-purple));
    opacity: 0.6;
    transition: opacity var(--transition);
}

.language-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(var(--lang-color-rgb, 139, 92, 246), 0.08);
}

.language-card:hover::before {
    opacity: 1;
}

.language-card-icon {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 4px;
}

.language-card-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.language-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.language-card-stats {
    display: flex;
    gap: 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

.language-card-stats i {
    margin-right: 6px;
    color: var(--lang-color, var(--accent-purple));
}

.language-card-arrow {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lang-color, var(--accent-purple));
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--transition);
}

.language-card:hover .language-card-arrow {
    gap: 14px;
}

/* =====================================================
   ÖĞRENME SAYFASI
   ===================================================== */
.learn-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-base);
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    border-right: 1px solid var(--border-subtle);
    transition: transform var(--transition);
    z-index: 100;
}

.sidebar-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-lang-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-lang-name::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lang-color, var(--accent-purple));
    box-shadow: 0 0 12px var(--lang-color, var(--accent-purple));
    flex-shrink: 0;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
    scrollbar-width: thin;
    scrollbar-color: #1e293b transparent;
}

.sidebar-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 0 20px 10px;
    text-transform: uppercase;
}

.topic-list {
    list-style: none;
}

.topic-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition);
    border-left: 3px solid transparent;
    position: relative;
}

.topic-link:hover {
    background: rgba(255,255,255,0.03);
    color: var(--text-primary);
}

.topic-link.active {
    background: rgba(139, 92, 246, 0.08);
    color: #a78bfa;
    border-left-color: var(--accent-purple);
    font-weight: 600;
}

.topic-arrow {
    font-size: 0.6rem;
    opacity: 0.4;
    transition: all var(--transition);
}

.topic-link.active .topic-arrow {
    opacity: 1;
    transform: rotate(90deg);
    color: var(--accent-purple);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-subtle);
}

.other-lang-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.other-lang-link:hover {
    color: var(--text-secondary);
}

/* =====================================================
   CONTENT AREA
   ===================================================== */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-base);
}

/* =====================================================
   HEADER
   ===================================================== */
.content-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    height: var(--header-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.logo-link i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
}

.lang-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    padding: 0 8px;
}

.lang-nav::-webkit-scrollbar {
    display: none;
}

.lang-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.lang-tab:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
}

.lang-tab.active {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    font-weight: 600;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    margin-left: auto;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.04);
}

/* =====================================================
   LESSON TABS
   ===================================================== */
.lesson-tabs-wrapper {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.lesson-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.lesson-tabs {
    display: flex;
    padding: 0 24px;
    gap: 0;
    min-height: var(--lesson-tabs-height);
    align-items: flex-end;
}

.lesson-tab {
    padding: 12px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.lesson-tab:hover {
    color: var(--text-secondary);
}

.lesson-tab.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
    font-weight: 600;
}

/* =====================================================
   LESSON CONTENT
   ===================================================== */
.lesson-content {
    flex: 1;
    overflow-y: auto;
    padding: 48px 56px;
    max-width: 880px;
}

.lesson-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.lesson-summary {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.lesson-body {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.lesson-body h2, .lesson-body h3 {
    font-weight: 700;
    color: var(--text-primary);
    margin: 36px 0 16px;
    letter-spacing: -0.01em;
}

.lesson-body h2 { font-size: 1.5rem; }
.lesson-body h3 { font-size: 1.2rem; }

.lesson-body p {
    margin-bottom: 16px;
}

.lesson-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.lesson-body ul, .lesson-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.lesson-body li {
    margin-bottom: 8px;
}

.lesson-body blockquote {
    border-left: 3px solid var(--accent-purple);
    padding: 16px 20px;
    margin: 24px 0;
    background: rgba(139, 92, 246, 0.06);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #c4b5fd;
    font-style: italic;
}

.lesson-body s {
    color: inherit;
}

.lesson-body .ql-size-small {
    font-size: 0.82em;
}

.lesson-body .ql-size-large {
    font-size: 1.35em;
}

.lesson-body .ql-size-huge {
    font-size: 1.75em;
}

.lesson-body .ql-align-center {
    text-align: center;
}

.lesson-body .ql-align-right {
    text-align: right;
}

.lesson-body .ql-align-justify {
    text-align: justify;
}

.lesson-body .ql-indent-1 { padding-left: 3em; }
.lesson-body .ql-indent-2 { padding-left: 6em; }
.lesson-body .ql-indent-3 { padding-left: 9em; }
.lesson-body .ql-indent-4 { padding-left: 12em; }
.lesson-body .ql-indent-5 { padding-left: 15em; }
.lesson-body .ql-indent-6 { padding-left: 18em; }
.lesson-body .ql-indent-7 { padding-left: 21em; }
.lesson-body .ql-indent-8 { padding-left: 24em; }

.lesson-body code {
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    border: 1px solid var(--border-subtle);
    border-radius: 5px;
    padding: 2px 5px;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.lesson-body pre,
.lesson-body .ql-code-block {
    background: var(--code-bg);
    color: #e2e8f0;
    border: 1px solid var(--code-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    line-height: 1.55;
}

.lesson-body pre code {
    background: transparent;
    border: none;
    padding: 0;
}

/* =====================================================
   CODE BLOCKS
   ===================================================== */
.code-blocks-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.code-block-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--code-border);
    background: var(--code-bg);
    box-shadow: var(--shadow-md);
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--code-header);
    border-bottom: 1px solid var(--code-border);
}

.code-block-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #8b949e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--code-border);
    color: #8b949e;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-sans);
}

.copy-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-secondary);
    border-color: rgba(255,255,255,0.2);
}

.copy-btn.copied {
    color: #7ee787;
    border-color: #7ee787;
}

.code-block-wrapper pre {
    margin: 0;
    border-radius: 0;
}

.code-block-wrapper pre code {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.7;
    padding: 20px 24px !important;
    display: block;
    overflow-x: auto;
}

/* Highlight.js override for dark theme */
.hljs {
    background: transparent !important;
}

/* =====================================================
   LESSON NAVIGATION
   ===================================================== */
.lesson-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: 32px;
    gap: 16px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
    max-width: 280px;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.06);
    color: var(--accent-purple);
}

.nav-btn span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-btn small {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nav-next {
    margin-left: auto;
    text-align: right;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state, .empty-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 24px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state i, .empty-page i {
    font-size: 4rem;
    opacity: 0.3;
}

.empty-page h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity var(--transition);
    border: none;
}

.btn-primary:hover {
    opacity: 0.9;
    color: #fff;
}

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =====================================================
   MOBİL
   ===================================================== */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
        z-index: 200;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 16px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .hero-subtitle {
        max-width: 100%;
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 20px;
    }

    .lesson-content {
        padding: 24px 20px;
    }

    .lesson-title {
        font-size: 1.5rem;
    }

    .lang-nav {
        display: none;
    }

    .lesson-navigation {
        flex-direction: column;
    }

    .nav-btn {
        width: 100%;
        max-width: 100%;
    }

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

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        max-width: 680px;
    }

    .hero-title {
        font-size: clamp(2.4rem, 4vw, 3.2rem);
    }

    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
