/* =========================================================
   PETUALANGAN SI ECO — MAIN STYLESHEET (app.css)
   Website Edukasi Pengelolaan Sampah Digital untuk Anak SD
   ========================================================= */

/* ---------------------------------------------------------
   1. CSS VARIABLES
   --------------------------------------------------------- */
:root {
    --eco-green: #22C55E;
    --eco-green-dark: #16A34A;
    --eco-green-light: #DCFCE7;
    --eco-lime: #84CC16;
    --eco-lime-light: #ECFCCB;
    --eco-blue: #38BDF8;
    --eco-blue-dark: #0284C7;
    --eco-blue-light: #E0F2FE;
    --eco-yellow: #FACC15;
    --eco-yellow-dark: #CA8A04;
    --eco-yellow-light: #FEF9C3;
    --eco-brown: #A16207;
    --eco-brown-light: #FEF3C7;
    --eco-red: #EF4444;
    --eco-red-light: #FEE2E2;
    --eco-gray: #64748B;
    --eco-white: #FFFFFF;
    --eco-bg: #F8FAFC;
    --eco-dark: #1E293B;
    --eco-text: #334155;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --eco-radius-sm: 12px;
    --eco-radius: 16px;
    --eco-radius-lg: 24px;
    --eco-gradient-primary: linear-gradient(135deg, #22C55E 0%, #38BDF8 100%);
    --eco-gradient-warm: linear-gradient(135deg, #FACC15 0%, #FB923C 100%);
    --eco-gradient-fresh: linear-gradient(135deg, #22C55E 0%, #84CC16 100%);
    --eco-glass-bg: rgba(255, 255, 255, 0.65);
    --eco-glass-border: rgba(255, 255, 255, 0.5);
    --eco-shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
    --eco-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    --eco-shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
    --eco-shadow-glow: 0 8px 24px rgba(34, 197, 94, 0.25);
    --eco-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--eco-text);
    background-color: var(--eco-bg);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--eco-dark);
    letter-spacing: -0.01em;
}

a { text-decoration: none; transition: var(--eco-transition); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Soft UI / glassmorphism ringan (dipakai selektif, bukan global) */
.glass-panel {
    background: var(--eco-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--eco-glass-border);
}

/* rounded-2xl style card base + micro-interaction hover, dipakai lewat utility class */
.card-hover-lift { transition: var(--eco-transition); }
.card-hover-lift:hover { transform: translateY(-4px); box-shadow: var(--eco-shadow-lg); }

/* Ripple ringan untuk tombol */
.btn { position: relative; overflow: hidden; }
.btn .ripple {
    position: absolute; border-radius: 50%; transform: scale(0);
    background: rgba(255, 255, 255, 0.5); animation: rippleEffect 0.6s ease-out; pointer-events: none;
}
@keyframes rippleEffect { to { transform: scale(3.5); opacity: 0; } }

img { max-width: 100%; }

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--eco-bg); }
::-webkit-scrollbar-thumb { background: var(--eco-green); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--eco-green-dark); }

.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.text-eco-green { color: var(--eco-green) !important; }
.text-eco-blue { color: var(--eco-blue) !important; }

/* ---------------------------------------------------------
   3. BUTTONS
   --------------------------------------------------------- */
.btn { border-radius: 50px; font-weight: 600; padding: 0.65rem 1.6rem; transition: var(--eco-transition); }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.4rem 0.9rem; border-radius: 30px; }

.btn-eco-primary {
    background: var(--eco-gradient-primary);
    border: 2px solid var(--eco-green);
    color: #fff;
    box-shadow: 0 6px 0 var(--eco-green-dark), var(--eco-shadow-glow);
}
.btn-eco-primary:hover {
    background: var(--eco-green-dark);
    border-color: var(--eco-green-dark);
    color: #fff;
    transform: translateY(2px);
    box-shadow: 0 4px 0 var(--eco-green-dark);
}
.btn-eco-primary:disabled, .btn-eco-primary[disabled] {
    background: #94a3b8; border-color: #94a3b8; box-shadow: none; cursor: not-allowed;
}

.btn-eco-outline {
    background: #fff;
    border: 2px solid var(--eco-green);
    color: var(--eco-green);
}
.btn-eco-outline:hover {
    background: var(--eco-green);
    color: #fff;
    transform: translateY(-2px);
}

.btn-eco-yellow {
    background: var(--eco-yellow);
    border: 2px solid var(--eco-yellow-dark);
    color: var(--eco-dark);
    box-shadow: 0 6px 0 var(--eco-yellow-dark);
}
.btn-eco-yellow:hover {
    background: var(--eco-yellow-dark);
    color: var(--eco-dark);
    transform: translateY(2px);
    box-shadow: 0 4px 0 var(--eco-yellow-dark);
}

.btn-icon {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--eco-bg); border: none; color: var(--eco-dark);
}
.btn-icon:hover { background: var(--eco-green-light); color: var(--eco-green); }

.btn-scroll-top {
    position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px;
    background: var(--eco-green); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--eco-shadow); z-index: 999;
    opacity: 0; visibility: hidden; transform: translateY(10px);
}
.btn-scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.btn-scroll-top:hover { background: var(--eco-green-dark); color: #fff; }

.btn-bin {
    border: none; border-radius: var(--eco-radius); color: #fff; padding: 1.2rem 0.5rem;
    box-shadow: var(--eco-shadow-sm); transition: var(--eco-transition);
}
.btn-bin:hover { transform: translateY(-4px) scale(1.03); box-shadow: var(--eco-shadow); }
.btn-bin.correct-pick { animation: pulseCorrect 0.5s ease; }
.btn-bin.wrong-pick { animation: shakeWrong 0.5s ease; }

.badge-eco {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--eco-green-light); color: var(--eco-green-dark);
    padding: 0.45rem 1rem; border-radius: 50px; font-weight: 600; font-size: 0.85rem;
}

/* ---------------------------------------------------------
   4. NAVBAR
   --------------------------------------------------------- */
.navbar-eco {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1.1rem 0;
    box-shadow: none;
    border-bottom: 1px solid transparent;
    transition: var(--eco-transition);
    z-index: 1050;
}
.navbar-eco.scrolled {
    background: rgba(255, 255, 255, 0.92);
    padding: 0.7rem 0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    border-bottom-color: rgba(226, 232, 240, 0.8);
}
.navbar-eco .navbar-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.15rem; color: var(--eco-dark);
    max-width: calc(100% - 60px); overflow: hidden;
}
.navbar-eco .navbar-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navbar-eco .navbar-brand img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.navbar-eco .navbar-brand strong { color: var(--eco-green); }
.navbar-eco .container { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; }
.navbar-eco .navbar-toggler { flex-shrink: 0; font-size: 1.1rem; padding: 0.25rem 0.5rem; }
@media (max-width: 359.98px) {
    .navbar-eco .navbar-brand { font-size: 1rem; }
    .navbar-eco .navbar-brand img { width: 36px; height: 36px; }
}

.navbar-eco .nav-link {
    font-weight: 600; color: var(--eco-text); padding: 0.5rem 1rem !important;
    border-radius: 50px; margin: 0 2px; display: flex; align-items: center; gap: 6px;
}
.navbar-eco .nav-link:hover { background: var(--eco-green-light); color: var(--eco-green-dark); }
.navbar-eco .nav-link.active { background: var(--eco-gradient-primary); color: #fff; box-shadow: var(--eco-shadow-glow); }

.navbar-eco .dropdown-menu {
    border: none; border-radius: var(--eco-radius-sm); box-shadow: var(--eco-shadow);
    padding: 0.5rem; margin-top: 8px;
}
.navbar-eco .dropdown-item {
    border-radius: 10px; padding: 0.55rem 1rem; font-weight: 500;
}
.navbar-eco .dropdown-item:hover { background: var(--eco-green-light); color: var(--eco-green-dark); }

.navbar-toggler { border: none; box-shadow: none !important; }

@media (max-width: 991.98px) {
    .navbar-eco .navbar-collapse {
        position: fixed; top: 0; left: 0; height: 100vh; height: 100dvh; width: min(300px, 82vw);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        box-shadow: 12px 0 40px rgba(15, 23, 42, 0.12);
        padding: 6rem 1.5rem 2rem; margin-top: 0 !important;
        transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex !important; flex-direction: column; visibility: hidden; z-index: 1045;
        overflow-y: auto; -webkit-overflow-scrolling: touch;
    }
    .navbar-eco .navbar-collapse.show { transform: translateX(0); visibility: visible; }
    .navbar-eco .navbar-collapse.collapsing { transform: translateX(-100%); visibility: visible; height: 100vh !important; }
    .navbar-eco .navbar-nav {
        flex-direction: column; align-items: stretch !important; gap: 4px;
        margin-left: 0 !important; width: 100%;
    }
    .navbar-eco .nav-item { width: 100%; }
    .navbar-eco .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 12px;
        width: 100%;
        justify-content: flex-start;
    }
    .navbar-eco .nav-link.active { box-shadow: none; }
    .navbar-eco .dropdown-toggle::after { margin-left: auto; }
    .navbar-eco .dropdown-menu {
        position: static !important; inset: auto !important; transform: none !important;
        box-shadow: none; background: var(--eco-bg); border-radius: 12px;
        margin: 2px 0 6px; padding: 0.4rem;
        border-left: 3px solid var(--eco-green-light);
    }
    .navbar-eco .dropdown-item {
        padding: 0.55rem 0.9rem; font-size: 0.9rem; border-radius: 8px;
    }

    /* Backdrop gelap di belakang sidebar menu mobile + kunci scroll body */
    .nav-backdrop {
        position: fixed; inset: 0; background: rgba(15, 23, 42, 0.25);
        opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
        z-index: 1040;
    }
    .nav-backdrop.show { opacity: 1; visibility: visible; }
    body.nav-open { overflow: hidden; }

    /* Tombol tutup di dalam sidebar menu */
    .navbar-eco .nav-close-btn {
        position: absolute; top: 1.2rem; right: 1.2rem; width: 40px; height: 40px;
        border-radius: 50%; border: none; background: var(--eco-bg); color: var(--eco-dark);
        display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    }
}
@media (min-width: 992px) {
    .navbar-eco .nav-close-btn, .nav-backdrop { display: none !important; }
}

/* ---------------------------------------------------------
   4b. BANNER SLIDER (dikelola dari Admin > Banner)
   --------------------------------------------------------- */
.banner-slider-section { position: relative; }
.banner-slide-img { height: 420px; object-fit: cover; }
.banner-slide-caption {
    background: rgba(15, 23, 42, 0.45);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    bottom: 2rem;
}
.banner-slide-caption h3 { font-weight: 800; }
@media (max-width: 767px) {
    .banner-slide-img { height: 220px; }
    .banner-slide-caption { padding: 0.6rem 1rem; }
    .banner-slide-caption h3 { font-size: 1.1rem; }
    .banner-slide-caption p { font-size: 0.85rem; margin-bottom: 0.5rem; }
}

/* ---------------------------------------------------------
   5. HERO SECTION
   --------------------------------------------------------- */
.hero-section {
    position: relative;
    padding: 140px 0 90px;
    overflow: hidden;
    background: linear-gradient(180deg, #F0FDF4 0%, var(--eco-bg) 100%);
}
.hero-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.shape {
    position: absolute; border-radius: 50%; opacity: 0.5;
    animation: floatShape 6s ease-in-out infinite;
}
.shape-1 { width: 180px; height: 180px; background: var(--eco-green-light); top: 10%; left: 5%; }
.shape-2 { width: 120px; height: 120px; background: var(--eco-yellow-light); bottom: 15%; left: 45%; animation-delay: 1.5s; }
.shape-3 { width: 150px; height: 150px; background: var(--eco-blue-light); top: 20%; right: 8%; animation-delay: 3s; }

.hero-section .container { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--eco-glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--eco-glass-border);
    color: var(--eco-green-dark); font-weight: 600; font-size: 0.85rem;
    padding: 0.5rem 1.1rem; border-radius: 50px; box-shadow: var(--eco-shadow-sm); margin-bottom: 1.2rem;
}
.text-eco-brown { color: var(--eco-brown) !important; }
.bg-eco-brown-light { background: var(--eco-brown-light) !important; }
.hero-title {
    font-size: 3.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 0.8rem;
}
.hero-title span { color: var(--eco-green); position: relative; }
.hero-subtitle { font-size: 1.3rem; font-weight: 600; color: var(--eco-blue); margin-bottom: 1rem; }
.hero-desc { font-size: 1.05rem; color: var(--eco-text); margin-bottom: 2rem; max-width: 540px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-mascot { max-width: 420px; margin: 0 auto; }
.hero-mascot img { filter: drop-shadow(0 25px 25px rgba(15, 23, 42, 0.15)); }

.floating { animation: floatMascot 3.5s ease-in-out infinite; }

@keyframes floatMascot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}
@keyframes floatShape {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-25px) translateX(15px); }
}

/* ---------------------------------------------------------
   6. PAGE HEADER (halaman dalam)
   --------------------------------------------------------- */
.page-header, .page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--eco-green) 0%, var(--eco-blue) 100%);
    padding: 100px 0 80px;
    text-align: center;
    color: #fff;
    margin-top: -1px;
}
.page-header::after, .page-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 56px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23F8FAFC' d='M0,40 C240,90 480,0 720,20 C960,40 1200,100 1440,50 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}
.page-header h1, .page-hero h1 { color: #fff; font-size: 2.4rem; margin-bottom: 0.5rem; }
.page-header p, .page-hero p { color: rgba(255,255,255,0.9); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.page-hero .badge-eco { background: rgba(255,255,255,0.2); color: #fff; }

/* ---------------------------------------------------------
   7. STATS SECTION
   --------------------------------------------------------- */
.stats-section { padding: 60px 0; }
.stat-box {
    background: #fff; border-radius: var(--eco-radius); padding: 2rem 1rem;
    text-align: center; box-shadow: var(--eco-shadow-sm); height: 100%;
    transition: var(--eco-transition);
}
.stat-box:hover { transform: translateY(-6px); box-shadow: var(--eco-shadow); }
.stat-icon {
    width: 64px; height: 64px; border-radius: 50%; background: var(--eco-green-light);
    color: var(--eco-green); display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin: 0 auto 1rem;
}
.stat-value { font-size: 2.2rem; font-weight: 800; color: var(--eco-dark); margin-bottom: 0.2rem; }
.stat-label { color: var(--eco-gray); font-weight: 500; margin-bottom: 0; }

/* ---------------------------------------------------------
   8. ABOUT / SECTION TITLE / GENERIC
   --------------------------------------------------------- */
.section-title { margin-bottom: 2.5rem; }
.section-title h2 { font-size: 2rem; margin-bottom: 0; }
.section-eyebrow {
    display: inline-block; color: var(--eco-green); font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; margin-bottom: 0.5rem;
}

.about-section, .about-village-section { padding: 70px 0; }
.img-rounded-eco { border-radius: var(--eco-radius-lg); box-shadow: var(--eco-shadow); width: 100%; object-fit: cover; }
.about-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.about-list li { padding: 0.4rem 0; font-weight: 500; }
.about-list li i { color: var(--eco-green); margin-right: 8px; }

.info-box {
    background: #fff; border-radius: var(--eco-radius-sm); padding: 1.2rem;
    display: flex; align-items: center; gap: 1rem; box-shadow: var(--eco-shadow-sm); height: 100%;
}
.info-box i { font-size: 1.6rem; color: var(--eco-green); }
.info-box strong { display: block; font-size: 1.2rem; color: var(--eco-dark); }
.info-box span { color: var(--eco-gray); font-size: 0.85rem; }

.kkn-program-section { padding: 70px 0; background: #fff; }
.program-card {
    background: var(--eco-bg); border-radius: var(--eco-radius); padding: 2rem;
    text-align: center; height: 100%; transition: var(--eco-transition);
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--eco-shadow); background: #fff; }
.program-card i { font-size: 2.2rem; color: var(--eco-green); margin-bottom: 1rem; }

/* ---------------------------------------------------------
   9. WASTE TYPE CARDS
   --------------------------------------------------------- */
.waste-types-section { padding: 70px 0; }
.waste-type-card {
    display: block; background: #fff; border-radius: var(--eco-radius);
    padding: 2rem 1.2rem; text-align: center; box-shadow: var(--eco-shadow-sm);
    border-top: 5px solid var(--card-color, var(--eco-green));
    transition: var(--eco-transition); height: 100%;
}
.waste-type-card:hover { transform: translateY(-8px); box-shadow: var(--eco-shadow); }
.waste-type-card i {
    font-size: 2.2rem; color: var(--card-color, var(--eco-green)); margin-bottom: 1rem; display: block;
}
.waste-type-card h5 { margin-bottom: 0.4rem; }
.waste-type-card p { color: var(--eco-gray); font-size: 0.9rem; margin-bottom: 0; }

/* ---------------------------------------------------------
   10. CARD ECO (article, video, game)
   --------------------------------------------------------- */
.card-eco {
    display: block; background: #fff; border-radius: var(--eco-radius);
    overflow: hidden; box-shadow: var(--eco-shadow-sm); border: 1px solid #F1F5F9; height: 100%;
    transition: var(--eco-transition); color: inherit;
}
.card-eco:hover { transform: translateY(-8px); box-shadow: var(--eco-shadow-lg); border-color: transparent; color: inherit; }
.card-eco-image { position: relative; overflow: hidden; height: 190px; }
.card-eco-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card-eco:hover .card-eco-image img { transform: scale(1.08); }
.card-badge {
    position: absolute; top: 12px; left: 12px; color: #fff; font-size: 0.75rem;
    font-weight: 600; padding: 0.3rem 0.8rem; border-radius: 50px;
}
.card-eco-body { padding: 1.3rem; }
.card-eco-body h5 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card-eco-body p { font-size: 0.9rem; color: var(--eco-gray); margin-bottom: 0.8rem; }
.card-link { color: var(--eco-green); font-weight: 600; font-size: 0.9rem; }

.play-overlay {
    position: absolute; inset: 0; background: rgba(15, 23, 42, 0.35);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2rem; opacity: 0; transition: var(--eco-transition);
}
.card-eco:hover .play-overlay { opacity: 1; }

.articles-section, .videos-section, .game-section, .quiz-section { padding: 70px 0; }
.articles-section { background: #fff; }

/* ---------------------------------------------------------
   11. CTA SECTION
   --------------------------------------------------------- */
.cta-section { padding: 40px 0 80px; }
.cta-box {
    background: linear-gradient(135deg, var(--eco-green) 0%, var(--eco-blue) 100%);
    border-radius: var(--eco-radius-lg); padding: 3rem; color: #fff;
    box-shadow: var(--eco-shadow-lg);
}
.cta-box h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 0; }

/* ---------------------------------------------------------
   12. GALLERY PREVIEW & GALLERY PAGE
   --------------------------------------------------------- */
.gallery-preview-section { padding: 70px 0; background: #fff; }
.gallery-thumb { display: block; border-radius: var(--eco-radius-sm); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--eco-shadow-sm); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--eco-transition); }
.gallery-thumb:hover img { transform: scale(1.1); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.chip {
    background: #fff; color: var(--eco-text); padding: 0.5rem 1.2rem; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem; box-shadow: var(--eco-shadow-sm);
}
.chip.active, .chip:hover { background: var(--eco-green); color: #fff; }

.gallery-card {
    position: relative; border-radius: var(--eco-radius); overflow: hidden; cursor: pointer;
    aspect-ratio: 1/1; box-shadow: var(--eco-shadow-sm);
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--eco-transition); }
.gallery-overlay {
    position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55);
    color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; opacity: 0; transition: var(--eco-transition); text-align: center; padding: 1rem; font-weight: 600;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-card:hover img { transform: scale(1.1); }

/* ---------------------------------------------------------
   13. FILTER TABS (belajar & video)
   --------------------------------------------------------- */
.belajar-section, .video-section, .article-detail-section, .video-detail-section, .timeline-section, .threeR-section, .quiz-play-section, .game-play-section, .quiz-result-section {
    padding: 70px 0;
}
.filter-tabs {
    display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem;
}
.filter-tab {
    background: #fff; color: var(--eco-text); padding: 0.55rem 1.3rem; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem; box-shadow: var(--eco-shadow-sm); display: inline-flex; align-items: center; gap: 6px;
}
.filter-tab.active, .filter-tab:hover { background: var(--eco-green); color: #fff; }

.search-form { display: flex; }
.search-form .form-control { border-radius: 50px 0 0 50px; border-right: none; }
.search-form button {
    border: 1px solid #ced4da; border-left: none; background: var(--eco-green);
    color: #fff; border-radius: 0 50px 50px 0; padding: 0 1.2rem;
}

/* ---------------------------------------------------------
   14. ARTICLE / VIDEO DETAIL
   --------------------------------------------------------- */
.breadcrumb-eco {
    list-style: none; display: flex; gap: 8px; padding: 0; margin-bottom: 1.5rem;
    font-size: 0.9rem; color: var(--eco-gray); flex-wrap: wrap;
}
.breadcrumb-eco li:not(:last-child)::after { content: '/'; margin-left: 8px; color: #cbd5e1; }
.breadcrumb-eco a { color: var(--eco-green); font-weight: 500; }
.breadcrumb-eco .active { color: var(--eco-gray); }

.article-content .card-badge {
    position: static;
    display: inline-block;
}
.article-content h1 { font-size: 1.9rem; margin: 0.8rem 0 1rem; }
.article-meta { display: flex; gap: 1.2rem; color: var(--eco-gray); font-size: 0.9rem; margin-bottom: 1.5rem; }
.article-image { width: 100%; border-radius: var(--eco-radius); margin-bottom: 1.5rem; max-height: 420px; object-fit: cover; }
.article-body { font-size: 1.02rem; color: var(--eco-text); }
.article-body img { border-radius: var(--eco-radius-sm); margin: 1rem 0; }
.article-nav-cta { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px dashed #e2e8f0; }

.info-panel {
    border-radius: var(--eco-radius-sm); padding: 1.3rem 1.5rem; margin-top: 1.5rem;
}
.info-panel h5 { font-size: 1rem; margin-bottom: 0.6rem; }
.info-panel-blue { background: var(--eco-blue-light); }
.info-panel-blue h5 { color: var(--eco-blue-dark); }
.info-panel-green { background: var(--eco-green-light); }
.info-panel-green h5 { color: var(--eco-green-dark); }

.sidebar-box { background: #fff; border-radius: var(--eco-radius); padding: 1.3rem; box-shadow: var(--eco-shadow-sm); }
.sidebar-box h5 { margin-bottom: 1rem; font-size: 1rem; }
.sidebar-article-item {
    display: flex; align-items: center; gap: 10px; padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9; color: var(--eco-text); font-size: 0.88rem; font-weight: 500;
}
.sidebar-article-item:last-child { border-bottom: none; }
.sidebar-article-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.sidebar-article-item:hover { color: var(--eco-green); }

.video-embed-wrapper { position: relative; padding-top: 56.25%; border-radius: var(--eco-radius); overflow: hidden; box-shadow: var(--eco-shadow); }
.video-embed-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------
   15. TIMELINE (cara memilah sampah)
   --------------------------------------------------------- */
.timeline-eco { position: relative; max-width: 750px; margin: 0 auto; padding-left: 40px; }
.timeline-eco::before {
    content: ''; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 3px;
    background: repeating-linear-gradient(180deg, var(--eco-green) 0 10px, transparent 10px 18px);
}
.timeline-step { position: relative; display: flex; gap: 1.5rem; margin-bottom: 2.5rem; }
.timeline-number {
    position: absolute; left: -40px; top: 0; width: 40px; height: 40px; border-radius: 50%;
    background: var(--eco-green); color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; box-shadow: 0 0 0 6px var(--eco-bg);
}
.timeline-content {
    background: #fff; border-radius: var(--eco-radius); padding: 1.5rem; box-shadow: var(--eco-shadow-sm); flex: 1;
}
.timeline-content i { font-size: 1.6rem; color: var(--eco-blue); margin-bottom: 0.6rem; display: block; }
.timeline-content h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.timeline-content p { color: var(--eco-gray); margin-bottom: 0; font-size: 0.92rem; }

/* ---------------------------------------------------------
   16. KONSEP 3R
   --------------------------------------------------------- */
.threeR-card {
    background: #fff; border-radius: var(--eco-radius); padding: 2.2rem 1.5rem; text-align: center;
    height: 100%; box-shadow: var(--eco-shadow-sm); border-bottom: 6px solid var(--r-color, var(--eco-green));
    transition: var(--eco-transition);
}
.threeR-card:hover { transform: translateY(-8px); box-shadow: var(--eco-shadow); }
.threeR-icon {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1.2rem;
    background: color-mix(in srgb, var(--r-color, var(--eco-green)) 15%, white);
    color: var(--r-color, var(--eco-green)); display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.threeR-card h3 { margin-bottom: 0.7rem; }
.threeR-card p { color: var(--eco-gray); font-size: 0.92rem; margin-bottom: 0; }

/* ---------------------------------------------------------
   17. QUIZ — LISTING
   --------------------------------------------------------- */
.quiz-category-card {
    background: #fff; border-radius: var(--eco-radius); padding: 2rem; text-align: center;
    height: 100%; box-shadow: var(--eco-shadow-sm); border-top: 5px solid var(--card-color, var(--eco-green));
    transition: var(--eco-transition); display: flex; flex-direction: column;
}
.quiz-category-card:hover { transform: translateY(-6px); box-shadow: var(--eco-shadow); }
.quiz-category-icon {
    width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 1.2rem;
    background: color-mix(in srgb, var(--card-color, var(--eco-green)) 15%, white);
    color: var(--card-color, var(--eco-green)); display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.quiz-category-card p { color: var(--eco-gray); font-size: 0.9rem; flex-grow: 1; }
.quiz-info-list {
    list-style: none; padding: 0; display: flex; justify-content: center; gap: 1.2rem;
    font-size: 0.85rem; color: var(--eco-gray); margin-bottom: 1.3rem;
}
.quiz-info-list i { color: var(--eco-green); margin-right: 4px; }

/* ---------------------------------------------------------
   18. QUIZ — PLAY
   --------------------------------------------------------- */
.quiz-start-card, .quiz-play-card {
    max-width: 650px; margin: 0 auto; background: #fff; border-radius: var(--eco-radius-lg);
    padding: 2.5rem; box-shadow: var(--eco-shadow);
}
.quiz-start-card { text-align: center; }
.quiz-time-limit-info { color: var(--eco-gray); font-size: 0.9rem; font-weight: 600; margin-top: -0.5rem; margin-bottom: 1rem; }
.quiz-start-mascot { max-width: 160px; margin: 0 auto 1rem; }
.quiz-start-mascot img { filter: drop-shadow(0 10px 15px rgba(15,23,42,0.1)); }

.quiz-top-bar { margin-bottom: 1.5rem; }
.quiz-progress-info {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.8rem;
    font-weight: 600; font-size: 0.9rem; color: var(--eco-gray); margin-bottom: 0.5rem;
}
#quizTimer { color: var(--eco-gray); font-weight: 700; font-size: 0.9rem; }
#quizTimer.quiz-timer-danger { color: var(--eco-red); animation: quiz-timer-pulse 1s ease-in-out infinite; }
@keyframes quiz-timer-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.quiz-time-expired-notice {
    background: var(--eco-red-light); color: #991b1b; border-radius: var(--eco-radius-sm);
    padding: 0.7rem 1rem; font-size: 0.9rem; font-weight: 600; margin: 0.5rem 0 1rem;
}
.quiz-progress-bar, .progress { height: 10px; border-radius: 50px; background: #e2e8f0; overflow: hidden; }
.quiz-progress-bar .progress-bar, .progress-bar {
    background: linear-gradient(90deg, var(--eco-green), var(--eco-blue)); transition: width 0.35s ease;
}

.quiz-question-area { margin-bottom: 1.5rem; }
.quiz-question-area h4 { font-size: 1.2rem; margin-bottom: 1.3rem; }
.quiz-question-area .answer-option {
    display: block; width: 100%; text-align: left; background: var(--eco-bg); border: 2px solid transparent;
    border-radius: var(--eco-radius-sm); padding: 0.9rem 1.2rem; margin-bottom: 0.8rem; font-weight: 500;
    cursor: pointer; transition: var(--eco-transition);
}
.quiz-question-area .answer-option:hover { border-color: var(--eco-blue); background: var(--eco-blue-light); }
.quiz-question-area .answer-option.selected { border-color: var(--eco-green); background: var(--eco-green-light); color: var(--eco-green-dark); }
.quiz-question-area .answer-option.correct { border-color: var(--eco-green); background: var(--eco-green-light); }
.quiz-question-area .answer-option.wrong { border-color: var(--eco-red); background: var(--eco-red-light); }

.quiz-nav-buttons { display: flex; justify-content: space-between; gap: 1rem; }
.quiz-nav-buttons .btn { flex: 1; }

.quiz-loading { display: block !important; width: 100%; text-align: center; padding: 3rem 0; }
.spinner-eco {
    width: 60px; height: 60px; border: 6px solid var(--eco-green-light); border-top-color: var(--eco-green);
    border-radius: 50%; margin: 0 auto 1rem; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------
   19. QUIZ — RESULT
   --------------------------------------------------------- */
.result-card {
    max-width: 650px; margin: 0 auto 3rem; background: #fff; border-radius: var(--eco-radius-lg);
    padding: 2.5rem; box-shadow: var(--eco-shadow); text-align: center;
}
.result-mascot { max-width: 140px; margin: 0 auto 1rem; }
.result-score-circle {
    width: 150px; height: 150px; border-radius: 50%; margin: 1.5rem auto;
    background: conic-gradient(var(--eco-green) 0% 100%, #e2e8f0 0% 0%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative;
}
.result-score-circle::before { content: ''; position: absolute; inset: 10px; background: #fff; border-radius: 50%; }
.result-score-circle .score-number { position: relative; font-size: 2.5rem; font-weight: 800; color: var(--eco-dark); }
.result-score-circle .score-label { position: relative; color: var(--eco-gray); font-size: 0.85rem; }

.result-badge {
    display: inline-flex; align-items: center; gap: 8px; background: var(--eco-yellow-light);
    color: #92650a; font-weight: 700; padding: 0.5rem 1.2rem; border-radius: 50px; margin-bottom: 1.5rem;
}
.result-stats { margin-bottom: 2rem; }
.result-stat-box {
    background: var(--eco-bg); border-radius: var(--eco-radius-sm); padding: 1rem 0.5rem; text-align: center;
}
.result-stat-box strong { display: block; font-size: 1.4rem; color: var(--eco-dark); }
.result-stat-box span { font-size: 0.8rem; color: var(--eco-gray); }
.result-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.review-section { max-width: 800px; margin: 0 auto; }
.review-section h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.review-item {
    display: flex; gap: 1rem; background: #fff; border-radius: var(--eco-radius-sm);
    padding: 1.3rem; margin-bottom: 1rem; box-shadow: var(--eco-shadow-sm); border-left: 5px solid var(--eco-gray);
}
.review-item.review-correct { border-left-color: var(--eco-green); }
.review-item.review-wrong { border-left-color: var(--eco-red); }
.review-number {
    width: 34px; height: 34px; border-radius: 50%; background: var(--eco-bg); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--eco-gray);
}
.review-question { font-weight: 600; margin-bottom: 0.5rem; }
.review-answer { font-size: 0.9rem; margin-bottom: 0.3rem; }
.review-correct .review-answer i { color: var(--eco-green); }
.review-wrong .review-answer i { color: var(--eco-red); }
.review-correct-answer { font-size: 0.9rem; color: var(--eco-green-dark); margin-bottom: 0.3rem; }
.review-explanation {
    background: var(--eco-blue-light); border-radius: 10px; padding: 0.7rem 1rem; font-size: 0.87rem;
    color: var(--eco-blue-dark); margin-top: 0.5rem;
}

/* ---------------------------------------------------------
   20. GAME — LISTING & HEADER
   --------------------------------------------------------- */
.game-type-title { font-size: 1.2rem; margin-bottom: 1.3rem; display: flex; align-items: center; gap: 8px; }
.game-type-title i { color: var(--eco-green); }
.game-header, .game-hero { text-align: center; margin-bottom: 2rem; }
.game-header h1 { font-size: 1.8rem; }
.game-header p { color: var(--eco-gray); }

.game-play-section {
    background: radial-gradient(circle at top, #f0fdf4 0%, var(--eco-bg) 55%);
}

.game-card { position: relative; overflow: hidden; }
.game-card .card-eco-image { position: relative; }
.game-card .play-overlay {
    position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45); color: #fff; font-size: 2.2rem;
    display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--eco-transition);
}
.game-card:hover .play-overlay { opacity: 1; }
.game-card:hover .card-eco-image img { transform: scale(1.08); }

.game-stat-bar {
    display: flex; justify-content: center; gap: 2rem; background: #fff; border-radius: 50px;
    padding: 0.8rem 2rem; box-shadow: var(--eco-shadow-sm); margin-bottom: 2rem; font-weight: 600; flex-wrap: wrap;
}
.game-stat-bar span { display: inline-flex; align-items: center; gap: 6px; }
.game-stat-bar .fa-star { color: var(--eco-yellow-dark, #d97706); }
.game-stat-bar .fa-clock { color: var(--eco-blue); }
.game-stat-bar .fa-heart { color: var(--eco-red, #dc2626); }
.game-stat { font-weight: 600; }
.rank-badge {
    width: 28px; height: 28px; border-radius: 50%; background: var(--eco-gray); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700;
}
.rank-badge.rank-1 { background: var(--eco-yellow-dark); }
.rank-badge.rank-2 { background: #94a3b8; }
.rank-badge.rank-3 { background: #b45309; }

/* ---------------------------------------------------------
   21. GAME — DRAG & DROP
   --------------------------------------------------------- */
.drag-drop-board { display: flex; flex-direction: column; gap: 2rem; }
.drag-items {
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--eco-radius); padding: 2rem 1.5rem; min-height: 160px; box-shadow: var(--eco-shadow-sm);
}
.drag-item {
    width: 130px; height: 130px; background: #fff; border: 3px solid var(--eco-green-light);
    border-radius: var(--eco-radius); display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 8px; cursor: grab; box-shadow: var(--eco-shadow);
    transition: var(--eco-transition); user-select: none; position: relative;
    animation: dragItemPop 0.35s ease;
}
.drag-item i { font-size: 2.6rem; color: var(--eco-green); line-height: 1; }
.drag-item span {
    font-size: 0.8rem; font-weight: 700; color: var(--eco-dark); text-align: center;
    padding: 0 6px; line-height: 1.25;
}
.drag-item::after {
    content: '\f256'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; top: 8px; right: 10px; font-size: 0.75rem; color: #cbd5e1;
}
.drag-item:hover {
    transform: translateY(-6px) scale(1.04); box-shadow: var(--eco-shadow-lg);
    border-color: var(--eco-green);
}
.drag-item:active { cursor: grabbing; }
.drag-item.dragging { opacity: 0.4; transform: scale(0.9); }
.drag-item.selected-for-tap { border-color: var(--eco-blue); box-shadow: 0 0 0 4px var(--eco-blue-light); }
.drag-item.item-removed { display: none; }

@keyframes dragItemPop {
    0% { opacity: 0; transform: scale(0.7) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.drop-zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.drop-zone {
    background: color-mix(in srgb, var(--zone-color, var(--eco-green)) 6%, white);
    border: 3px dashed color-mix(in srgb, var(--zone-color, var(--eco-green)) 40%, white);
    border-radius: var(--eco-radius); padding: 1.5rem 0.5rem; text-align: center; min-height: 130px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    transition: var(--eco-transition);
}
.drop-zone i { font-size: 1.8rem; color: var(--zone-color, var(--eco-green)); }
.drop-zone span { font-weight: 600; font-size: 0.9rem; }
.drop-zone.drag-over { background: color-mix(in srgb, var(--zone-color, var(--eco-green)) 16%, white); border-style: solid; transform: scale(1.03); }
.drop-zone.drop-correct { animation: pulseCorrect 0.5s ease; }
.drop-zone.drop-wrong { animation: shakeWrong 0.5s ease; }

@keyframes pulseCorrect {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
@keyframes shakeWrong {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* ---------------------------------------------------------
   22. GAME — PUZZLE
   --------------------------------------------------------- */
.puzzle-board { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }
.puzzle-target {
    display: grid; gap: 4px; background: #fff; border-radius: var(--eco-radius); padding: 12px; box-shadow: var(--eco-shadow-sm);
}
.puzzle-target .puzzle-slot {
    background: var(--eco-bg); border: 2px dashed #cbd5e1; border-radius: 8px; min-width: 70px; min-height: 70px;
    transition: var(--eco-transition);
}
.puzzle-target .puzzle-slot.filled { border-style: solid; border-color: var(--eco-green); box-shadow: 0 0 0 3px var(--eco-green-light); }
.puzzle-pieces {
    display: flex; flex-wrap: wrap; gap: 8px; max-width: 320px; background: #fff;
    border-radius: var(--eco-radius); padding: 12px; box-shadow: var(--eco-shadow-sm); align-content: flex-start;
}
.puzzle-piece {
    width: 70px; height: 70px; border-radius: 8px; cursor: grab; background-size: cover; box-shadow: var(--eco-shadow-sm);
    transition: var(--eco-transition);
}
.puzzle-piece:hover { transform: scale(1.06); box-shadow: var(--eco-shadow); }
.puzzle-piece.placed { opacity: 0; pointer-events: none; }
.win-animation { font-size: 4rem; animation: bounceWin 0.8s ease infinite; }
@keyframes bounceWin { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-15px) scale(1.1); } }

/* ---------------------------------------------------------
   23. GAME — TEBAK TEMPAT SAMPAH
   --------------------------------------------------------- */
.tebak-item-box { display: flex; flex-direction: column; align-items: center; }
.tebak-item-image {
    width: 160px; height: 160px; border-radius: 50%; background: #fff;
    display: flex; align-items: center; justify-content: center; box-shadow: var(--eco-shadow);
    border: 4px solid var(--eco-green-light); font-size: 3.5rem;
}

/* ---------------------------------------------------------
   24. FORMS
   --------------------------------------------------------- */
.form-control, .form-select {
    border-radius: var(--eco-radius-sm); border: 2px solid #e2e8f0; padding: 0.7rem 1rem; font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--eco-green); box-shadow: 0 0 0 4px var(--eco-green-light);
}
.form-control-lg { padding: 0.9rem 1.2rem; border-radius: var(--eco-radius); }
.form-label { font-weight: 600; color: var(--eco-dark); margin-bottom: 0.4rem; }
.is-invalid { border-color: var(--eco-red) !important; }
.invalid-feedback { font-size: 0.83rem; }

.contact-info-list { list-style: none; padding: 0; }
.contact-info-list li { display: flex; align-items: center; gap: 10px; padding: 0.5rem 0; font-weight: 500; }
.contact-info-list li i { color: var(--eco-green); width: 20px; }

/* ---------------------------------------------------------
   25. EMPTY STATE
   --------------------------------------------------------- */
.empty-state { color: var(--eco-gray); }
.empty-state i { font-size: 3rem; color: #cbd5e1; margin-bottom: 1rem; display: block; }

/* ---------------------------------------------------------
   26. FOOTER
   --------------------------------------------------------- */
.footer-eco { position: relative; background: var(--eco-dark); color: #cbd5e1; padding: 80px 0 20px; margin-top: 60px; }
.footer-wave { position: absolute; top: -59px; left: 0; width: 100%; line-height: 0; }
.footer-wave svg { width: 100%; height: 60px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand span { color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer-desc { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
    color: #fff; display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--eco-green); }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: #cbd5e1; font-size: 0.9rem; }
.footer-links a:hover { color: var(--eco-green); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 0.8rem; font-size: 0.9rem; }
.footer-contact i { color: var(--eco-green); margin-top: 3px; }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 2rem 0 1.5rem; }
.footer-bottom { text-align: center; font-size: 0.85rem; }
.footer-bottom i { color: var(--eco-red); }

/* ---------------------------------------------------------
   27. LOGIN PAGE (admin)
   --------------------------------------------------------- */
.login-page {
    background:
        linear-gradient(135deg, rgba(22,163,74,0.90) 0%, rgba(2,132,199,0.85) 100%),
        url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    background-color: var(--eco-green-dark);
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}
.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-card {
    background: rgba(255,255,255,0.97); border-radius: var(--eco-radius-lg); padding: 2.8rem; max-width: 420px; width: 100%;
    box-shadow: var(--eco-shadow-lg);
    backdrop-filter: blur(6px);
}
.login-brand { text-align: center; margin-bottom: 1.8rem; }
.login-brand img { width: 70px; height: 70px; margin-bottom: 0.8rem; }
.login-brand h4 { margin-bottom: 0.2rem; }
.login-brand p { color: var(--eco-gray); font-size: 0.9rem; }
.back-home {
    display: block; text-align: center; margin-top: 1.5rem; color: var(--eco-gray); font-size: 0.9rem; font-weight: 500;
}
.back-home:hover { color: var(--eco-green); }

/* ---------------------------------------------------------
   28. RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 991.98px) {
    .hero-title { font-size: 2.3rem; }
    .hero-section { padding: 120px 0 60px; text-align: center; }
    .hero-cta { justify-content: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-mascot { max-width: 280px; margin-top: 2rem; }
    .navbar-eco .navbar-collapse { margin-top: 1rem; }
    .drop-zones { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
    .hero-title { font-size: 1.9rem; }
    .page-header h1, .page-hero h1 { font-size: 1.8rem; }
    .cta-box { text-align: center; padding: 2rem 1.5rem; }
    .cta-box .text-lg-end { text-align: center !important; margin-top: 1rem; }
    .result-actions { flex-direction: column; }
    .quiz-start-card, .quiz-play-card, .result-card { padding: 1.5rem; }
    .game-stat-bar { gap: 1rem; padding: 0.8rem 1.2rem; }
    .drag-item { width: 105px; height: 105px; }
    .drag-item i { font-size: 2.1rem; }
}

/* ---------------------------------------------------------
   24. QUIZ LIVEWIRE (tambahan) — pelengkap komponen QuizPlay
   --------------------------------------------------------- */
.quiz-question-image {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: var(--eco-radius);
    margin-bottom: 1.3rem;
}
.badge-difficulty {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    color: #fff;
}
.badge-difficulty.badge-mudah { background: var(--eco-green); }
.badge-difficulty.badge-sedang { background: var(--eco-yellow-dark, #d97706); }
.badge-difficulty.badge-sulit { background: var(--eco-red, #dc2626); }
.quiz-result-summary { font-size: 1.05rem; margin: 0.8rem 0; }
.badge-eco-lg {
    display: inline-block;
    background: var(--eco-green-light);
    color: var(--eco-green-dark);
    font-weight: 700;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
}
.quiz-is-loading { opacity: 0.7; pointer-events: none; transition: opacity 0.15s ease; }

/* Navigasi titik nomor soal */
.quiz-dot-nav {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.9rem;
}
.quiz-dot {
    width: 32px; height: 32px; border-radius: 50%; border: 2px solid #e2e8f0; background: #fff;
    color: var(--eco-gray); font-size: 0.8rem; font-weight: 700; display: flex; align-items: center;
    justify-content: center; transition: var(--eco-transition); cursor: pointer;
}
.quiz-dot:hover { border-color: var(--eco-blue); color: var(--eco-blue); }
.quiz-dot.answered { background: var(--eco-green-light); border-color: var(--eco-green); color: var(--eco-green-dark); }
.quiz-dot.active { background: var(--eco-green); border-color: var(--eco-green); color: #fff; transform: scale(1.1); }

/* Opsi jawaban dengan ikon centang */
.quiz-question-area .answer-option {
    display: flex; align-items: center; gap: 0.8rem;
}
.answer-option-check {
    width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbd5e1; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: transparent;
    transition: var(--eco-transition);
}
.answer-option.selected .answer-option-check {
    background: var(--eco-green); border-color: var(--eco-green); color: #fff;
}
.answer-option-text { flex: 1; }

/* ---------------------------------------------------------
   25. BROKEN-IMAGE FALLBACK (jaga tampilan tetap rapi bila
       gambar gagal dimuat, mis. symlink storage belum aktif)
   --------------------------------------------------------- */
.img-broken-fallback {
    background: var(--eco-bg) !important; min-height: 90px;
    border: 2px dashed #cbd5e1 !important; object-fit: none !important;
}

/* ---------------------------------------------------------
   29. ACCESSIBILITY — FOCUS STATE
   --------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--eco-blue);
    outline-offset: 2px;
    border-radius: 8px;
}
.skip-to-content {
    position: absolute; left: 1rem; top: -60px; background: var(--eco-green); color: #fff;
    padding: 0.7rem 1.2rem; border-radius: 0 0 var(--eco-radius-sm) var(--eco-radius-sm);
    font-weight: 600; z-index: 2000; transition: top 0.2s ease;
}
.skip-to-content:focus { top: 0; color: #fff; }

/* ---------------------------------------------------------
   30. PAGINATION (Bootstrap 5 default markup)
   --------------------------------------------------------- */
.pagination { gap: 6px; flex-wrap: wrap; }
.pagination .page-item .page-link {
    border: none; border-radius: 10px !important; color: var(--eco-text); font-weight: 600;
    padding: 0.55rem 0.95rem; box-shadow: var(--eco-shadow-sm); transition: var(--eco-transition);
}
.pagination .page-item .page-link:hover { background: var(--eco-green-light); color: var(--eco-green-dark); }
.pagination .page-item.active .page-link { background: var(--eco-green); color: #fff; box-shadow: var(--eco-shadow-sm); }
.pagination .page-item.disabled .page-link { background: transparent; box-shadow: none; opacity: 0.4; }

/* ---------------------------------------------------------
   31. ALERTS
   --------------------------------------------------------- */
.alert {
    border: none; border-radius: var(--eco-radius-sm); padding: 1rem 1.3rem;
    display: flex; align-items: center; gap: 0.7rem; box-shadow: var(--eco-shadow-sm);
}
.alert-success { background: var(--eco-green-light); color: var(--eco-green-dark); }
.alert-danger { background: var(--eco-red-light); color: #991b1b; }
.alert-warning { background: var(--eco-yellow-light); color: #854d0e; }
.alert-info { background: var(--eco-blue-light); color: #1e40af; }
.alert .btn-close { margin-left: auto; }

/* ---------------------------------------------------------
   32. BREADCRUMB
   --------------------------------------------------------- */
.breadcrumb { margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb-item, .breadcrumb-item a { font-weight: 500; font-size: 0.9rem; color: var(--eco-gray); }
.breadcrumb-item a:hover { color: var(--eco-green); }
.breadcrumb-item.active { color: var(--eco-dark); font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { color: #cbd5e1; }

.page-header .breadcrumb-eco,
.page-hero .breadcrumb-eco {
    justify-content: center; margin-bottom: 1rem;
}
.page-header .breadcrumb-eco li,
.page-hero .breadcrumb-eco li,
.page-header .breadcrumb-eco a,
.page-hero .breadcrumb-eco a { color: rgba(255,255,255,0.8); }
.page-header .breadcrumb-eco a:hover,
.page-hero .breadcrumb-eco a:hover { color: #fff; }
.page-header .breadcrumb-eco .active,
.page-hero .breadcrumb-eco .active { color: #fff; font-weight: 700; }
.page-header .breadcrumb-eco li:not(:last-child)::after,
.page-hero .breadcrumb-eco li:not(:last-child)::after { color: rgba(255,255,255,0.5); }

/* ---------------------------------------------------------
   33. LOADING / SKELETON STATE
   --------------------------------------------------------- */
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #eef2f6 37%, #e2e8f0 63%);
    background-size: 400% 100%; animation: skeletonShimmer 1.4s ease infinite; border-radius: var(--eco-radius-sm);
}
@keyframes skeletonShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.spinner-eco {
    width: 42px; height: 42px; border: 4px solid var(--eco-green-light); border-top-color: var(--eco-green);
    border-radius: 50%; animation: spinEco 0.8s linear infinite; margin: 0 auto;
}
@keyframes spinEco { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------
   34. RESPONSIVE TABLE WRAPPER
   --------------------------------------------------------- */
.table-responsive-eco {
    overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--eco-radius-sm);
}

/* ---------------------------------------------------------
   35. LAZY LOAD FADE-IN (progressive enhancement, aman tanpa JS)
   --------------------------------------------------------- */
img[loading="lazy"] { animation: lazyFadeIn 0.4s ease; }
@keyframes lazyFadeIn { from { opacity: 0.2; } to { opacity: 1; } }

/* ---------------------------------------------------------
   36. MODAL
   --------------------------------------------------------- */
.modal-content {
    border: none; border-radius: var(--eco-radius-lg); box-shadow: var(--eco-shadow-lg); overflow: hidden;
}
.modal-header { border-bottom: 1px solid #f1f5f9; padding: 1.2rem 1.5rem; }
.modal-header .modal-title { font-weight: 700; color: var(--eco-dark); }
.modal-body { padding: 1.5rem; }
.modal-footer { border-top: 1px solid #f1f5f9; padding: 1rem 1.5rem; }
.modal-backdrop.show { opacity: 0.6; }
.modal.fade .modal-dialog { transform: translateY(30px) scale(0.98); }
.modal.show .modal-dialog { transform: translateY(0) scale(1); }

/* ---------------------------------------------------------
   37. TABLE (dasar, di luar admin)
   --------------------------------------------------------- */
.table { --bs-table-bg: transparent; }
.table thead th {
    border-bottom: 2px solid #e2e8f0; font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--eco-gray); font-weight: 700;
}
.table tbody td { vertical-align: middle; border-bottom: 1px solid #f1f5f9; }
.table-card {
    background: #fff; border-radius: var(--eco-radius); padding: 1.2rem; box-shadow: var(--eco-shadow-sm);
}

/* ---------------------------------------------------------
   38. FITUR UTAMA (landing page)
   --------------------------------------------------------- */
.features-section { padding: 70px 0; background: #fff; }
.feature-card {
    background: var(--eco-bg); border-radius: var(--eco-radius); padding: 2rem 1.5rem; height: 100%;
    text-align: center; transition: var(--eco-transition); border: 1px solid transparent;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--eco-shadow); background: #fff; border-color: var(--eco-green-light); }
.feature-icon {
    width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 1.1rem;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff;
    background: var(--icon-color, var(--eco-gradient-primary));
}
.feature-card h5 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--eco-gray); font-size: 0.88rem; margin-bottom: 0; }

/* ---------------------------------------------------------
   39. QUIZ / GAME TEASER (landing page)
   --------------------------------------------------------- */
.teaser-section { padding: 30px 0; }
.teaser-box {
    border-radius: var(--eco-radius-lg); padding: 2.8rem; color: #fff; position: relative; overflow: hidden;
    box-shadow: var(--eco-shadow-lg); height: 100%;
}
.teaser-box.teaser-quiz { background: var(--eco-gradient-primary); }
.teaser-box.teaser-game { background: linear-gradient(135deg, #FACC15 0%, #FB923C 100%); color: var(--eco-dark); }
.teaser-box .teaser-icon { font-size: 2.6rem; margin-bottom: 1rem; opacity: 0.95; }
.teaser-box h3 { color: inherit; font-size: 1.5rem; margin-bottom: 0.6rem; }
.teaser-box p { margin-bottom: 1.5rem; opacity: 0.92; }
.teaser-box.teaser-game .btn-eco-primary { background: var(--eco-dark); border-color: var(--eco-dark); box-shadow: 0 6px 0 #0F172A; }
.teaser-box.teaser-game .btn-eco-primary:hover { background: #000; border-color: #000; }
.teaser-box-decor { position: absolute; font-size: 8rem; opacity: 0.12; right: -10px; bottom: -20px; }

/* ---------------------------------------------------------
   40. FAQ (landing page)
   --------------------------------------------------------- */
.faq-section { padding: 70px 0; }
.accordion-eco { max-width: 780px; margin: 0 auto; }
.accordion-eco .accordion-item {
    background: #fff; border: none; border-radius: var(--eco-radius-sm) !important; margin-bottom: 1rem;
    box-shadow: var(--eco-shadow-sm); overflow: hidden;
}
.accordion-eco .accordion-button {
    font-weight: 700; color: var(--eco-dark); padding: 1.2rem 1.4rem; font-family: var(--font-heading);
    box-shadow: none !important;
}
.accordion-eco .accordion-button:not(.collapsed) { background: var(--eco-green-light); color: var(--eco-green-dark); }
.accordion-eco .accordion-button::after { filter: hue-rotate(90deg); }
.accordion-eco .accordion-body { padding: 0 1.4rem 1.3rem; color: var(--eco-gray); font-size: 0.95rem; }

/* ---------------------------------------------------------
   41. STAT SECTION — versi "band" gelap dipakai menjelang FAQ
   --------------------------------------------------------- */
.stats-band { background: var(--eco-dark); padding: 60px 0; }
.stats-band .stat-box { background: rgba(255,255,255,0.06); backdrop-filter: blur(6px); }
.stats-band .stat-value, .stats-band .stat-label { color: #fff; }
.stats-band .stat-label { opacity: 0.75; }

/* ---------------------------------------------------------
   42. SKELETON LOADING — placeholder shimmer untuk gambar
   lazy-load (img[loading="lazy"]) sampai gambar selesai dimuat.
   Kelas .is-loaded ditambahkan otomatis lewat JS di app layout.
   --------------------------------------------------------- */
img[loading="lazy"] {
    background: linear-gradient(100deg, #eef2f0 8%, #f8fafc 18%, #eef2f0 33%);
    background-size: 200% 100%;
    animation: img-skeleton-shimmer 1.4s ease-in-out infinite;
}
img[loading="lazy"].is-loaded {
    animation: none;
    background: none;
}
@keyframes img-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    img[loading="lazy"] { animation: none; }
}

/* Skeleton generik untuk konten yang di-render setelah request
   awal (mis. dipakai lewat class .skeleton-block di Blade/Livewire). */
.skeleton-block {
    background: linear-gradient(100deg, #eef2f0 8%, #f8fafc 18%, #eef2f0 33%);
    background-size: 200% 100%;
    animation: img-skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: 0.75rem;
    min-height: 1rem;
}

/* =========================================================
   43. PERBAIKAN RESPONSIVE MENYELURUH — SEMUA HALAMAN PUBLIC
   (Hero, page header, sidebar konten, kartu, quiz, game, dsb)
   ========================================================= */

/* Cegah overflow horizontal akibat teks/URL panjang tanpa spasi */
.article-body, .footer-desc, .hero-desc, .about-village-section p,
.review-explanation, .quiz-question-area h4, .sidebar-article-item span {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Sidebar konten (artikel/video terkait) tetap rapi saat pindah ke bawah di mobile */
@media (max-width: 991.98px) {
    .sidebar-box { margin-top: 0.5rem; }
}

@media (max-width: 991.98px) {
    .hero-section { min-height: auto !important; padding: 110px 0 50px; }
    .page-header, .page-hero { padding: 80px 0 60px; }
    .features-section, .waste-types-section, .about-section, .about-village-section,
    .kkn-program-section, .articles-section, .videos-section, .game-section, .quiz-section,
    .belajar-section, .video-section, .article-detail-section, .video-detail-section,
    .timeline-section, .threeR-section, .gallery-preview-section, .faq-section,
    .teaser-section { padding: 50px 0; }
    .stats-band { padding: 40px 0; }
    .footer-eco { padding: 60px 0 20px; margin-top: 40px; }
    .drop-zones { grid-template-columns: repeat(2, 1fr); }
    .teaser-box { padding: 2rem; }
    .cta-box { padding: 2.5rem; }
    .quiz-nav-buttons { flex-wrap: wrap; }
}

@media (max-width: 767.98px) {
    .stat-box { padding: 1.4rem 0.8rem; }
    .stat-icon { width: 52px; height: 52px; font-size: 1.25rem; }
    .stat-value { font-size: 1.6rem; }
    .stat-label { font-size: 0.85rem; }

    .feature-card { padding: 1.5rem 1rem; }
    .feature-icon { width: 50px; height: 50px; font-size: 1.25rem; }

    .waste-type-card { padding: 1.5rem 0.9rem; }
    .waste-type-card i { font-size: 1.8rem; }

    .program-card { padding: 1.5rem 1.1rem; }

    .threeR-card { padding: 1.6rem 1.1rem; }
    .threeR-icon { width: 56px; height: 56px; font-size: 1.4rem; }

    .quiz-category-card { padding: 1.5rem 1.1rem; }
    .quiz-category-icon { width: 56px; height: 56px; font-size: 1.3rem; }

    .timeline-eco { padding-left: 30px; }
    .timeline-eco::before { left: 14px; }
    .timeline-number { left: -30px; width: 30px; height: 30px; font-size: 0.85rem; }
    .timeline-content { padding: 1.1rem; }

    .login-card { padding: 1.8rem 1.4rem; }

    .info-box { flex-direction: column; text-align: center; gap: 0.4rem; }

    .game-stat-bar { gap: 0.8rem 1.2rem; padding: 0.7rem 1rem; font-size: 0.9rem; }

    .result-card { padding: 1.6rem; }
    .result-score-circle { width: 120px; height: 120px; }
    .result-score-circle .score-number { font-size: 2rem; }

    .puzzle-target .puzzle-slot { min-width: 56px; min-height: 56px; }
    .puzzle-piece { width: 56px; height: 56px; }
    .puzzle-pieces { max-width: 260px; }

    .tebak-item-image { width: 120px; height: 120px; font-size: 2.6rem; }

    .navbar-eco .navbar-brand { font-size: 1.05rem; }

    .banner-slide-caption { max-width: calc(100% - 2rem); }
}

@media (max-width: 575.98px) {
    .page-header h1, .page-hero h1 { font-size: 1.55rem; }
    .page-header, .page-hero { padding: 70px 0 50px; }
    .hero-title { font-size: 1.65rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-desc { font-size: 0.95rem; }
    .hero-mascot { max-width: 210px; }

    .section-title h2 { font-size: 1.5rem; }

    .cta-box { padding: 1.8rem 1.2rem; }
    .cta-box h2 { font-size: 1.35rem; }

    .teaser-box { padding: 1.6rem; }
    .teaser-box h3 { font-size: 1.25rem; }

    .drop-zones { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .drop-zone { padding: 1rem 0.4rem; min-height: 100px; }
    .drag-items { padding: 1.2rem 0.8rem; }
    .drag-item { width: 100px; height: 100px; }
    .drag-item i { font-size: 2rem; }

    .quiz-start-card, .quiz-play-card, .result-card { padding: 1.2rem; }
    .quiz-start-mascot { max-width: 120px; }

    .btn-lg { padding: 0.75rem 1.6rem; font-size: 0.95rem; }

    .footer-brand span { font-size: 1rem; }

    .breadcrumb-eco { font-size: 0.8rem; }
}
