/* CSS Variables for Theming */
        :root {
            --primary-color: #3498db; /* Biru Langit */
            --secondary-color: #2ecc71; /* Hijau */
            --accent-color: #f1c40f; /* Kuning Pastel */
            --background-light: #f4f7f6;
            --text-light: #333;
            --card-bg-light: #ffffff;
            --header-bg-light: rgba(255, 255, 255, 0.9);

            --background-dark: #1a1a2e;
            --text-dark: #e0e0e0;
            --card-bg-dark: #16213e;
            --header-bg-dark: rgba(22, 33, 62, 0.9);

            --font-family: 'Poppins', sans-serif;
            --shadow: 0 4px D15px rgba(0, 0, 0, 0.08);
            --border-radius: 12px;
            --transition-speed: 0.3s ease;
        }

        /* Dark Mode Styles */
        body.dark-mode {
            --background-light: var(--background-dark);
            --text-light: var(--text-dark);
            --card-bg-light: var(--card-bg-dark);
            --header-bg-light: var(--header-bg-dark);
        }

        /* Basic Reset and Global Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font-family);
            background-color: var(--background-light);
            color: var(--text-light);
            line-height: 1.6;
            transition: background-color var(--transition-speed), color var(--transition-speed);
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 4rem 0;
        }

        h1, h2, h3 {
            font-weight: 600;
            line-height: 1.2;
            margin-bottom: 1rem;
            color: var(--primary-color);
        }
        
        body.dark-mode h1,
        body.dark-mode h2,
        body.dark-mode h3 {
            color: var(--secondary-color);
        }

        h2 {
            font-size: 2.5rem;
            text-align: center;
            margin-bottom: 3rem;
        }

        p {
            margin-bottom: 1rem;
        }

        .btn {
            display: inline-block;
            padding: 12px 28px;
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            color: #fff;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            transition: transform var(--transition-speed), box-shadow var(--transition-speed);
            border: none;
            cursor: pointer;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
        }

        /* Header & Navbar */
        .header {
            position: fixed;
            width: 100%;
            top: 0;
            left: 0;
            z-index: 1000;
            background-color: var(--header-bg-light);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            transition: background-color var(--transition-speed);
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 70px;
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            text-decoration: none;
        }
        body.dark-mode .logo { color: var(--secondary-color); }

        .logo i {
            margin-right: 8px;
        }

        .nav-links {
            list-style: none;
            display: flex;
            gap: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-light);
            font-weight: 500;
            position: relative;
            padding-bottom: 5px;
            transition: color var(--transition-speed);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--secondary-color);
            transition: width var(--transition-speed);
        }
        
        .nav-links a:hover {
            color: var(--primary-color);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .nav-extra {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .theme-switch {
            display: flex;
            align-items: center;
            cursor: pointer;
        }
        .theme-switch .fa-sun, .theme-switch .fa-moon {
            font-size: 1.2rem;
        }
        .theme-switch .fa-moon { display: none; }
        body.dark-mode .theme-switch .fa-sun { display: none; }
        body.dark-mode .theme-switch .fa-moon { display: block; }
        
        .hamburger {
            display: none;
            cursor: pointer;
            font-size: 1.5rem;
        }

        /* Hero Section */
        #home {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding-top: 70px; /* Header height */
        }
        
        .hero-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 2rem;
            width: 100%;
        }

        .hero-text {
            flex: 1;
            max-width: 50%;
        }

        .hero-text h1 {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
        }

        .hero-text p {
            font-size: 1.1rem;
            margin-bottom: 2rem;
        }

        .hero-image {
            flex: 1;
            max-width: 45%;
            text-align: center;
        }

        .hero-image img {
            border-radius: var(--border-radius);
            max-width: 100%;
            height: auto;
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
            100% { transform: translateY(0px); }
        }

        /* Section Edukasi */
        .edukasi-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }

        .edukasi-card {
            background-color: var(--card-bg-light);
            border-radius: var(--border-radius);
            padding: 2rem;
            text-align: center;
            box-shadow: var(--shadow);
            transition: transform var(--transition-speed), box-shadow var(--transition-speed);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .edukasi-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }

        .edukasi-card i {
            font-size: 3rem;
            color: var(--secondary-color);
            margin-bottom: 1rem;
        }

        .edukasi-card h3 {
            color: var(--text-light);
            margin-bottom: 0.5rem;
        }

        .edukasi-card p {
            font-size: 0.9rem;
            margin-bottom: 1.5rem;
        }
        
        .card-btn {
            background: none;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
            padding: 8px 20px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: all var(--transition-speed);
            cursor: pointer;
            width: fit-content;
            align-self: center;
        }
        
        .card-btn:hover {
            background-color: var(--primary-color);
            color: #fff;
        }

        /* Modal Popup */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            z-index: 2000;
            display: none; /* Initially hidden */
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity var(--transition-speed);
        }
        .modal-overlay.active {
            display: flex;
            opacity: 1;
        }
        .modal-content {
            background-color: var(--card-bg-light);
            padding: 2.5rem;
            border-radius: var(--border-radius);
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            width: 90%;
            max-width: 600px;
            position: relative;
            transform: scale(0.95);
            transition: transform var(--transition-speed);
        }
        .modal-overlay.active .modal-content {
            transform: scale(1);
        }

        .modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            font-size: 1.5rem;
            color: var(--text-light);
            cursor: pointer;
            border: none;
            background: none;
        }
        #modal-title {
            display: flex;
            align-items: center;
            gap: 1rem;
            font-size: 2rem;
            margin-bottom: 1.5rem;
        }
        #modal-icon {
            font-size: 2.5rem;
            color: var(--secondary-color);
        }
        #modal-description {
            font-size: 1rem;
            max-height: 50vh;
            overflow-y: auto;
        }


        /* Section Kuis */
        .kuis-container {
            max-width: 800px;
            margin: 0 auto;
            background-color: var(--card-bg-light);
            padding: 2.5rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
        }
        
        .quiz-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        #question-counter { font-weight: 600; }
        #score-display { font-weight: 600; color: var(--secondary-color); }

        .progress-bar-container {
            width: 100%;
            height: 10px;
            background-color: #e0e0e0;
            border-radius: 5px;
            margin-bottom: 1.5rem;
            overflow: hidden;
        }
        #progress-bar {
            width: 0%;
            height: 100%;
            background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
            border-radius: 5px;
            transition: width 0.5s ease;
        }

        #question-text {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
        }
        
        .options-container {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .option-btn {
            width: 100%;
            padding: 1rem;
            text-align: left;
            background-color: var(--background-light);
            border: 2px solid transparent;
            border-radius: 8px;
            cursor: pointer;
            transition: all var(--transition-speed);
            font-family: var(--font-family);
            font-size: 1rem;
            color: var(--text-light);
        }

        .option-btn:hover:not(:disabled) {
            border-color: var(--primary-color);
            transform: translateX(5px);
        }

        .option-btn.correct {
            background-color: #2ecc71;
            color: #fff;
            border-color: #27ae60;
        }

        .option-btn.wrong {
            background-color: #e74c3c;
            color: #fff;
            border-color: #c0392b;
        }
        
        #quiz-feedback {
            margin-top: 1.5rem;
            font-weight: 600;
            text-align: center;
            height: 24px;
        }

        #score-container {
            text-align: center;
        }
        #score-container h3 { margin-bottom: 1rem; font-size: 1.5rem;}
        #score-text { font-size: 2rem; font-weight: 700; color: var(--secondary-color); margin-bottom: 1.5rem;}
        #restart-quiz-btn {
            margin: 0 auto;
        }
        
        /* Section Cerita - RESPONSIVE FIX */
        .carousel-container {
            position: relative;
            max-width: 800px;
            margin: 0 auto;
            overflow: hidden; /* CRITICAL FIX */
        }
        
        .carousel-track {
            display: flex;
            transition: transform 0.5s ease-in-out;
        }

        .carousel-slide {
            min-width: 100%;
            box-sizing: border-box;
        }

        .cerita-card {
            background-color: var(--card-bg-light);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            text-align: center;
            margin: 1rem; /* ADDED MARGIN INSTEAD OF PADDING ON SLIDE */
            padding: 2rem; /* MOVED PADDING HERE */
        }
        
        .cerita-card img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 1rem;
            border: 3px solid var(--secondary-color);
        }

        .cerita-card p {
            font-style: italic;
            margin-bottom: 1rem;
        }
        
        .cerita-card h4 {
            font-weight: 600;
            color: var(--primary-color);
        }

        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(255, 255, 255, 0.7);
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            cursor: pointer;
            font-size: 1.5rem;
            color: var(--primary-color);
            box-shadow: var(--shadow);
            z-index: 10;
        }
        body.dark-mode .carousel-btn {
            background-color: var(--card-bg-dark);
            color: var(--text-dark);
        }
        .carousel-btn.prev { left: 15px; }
        .carousel-btn.next { right: 15px; }

        /* Section Kalender */
        .calendar-container {
            max-width: 900px;
            margin: 0 auto;
            background-color: var(--card-bg-light);
            padding: 2rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
        }
        
        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding: 0 1rem;
        }
        
        #month-year {
            font-size: 1.5rem;
            font-weight: 600;
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 5px;
        }

        .calendar-day {
            padding: 1rem;
            text-align: center;
            background-color: var(--background-light);
            border-radius: 8px;
            position: relative;
        }
        
        .day-name { font-weight: 600; color: var(--secondary-color); }
        .day-number { font-size: 1.2rem; }

        .holiday {
            background-color: var(--accent-color);
            color: #333;
            cursor: pointer;
            font-weight: 600;
        }
        
        .tooltip {
            visibility: hidden;
            width: 160px;
            background-color: #333;
            color: #fff;
            text-align: center;
            border-radius: 6px;
            padding: 8px;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            margin-left: -80px;
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 0.85rem;
        }
        .tooltip::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #333 transparent transparent transparent;
        }
        .holiday:hover .tooltip {
            visibility: visible;
            opacity: 1;
        }

        /* Section Komunitas */
        .form-container {
            max-width: 700px;
            margin: 0 auto;
            background-color: var(--card-bg-light);
            padding: 2.5rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
        }
        .form-group {
            margin-bottom: 1.5rem;
        }
        .form-group label {
            display: block;
            margin-bottom: .5rem;
            font-weight: 600;
        }
        .form-group input, .form-group textarea {
            width: 100%;
            padding: .75rem;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-family: var(--font-family);
            background-color: var(--background-light);
            color: var(--text-light);
        }
        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }


        /* Footer */
        .footer {
            background-color: var(--card-bg-dark);
            color: var(--text-dark);
            padding: 3rem 0 1rem;
            text-align: center;
        }
        
        .footer-content {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-section { flex: 1; min-width: 250px; }
        .footer-section h4 { color: var(--accent-color); margin-bottom: 1rem; }
        .footer-section p, .footer-section a {
            color: var(--text-dark);
            text-decoration: none;
        }
        .social-links a {
            font-size: 1.5rem;
            margin: 0 0.5rem;
            transition: color var(--transition-speed);
        }
        .social-links a:hover { color: var(--accent-color); }
        .footer-bottom { border-top: 1px solid #3e3e5b; padding-top: 1rem; font-size: 0.9rem; }


        /* Responsive Design */
        @media (max-width: 768px) {
            h2 { font-size: 2rem; }
            .container { padding: 2rem 0; }
            
            .nav-links {
                position: fixed;
                top: 70px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 70px);
                background-color: var(--header-bg-light);
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 3rem;
                transition: left var(--transition-speed);
            }
            .nav-links.active { left: 0; }
            
            .hamburger { display: block; }

            .hero-content {
                flex-direction: column;
                text-align: center;
            }
            .hero-text, .hero-image { max-width: 100%; }
            .hero-text h1 { font-size: 2.5rem; }
            
            .carousel-btn {
                width: 35px;
                height: 35px;
                font-size: 1.2rem;
            }
            .carousel-btn.prev { left: 5px; }
            .carousel-btn.next { right: 5px; }
            .cerita-card { margin: 0.5rem; }


            .calendar-day { padding: 0.5rem; }
            .day-number { font-size: 1rem; }
            .day-name { font-size: 0.8rem; }
        }
        
        html, body {
    max-width: 100%;
    overflow-x: hidden;
}