:root {
    --primary: #00f2fe; /* Neon Cyan */
    --primary-dark: #00b4d8;
    --secondary: #4facfe;
    --dark: #0a0a0a;
    --darker: #050505;
    --light: #e0e0e0;
    --white: #ffffff;
    
    /* Neons */
    --neon-blue: #00f2fe;
    --neon-green: #39ff14;
    --neon-orange: #ff6f00;
    --neon-pink: #ff007f;
    --neon-purple: #b200ff;
    --neon-red: #ff2a2a;
    
    /* Fractions Glow */
    --f-paper: rgba(0, 119, 255, 0.3);
    --f-glass: rgba(0, 255, 85, 0.15);
    --f-plastic: rgba(255, 204, 0, 0.15);
    --f-bio: rgba(139, 69, 19, 0.5);
    --f-mixed: rgba(80, 80, 80, 0.5);

    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--light);
    line-height: 1.6;
    background-color: var(--darker);
    overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.2; margin-bottom: 1rem; color: var(--white); }
p { margin-bottom: 1rem; }

.text-center { text-align: center; }
.text-light { color: var(--light); }
.highlight { 
    background: -webkit-linear-gradient(0deg, var(--neon-blue), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-glow { text-shadow: 0 0 15px rgba(0, 242, 254, 0.8), 0 0 30px rgba(0, 242, 254, 0.6), 0 0 60px rgba(0, 242, 254, 0.4); }

/* Neons Text */
.text-neon-blue { color: var(--neon-blue); text-shadow: 0 0 10px var(--neon-blue); }
.text-neon-green { color: var(--neon-green); text-shadow: 0 0 10px var(--neon-green); }
.text-neon-orange { color: var(--neon-orange); text-shadow: 0 0 10px var(--neon-orange); }
.text-neon-pink { color: var(--neon-pink); text-shadow: 0 0 10px var(--neon-pink); }
.text-neon-purple { color: var(--neon-purple); text-shadow: 0 0 10px var(--neon-purple); }
.text-neon-red { color: var(--neon-red); text-shadow: 0 0 10px var(--neon-red); }

/* Layout & Utils */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; position: relative; border-bottom: 2px solid rgba(0, 242, 254, 0.1); }
.section::after {
    content: ''; position: absolute; bottom: -2px; left: 10%; width: 80%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    box-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue);
}
.section-title { font-size: 3rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: 2px;}
.section-subtitle { font-size: 1.2rem; color: #a0a0a0; margin-bottom: 4rem; }

.section-dark { background-color: var(--dark); }
.section-darker { background-color: var(--darker); }
.relative { position: relative; }
.z-10 { z-index: 10; }

/* Cinematic Glass - Neon Edition */
.glass {
    background: rgba(10, 15, 20, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 242, 254, 0.5);
    box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.1), 0 0 20px rgba(0, 242, 254, 0.2);
    transition: var(--transition);
}
.glass:hover {
    box-shadow: inset 0 0 40px rgba(0, 242, 254, 0.3), 0 0 50px rgba(0, 242, 254, 0.5);
    border-color: var(--neon-blue);
}
/* Card specific glows */
.card.card-earth:hover {
    box-shadow: inset 0 0 80px rgba(0, 119, 255, 0.4), 0 0 50px rgba(0, 119, 255, 0.4) !important;
    border-color: rgba(0, 119, 255, 1) !important;
}
.card.card-recycle:hover {
    box-shadow: inset 0 0 80px rgba(57, 255, 20, 0.3), 0 0 50px rgba(57, 255, 20, 0.3) !important;
    border-color: rgba(57, 255, 20, 1) !important;
}
.card.card-idea:hover {
    box-shadow: inset 0 0 80px rgba(255, 204, 0, 0.3), 0 0 50px rgba(255, 204, 0, 0.3) !important;
    border-color: rgba(255, 204, 0, 1) !important;
}
.glass-border {
    background: rgba(10, 15, 20, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(57, 255, 20, 0.4);
    box-shadow: inset 0 0 20px rgba(57, 255, 20, 0.1), 0 0 20px rgba(57, 255, 20, 0.1);
    transition: var(--transition);
}
.glass-border:hover {
    box-shadow: inset 0 0 40px rgba(57, 255, 20, 0.3), 0 0 50px rgba(57, 255, 20, 0.4);
    border-color: var(--neon-green);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: rgba(0, 242, 254, 0.1);
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3), inset 0 0 15px rgba(0, 242, 254, 0.1);
    animation: pulseHalo 2s infinite;
}

@keyframes pulseHalo {
    0% {
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.3), inset 0 0 15px rgba(0, 242, 254, 0.1), 0 0 0 0 rgba(0, 242, 254, 0.6);
    }
    70% {
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.3), inset 0 0 15px rgba(0, 242, 254, 0.1), 0 0 0 25px rgba(0, 242, 254, 0);
    }
    100% {
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.3), inset 0 0 15px rgba(0, 242, 254, 0.1), 0 0 0 0 rgba(0, 242, 254, 0);
    }
}

.btn-primary:hover {
    background: var(--neon-blue);
    color: var(--darker);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
    animation: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logo-text { font-size: 1.5rem; font-weight: 800; color: var(--white); letter-spacing: 2px;}
.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--light); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--neon-blue); text-shadow: 0 0 8px var(--neon-blue); }
.btn-quiz-nav { border: 1px solid var(--neon-blue); padding: 0.5rem 1.5rem; border-radius: 4px; color: var(--neon-blue) !important; }
.btn-quiz-nav:hover { background: var(--neon-blue); color: var(--darker) !important; }

/* Navbar SPSP1 Logo */
.nav-logo-link {
    padding: 0; display: flex; align-items: center; justify-content: center; border: none; background: transparent; margin: -1.5rem 0 -1.5rem 10px; flex-direction: row; text-decoration: none;
}
.nav-logo-img { height: 72px; vertical-align: middle; transition: var(--transition); }
.nav-logo-text { display: none; }

/* Cinematic Hero Video */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    object-fit: cover;
    opacity: 0.6; /* Slight dim for text visibility */
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Lighter gradient so the video is visible and bright */
    background: linear-gradient(0deg, var(--darker) 0%, rgba(5,5,5,0.1) 30%, rgba(5,5,5,0.4) 100%);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1.5s ease forwards;
}
.mission-status {
    color: var(--neon-red);
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--neon-red);
}
.hero-content h1 { font-size: 5rem; font-weight: 800; margin-bottom: 1.5rem; }
.hero-content p { font-size: 1.4rem; color: #ccc; margin-bottom: 3rem; }
.hero-buttons { display: flex; gap: 1.5rem; justify-content: center; }

/* Reels Section */
.reels-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 1.5rem 3rem 1.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-blue) var(--darker);
}
.reels-container::-webkit-scrollbar { height: 8px; }
.reels-container::-webkit-scrollbar-track { background: var(--darker); }
.reels-container::-webkit-scrollbar-thumb { background-color: var(--neon-blue); border-radius: 10px; }

.reel-wrapper {
    flex: 0 0 300px;
    height: 533px; /* 9:16 aspect roughly */
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}
.reel-wrapper:hover {
    transform: scale(1.02);
    border-color: var(--neon-blue);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}
.reel-wrapper:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}
.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--white);
    background: rgba(0,0,0,0.5);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 5px; /* center the play triangle */
    opacity: 0.7;
    transition: var(--transition);
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
}

/* Grid & Cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { padding: 3rem 2rem; border-radius: 12px; transition: var(--transition); text-align: center; }
.card:hover { transform: translateY(-10px); border-color: var(--neon-blue); box-shadow: 0 10px 40px rgba(0, 242, 254, 0.15); }
.card-icon { font-size: 3.5rem; margin-bottom: 1.5rem; filter: drop-shadow(0 0 15px rgba(255,255,255,0.3));}

/* Parallax background generated image */
.parallax-bg {
    background: url('assets/cinematic_bg_v11.webp') center/cover fixed no-repeat;
    position: relative;
}
.parallax-bg::before {
    content: ''; position: absolute; top:0; left:0; right:0; bottom:0;
    /* Lighter overlay to show off the bright cinematic image */
    background: rgba(5, 5, 5, 0.4);
    z-index: 0;
}
.parallax-bg > .container {
    position: relative;
    z-index: 10;
}

/* Timeline / 5 Steps */
.timeline { display: flex; flex-direction: column; gap: 2rem; max-width: 1000px; width: fit-content; margin: 0 auto; position: relative; }
.timeline::before {
    content: ''; position: absolute; left: 50px; top: 0; height: 100%; width: 4px;
    background: linear-gradient(to bottom, var(--neon-blue), var(--neon-purple), var(--neon-green));
    box-shadow: 0 0 15px var(--neon-blue), 0 0 30px var(--neon-purple), 0 0 45px var(--neon-green);
    border-radius: 4px;
}
.timeline-item {
    display: flex; align-items: center; padding: 2rem; border-radius: 12px;
    position: relative; margin-left: 20px; transition: var(--transition);
}
.timeline-item:hover { transform: translateX(10px); border-color: rgba(255,255,255,0.3); }
.step-num {
    background: var(--darker); color: var(--white); width: 60px; height: 60px;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 1.8rem; font-weight: 800; margin-right: 2.5rem; flex-shrink: 0; z-index: 1;
    border: 2px solid var(--neon-blue);
}
.pulse-glow { animation: pulse 2s infinite; }

/* Fractions */
.fractions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.fraction-card { padding: 2.5rem 1.5rem; border-radius: 12px; transition: var(--transition); position: relative; overflow: hidden; }
.fraction-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 60%);
    opacity: 0; transition: var(--transition); z-index: -1;
}
.f-paper { --glow-color: var(--f-paper); border: 1px solid rgba(58, 134, 255, 0.5) !important; box-shadow: inset 0 0 20px rgba(58, 134, 255, 0.1), 0 0 20px rgba(58, 134, 255, 0.1) !important; border-top: 3px solid #3a86ff !important; }
.fraction-card.f-paper:hover { border-color: #3a86ff !important; box-shadow: inset 0 0 40px rgba(58, 134, 255, 0.3), 0 0 50px rgba(58, 134, 255, 0.4) !important; }

.f-glass { --glow-color: var(--f-glass); border: 1px solid rgba(56, 176, 0, 0.5) !important; box-shadow: inset 0 0 20px rgba(56, 176, 0, 0.1), 0 0 20px rgba(56, 176, 0, 0.1) !important; border-top: 3px solid #38b000 !important; }
.fraction-card.f-glass:hover { border-color: #38b000 !important; box-shadow: inset 0 0 30px rgba(56, 176, 0, 0.15), 0 0 30px rgba(56, 176, 0, 0.2) !important; }

.f-plastic { --glow-color: var(--f-plastic); border: 1px solid rgba(255, 183, 3, 0.5) !important; box-shadow: inset 0 0 20px rgba(255, 183, 3, 0.1), 0 0 20px rgba(255, 183, 3, 0.1) !important; border-top: 3px solid #ffb703 !important; }
.fraction-card.f-plastic:hover { border-color: #ffb703 !important; box-shadow: inset 0 0 30px rgba(255, 183, 3, 0.15), 0 0 30px rgba(255, 183, 3, 0.2) !important; }

.f-bio { --glow-color: var(--f-bio); border: 1px solid rgba(127, 79, 36, 0.5) !important; box-shadow: inset 0 0 20px rgba(127, 79, 36, 0.1), 0 0 20px rgba(127, 79, 36, 0.1) !important; border-top: 3px solid #7f4f24 !important; }
.fraction-card.f-bio:hover { border-color: #7f4f24 !important; box-shadow: inset 0 0 40px rgba(127, 79, 36, 0.3), 0 0 50px rgba(127, 79, 36, 0.4) !important; }

.f-mixed { --glow-color: var(--f-mixed); border: 1px solid rgba(108, 117, 125, 0.5) !important; box-shadow: inset 0 0 20px rgba(108, 117, 125, 0.1), 0 0 20px rgba(108, 117, 125, 0.1) !important; border-top: 3px solid #6c757d !important; }
.fraction-card.f-mixed:hover { border-color: #6c757d !important; box-shadow: inset 0 0 40px rgba(108, 117, 125, 0.3), 0 0 50px rgba(108, 117, 125, 0.4) !important; }
.f-pszok { --glow-color: rgba(155, 89, 182, 0.3); border: 1px solid rgba(155, 89, 182, 0.5) !important; box-shadow: inset 0 0 20px rgba(155, 89, 182, 0.1), 0 0 20px rgba(155, 89, 182, 0.1) !important; border-top: 3px solid #9b59b6 !important; }
.fraction-card.f-pszok:hover { border-color: #9b59b6 !important; box-shadow: inset 0 0 30px rgba(155, 89, 182, 0.15), 0 0 30px rgba(155, 89, 182, 0.2) !important; }

.fraction-card:hover::before { opacity: 1; }
.fraction-card:hover { transform: translateY(-5px); }
.f-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.fraction-card ul { list-style: none; text-align: left; opacity: 0.8; font-size: 0.95rem; }
.fraction-card ul li { margin-bottom: 0.5rem;  position: relative; }

/* Split Layout & Accordion */
.split-layout { display: flex; align-items: center; gap: 4rem; }
.split-content, .split-image { flex: 1; }
.glow-shadow { box-shadow: 0 0 40px rgba(0, 242, 254, 0.2); }
.rounded-img { width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); }

.accordion { margin-top: 2rem; }
.accordion-item { margin-bottom: 1rem; border-radius: 8px; overflow: hidden; }
.accordion-header {
    width: 100%; padding: 1.5rem; text-align: left; background: rgba(255,255,255,0.03);
    border: none; font-size: 1.1rem; font-weight: 600; color: var(--white);
    cursor: pointer; font-family: inherit; transition: var(--transition);
    display: flex; justify-content: space-between; align-items: center;
}
@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}
.accordion-arrow {
    animation: arrowBounce 1.5s infinite ease-in-out;
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}
.accordion-item.active .accordion-arrow {
    animation: none;
    transform: rotate(180deg);
}
.accordion-header:hover { background: rgba(0, 242, 254, 0.1); color: var(--neon-blue); }
.accordion-content { max-height: 0; overflow: hidden; padding: 0 1.5rem; transition: max-height 0.3s ease, padding 0.3s ease; background: rgba(0,0,0,0.3); color: #ccc;}
.accordion-item.active .accordion-content { padding: 1.5rem; max-height: 300px; border-top: 1px solid rgba(255,255,255,0.05); }

/* Quiz Section */
.quiz-section { background: url('assets/cinematic_bg_v11.webp') center/cover fixed no-repeat; position: relative; }
.quiz-section::before { content: ''; position: absolute; top:0; left:0; right:0; bottom:0; background: rgba(5, 5, 5, 0.5); }
.quiz-section .container { position: relative; z-index: 1; }
.glow-border { border: 1px solid rgba(0, 242, 254, 0.3); box-shadow: 0 0 30px rgba(0, 242, 254, 0.1); }
.glass-panel {
    background: rgba(10, 10, 10, 0.7); backdrop-filter: blur(20px);
    border-radius: 16px; padding: 4rem; max-width: 800px; margin: 0 auto;
    color: white; text-align: center;
    position: relative;
    border-top: 2px solid var(--neon-blue);
    border-bottom: 2px solid var(--neon-green);
    box-shadow: 0 -15px 40px rgba(0, 242, 254, 0.15), 0 15px 40px rgba(57, 255, 20, 0.15);
}
.glass-panel::before, .glass-panel::after {
    content: ''; position: absolute; height: 60%; width: 4px; top: 20%;
}
.glass-panel::before {
    left: -2px; background: var(--neon-blue); box-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue);
}
.glass-panel::after {
    right: -2px; background: var(--neon-green); box-shadow: 0 0 20px var(--neon-green), 0 0 40px var(--neon-green);
}
.quiz-question { font-size: 1.5rem; font-weight: 600; margin-bottom: 2.5rem; line-height: 1.4;}
.quiz-options { display: flex; flex-direction: column; gap: 1rem; }
.quiz-btn {
    padding: 1.2rem; background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px;
    color: var(--light); font-family: inherit; font-size: 1.1rem; cursor: pointer; transition: var(--transition);
}
.quiz-btn:hover { background: rgba(0, 242, 254, 0.1); border-color: var(--neon-blue); color: var(--white); transform: scale(1.02); }
.quiz-feedback { margin-top: 2rem; padding: 2rem; border-radius: 8px; background: rgba(0,0,0,0.4); display: none; animation: fadeInUp 0.5s ease; border: 1px solid rgba(255,255,255,0.1);}
.quiz-feedback h4 { margin-bottom: 1rem; font-size: 1.3rem;}
#next-btn { margin-top: 2rem; display: none; }

/* Footer */
.sponsors-bar { background: linear-gradient(to bottom, #f3f4f6 0%, #ffffff 5%, #ffffff 95%, #f3f4f6 100%); width: 100%; padding: 1.5rem 1rem; text-align: center; color: #4a4a4a; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sponsors-bar .sponsors-text { font-size: 1.1rem; margin-bottom: 1rem; color: #4a4a4a; font-weight: 400; }
.sponsors-bar .sponsors-logos { display: flex; gap: 0.2rem 4rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.sponsors-bar .sponsors-logos img { height: 55px; width: auto; object-fit: contain; }

.footer { 
    background: var(--darker); 
    border-top: 2px solid var(--neon-blue); 
    box-shadow: 0 -2px 20px rgba(0, 242, 254, 0.5), inset 0 5px 20px rgba(0, 242, 254, 0.1);
    padding: 5rem 0 0 0; 
    position: relative;
}
.footer-content { display: flex; justify-content: flex-start; align-items: flex-start; flex-wrap: wrap; gap: 4rem; margin-bottom: 4rem; padding: 0 5%; width: 100%; max-width: 1260px; margin-left: auto; margin-right: auto; }

.footer-col-logo { flex: 0 0 auto; margin-right: 2rem; }
.footer-col-logo img { width: 140px; height: auto; display: block; margin: 0; }

.footer-col-links { flex: 1; min-width: 150px; display: flex; flex-direction: column; text-align: left; }
.footer-col-links h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1.5rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0; margin-top: 0; }
.footer-col-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col-links a { color: #00d2d3; text-decoration: none; font-size: 0.95rem; transition: var(--transition); }
.footer-col-links a:hover { color: #fff; text-shadow: 0 0 8px #00d2d3; }
.footer-divider { border: 0; height: 1px; border-top: 1px dashed rgba(255,255,255,0.3); margin: 0.5rem 0; width: 40px; }

.footer-col-social { flex: 1; min-width: 250px; display: flex; flex-direction: column; text-align: left; }
.footer-col-social h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1.5rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0; margin-top: 0; }
.social-links { display: flex; gap: 0.8rem; flex-wrap: nowrap; }
.social-links a { width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff !important; font-size: 1.1rem; text-decoration: none; transition: transform 0.3s, filter 0.3s; }
.social-links a:hover { transform: scale(1.15); }

.social-links a[aria-label="TikTok"] { background-color: #69C9D0; }
.social-links a[aria-label="TikTok"]:hover { filter: drop-shadow(0 0 10px rgba(105,201,208,0.8)); }

.social-links a[aria-label="Facebook"] { background-color: #0866FF; }
.social-links a[aria-label="Facebook"]:hover { filter: drop-shadow(0 0 10px rgba(8,102,255,0.8)); }

.social-links a[aria-label="LinkedIn"] { background-color: #0966c2; }
.social-links a[aria-label="LinkedIn"]:hover { filter: drop-shadow(0 0 10px rgba(9,102,194,0.8)); }

.social-links a[aria-label="Instagram"] { background-color: #e4405f; }
.social-links a[aria-label="Instagram"]:hover { filter: drop-shadow(0 0 10px rgba(228,64,95,0.8)); }

.social-links a[aria-label="YouTube"] { background-color: #e02a20; }
.social-links a[aria-label="YouTube"]:hover { filter: drop-shadow(0 0 10px rgba(224,42,32,0.8)); }

.footer-bottom { position: relative; background: transparent; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 2rem 5%; gap: 0.5rem; border: none; max-width: 1260px; margin: 0 auto; width: 100%; }
.footer-bottom::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, var(--neon-blue) 15%, var(--neon-blue) 85%, transparent 100%); box-shadow: 0 0 10px rgba(0, 242, 254, 0.6); }
.footer-cookie-link { color: #fff; font-size: 0.9rem; text-decoration: none; transition: var(--transition); font-weight: 600; }
.footer-cookie-link:hover { color: #00d2d3; }
.footer-bottom p { color: #666; margin: 0; font-size: 0.85rem; }

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    .footer-col-logo {
        margin-right: 0;
    }
    .footer-col-links, .footer-col-social {
        text-align: center;
        align-items: center;
    }
}

/* Modal Video */
.modal {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0;
    width: 100%; height: 100%; overflow: hidden;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}
.modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}
.modal-content video {
    width: auto;
    height: auto;
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.4);
    border: 1px solid var(--neon-blue);
    outline: none;
}
.close {
    position: absolute; top: 20px; right: 40px; color: white;
    font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s;
    z-index: 10000;
}
.close:hover, .close:focus { color: var(--neon-red); text-decoration: none; cursor: pointer; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(0, 242, 254, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); } }

/* Reading Article Typography */
.reading-article p {
    color: #ccc;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}
.reading-article p strong {
    color: #fff;
    font-weight: 600;
}
.custom-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}
.custom-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: #ddd;
    font-size: 1.15rem;
    line-height: 1.6;
}
.custom-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
}
.neon-blue-list li::before { color: var(--neon-blue); }
.brown-list li::before { color: #8d6e63; }
.traps-list p { margin-bottom: 0.5rem; font-size: 1.1rem; }

/* Chapter Accordion Styles */
.chapter-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.chapter-item {
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s;
    max-width: 100% !important;
}
.chapter-header {
    width: 100%;
    padding: 2.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
}
.chapter-header h2 {
    margin: 0;
    font-size: 2.2rem;
    transition: transform 0.3s;
}
.chapter-icon {
    font-size: 1.8rem;
    color: var(--white);
    transition: transform 0.4s ease;
}
.chapter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease-in-out;
}
.chapter-inner {
    padding: 0 3rem 3rem 3rem;
}
.chapter-item.active .chapter-icon {
    transform: rotate(180deg);
}
.chapter-item.active .chapter-content {
    max-height: 5000px; /* Duża wartość, by pomieścić siatkę frakcji */
}

/* Responsive */
@media (max-width: 900px) {
    .split-layout { flex-direction: column; }
    #pszok .split-layout { flex-direction: column-reverse; }
    .hero-content h1 { font-size: 3.5rem; }
    .nav-links { display: none; }
    .timeline::before { left: 20px; }
    .step-num { width: 40px; height: 40px; font-size: 1.2rem; margin-right: 1.5rem; }
    .timeline-item { margin-left: 0; padding: 1.5rem; }
    .glass-panel { padding: 2rem; }
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: #212529;
    color: #ffffff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99999;
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Outfit', sans-serif;
}
.cookie-banner.show {
    bottom: 0;
}
.cookie-banner-text {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 80%;
    color: #f8f9fa;
    font-weight: 300;
}
.cookie-banner-text a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s;
}
.cookie-banner-text a:hover {
    color: #0d6efd;
}
.cookie-btn {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap;
    margin-left: 20px;
    font-size: 0.95rem;
}
.cookie-btn:hover {
    background-color: #0b5ed7;
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .cookie-banner-text {
        max-width: 100%;
        margin-bottom: 15px;
    }
    .cookie-btn {
        margin-left: 0;
        width: 100%;
    }
}

.panel-wide { max-width: 1200px !important; }
body[style*="background-color: #f8f9fa"] .glass-panel, body[style*="background-color: #fff"] .glass-panel { 
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #ccc !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important;
}
body[style*="background-color: #f8f9fa"] .chapter-icon { color: #333; }
body[style*="background-color: #f8f9fa"] .text-glow { text-shadow: none !important; }
body[style*="background-color: #f8f9fa"] .text-light { color: #555 !important; }
body[style*="background-color: #f8f9fa"] .chapter-header h2 { text-shadow: none !important; }
.section-darker .glass-panel, .section-dark .glass-panel { border-top: 3px solid var(--neon-cyan); box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.1), 0 0 20px rgba(0, 242, 254, 0.1); }

/* Scroll to Top Button */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(5, 5, 5, 0.6);
    border: 1px solid rgba(0, 242, 254, 0.4);
    color: var(--neon-cyan);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 242, 254, 0.1);
    backdrop-filter: blur(5px);
}
#scrollToTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#scrollToTopBtn:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--neon-cyan);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4), 0 0 15px rgba(0, 242, 254, 0.2);
    transform: translateY(-5px);
}

/* Scroll Down Hint Animation */
.scroll-down-hint {
    margin-top: 3rem;
    text-align: center;
    animation: bounceSlow 2.5s infinite;
}
.scroll-down-hint a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
}
.scroll-down-hint a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}
.scroll-down-hint i {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}
@keyframes bounceSlow {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Small bounce for arrow inside button */
.animated-arrow {
    display: inline-block;
    animation: arrowSmallBounce 1.5s infinite ease-in-out;
}
@keyframes arrowSmallBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Horizontal bounce for play arrow */
.animated-arrow-x {
    display: inline-block;
    animation: arrowSmallBounceX 1.5s infinite ease-in-out;
}
@keyframes arrowSmallBounceX {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* Mobile Menu */
.hamburger {
    display: none;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    z-index: 2000;
}
@media (max-width: 900px) {
    .hamburger { display: block; }
    .nav-links {
        display: flex;
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: rgba(5, 12, 25, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
        margin: 0;
        padding: 0;
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 0.8rem 0; }
    .nav-links a { font-size: 1.5rem; }

    /* Mobile Logo in Menu */
    .nav-logo-item { margin-top: 3rem !important; }
    .nav-logo-link {
        flex-direction: column !important;
        margin: 0 !important;
        gap: 0.2rem;
    }
    .nav-logo-img { 
        height: 150px; 
        transform: translateX(-5px); /* Optyczne wyrównanie w lewo */
    }
    .nav-logo-text { 
        display: block; 
        font-size: 1rem; 
        font-weight: 300; 
        color: var(--neon-blue); 
        letter-spacing: 1px;
        text-decoration: underline;
    }
}

body[style*="background-color: #f8f9fa"] .glass-panel::before,
body[style*="background-color: #f8f9fa"] .glass-panel::after,
body[style*="background-color: #fff"] .glass-panel::before,
body[style*="background-color: #fff"] .glass-panel::after {
    display: none !important;
}


/* LIGHT THEME OVERRIDES FOR BAZA WIEDZY */
body.page-knowledge,
body[style*="background-color: #ffffff"],
body[style*="background-color: #f8f9fa"] {
    background-color: #f4f6f8 !important;
}

/* Fix text colors */
body.page-knowledge .reading-article p,
body[style*="background-color: #ffffff"] .reading-article p,
body[style*="background-color: #f8f9fa"] .reading-article p {
    color: #444 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

body.page-knowledge .reading-article p strong,
body[style*="background-color: #ffffff"] .reading-article p strong,
body[style*="background-color: #f8f9fa"] .reading-article p strong {
    color: #111 !important;
}

/* Compact grey panels */
body.page-knowledge .glass-panel,
body[style*="background-color: #ffffff"] .glass-panel,
body[style*="background-color: #f8f9fa"] .glass-panel { 
    background: #ffffff !important;
    color: #333 !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 3px solid #cbd5e1 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
    padding: 1rem !important;
}

body.page-knowledge .glass-panel::before {
    background: #0077B6 !important;
    box-shadow: 0 0 15px rgba(0, 119, 182, 0.4), 0 0 30px rgba(0, 119, 182, 0.2) !important;
    display: block !important;
}

body.page-knowledge .glass-panel::after {
    background: #38b000 !important;
    box-shadow: 0 0 15px rgba(56, 176, 0, 0.4), 0 0 30px rgba(56, 176, 0, 0.2) !important;
    display: block !important;
}

body.page-knowledge .btn-primary {
    background: rgba(0, 119, 182, 0.1) !important;
    color: #0077B6 !important;
    border: 1px solid #0077B6 !important;
    box-shadow: 0 0 10px rgba(0, 119, 182, 0.3), inset 0 0 10px rgba(0, 119, 182, 0.1) !important;
    animation: none !important;
}

body.page-knowledge .btn-primary:hover {
    background: #0077B6 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(0, 119, 182, 0.6) !important;
}

body.page-knowledge #closeAktaBtn {
    background: #e74c3c !important;
    color: #ffffff !important;
    border: 1px solid #e74c3c !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4) !important;
}
body.page-knowledge #closeAktaBtn:hover {
    background: #c0392b !important;
    border-color: #c0392b !important;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6) !important;
}

/* Slider buttons positioning and animation */
.slider-btn-wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.slider-btn-left {
    left: 15px !important;
}
.slider-btn-right {
    right: 15px !important;
}

@media (max-width: 850px) {
    .slider-btn-left { left: 10px !important; }
    .slider-btn-right { right: 10px !important; }
}

.slider-btn-wrapper i {
    display: inline-block;
}

.slider-btn-left i {
    animation: arrowMoveLeft 1.5s infinite ease-in-out;
}

.slider-btn-right i {
    animation: arrowMoveRight 1.5s infinite ease-in-out;
}

@keyframes arrowMoveLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-4px); }
}

@keyframes arrowMoveRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}


/* Compact padding for accordion items */
body.page-knowledge .chapter-header,
body[style*="background-color: #ffffff"] .chapter-header {
    padding: 1.5rem !important;
}

body.page-knowledge .chapter-inner,
body[style*="background-color: #ffffff"] .chapter-inner {
    padding: 1.5rem !important;
    border-top: 1px solid rgba(0,0,0,0.05) !important;
}

body.page-knowledge .chapter-header h3,
body[style*="background-color: #ffffff"] .chapter-header h3 {
    font-weight: 600 !important;
}

body.page-knowledge .chapter-header:hover,
body[style*="background-color: #ffffff"] .chapter-header:hover {
    background: #e1f0f8 !important;
}

body.page-knowledge .chapter-icon,
body[style*="background-color: #ffffff"] .chapter-icon {
    animation: arrowBounce 1.5s infinite ease-in-out;
}

body.page-knowledge .chapter-item.active .chapter-icon,
body[style*="background-color: #ffffff"] .chapter-item.active .chapter-icon {
    animation: none;
}

/* Fix section neon separator */
body.page-knowledge .section:not(.section-darker),
body[style*="background-color: #ffffff"] .section:not(.section-darker),
body[style*="background-color: #f8f9fa"] .section:not(.section-darker) {
    border-bottom: 2px solid #f1f5f9 !important;
}

body.page-knowledge .section:not(.section-darker)::after,
body[style*="background-color: #ffffff"] .section:not(.section-darker)::after,
body[style*="background-color: #f8f9fa"] .section:not(.section-darker)::after {
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent) !important;
    box-shadow: none !important;
    height: 2px !important;
    bottom: -2px !important;
}

body.page-knowledge .chapter-icon,
body[style*="background-color: #ffffff"] .chapter-icon,
body[style*="background-color: #f8f9fa"] .chapter-icon {
    color: #475569 !important;
}


/* ---- BAZA WIEDZY FIXES (STAIRS & TEXT ALIGN) ---- */
body.page-knowledge .chapter-container {
    align-items: stretch !important;
    gap: 0 !important;
}
body.page-knowledge .chapter-item {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important; /* Nadpisuje inline border-top-color */
    overflow: hidden !important;
}

body.page-knowledge .chapter-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

body.page-knowledge .chapter-item::before,
body.page-knowledge .chapter-item::after {
    display: none !important;
}
body.page-knowledge .chapter-inner,
body.page-knowledge .chapter-inner p {
    text-align: left !important;
}


/* Snake Timeline Grid */
.snake-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    column-gap: 1.5rem;
    row-gap: 1.5rem;
    max-width: 950px;
    margin: 4rem auto 0;
    position: relative;
    z-index: 1;
    align-items: center;
    justify-items: center;
}

.snake-grid .timeline-item {
    margin-left: 0;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.snake-grid .step-num {
    margin-right: 0;
    margin-bottom: 1rem;
}

/* Grid Placement (Star Layout) */
.snake-item-2 { grid-column: 1; grid-row: 1; }
.snake-item-3 { grid-column: 3; grid-row: 1; }
.snake-item-1 { grid-column: 2; grid-row: 2; }
.snake-item-4 { grid-column: 3; grid-row: 3; }
.snake-item-5 { grid-column: 1; grid-row: 3; }

/* The neon lines pointing to the center (1) */
.snake-item::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 4px;
}

/* 2 (Top-Left) -> diagonal down-right to 1 */
.snake-item-2::after {
    top: 100%; left: 100%;
    width: 2.15rem; height: 4px; margin-top: -2px;
    transform-origin: 0 50%;
    transform: rotate(45deg);
    background: linear-gradient(to right, var(--neon-green), var(--neon-blue));
    box-shadow: 0 0 10px var(--neon-green), 0 0 10px var(--neon-blue);
}

/* 3 (Top-Right) -> diagonal down-left to 1 */
.snake-item-3::after {
    top: 100%; left: 0;
    width: 2.15rem; height: 4px; margin-top: -2px;
    transform-origin: 0 50%;
    transform: rotate(135deg);
    background: linear-gradient(to right, var(--neon-orange), var(--neon-blue));
    box-shadow: 0 0 10px var(--neon-orange), 0 0 10px var(--neon-blue);
}

/* 4 (Bottom-Right) -> diagonal up-left to 1 */
.snake-item-4::after {
    top: 0; left: 0;
    width: 2.15rem; height: 4px; margin-top: -2px;
    transform-origin: 0 50%;
    transform: rotate(-135deg);
    background: linear-gradient(to right, var(--neon-pink), var(--neon-blue));
    box-shadow: 0 0 10px var(--neon-pink), 0 0 10px var(--neon-blue);
}

/* 5 (Bottom-Left) -> diagonal up-right to 1 */
.snake-item-5::after {
    top: 0; left: 100%;
    width: 2.15rem; height: 4px; margin-top: -2px;
    transform-origin: 0 50%;
    transform: rotate(-45deg);
    background: linear-gradient(to right, var(--neon-purple), var(--neon-blue));
    box-shadow: 0 0 10px var(--neon-purple), 0 0 10px var(--neon-blue);
}

/* Outer connection lines */
.grid-line {
    z-index: -1;
    border-radius: 4px;
}
.line-top {
    grid-column: 2; grid-row: 1; align-self: center;
    width: calc(100% + 3rem); height: 4px; margin-left: -1.5rem;
    background: linear-gradient(to right, var(--neon-green), var(--neon-orange));
    box-shadow: 0 0 10px var(--neon-green), 0 0 10px var(--neon-orange);
}
.line-bottom {
    grid-column: 2; grid-row: 3; align-self: center;
    width: calc(100% + 3rem); height: 4px; margin-left: -1.5rem;
    background: linear-gradient(to right, var(--neon-purple), var(--neon-pink));
    box-shadow: 0 0 10px var(--neon-purple), 0 0 10px var(--neon-pink);
}
.line-left {
    grid-column: 1; grid-row: 2; justify-self: center;
    height: calc(100% + 3rem); width: 4px; margin-top: -1.5rem;
    background: linear-gradient(to bottom, var(--neon-green), var(--neon-purple));
    box-shadow: 0 0 10px var(--neon-green), 0 0 10px var(--neon-purple);
}
.line-right {
    grid-column: 3; grid-row: 2; justify-self: center;
    height: calc(100% + 3rem); width: 4px; margin-top: -1.5rem;
    background: linear-gradient(to bottom, var(--neon-orange), var(--neon-pink));
    box-shadow: 0 0 10px var(--neon-orange), 0 0 10px var(--neon-pink);
}

/* 1 doesn't need lines */
.snake-item-1::before, .snake-item-1::after {
    display: none;
}

/* Mobile fallback */
@media (max-width: 768px) {
    .snake-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
    }
    .grid-line { display: none !important; }
    .snake-item {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    .snake-item::after, .snake-item::before {
        display: none !important;
    }
    .snake-grid::before {
        content: ''; position: absolute; left: 50px; top: 0; height: 100%; width: 4px;
        background: linear-gradient(to bottom, var(--neon-blue), var(--neon-green), var(--neon-orange), var(--neon-pink), var(--neon-purple));
        box-shadow: 0 0 15px var(--neon-blue), 0 0 30px var(--neon-purple), 0 0 45px var(--neon-green);
        border-radius: 4px;
        z-index: 0;
    }
}


/* Hide the glow/line from the last section before footer in baza-wiedzy */
body.page-knowledge section.section:nth-last-of-type(2)::after {
    display: none !important;
}
body.page-knowledge section.section:nth-last-of-type(2) {
    border-bottom: none !important;
}

/* Removed ugly logo background */

/* Wymuszenie mrocznego/neonowego stylu dla Quizu na jasnej stronie */
body.page-knowledge #quiz .glass-panel {
    background: rgba(16,35,53,0.92) !important;
    border: 1px solid var(--neon-cyan) !important;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.2) !important;
    color: #fff !important;
}
body.page-knowledge #quiz .text-light,
body.page-knowledge #quiz .quiz-progress {
    color: #f8f9fa !important;
}
body.page-knowledge #quiz .text-glow {
    color: var(--neon-blue) !important;
    text-shadow: none !important;
}
body.page-knowledge #quiz .section-subtitle {
    color: #ccc !important;
}
/* Przyciski opcji w quizie - cyjanowe */
body.page-knowledge #quiz .quiz-btn {
    background: rgba(0, 242, 254, 0.1) !important;
    border-color: var(--neon-blue) !important;
    color: var(--neon-blue) !important;
}
body.page-knowledge #quiz .quiz-btn:hover {
    background: var(--neon-blue) !important;
    border-color: var(--neon-blue) !important;
    color: var(--darker) !important;
}
/* Przywrócenie cyjanowych neonowych przycisków głównych (START) w grach i quizie */
body.page-knowledge .glass-panel .btn-primary,
body.page-knowledge #quiz .btn-primary {
    background: rgba(0, 242, 254, 0.1) !important;
    color: var(--neon-blue) !important;
    border: 1px solid var(--neon-blue) !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3), inset 0 0 15px rgba(0, 242, 254, 0.1) !important;
}
body.page-knowledge .glass-panel .btn-primary:hover,
body.page-knowledge #quiz .btn-primary:hover {
    background: var(--neon-blue) !important;
    color: var(--darker) !important;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.6) !important;
}


/* Poprawki dla fraction-card w trybie jasnym (page-knowledge) */
body.page-knowledge .fraction-card {
    background: #ffffff !important;
    color: #333 !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-left-color: rgba(0, 0, 0, 0.15) !important;
    border-right-color: rgba(0, 0, 0, 0.15) !important;
    border-bottom-color: rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    border-top-width: 4px !important;
    border-top-style: solid !important;
}
body.page-knowledge .fraction-card.f-paper { border-top-color: #3a86ff !important; }
body.page-knowledge .fraction-card.f-glass { border-top-color: #38b000 !important; }
body.page-knowledge .fraction-card.f-plastic { border-top-color: #ffb703 !important; }
body.page-knowledge .fraction-card.f-bio { border-top-color: #7f4f24 !important; }
body.page-knowledge .fraction-card.f-mixed { border-top-color: #6c757d !important; }
body.page-knowledge .fraction-card.f-pszok { border-top-color: #9b59b6 !important; }

body.page-knowledge .fraction-card p,
body.page-knowledge .fraction-card ul,
body.page-knowledge .fraction-card li {
    color: #555 !important;
}
body.page-knowledge .fraction-card h3 {
    color: #0077B6; /* Removed !important to allow inline styles */
    font-weight: 600 !important;
    text-shadow: none !important;
}

body.page-knowledge .fraction-card:hover::before {
    opacity: 0 !important;
}

body.page-knowledge .fraction-card[class*="f-"]:hover {
    border-left-color: rgba(0, 0, 0, 0.05) !important;
    border-right-color: rgba(0, 0, 0, 0.05) !important;
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
}
body.page-knowledge .fraction-card.f-paper:hover { box-shadow: inset 0 0 35px rgba(58, 134, 255, 0.35), 0 12px 24px rgba(0, 0, 0, 0.1) !important; }
body.page-knowledge .fraction-card.f-glass:hover { box-shadow: inset 0 0 35px rgba(56, 176, 0, 0.35), 0 12px 24px rgba(0, 0, 0, 0.1) !important; }
body.page-knowledge .fraction-card.f-plastic:hover { box-shadow: inset 0 0 35px rgba(255, 183, 3, 0.35), 0 12px 24px rgba(0, 0, 0, 0.1) !important; }
body.page-knowledge .fraction-card.f-bio:hover { box-shadow: inset 0 0 35px rgba(127, 79, 36, 0.35), 0 12px 24px rgba(0, 0, 0, 0.1) !important; }
body.page-knowledge .fraction-card.f-mixed:hover { box-shadow: inset 0 0 35px rgba(108, 117, 125, 0.35), 0 12px 24px rgba(0, 0, 0, 0.1) !important; }
body.page-knowledge .fraction-card.f-pszok:hover { box-shadow: inset 0 0 35px rgba(155, 89, 182, 0.35), 0 12px 24px rgba(0, 0, 0, 0.1) !important; }
/* Poprawki dla akordeonów w trybie jasnym (page-knowledge) */
body.page-knowledge .accordion-item {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
body.page-knowledge .accordion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}
body.page-knowledge .accordion-header {
    color: #333 !important;
    font-weight: 600 !important;
    background: transparent !important;
    transition: color 0.3s ease !important;
}
body.page-knowledge .accordion-header:hover {
    color: #0077B6 !important;
    background: #e1f0f8 !important;
}
body.page-knowledge .accordion-content {
    background: #ffffff !important;
    color: #555 !important;
    border-top: 1px solid rgba(0,0,0,0.05) !important;
}

/* YouTube: landscape spot and portrait Shorts. */
#videoModal .modal-content { flex-direction: column; gap: 12px; }
#modalVideo {
    display: block; width: min(90vw, calc(76vh * 16 / 9));
    aspect-ratio: 16 / 9; height: auto; background: #000;
    border: 1px solid var(--neon-blue); border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 242, 254, .4);
}
#videoModal[data-video-format="portrait"] #modalVideo {
    width: min(90vw, calc(76vh * 9 / 16)); aspect-ratio: 9 / 16;
}
#videoModal .close { background: transparent; border: 0; padding: 0 8px; }
.youtube-fallback { color: #fff; font-size: .95rem; text-decoration: underline; }

/* The word Mazowsze, rather than the full logo canvas, has equal height. */
.sponsors-bar .sponsors-logos { --mazowsze-word-height: clamp(12px, 3.65vw, 44px); max-width: 100%; gap: 1.25rem 2rem; }
.sponsors-bar .sponsors-logos img.mazowsze-serce { height: calc(var(--mazowsze-word-height) * 1.271919475); width: auto; max-width: none; flex: 0 0 auto; }
.sponsors-bar .sponsors-logos img.mazowsze-ngo { height: calc(var(--mazowsze-word-height) * 2.418207069); width: auto; max-width: none; flex: 0 0 auto; }

/* Align the tops of the handwritten words, accounting for SVG canvas padding. */
.sponsors-bar .sponsors-logos { align-items: flex-start; }
.sponsors-bar .sponsors-logos img.mazowsze-serce { margin-top: calc(var(--mazowsze-word-height) * 0.114635); }

/* Desktop only: half logo scale and twice the previous inter-logo gap. */
@media (min-width: 901px) {
  .sponsors-bar .sponsors-logos { --mazowsze-word-height: clamp(6px, 1.825vw, 22px); column-gap: 4rem; }
}


/* v12: responsive corrections, sponsor geometry and advice crops unchanged. */
.hamburger { background: none; border: 0; padding: 0; line-height: 1; }
.hamburger:focus-visible, .nav-links a:focus-visible { outline: 2px solid var(--neon-blue); outline-offset: 5px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.fractions-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important; }
.split-content, .onas-content, .onas-title, .contact-card, .chapter-header > * { min-width: 0; }
.split-content, .onas-title { overflow-wrap: anywhere; }
.hero { height: auto; min-height: 100vh; min-height: 100svh; padding: 130px 0 64px; }
.hero-content { animation: none; }
.chapter-header h2, .chapter-header h3 { overflow-wrap: anywhere; }
.chapter-icon { flex-shrink: 0; }
body.menu-open { overflow-y: hidden; }
@media (max-width: 1100px) {
 .hamburger { display: block; }
 .nav-links { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; height: 100dvh; background: rgba(5,12,25,.98); backdrop-filter: blur(15px); flex-direction: column; justify-content: flex-start; align-items: center; gap: 0; padding: 80px 24px 24px; margin: 0; overflow-y: auto; overscroll-behavior: contain; transition: right .4s ease; z-index: 1000; }
 .nav-links.active { right: 0; }
 .nav-links li { margin: .5rem 0; flex-shrink: 0; }
 .nav-links a { font-size: 1.35rem; }
 .nav-logo-item { margin-top: 1.5rem !important; }
 .nav-logo-link { flex-direction: column !important; margin: 0 !important; gap: .25rem; }
 .nav-logo-img { height: 100px; transform: none; }
 .nav-logo-text { display: block; font-size: 1rem; color: var(--neon-blue); text-decoration: underline; }
}
@media (max-width: 1100px) and (max-height: 600px) {
 .nav-links { padding-top: 72px; }
 .nav-links a { font-size: 1.1rem; }
 .nav-links li { margin: .35rem 0; }
 .nav-logo-item { margin-top: .75rem !important; }
 .nav-logo-img { height: 64px; }
}
@media (max-width: 600px) {
 .navbar { padding: 1.25rem 1.5rem; }
 .navbar > a img { max-width: min(215px, calc(100vw - 100px)); height: auto !important; }
 .container { padding-left: 1rem; padding-right: 1rem; }
 .hero-content { padding: 0 1rem; }
 .hero-content h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
 .hero-content p { font-size: 1.15rem; margin-bottom: 2rem; }
 .mission-status { font-size: .9rem; letter-spacing: 2px; }
 .section-title { font-size: clamp(2rem, 8vw, 3rem); letter-spacing: .5px; overflow-wrap: anywhere; }
 .onas-header-flex { flex-direction: column; gap: 1.25rem !important; text-align: center; }
 .onas-title h2 { font-size: 1.6rem !important; }
 .onas-logo { max-width: 120px !important; }
 .onas-grid { gap: 2.5rem !important; }
 .onas-text { text-align: left !important; }
 .contact-container { grid-template-columns: minmax(0,1fr) !important; }
 .contact-card { width: 100%; padding: 2rem 1.5rem !important; overflow-wrap: anywhere; }
 .chapter-header { padding: 1.25rem; gap: 1rem; }
 .chapter-inner { padding: 0 1.25rem 1.5rem; }
 #aktaContent { padding: 1.5rem !important; }
 #aktaContent h2 { font-size: 1.8rem !important; overflow-wrap: anywhere; }
 #aktaContent > div:first-child { flex-wrap: wrap; gap: 1rem !important; }
 .game-panel h2 { font-size: 2rem !important; }
 .game-panel p { font-size: 1.1rem !important; }
 .game-panel .btn-primary { padding: .8rem 1.25rem !important; font-size: 1.1rem !important; }
}
@media (max-height: 600px) { .hero { padding-top: 125px; padding-bottom: 40px; } .hero-content h1 { font-size: 2.5rem; } .hero-content p { font-size: 1.1rem; margin-bottom: 1.5rem; } }
/* Panels fit their actual content; readable game labels are DOM elements. */
.game-panel { min-height: 0 !important; padding: 1rem !important; }
.game-panel > [id^="overlay"] { position: relative !important; inset: auto !important; padding: clamp(1rem, 4vw, 2rem) !important; }
.game-panel canvas { display: none !important; }
.game-panel.game-running canvas { display: block !important; }
.game-status { display: none; }
.game-running .game-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; background: #102335; color: #fff; padding: .75rem; font-size: 1rem; border-radius: 8px; }
.game-item-label { flex-basis: 100%; font-weight: 600; }
.game-controls { display: none; }
.game-running .game-controls { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem; margin-top: .75rem; }
.game-controls button { min-height: 48px; border: 2px solid var(--bin-color, #00d2d3); border-radius: 8px; background: #102335; color: #fff; font: 600 .95rem var(--font-main); padding: .5rem .25rem; cursor: pointer; }
.game-controls button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.game-controls button[aria-pressed="true"] { background: var(--bin-color); color: #050505; }

/* Keep the full navigation available while the consent banner is pending. */
body.menu-open .cookie-banner { visibility: hidden; }
html { scroll-padding-top: 110px; }

@media (max-width:600px) {
 #aktaContent > div > div:first-child { flex-direction: column; align-items: flex-start !important; gap: .75rem; }
 #aktaContent h1 { font-size: 1.65rem !important; overflow-wrap: anywhere; }
}

/* Quiz: a compact hero row, full-width explanation on phones. */
@media (max-width: 600px) {
    #quiz-state-feedback .quiz-feedback-layout { display: grid !important; grid-template-columns: 48px minmax(0,1fr); gap: 12px !important; }
    .quiz-feedback-layout > div:last-child { display: contents; }
    #f-avatar { width: 48px !important; height: 48px !important; font-size: 2rem !important; grid-column: 1; grid-row: 1; }
    #f-character { grid-column: 2; grid-row: 1; align-self: center; margin: 0 !important; font-size: 1.1rem !important; }
    #f-text, .quiz-feedback-layout > div:last-child > div { grid-column: 1 / -1; min-width: 0; }
    #f-text { text-align: left !important; line-height: 1.65; }
    #aktaContent * { min-width: 0; }
}
