/* --- RESET & ZMIENNE --- */
:root {
    /* Premium Boutique Colors - Magenta Theme */
    --brand-magenta: #ff47af; /* Magenta */
    --brand-magenta-dark: #e6007e;
    --brand-dark-navy: #0F172A;
    --brand-bg-light: #F8FAFC;
    
    --brand-primary: var(--brand-dark-navy);
    --brand-accent: var(--brand-magenta);
    --brand-surface: #FFFFFF;
    --brand-bg: var(--brand-bg-light);
    --brand-white: #FFFFFF;

    /* Legacy Map (Override for global consistency without breaking structure) */
    --text-color: var(--brand-primary);
    --body-color: #475569; /* slate-600 */
    --muted-color: #64748b; /* slate-500 */
    --primary-color: var(--brand-magenta);
    --primary-gradient: linear-gradient(135deg, var(--brand-magenta) 0%, var(--brand-magenta-dark) 100%);
    --bg-soft: #F1F5F9;
    --accent-color: var(--brand-accent);
    --border-color: #E2E8F0;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow-premium: 0 20px 40px -15px rgba(15,23,42,0.1);
    
    /* Card Accent Colors */
    --card-blue: #EFF6FF;
    --card-mint: #ECFDF5;
    --card-neutral: var(--brand-surface);
    --card-process: #F8FAFC;
}

/* ============================================================
   P1 FIX: Glassmorphism utility — single source of truth.
   Previously buried as inline styles inside gramatyka-engine.js strings.
   ============================================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   P1 FIX: Lesson navigation button — CSS hover replaces
   JS mouseover/mouseout listeners (prevents memory leaks).
   Used by renderNavigation(), renderComingSoon(), and
   the Next Lesson CTAs after exercises and writing challenge.
   ============================================================ */
.lesson-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid var(--brand-magenta-dark, #e6007e);
    border-radius: 10px;
    background: transparent;
    color: var(--brand-magenta-dark, #e6007e);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.lesson-nav-btn:hover {
    background: var(--brand-magenta-dark, #e6007e);
    color: #fff;
    transform: translateY(-1px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    color: var(--body-color);
    overflow-x: hidden;
    background-color: var(--bg-soft);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Montserrat', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.025em !important;
    color: var(--text-color) !important;
}

p, li {
    color: var(--body-color);
    line-height: 1.75;
}

/* --- TŁO RESPONSYWNE I ZIARNO (FILM GRAIN) --- */
body {
    background-color: var(--bg-soft);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    /* Wymagane dla pseudoelementu z ziarnem */
    padding-top: 72px; /* Zapas dla stałego headera */
}

@media (max-width: 1024px) {
    body {
        padding-top: 64px;
    }
}

/* Wirtualne Ziarno Fotograficzne (Noise/Film Grain) generowane w przeglądarce */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    /* Pozwala klikać "przez" ziarno w przyciski! */
    z-index: 1000;
    /* Ziarno ma być nad zdjęciem, ale przyciski i teksty też muszą sobie z tym radzić jeśli to potrzebne (dlatego pointer events = none) */

    /* Generujemy delikatny cyfrowy szum SVG.
       Wartość 'opacity' można zmienić, aby osłabić/wzmocnić efekt. Obecnie jest ekstremalnie luksusowy i dyskretny (0.05). */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
}

@media (min-width: 768px) {
    body {
        /* Background moved to hero-section picture for LCP optimization */
        background-position: center -10%;
    }
}

/* --- GLOBAL NAVIGATION (Coursera Style) --- */
.global-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85)); border-bottom: 1px solid rgba(241, 245, 249, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(241, 245, 249, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
    z-index: 2000;
    display: flex;
    align-items: center;
    padding: 0 5%;
    justify-content: space-between;
    transition: all 0.3s ease;
}

/* Stan scrollowania (opcjonalnie mniejszy header) */
.global-navbar.scrolled {
    height: 64px;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(230, 0, 126, 0.3);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -0.5px;
    text-transform: none; /* Reset z hero h1 if inherited */
}

.logo-text span {
    color: var(--primary-color);
}

.nav-browse {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-browse:hover {
    background: #c10063;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(230, 0, 126, 0.25);
}

.nav-center {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
    position: relative;
}

.header-search {
    width: 100%;
    padding: 12px 20px 12px 48px;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.header-search:focus {
    background: #1e293b;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(230, 0, 126, 0.1);
    outline: none;
}

.search-icon-inside {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link-item {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link-item:hover {
    color: var(--primary-color);
}

.nav-cta-btn {
    padding: 10px 22px;
    background: #1e293b;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-cta-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(230, 0, 126, 0.2);
}

/* Mobile optimizations */
@media (max-width: 1024px) {
    .nav-center, .nav-browse span, .nav-link-item:not(.nav-login) {
        display: none;
    }
    .global-navbar {
        padding: 0 20px;
        height: 64px;
    }
}

/* --- UKŁAD GŁÓWNY --- */
.hero-section {
    display: flex;
    align-items: center;
    /* Tekst po prawej stronie (jak na Twoim obrazku) */
    justify-content: flex-end;
    min-height: 100vh;
    padding: 20px 10%;
    /* Zapas od prawej krawędzi (10% szerokości ekranu) */
    position: relative;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Kontener na tekst i przyciski */
.hero-content {
    text-align: center;
    max-width: 650px;
    z-index: 10;
    animation: fadeIn 1.2s ease-out;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 400;
    letter-spacing: 8px;
    /* Rozstrzelone litery jak na projekcie */
    margin-bottom: 25px;
    color: #6a6a6a;
    /* Delikatniejszy, ciemny szary dla imienia */
    text-transform: uppercase;
}

.hero-content h2 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    color: #777777;
    /* Subtelny kolor podtytułu */
    margin-bottom: 45px;
    letter-spacing: 0.5px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- LANGUAGE SWITCHER (GLOSSY DROPDOWN) --- */
.lang-switcher {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.7) 0%, rgba(10, 10, 10, 0.9) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    height: 40px;
    overflow: hidden;
    transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
    cursor: pointer;
    z-index: 1000;
}

.lang-switcher:hover {
    height: 120px;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.85) 0%, rgba(15, 15, 15, 0.95) 100%);
}

.lang-switcher a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: color 0.2s ease, background 0.2s ease;
    padding: 10px 24px;
    width: 100%;
    text-align: center;
    line-height: 20px;
}

.lang-switcher a.active {
    order: -1;
    color: #ffffff;
    font-weight: 600;
    position: relative;
    padding-right: 32px;
}

.lang-switcher a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.lang-switcher a.active::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-20%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #ffffff;
    transition: transform 0.3s ease;
}

.lang-switcher:hover a.active::after {
    transform: translateY(-20%) rotate(180deg);
}

/* --- TOP BAR (PRAWY GÓRNY RÓG) --- */
.top-bar-container {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #f1f5f9;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 40px;
}

.nav-login-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* --- PRZYCISKI --- */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    /* Zwijanie na małych ekranach */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

/* Primary CTA: "Zacznij naukę" & Inne */
.btn-primary-hero,
.btn-primary {
    background: var(--brand-magenta) !important;
    background-image: none !important;
    color: var(--brand-white) !important;
    border: 1px solid var(--brand-magenta) !important;
    box-shadow: 0 8px 20px rgba(230, 0, 126, 0.25) !important;
    font-size: 1.05rem;
    transition: all 0.3s ease-in-out !important;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-hero:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #e6007e 0%, #c10063 100%) !important; animation: cta-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    border-color: var(--brand-magenta-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(230, 0, 126, 0.35) !important;
}

.btn-primary-hero:focus,
.btn-primary:focus {
    outline: 3px solid var(--brand-magenta) !important;
    outline-offset: 2px !important;
}

/* Secondary CTA: "Strategia" */
.btn-secondary-hero {
    background: transparent;
    border: 2px solid #6C63FF;
    color: #6C63FF !important;
}

.btn-secondary-hero:hover {
    background: rgba(108, 99, 255, 0.08);
    transform: translateY(-2px);
}

/* Tertiary CTA: "O mnie" */
.btn-tertiary-hero {
    background: transparent;
    border-color: transparent;
    color: var(--muted-color) !important;
}

.btn-tertiary-hero:hover {
    color: var(--primary-color) !important;
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

/* --- DOSTOSOWANIE MOBILNE --- */
@media (max-width: 767px) {
    .hero-section {
        justify-content: center;
        align-items: center; /* Center vertically on mobile for hero */
        min-height: 85vh; /* Reduced height to ensure H1 is visible */
        padding: 20px;
    }

    .hero-img {
        object-position: top center; /* Focus on head area */
    }

    .hero-content {
        padding: 30px 20px;
        /* Dodajemy na komórce delikatne szklane tło wokół tekstu, żeby był czytelny nałożony na ciemniejsze fragmenty zdjęcia */
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .hero-content h1 {
        letter-spacing: 4px;
        /* Na małych ekranach literki węziej */
    }

    .top-bar-container {
        top: 20px;
        right: 20px;
    }

    .lang-switcher {
        top: 20px;
        left: 20px;
        padding: 4px 12px;
        gap: 8px;
    }

    .nav-login-btn {
        padding: 6px 18px;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.4);
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
}

/* --- ANIMACJE --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ULEPSZENIE FORMATOWANIA TEORII - LISTY */
.theory-list-styled {
    margin: 10px 0 35px 25px;
    padding: 0;
    list-style: none; /* dla UL ukryte natywne */
}

ul.theory-list-styled li {
    position: relative;
    margin-bottom: 16px;
    line-height: 1.7;
    padding-left: 20px;
    font-size: 1.15rem;
    color: #334155;
}

ul.theory-list-styled li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-magenta);
    box-shadow: 0 0 10px rgba(230, 0, 126, 0.5);
}

ol.theory-list-styled {
    list-style-type: decimal;
    margin-left: 45px;
}

ol.theory-list-styled li {
    margin-bottom: 16px;
    line-height: 1.7;
    padding-left: 10px;
    font-size: 1.15rem;
    color: #334155;
}

strong, b {
    font-weight: 700;
    color: #0f172a;
}
/* ---------- */

/* --- SEKCJE / LANDING PAGES --- */
html {
    scroll-behavior: smooth;
    /* Płynne przewijanie do sekcji po kliknięciu przysku */
}

/* Domyślne tło dla całej przewijanej osi Y ustawiamy jako obraz główny ("master background") 
   (Ponieważ obraz "bg-mobile.webp" z Twoją twarzą jest tylko dla sekcji Hero, kolejne strony 
   powinny ujawnić obraz z tła "master background") */

.landing-pages {
    position: relative;
    z-index: 10;
    /* Efekt tła parallaxu - "master background" siedzi w miejscu wgłębieniowym */
    background-image: url('master-bg-mobile.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (min-width: 768px) {
    .landing-pages {
        background-image: url('master-bg.webp');
    }
}

.content-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(15, 23, 42, 0.3);
    /* Szkło między tłem a treścią */
    backdrop-filter: blur(10px);
    /* Miękki blur master backgroundu żeby tekst był absolutnie czytelny */
    -webkit-backdrop-filter: blur(10px);
}

.content-section:nth-child(even) {
    background-color: rgba(15, 23, 42, 0.4);
    /* Część sekcji z odrobinę innym szkłem dla estetycznego oddzielenia */
}

.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(241, 245, 249, 0.1);
    border-radius: 18px;
    box-shadow: var(--shadow-premium);
    transition: all 0.25s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
}

.section-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 50px;
    background: rgba(30, 41, 59, 0.7); backdrop-filter: blur(12px); border: 1px solid rgba(241, 245, 249, 0.1);
    /* Czytelniejsza "kartka" na wprowadzanie treści wizualnych */
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 1);
}

.section-container h2 {
    font-size: 2.2rem;
    font-weight: 300;
    color: #f1f5f9;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.section-container p {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* --- SEKCJA "O MNIE" --- */
.about-section {
    background-color: rgba(255, 255, 255, 0.4);
    padding: 120px 20px;
}

.about-container {
    max-width: 1150px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 60px;
}

@media (min-width: 1024px) {
    .about-container {
        flex-direction: row;
        align-items: stretch;
    }
}

.about-text {
    flex: 1 1 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- ABOUT SECTION BULLET LIST --- */
.about-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.about-bullet-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 1.15rem;
    color: #334155;
    line-height: 1.6;
}
.about-bullet-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--brand-magenta);
    font-size: 0.9rem;
}

/* --- ABOUT PORTRAIT (RIGHT SIDE/TOP MOBILE) --- */
.about-portrait {
    flex: 1 1 450px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    max-height: 650px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
}

/* Mobile-only horizontal label (hidden on desktop) */
.about-mobile-label {
    display: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #c10063;
    text-transform: none;
    margin-bottom: 24px !important;
    text-align: center;
}

.about-text h2 {
    font-size: 2.8rem;
    font-weight: 300;
    color: #f1f5f9;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.about-highlight {
    font-weight: 500;
    color: #e6007e;
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 35px;
    max-width: 650px;
}

.about-text p.lead {
    font-size: 1.3rem;
    color: #e6007e;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 650px;
}

.about-text p {
    font-size: 1.1rem;
    color: #f1f5f9;
    line-height: 1.85;
    margin-bottom: 25px;
    font-weight: 400;
    max-width: 650px;
}

.about-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #e6007e;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.about-cta-link:hover {
    border-bottom: 1px solid #e6007e;
}

@media (max-width: 768px) {
    .about-section {
        padding: 80px 20px;
    }

    .about-text h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
}

/* --- SEKCJA "JAK DZIAŁA" --- */
.how-section {
    background-color: transparent;
    /* Brak tła, samo ziarno i master BG */
}

.how-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.how-header {
    text-align: center;
    margin-bottom: 60px;
}

.how-header h2 {
    font-size: 2.2rem;
    font-weight: 300;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.how-header p.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #cbd5e1;
}

.how-staggered {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    padding: 20px 0;
}

.how-card {
    padding: 28px;
    border-radius: 18px;
    background: var(--card-process);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    width: 60%;
}

.how-card:hover {
    transform: translateY(-4px);
}

/* Przewaga po lewej i po prawej */
.card-left {
    align-self: flex-start;
}

.card-right {
    align-self: flex-end;
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-top: 1px solid rgba(255, 255, 255, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08), inset 0 2px 5px rgba(255, 255, 255, 0.8);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 65px rgba(0, 0, 0, 0.12), inset 0 2px 5px rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.how-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 12px;
}

.how-card p {
    font-size: 1.05rem;
    color: #4a4a4a;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 15px;
}

.how-card p:last-child {
    margin-bottom: 0;
}


/* --- SEKCJA "ZACZNIJ NAUKĘ" --- */
.start-section {
    background-color: transparent;
}

.start-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.start-header {
    text-align: center;
    margin-bottom: 50px;
}

.start-header h2 {
    font-size: 2.2rem;
    font-weight: 300;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.start-header p.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #cbd5e1;
}

.start-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

a.start-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    padding: 28px;
    text-align: center;
    align-items: center;
    cursor: pointer;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease;
}

a.start-card:hover {
    transform: translateY(-4px);
}

.card-accent-blue {
    background: var(--card-blue);
    border-color: rgba(230, 0, 126, 0.1) !important;
}

.card-accent-mint {
    background: var(--card-mint);
    border-color: rgba(16, 185, 129, 0.1) !important;
}

.card-neutral {
    background: var(--card-neutral);
}

.start-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 500;
    color: #222;
}

.start-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #444;
    line-height: 1.6;
}

.card-action {
    font-weight: 600;
    font-size: 1rem;
    color: #111;
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    padding-bottom: 3px;
    margin-top: auto;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.start-card:hover .card-action {
    color: #cbd5e1;
    border-bottom-color: #cbd5e1;
}

/* --- PODSTRONY (SUBPAGES) --- */
.subpage {
    background-image: url('master-bg-mobile.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 80px;
}

@media (min-width: 768px) {
    .subpage {
        background-image: url('master-bg.webp');
        padding-top: 120px;
    }
}

.back-button {
    position: absolute;
    top: 60px;
    left: 40px;
    text-decoration: none;
    color: #f1f5f9;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.subpage-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Formularz Kontaktowy */
.glass-form-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.05), inset 0 0 20px rgba(255, 255, 255, 0.7);
    width: 100%;
    max-width: 650px;
    text-align: center;
}

.glass-form-container h2 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 10px;
    color: #222;
}

.glass-form-container p {
    color: #cbd5e1;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #f1f5f9;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #f1f5f9;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* BACK BUTTONS GLASSMORPHISM */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.btn-back:hover {
    background: #fff;
    color: #e6007e;
    border-color: rgba(230, 0, 126, 0.2);
    transform: translateX(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form button {
    margin-top: 15px;
    font-size: 1.15rem;
    padding: 16px;
    border-radius: 12px;
    width: 100%;
    /* Pełna szerokość dla przycisku Wyślij */
    border: none;
}

/* Platforma Edukacyjna */
.platform-header {
    text-align: center;
    margin-bottom: 70px;
}

.platform-header h2 {
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 15px;
    color: #222;
}

.platform-header p {
    font-size: 1.25rem;
    color: #444;
    margin-bottom: 40px;
}

.test-button {
    font-size: 1.15rem;
    padding: 18px 45px;
    border-radius: 40px;
    font-weight: 500;
    border: none;
}

.levels-title {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
    color: #f1f5f9;
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 900px;
    /* Eleganckie scentrowanie do środka */
    margin: 0 auto;
}

.course-row {
    display: flex;
    flex-direction: column;
    padding: 30px 40px;
    border-radius: 20px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.course-level {
    font-size: 2.8rem;
    font-weight: 600;
    color: #222;
    min-width: 140px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    margin-right: 30px;
}

.course-info {
    flex: 1;
    padding-right: 30px;
}

.course-info h4 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.course-info p {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.course-action {
    flex-shrink: 0;
}

.course-action button {
    padding: 14px 28px;
    font-size: 1rem;
    white-space: nowrap;
    cursor: pointer;
    /* Przyciski są teraz klikalne */
    pointer-events: auto;
    /* Zdejmujemy blokadę w razie czego */
}

/* Reakcja mobilna na pionowe ekrany */
@media (max-width: 991px) {
    .about-container {
        flex-direction: column;
        gap: 30px;
    }

    .about-banner {
        display: none;
    }

    .about-mobile-label {
        display: block;
    }

    .about-text {
        text-align: center;
        padding-right: 0;
    }

    .about-text h2 {
        text-align: center;
    }

    .how-staggered {
        gap: 30px;
    }

    .how-card {
        width: 100%;
        align-self: center;
    }

    .start-grid {
        grid-template-columns: 1fr;
    }

    .glass-form-container {
        padding: 40px 25px;
    }

    .back-button {
        top: 20px;
        left: 20px;
    }

    .course-row {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .course-level {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        margin-right: 0;
        margin-bottom: 20px;
        padding-bottom: 10px;
        width: 100%;
    }

    .course-info {
        padding-right: 0;
        margin-bottom: 25px;
    }

    .course-action button {
        width: 100%;
    }
}

/* --- AUTH MODAL (Logowanie / Rejestracja) --- */
.auth-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.auth-modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.05);
    color: #fff;
    text-align: left;
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #fff;
}

.auth-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.5);
}

.auth-input::placeholder {
    color: #888;
}

/* --- BANER COOKIES --- */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    /* Poza ekranem dla animacji (150 powinno starczyć, wyjedzie) */
    left: 20px;
    right: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.cookie-banner {
    background: rgba(30, 41, 59, 0.7); backdrop-filter: blur(12px); border: 1px solid rgba(241, 245, 249, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1), inset 0 0 15px rgba(255, 255, 255, 0.3);
    padding: 30px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show {
    bottom: 0;
    /* Animacja wysunięcia  */
}

.cookie-banner-content {
    flex: 1;
}

.cookie-banner-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.cookie-banner-content p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
    align-items: center;
}

.cookie-btn {
    width: 100%;
    padding: 12px 20px;
    text-align: center;
    font-size: 0.95rem;
    border-radius: 30px;
}

.cookie-outline {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #f1f5f9;
}

.cookie-outline:hover {
    background: rgba(0, 0, 0, 0.05);
}

.cookie-link {
    font-size: 0.85rem;
    color: #777;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: color 0.3s;
    margin-top: 5px;
}

.cookie-link:hover {
    color: #111;
    border-bottom-color: #cbd5e1;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        right: 0;
        left: 0;
        bottom: -350px;
        border-radius: 20px 20px 0 0;
    }

    .cookie-banner-actions {
        width: 100%;
        min-width: 100%;
    }
}

/* --- TESTIMONIALS MARQUEE --- */
.testimonials-section {
    overflow: hidden;
    white-space: nowrap;
    margin-top: 60px;
    padding: 40px 0;
    background: transparent;
    position: relative;
}

.testimonials-section::before,
.testimonials-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.testimonials-section::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.testimonials-section::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.testimonials-track {
    display: inline-block;
    animation: scroll-testimonials 40s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    display: inline-flex;
    flex-direction: column;
    width: 340px;
    white-space: normal;
    background: rgba(30, 41, 59, 0.7); backdrop-filter: blur(12px); border: 1px solid rgba(241, 245, 249, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin: 0 15px;
    vertical-align: top;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.stars {
    color: #facc15;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.testimonial-text {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 15px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.author-info h5 {
    margin: 0;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 600;
}

.author-info span {
    color: #64748b;
    font-size: 0.8rem;
}

@keyframes scroll-testimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- INTERAKTYWNE NARZĘDZIA (BENTO GRID) --- */
.tools-section {
    padding: 100px 20px;
    background: transparent;
}

.tools-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tools-header {
    text-align: center;
    margin-bottom: 60px;
}

.tools-header h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    color: #111;
    margin-bottom: 15px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 20px;
}

.bento-card {
    text-decoration: none;
    color: inherit;
    padding: 35px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.bento-main {
    grid-column: span 2;
    grid-row: span 1;
    background: linear-gradient(135deg, rgba(230, 0, 126, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bento-accent-1 {
    grid-column: span 1;
    background: rgba(59, 130, 246, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bento-accent-2 {
    grid-column: span 1;
    background: rgba(16, 185, 129, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.bento-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.bento-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1F2937;
}

.bento-card p {
    font-size: 0.95rem;
    color: #4B5563;
    line-height: 1.6;
}

.bento-action {
    margin-top: auto;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
    padding-top: 20px;
    letter-spacing: -0.2px;
}

.bento-main::before,
.bento-accent-1::before,
.bento-accent-2::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(230, 0, 126, 0.1) 0%, transparent 60%);
    z-index: 1;
    transition: all 0.6s ease;
}

.bento-accent-1::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
}

.bento-accent-2::before {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
}

.bento-card:hover::before {
    opacity: 0.3;
}

.bento-tag,
.bento-title,
.bento-card p,
.bento-action {
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-main {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-main,
    .bento-accent-1,
    .bento-accent-2 {
        grid-column: span 1;
    }
}

/* TRUST & RESULTS */
.trust-section {
    padding: 100px 0;
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.trust-header {
    text-align: center;
    margin-bottom: 60px;
}

.trust-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1.5px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 30px;
}

.stats-panel {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    background: linear-gradient(135deg, rgba(230, 0, 126, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(230, 0, 126, 0.1);
    border-radius: 32px;
}

.stat-item {
    margin-bottom: 40px;
}

.stat-value {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-description {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
}

.testimonial-card.glass-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial-card .testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #f1f5f9;
    font-weight: 500;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #f1f5f9;
}

.author-info span {
    font-size: 0.85rem;
    color: #64748b;
}

/* MODERN FOOTER */
.main-footer {
    background: #F2F4F8;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 100px 0 60px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-cta {
    background: var(--text-color);
    color: white;
    padding: 80px;
    border-radius: 40px;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.footer-cta h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-cta p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

.footer-btn {
    display: inline-block;
    background: #1e293b;
    color: var(--text-color);
    padding: 20px 48px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.footer-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column a {
    display: block;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 40px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-bottom:hover {
    opacity: 1;
    color: var(--text-color);
}

@media (max-width: 900px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .stats-panel {
        grid-row: auto;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-cta {
        padding: 50px 30px;
    }
}

@media (max-width: 600px) {
    .footer-nav {
        grid-template-columns: 1fr;
    }

    .trust-header h2 {
        font-size: 2.2rem;
    }
}

/* HERO BUTTONS GLASSMORPHISM */
.btn-hero {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-primary-hero {
    background: #e6007e;
    color: #ffffff;
    border: 1px solid #e6007e;
    box-shadow: 0 10px 25px rgba(230, 0, 126, 0.3);
}

.btn-primary-hero:hover {
    background: #c10063;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(230, 0, 126, 0.4);
}

.btn-secondary-hero {
    background: rgba(255, 255, 255, 0.6);
    color: #e6007e;
    border: 1px solid rgba(230, 0, 126, 0.2);
}

.btn-secondary-hero:hover {
    background: rgba(230, 0, 126, 0.05);
    border-color: #e6007e;
    transform: translateY(-3px);
    color: #c10063;
}

/* BACK BUTTONS GLASSMORPHISM */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-back:hover {
    background: #fff;
    color: #0f172a;
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- INFINITE AUTHORITY CAROUSEL --- */
.trust-section {
    position: relative;
    padding: 80px 0 120px 0;
    width: 100%;
    /* overflow:hidden removed — prevents clipping of scale(1.13) card */
}

#testimonials-carousel {
    width: 100%;
    overflow: hidden;
    /* Zero manual scrolling or browser interference */
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 100px 0;
    /* Extra vertical room for 1.2x scale + shadow */
    overflow-y: visible;
    pointer-events: none;
    /* Cinema Lock — completely ignores cursor/touch */
}

#testimonials-carousel::-webkit-scrollbar {
    display: none;
}

#testimonials-track {
    display: flex;
    gap: 100px !important;
    padding: 0 50px;
    width: max-content;
    align-items: center;
}

.testimonial-card-modern {
    min-width: 420px;
    flex: 0 0 420px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.9);
    opacity: 0.6;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.testimonial-card-modern.card-active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.stars-svg {
    display: flex;
    gap: 4px;
    margin-bottom: 5px;
}

.testimonial-text-modern {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    font-style: italic;
    font-weight: 400;
}

.card-separator {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 10px 0;
}

.testimonial-card-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-author-modern {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.05rem;
    margin: 0;
}

.testimonial-role {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(230, 0, 126, 0.25);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(230, 0, 126, 0.1);
}

.carousel-arrow:hover {
    background: rgba(230, 0, 126, 0.1);
    border-color: #e6007e;
    box-shadow: 0 0 20px rgba(230, 0, 126, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-left {
    left: 3%;
}

.carousel-arrow-right {
    right: 3%;
}

@media (max-width: 768px) {
    .testimonial-card-modern {
        min-width: 80vw;
        flex: 0 0 80vw;
        padding: 28px 24px;
    }

    .testimonial-card-modern.card-active {
        transform: scale(1);
        opacity: 1;
    }

    #testimonials-track {
        padding: 0 9%;
        gap: 24px !important;
    }

    .carousel-arrow {
        display: none;
    }
}

/* Premium Article Styles (Glassmorphism) */
.glass-article-wrapper {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 20px 50px rgba(230, 0, 126, 0.05), 0 10px 30px rgba(0, 0, 0, 0.02);
    margin: 140px auto 80px auto;
    max-width: 900px;
}

.post-header, .article-header {
    margin-bottom: 50px;
    text-align: center;
}

.post-category, .article-category {
    display: inline-block;
    padding: 6px 16px;
    color: #e6007e;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.post-header h1, .article-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #1e293b;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 25px;
}

.post-meta, .article-meta {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

.post-content, .article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
    max-width: 700px;
    margin: 0 auto;
}

.post-content p, .article-body p {
    margin-bottom: 30px;
}

.post-content h2, .article-body h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin: 50px 0 25px 0;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .glass-article-wrapper {
        padding: 40px 25px;
        margin-top: 100px;
    }
}
@keyframes cta-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 175, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(255, 71, 175, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 175, 0); }
}

/* ==========================================================================
   GLOBAL UI CONTRAST & HIERARCHY FIX (SaaS Modern)
   Overrides ghosting and legacy dark backgrounds from components
   ========================================================================== */

/* 1. Global Typography Reset */
:root {
    --text-color: #0f172a !important; /* Deep Navy headings */
    --body-color: #334155 !important; /* Solid Dark Gray body */
}

h1, h2, h3, h4, h5, h6, 
.section-container h2, 
.test-view h2, 
.platform-header h1,
.bento-title,
.course-info h4 {
    color: var(--text-color) !important;
    opacity: 1 !important;
}

p, li, 
.section-container p, 
.test-desc, 
.info-label, 
.info-value,
.course-info p,
.bento-card p,
.testimonial-text,
.auth-subtitle {
    color: var(--body-color) !important;
    opacity: 1 !important;
}

/* Exception for already white text inside strictly dark or accent elements */
.btn-primary, .btn-primary-hero, .btn-primary-magenta, .course-level-badge, .author-avatar {
    color: #ffffff !important;
}

/* 2. Card & Container Definition */
/* Targeting all variations of cards across subpages */
.glass-card, .card, .section-container, .test-container, .course-row, .auth-modal-content, .bento-card, .testimonial-card, .stats-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 3. UI Elements Contrast */
/* Buttons */
.btn, .btn-primary, .btn-outline {
    font-weight: 700 !important;
}

.btn-primary, .btn-primary-hero, .btn-primary-magenta {
    background: var(--brand-magenta) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(230, 0, 126, 0.2) !important;
}

/* Back Button (Navigation) */
.btn-back, .back-button {
    background: transparent !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    text-transform: none !important;
}

.btn-back:hover, .back-button:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

/* Form Inputs */
input, textarea, select, .auth-input {
    background: #ffffff !important;
    border: 1px solid #94a3b8 !important; /* Clear dark border */
    color: #1e293b !important;
}

input::placeholder, textarea::placeholder, .auth-input::placeholder {
    color: #64748b !important; /* Dark placeholder */
    opacity: 1 !important;
}

input:focus, textarea:focus, .auth-input:focus {
    border-color: var(--brand-magenta) !important;
    box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.1) !important;
    outline: none !important;
}
