/* ==========================================================================
   ETKİLİ DİKSİYON EĞİTİMİ - ULTRA MODERN KOYU MOD SUNUM TASARIMI (CSS)
   ========================================================================== */

:root {
    --bg-dark: #070B14;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --border-glass: rgba(255, 255, 255, 0.12);
    
    /* Vibrant Accents */
    --color-cyan: #06B6D4;
    --color-cyan-glow: rgba(6, 182, 212, 0.4);
    --color-pink: #F43F5E;
    --color-pink-glow: rgba(244, 63, 94, 0.4);
    --color-emerald: #10B981;
    --color-emerald-glow: rgba(16, 185, 129, 0.4);
    --color-purple: #8B5CF6;
    --color-purple-glow: rgba(139, 92, 246, 0.4);
    --color-gold: #F59E0B;

    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dim: #64748B;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --header-height: 75px;
    --footer-height: 70px;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Light Theme Variables */
body.light-theme {
    --bg-dark: #F1F5F9;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(248, 250, 252, 1);
    --border-glass: rgba(0, 0, 0, 0.1);
    
    --text-main: #0F172A;
    --text-muted: #475569;
    --text-dim: #64748B;
}

body.light-theme .hero-title {
    background: linear-gradient(135deg, #0F172A 20%, #0284C7 60%, #4F46E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .slide-heading {
    background: linear-gradient(135deg, #0F172A 30%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .app-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .app-footer {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .brand-title {
    background: linear-gradient(135deg, #0F172A, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .vowel-desc {
    background: rgba(244, 63, 94, 0.08);
    color: #0F172A;
}

body.light-theme .sentence-display {
    background: rgba(241, 245, 249, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .sentence-display .word {
    color: #475569;
}

body.light-theme .twister-display-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

body.light-theme .twister-text {
    color: #0F172A;
}

body.light-theme .btn-icon-label, body.light-theme .btn-icon, body.light-theme .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0F172A;
}

body.light-theme .btn-icon-label:hover, body.light-theme .btn-icon:hover {
    background: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    user-select: none;
}

/* Background Animated Gradient Orbs */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: orbFloat 20s ease-in-out infinite alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-cyan), transparent);
}

.orb-2 {
    bottom: -15%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--color-purple), transparent);
    animation-delay: -7s;
}

.orb-3 {
    top: 30%;
    right: 20%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--color-pink), transparent);
    animation-delay: -14s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.1); }
}

/* ==========================================================================
   APP HEADER
   ========================================================================== */
.app-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    background: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-icon {
    font-size: 1.8rem;
    color: var(--color-cyan);
    filter: drop-shadow(0 0 10px var(--color-cyan));
}

.brand-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #FFF, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.slide-indicator {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.slide-indicator span:first-child {
    color: var(--color-cyan);
    font-size: 1.7rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-icon-label {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-icon-label:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

.btn-icon {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-cyan);
}

/* ==========================================================================
   MAIN PRESENTATION VIEWPORT
   ========================================================================== */
.presentation-viewport {
    flex: 1;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.25rem 3rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.98);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.slide-content {
    width: 100%;
    max-width: 1400px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    padding-bottom: 2.25rem; /* Safety zone against footer overlap */
}

/* Slide Typography & Tags */
.slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.tag-cyan { background: rgba(6, 182, 212, 0.15); border: 1px solid var(--color-cyan); color: #22D3EE; }
.tag-pink { background: rgba(244, 63, 94, 0.15); border: 1px solid var(--color-pink); color: #FB7185; }
.tag-emerald { background: rgba(16, 185, 129, 0.15); border: 1px solid var(--color-emerald); color: #34D399; }
.tag-purple { background: rgba(139, 92, 246, 0.15); border: 1px solid var(--color-purple); color: #A78BFA; }

.slide-heading {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FFFFFF 30%, #CBD5E1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    max-width: 900px;
}

.slide-desc strong {
    color: var(--text-main);
}

/* Grid Layouts */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.slide-media {
    display: flex;
    justify-content: center;
}

.image-frame {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 0.6rem;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 540px;
    transition: transform 0.3s ease;
}

.image-frame:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.25);
}

.slide-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.image-caption {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Feature List */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.feature-list li {
    font-size: 1.15rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.text-cyan { color: var(--color-cyan); }
.text-pink { color: var(--color-pink); }
.text-emerald { color: var(--color-emerald); }
.text-purple { color: var(--color-purple); }
.text-gold { color: var(--color-gold); }

/* ==========================================================================
   SLIDE 1: HERO SLIDE
   ========================================================================== */
.hero-slide {
    text-align: center;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--color-cyan);
    color: var(--color-cyan);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 20px var(--color-cyan-glow);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFFFFF 20%, #38BDF8 60%, #818CF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 3rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    text-align: left;
    backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.p-cyan::before { background: var(--color-cyan); }
.p-pink::before { background: var(--color-pink); }
.p-emerald::before { background: var(--color-emerald); }
.p-purple::before { background: var(--color-purple); }

.pillar-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.p-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.p-cyan .p-icon { background: rgba(6, 182, 212, 0.2); color: var(--color-cyan); }
.p-pink .p-icon { background: rgba(244, 63, 94, 0.2); color: var(--color-pink); }
.p-emerald .p-icon { background: rgba(16, 185, 129, 0.2); color: var(--color-emerald); }
.p-purple .p-icon { background: rgba(139, 92, 246, 0.2); color: var(--color-purple); }

.pillar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;

}

.pillar-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.slide-start-tip {
    margin-top: 2.5rem;
    font-size: 0.95rem;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   INTERACTIVE COMPONENTS
   ========================================================================== */

/* Breathing Interactive Circle */
.breathing-interactive-box {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    backdrop-filter: blur(16px);
}

.breathing-circle-container {
    width: 110px;
    height: 110px;
    display: grid;
    place-items: center;
    position: relative;
}

.breathing-circle {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3), rgba(6, 182, 212, 0.05));
    border: 3px solid var(--color-cyan);
    box-shadow: 0 0 25px var(--color-cyan-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 1s ease-in-out;
}

.breathing-circle.inhale {
    transform: scale(1.25);
    background: radial-gradient(circle, rgba(6, 182, 212, 0.6), rgba(6, 182, 212, 0.2));
}

.breathing-circle.hold {
    transform: scale(1.25);
    border-color: var(--color-gold);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

.breathing-circle.exhale {
    transform: scale(0.85);
    border-color: var(--color-pink);
    box-shadow: 0 0 20px var(--color-pink-glow);
}

#breath-status-text {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
}

#breath-timer-num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
}

.breathing-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-primary {
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
    color: #FFF;
}

.btn-cyan {
    background: linear-gradient(135deg, var(--color-cyan), #0284C7);
    box-shadow: 0 4px 15px var(--color-cyan-glow);
}

.btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--color-cyan-glow);
}

.breath-steps-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* Vowel Interactive Grid */
.vowel-box {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(16px);
}

.box-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vowel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.vowel-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 0.4rem 0.2rem;
    color: var(--text-main);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.vowel-btn span {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-pink);
}

.vowel-btn small {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.vowel-btn:hover, .vowel-btn.active {
    background: rgba(244, 63, 94, 0.15);
    border-color: var(--color-pink);
    transform: translateY(-2px);
}

.vowel-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    border-left: 3px solid var(--color-pink);
}

/* Pencil Exercise Card */
.pen-exercise-card {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.pen-icon {
    font-size: 1.6rem;
    color: var(--color-pink);
    background: rgba(244, 63, 94, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.pen-exercise-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #FFF;
    margin-bottom: 0.3rem;
}

.pen-exercise-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ==========================================================================
   SLIDE 4: TWISTER APP
   ========================================================================== */
.slide-header-center {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.twister-app-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.twister-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.t-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 0.4rem 0.95rem;
    border-radius: 50px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.t-tab:hover, .t-tab.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--color-emerald);
    color: #34D399;
}

.twister-display-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.twister-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.twister-badge {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--color-emerald);
    color: var(--color-emerald);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.speed-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.speed-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    color: var(--text-main);
    font-size: 0.8rem;
    cursor: pointer;
}

.speed-btn.active {
    background: var(--color-emerald);
    border-color: var(--color-emerald);
    color: #000;
    font-weight: 700;
}

.twister-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #FFF;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 1.25rem;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.twister-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-emerald {
    background: linear-gradient(135deg, var(--color-emerald), #059669);
    box-shadow: 0 4px 15px var(--color-emerald-glow);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-purple), #6D28D9);
    border: none;
    color: #FFF;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.record-status-bar {
    margin-top: 1.25rem;
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid var(--color-pink);
    color: #F472B6;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.rec-dot {
    width: 12px;
    height: 12px;
    background: var(--color-pink);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-pink);
    animation: blink 1s infinite alternate;
}

@keyframes blink { 0% { opacity: 0.3; } 100% { opacity: 1; } }

/* ==========================================================================
   SLIDE 5: EMPHASIS SWITCHER
   ========================================================================== */
.emphasis-interactive-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(16px);
}

.sentence-display {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 0.85rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.85rem;
}

.sentence-display .word {
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    color: var(--text-muted);
}

.sentence-display .word.active-emphasis {
    color: #FFF;
    background: var(--color-purple);
    box-shadow: 0 0 20px var(--color-purple-glow);
    transform: scale(1.1);
    display: inline-block;
}

.emphasis-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.emp-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.emp-btn:hover, .emp-btn.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--color-purple);
    color: #A78BFA;
    font-weight: 700;
}

.emphasis-meaning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #FCD34D;
}

.liaison-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 0.85rem;
}

.liaison-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    color: var(--color-cyan);
}

.liaison-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SLIDE 6: POSTURE COMPARISON
   ========================================================================== */
.posture-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.posture-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
}

.do-card { border-top: 4px solid var(--color-emerald); }
.dont-card { border-top: 4px solid var(--color-pink); }

.posture-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.posture-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.posture-card li {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.45;
    position: relative;
    padding-left: 1.25rem;
}

.posture-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-dim);
}

/* ==========================================================================
   SLIDE 7: ROUTINE CHECKLIST
   ========================================================================== */
.routine-steps-grid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    max-width: 900px;
    margin-bottom: 1rem;
}

.routine-step {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(16px);
    transition: all 0.2s ease;
}

.routine-step:hover {
    background: var(--bg-card-hover);
    border-color: var(--color-emerald);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--color-emerald);
    background: rgba(16, 185, 129, 0.15);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.step-content { flex: 1; }

.step-content h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #FFF;
    margin-bottom: 0.1rem;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.step-check {
    width: 18px;
    height: 18px;
    accent-color: var(--color-emerald);
    cursor: pointer;
}

.finish-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid var(--color-gold);
    color: #FDE68A;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   APP FOOTER CONTROLS
   ========================================================================== */
.app-footer {
    height: var(--footer-height);
    background: rgba(7, 11, 20, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.progress-bar-container {
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
}

.progress-bar-fill {
    height: 100%;
    width: 14.28%;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
    box-shadow: 0 0 10px var(--color-cyan);
    transition: width 0.3s ease;
}

.footer-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 0.6rem 1.4rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-btn-primary {
    background: linear-gradient(135deg, var(--color-cyan), #0284C7);
    border: none;
    box-shadow: 0 4px 15px var(--color-cyan-glow);
}

.nav-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--color-cyan-glow);
}

.slide-dots {
    display: flex;
    gap: 0.6rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--color-cyan);
    box-shadow: 0 0 12px var(--color-cyan);
    width: 28px;
    border-radius: 20px;
}

/* Modal Presenter Notes */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: grid;
    place-items: center;
}

.modal-backdrop.hidden {
    display: none;
}

.modal-card {
    background: #0F172A;
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    width: 90%;
    max-width: 650px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8);
    overflow: hidden;
}

.modal-header {
    padding: 1.25rem 1.75rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-family: var(--font-heading);
    color: var(--color-cyan);
    font-size: 1.2rem;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

.btn-close:hover { color: #FFF; }

.modal-body {
    padding: 1.75rem;
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.65;
}

.modal-body ul {
    margin-top: 0.85rem;
    padding-left: 1.25rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

/* Utilities */
.hidden { display: none !important; }

/* ==========================================================================
   SLIDE 5: PARAGRAPH PRACTICE APP STYLES
   ========================================================================== */
.paragraph-app-container {
    max-width: 1150px;
    margin: 0 auto;
    width: 100%;
}

.p-level-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.p-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.p-tab:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFF;
}

.p-tab.active {
    background: rgba(244, 63, 94, 0.15);
    border-color: var(--color-pink);
    color: #FB7185;
    box-shadow: 0 0 15px var(--color-pink-glow);
}

.p-tab.p-easy.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--color-emerald);
    color: #34D399;
    box-shadow: 0 0 15px var(--color-emerald-glow);
}

.p-tab.p-medium.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--color-gold);
    color: #FCD34D;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.p-tab.p-hard.active {
    background: rgba(244, 63, 94, 0.15);
    border-color: var(--color-pink);
    color: #FB7185;
    box-shadow: 0 0 15px var(--color-pink-glow);
}

.paragraph-display-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.25rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.p-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.75rem;
}

.p-badge-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.p-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.badge-easy {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--color-emerald);
    color: #34D399;
}

.badge-medium {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--color-gold);
    color: #FCD34D;
}

.badge-hard {
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid var(--color-pink);
    color: #FB7185;
}

.p-meta-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.p-focus-badge {
    font-size: 0.8rem;
    color: var(--color-cyan);
    background: rgba(6, 182, 212, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    font-weight: 600;
}

.btn-toggle-durak {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 0.35rem 0.85rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-toggle-durak.active, .btn-toggle-durak:hover {
    background: rgba(244, 63, 94, 0.15);
    border-color: var(--color-pink);
    color: #FB7185;
}

.paragraph-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.p-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-pink);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.paragraph-text {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-main);
    letter-spacing: 0.2px;
}

.durak-mark {
    color: var(--color-pink);
    font-weight: 900;
    padding: 0 4px;
    margin: 0 2px;
    border-radius: 4px;
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.4);
    display: inline-block;
    box-shadow: 0 0 10px var(--color-pink-glow);
}

.p-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.25rem;
}

.p-nav-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.p-counter-text {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 100px;
    text-align: center;
}

.btn-pink {
    background: linear-gradient(135deg, var(--color-pink), #E11D48);
    box-shadow: 0 4px 15px var(--color-pink-glow);
}

.btn-pink:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--color-pink-glow);
}

.reading-timer-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-timer {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-timer:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

.btn-timer.timer-running {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #FFF;
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.timer-display {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wpm-badge {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--color-emerald);
    color: #34D399;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

/* Level 4 Badge & Tabs */
.p-tab.p-long.active {
    background: rgba(168, 85, 247, 0.15);
    border-color: #C084FC;
    color: #E9D5FF;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.badge-long {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid #C084FC;
    color: #E9D5FF;
}

/* ==========================================================================
   SLIDE 7: TED GİBİ KONUŞ MODULE STYLES
   ========================================================================== */
.ted-app-container {
    max-width: 1150px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ted-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.ted-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.75rem;
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ted-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
    background: var(--bg-card-hover);
}

.ted-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
}

.t-star .ted-icon { background: rgba(244, 63, 94, 0.2); color: var(--color-pink); }
.t-story .ted-icon { background: rgba(168, 85, 247, 0.2); color: #C084FC; }
.t-humor .ted-icon { background: rgba(16, 185, 129, 0.2); color: #34D399; }
.t-sensory .ted-icon { background: rgba(6, 182, 212, 0.2); color: var(--color-cyan); }

.ted-card h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFF;
}

.ted-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* TED Case Studies Section */
.ted-case-container {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(20px);
}

.case-section-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #FFF;
    margin-bottom: 0.5rem;
}

.ted-case-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.ted-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ted-tab:hover, .ted-tab.active {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    box-shadow: 0 0 15px var(--color-cyan-glow);
}

.ted-case-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ted-case-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ted-speaker-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #FFF;
    margin-top: 0.2rem;
}

.ted-metric-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.ted-quote-box {
    background: rgba(245, 158, 11, 0.08);
    border-left: 4px solid var(--color-gold);
    padding: 0.6rem 0.85rem;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 0.95rem;
    color: #FDE68A;
    line-height: 1.45;
}

.ted-strategy-body p {
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.ted-takeaway-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    font-size: 0.88rem;
    color: #A7F3D0;
}

.btn-sm {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.8rem !important;
}

@media (max-width: 900px) {
    .ted-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Viewport and layout adjustments for shorter screens - ALL SLIDES COMPREHENSIVE */
@media (max-height: 860px) {
    :root {
        --header-height: 60px;
        --footer-height: 55px;
    }
    
    .slide {
        padding: 0.75rem 2rem;
    }
    
    .slide-content {
        padding-bottom: 1.5rem;
    }
    
    .hero-badge {
        margin-bottom: 0.75rem;
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .pillars-grid {
        gap: 1rem;
    }
    
    .pillar-card {
        padding: 1.25rem 1rem;
    }
    
    .pillar-card h3 {
        font-size: 1.1rem;
    }
    
    .pillar-card p {
        font-size: 0.85rem;
    }
    
    .slide-heading {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }
    
    .slide-desc {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .grid-2-col {
        gap: 1.5rem;
    }
    
    .slide-img {
        height: 180px;
    }
    
    .feature-list {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-list li {
        font-size: 0.95rem;
        gap: 0.5rem;
    }
    
    .image-frame {
        padding: 0.4rem;
    }

    /* All Slides Component Spacing Adjustments */
    .vowel-box, .pen-exercise-card, .liaison-card, .emphasis-interactive-card {
        padding: 10px 15px;
        margin-bottom: 8px;
    }
    
    .vowel-grid {
        gap: 6px;
    }
    
    .vowel-btn {
        padding: 6px 4px;
    }
    
    .vowel-btn span {
        font-size: 1rem;
    }

    .twister-app-container, .paragraph-app-container, .ted-app-container {
        margin-top: 5px;
    }

    .twister-tabs, .p-level-tabs, .ted-case-tabs {
        margin-bottom: 8px;
        gap: 6px;
    }

    .t-tab, .p-tab, .ted-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .twister-display-card, .paragraph-display-card, .ted-case-card {
        padding: 16px 20px;
    }

    .twister-text {
        font-size: 1.2rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .paragraph-box {
        padding: 12px 16px;
        margin-bottom: 10px;
    }

    .paragraph-text {
        font-size: 1rem;
        line-height: 1.5;
    }

    .p-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .p-card-footer, .twister-actions {
        margin-top: 10px;
        gap: 10px;
    }

    .btn-primary, .btn-secondary, .btn-accent, .btn-timer {
        padding: 8px 14px;
        font-size: 0.88rem;
    }

    .ted-grid {
        gap: 8px;
        margin-bottom: 8px;
    }

    .ted-card {
        padding: 8px;
        gap: 2px;
    }

    .ted-card h3 {
        font-size: 0.88rem;
    }

    .ted-card p {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .ted-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }

    .ted-case-container {
        padding: 8px 12px;
        border-radius: 12px;
    }

    .case-section-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .ted-case-tabs {
        margin-bottom: 6px;
        gap: 4px;
    }

    .ted-tab {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .ted-case-card {
        padding: 10px 12px;
        gap: 6px;
    }

    .ted-speaker-name {
        font-size: 0.95rem;
    }

    .ted-quote-box {
        padding: 5px 8px;
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .ted-strategy-body p {
        font-size: 0.78rem;
        line-height: 1.35;
        margin-bottom: 4px;
    }

    .ted-takeaway-box {
        padding: 4px 8px;
        font-size: 0.78rem;
    }

    .posture-comparison-grid {
        gap: 12px;
    }

    .posture-card {
        padding: 12px;
    }

    .posture-card h4 {
        font-size: 0.92rem;
        margin-bottom: 6px;
    }

    .posture-card li {
        font-size: 0.88rem;
        margin-bottom: 4px;
    }

    .routine-steps-grid {
        gap: 10px;
    }

    .routine-step {
        padding: 10px 14px;
    }

    .step-num {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .finish-banner {
        padding: 8px 16px;
        font-size: 0.88rem;
    }
}

@media (max-height: 720px) {
    :root {
        --header-height: 50px;
        --footer-height: 48px;
    }
    
    .slide {
        padding: 0.5rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .pillar-card {
        padding: 1rem;
    }
    
    .pillar-card h3 {
        font-size: 0.95rem;
    }
    
    .pillar-card p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .slide-heading {
        font-size: 1.5rem;
    }
    
    .slide-desc {
        font-size: 0.88rem;
        line-height: 1.4;
    }
    
    .slide-img {
        height: 140px;
    }
    
    .feature-list li {
        font-size: 0.88rem;
    }

    /* Extra compact layout for <= 720px */
    .vowel-box, .pen-exercise-card, .liaison-card, .emphasis-interactive-card {
        padding: 8px 12px;
    }

    .vowel-grid {
        gap: 4px;
    }

    .vowel-btn {
        padding: 4px 2px;
    }

    .vowel-btn span {
        font-size: 0.9rem;
    }

    .twister-display-card, .paragraph-display-card {
        padding: 12px 16px;
    }

    .twister-text {
        font-size: 1.05rem;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .paragraph-box {
        padding: 10px 14px;
        margin-bottom: 8px;
    }

    .paragraph-text {
        font-size: 0.88rem;
        line-height: 1.4;
    }

    .ted-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .ted-card {
        padding: 6px;
        gap: 1px;
    }

    .ted-card h3 {
        font-size: 0.8rem;
    }

    .ted-card p {
        display: none; /* Hide descriptions to save huge height */
    }

    .ted-icon {
        width: 24px;
        height: 24px;
        font-size: 0.85rem;
    }

    .ted-case-container {
        padding: 6px 10px;
    }

    .case-section-title {
        font-size: 0.8rem;
    }

    .ted-case-tabs {
        margin-bottom: 4px;
    }

    .ted-tab {
        padding: 3px 6px;
        font-size: 0.7rem;
    }

    .ted-case-card {
        padding: 6px 10px;
        gap: 4px;
    }

    .ted-speaker-name {
        font-size: 0.85rem;
    }

    .ted-quote-box {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .ted-strategy-body p {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 2px;
    }

    .ted-takeaway-box {
        padding: 3px 6px;
        font-size: 0.72rem;
    }

    .posture-card {
        padding: 10px;
    }

    .posture-card h4 {
        font-size: 0.88rem;
    }

    .posture-card li {
        font-size: 0.82rem;
    }

    .routine-step {
        padding: 8px 12px;
    }

    .step-content h4 {
        font-size: 0.88rem;
    }

    .step-content p {
        font-size: 0.78rem;
    }
}

