        :root {
            --navbar: #1d3322;
            --primary: #568259;
            --dark: #464E47;
            --accent: #96E6B3;
            --soft-bg: #CCFCCB;
            --main-bg: #F1FFFA;
            --white: #FFFFFF;
            --shadow: 0 4px 24px rgba(70, 78, 71, 0.12);
            --shadow-lg: 0 12px 48px rgba(70, 78, 71, 0.18);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
        }

        body {
            font-family: 'Poppins', sans-serif;
            color: var(--dark);
            background: var(--main-bg);
            overflow-x: hidden;
        }

        /* Scrollbar */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--main-bg); }
        ::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--dark); }

        /* ===== NAVBAR ===== */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            padding: 16px 0;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        #exnavbar {
            background: var(--navbar);
        }

        .navbar.scrolled {
            background: var(--navbar);
            backdrop-filter: blur(20px);
            padding: 10px 0;
            box-shadow: 0 2px 20px rgba(70, 78, 71, 0.1);
        }

        .navbar .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .nav-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            color: var(--white);
            transition: color 0.3s;
        }

        .navbar.scrolled .nav-brand { color: var(--accent); }

        .nav-brand-icon {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: white;
            font-weight: 800;
        }

        .nav-brand-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .nav-brand-text h1 {
            font-size: 16px;
            font-weight: 700;
            line-height: 1.2;
        }

        .nav-brand-text span {
            font-size: 11px;
            font-weight: 400;
            opacity: 0.8;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 8px;
            list-style: none;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--white);
            font-size: 14px;
            font-weight: 500;
            padding: 8px 16px;
            border-radius: 8px;
            transition: all 0.3s;
            position: relative;
        }

        .navbar.scrolled .nav-links a { color: var(--accent); }

        .nav-links.open {
            flex-direction: column;
            background: var(--navbar);
            height: 400px;
        }

        .nav-links.open li a {
            color: var(--soft-bg) !important;
            animation: fadeInNav 0.5s forwards;
        }

        .nav-links a:hover,
        .nav-links a.active {
            background: var(--primary);
            color: var(--accent);
        }

        .nav-links .btn-login {
            background: var(--primary);
            color: white !important;
            padding: 8px 20px;
            border-radius: 8px;
        }

        .nav-links .btn-login:hover {
            background: var(--dark);
            transform: translateY(-1px);
        }

        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 24px;
            color: var(--white);
            cursor: pointer;
        }

        .navbar.scrolled .mobile-toggle { color: var(--accent); }

        /* ===== HERO / BANNER ===== */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
        }

        .hero-bg-pattern {
            position: absolute;
            inset: 0;
            opacity: 0.06;
            background-image: 
                radial-gradient(circle at 20% 50%, white 1px, transparent 1px),
                radial-gradient(circle at 80% 20%, white 1px, transparent 1px),
                radial-gradient(circle at 60% 80%, white 1px, transparent 1px);
            background-size: 60px 60px, 80px 80px, 100px 100px;
        }

        .hero-shapes {
            position: absolute;
            inset: 0;
            overflow: hidden;
        }

        .hero-shape {
            position: absolute;
            border-radius: 50%;
            opacity: 0.1;
            background: var(--accent);
        }

        .hero-shape-1 { width: 400px; height: 400px; top: -100px; right: -100px; }
        .hero-shape-2 { width: 300px; height: 300px; bottom: -80px; left: -80px; }
        .hero-shape-3 { width: 200px; height: 200px; top: 50%; left: 60%; }

        .hero .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 120px 24px 80px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .hero-content h2 {
            font-size: 14px;
            font-weight: 600;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 16px;
        }

        .hero-content h1 {
            font-size: clamp(32px, 5vw, 52px);
            font-weight: 800;
            color: var(--white);
            line-height: 1.15;
            margin-bottom: 20px;
        }

        .hero-content h1 .highlight {
            color: var(--accent);
            position: relative;
        }

        .hero-content p {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.8;
            margin-bottom: 32px;
            max-width: 520px;
        }

        .hero-buttons {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 14px 28px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            border: none;
            font-family: inherit;
        }

        .btn-primary {
            background: var(--accent);
            color: var(--dark);
        }

        .btn-primary:hover {
            background: var(--white);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(150, 230, 179, 0.4);
        }

        .btn-outline {
            background: transparent;
            color: var(--white);
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .btn-outline:hover {
            border-color: var(--white);
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
        }

        .hero-image {
            position: relative;
            display: flex;
            justify-content: center;
        }

        .hero-img-wrapper {
            width: 100%;
            max-width: 500px;
            aspect-ratio: 4/3;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            position: relative;
        }

        .hero-img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .hero-float-card {
            position: absolute;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 16px 20px;
            box-shadow: var(--shadow);
            animation: float 4s ease-in-out infinite;
        }

        .hero-float-card.card-1 {
            bottom: -20px;
            left: -30px;
            animation-delay: 0s;
        }

        .hero-float-card.card-2 {
            top: -20px;
            right: -30px;
            animation-delay: 2s;
        }

        .float-card-number {
            font-size: 28px;
            font-weight: 800;
            color: var(--primary);
        }

        .float-card-label {
            font-size: 12px;
            color: var(--dark);
            opacity: 0.7;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-12px); }
        }

        /* ===== PARALLAX SECTIONS ===== */
        .parallax-section {
            position: relative;
            overflow: hidden;
        }

        .parallax-bg {
            position: absolute;
            inset: -50%;
            background-size: cover;
            background-position: center;
            will-change: transform;
        }

        /* ===== SECTION COMMON ===== */
        .section {
            padding: 100px 0;
            position: relative;
        }

        .section .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .section-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-badge {
            display: inline-block;
            background: rgba(86, 130, 89, 0.1);
            color: var(--primary);
            font-size: 12px;
            font-weight: 600;
            padding: 6px 16px;
            border-radius: 20px;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 16px;
        }

        .section-title {
            font-size: clamp(28px, 4vw, 40px);
            font-weight: 800;
            color: var(--dark);
            margin-bottom: 16px;
            line-height: 1.2;
        }

        .section-desc {
            font-size: 16px;
            color: var(--dark);
            opacity: 0.6;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.7;
        }

        /* ===== QUOTE CAROUSEL ===== */
        .quote-section {
            background: var(--primary);
            padding: 60px 0;
            position: relative;
            overflow: hidden;
        }

        .quote-section::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        }

        .carousel-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 0 24px;
            position: relative;
            z-index: 2;
        }

        .carousel-wrapper {
            position: relative;
            min-height: 200px;
            display: flex;
            align-items: center;
        }

        .carousel-slide {
            text-align: center;
            display: none;
        }

        .carousel-slide.active {
            display: block;
            animation: fadeInQuote 0.6s ease;
        }

        @keyframes fadeInQuote {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .quote-icon {
            font-size: 48px;
            color: var(--accent);
            margin-bottom: 20px;
            opacity: 0.6;
        }

        .quote-text {
            font-size: 20px;
            color: var(--white);
            font-style: italic;
            line-height: 1.8;
            margin-bottom: 24px;
        }

        .quote-author {
            font-size: 14px;
            color: var(--accent);
            font-weight: 600;
        }

        .carousel-dots {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 32px;
        }

        .carousel-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            border: none;
            cursor: pointer;
            transition: all 0.3s;
        }

        .carousel-dot.active {
            background: var(--accent);
            width: 28px;
            border-radius: 5px;
        }

        /* ===== SAMBUTAN KEPALA MADRASAH ===== */
        .sambutan-section {
            background: var(--main-bg);
        }

        .sambutan-grid {
            display: grid;
            grid-template-columns: 350px 1fr;
            gap: 60px;
            align-items: center;
        }

        .sambutan-photo {
            position: relative;
        }

        .sambutan-photo-img {
            width: 100%;
            aspect-ratio: 1/1;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            position: relative;
            z-index: 2;
        }

        .sambutan-photo-img img {
            width: 100%;
            height: 100%;
            object-fit:calc();
        }

        .sambutan-photo::after {
            content: '';
            position: absolute;
            top: 20px;
            left: 20px;
            width: 100%;
            height: 100%;
            border: 3px solid var(--accent);
            border-radius: 24px;
            z-index: 1;
        }

        .sambutan-content h3 {
            font-size: 28px;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 8px;
        }

        .sambutan-content .role {
            font-size: 14px;
            color: var(--primary);
            font-weight: 600;
            margin-bottom: 24px;
        }

        .sambutan-content p {
            font-size: 15px;
            line-height: 1.9;
            color: var(--dark);
            opacity: 0.75;
            margin-bottom: 16px;
        }

        /* ===== BERITA TERBARU ===== */
        .berita-section {
            background: var(--soft-bg);
        }

        .berita-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 28px;
        }

        .berita-card {
            background: var(--white);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .berita-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-lg);
        }

        .berita-card-img {
            width: 100%;
            aspect-ratio: 16/10;
            overflow: hidden;
        }

        .berita-card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s;
        }

        .berita-card:hover .berita-card-img img {
            transform: scale(1.05);
        }

        .berita-card-body {
            padding: 24px;
        }

        .berita-card-date {
            font-size: 12px;
            color: var(--primary);
            font-weight: 600;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .berita-card-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 12px;
            line-height: 1.4;
        }

        .berita-card-excerpt {
            font-size: 14px;
            color: var(--dark);
            opacity: 0.6;
            line-height: 1.7;
            margin-bottom: 16px;
        }

        .berita-card-link {
            font-size: 13px;
            font-weight: 600;
            color: var(--primary);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: gap 0.3s;
        }

        .berita-card-link:hover { gap: 12px; }

        /* ===== EKSTRAKURIKULER ===== */
        .ekskul-section {
            background: var(--main-bg);
        }

        .ekskul-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
        }

        .ekskul-card {
            /* background: var(--white); */
            border-radius: 20px;
            padding: 32px 24px;
            text-align: center;
            box-shadow: var(--shadow);
            transition: all 0.4s;
            border: 2px solid transparent;
        }

        .ekskul-card:hover {
            border-color: var(--accent);
            transform: translateY(-6px);
        }

        .ekskul-card:hover h4, .ekskul-card:hover p {
            opacity: 1 !important;
            z-index: 999;
        }

        .ekskul-card h4 {
            font-size: 30px;
            font-weight: 700;
            color: var(--main-bg);
            margin-bottom: 18px;
        }

        .ekskul-card p {
            font-size: 18px;
            color: var(--white);
            line-height: 1.6;
        }

        /* ===== FASILITAS ===== */
        .fasilitas-section {
            background: var(--dark);
            color: var(--white);
        }

        .fasilitas-section .section-badge {
            background: rgba(150, 230, 179, 0.2);
            color: var(--accent);
        }

        .fasilitas-section .section-title { color: var(--white); }
        .fasilitas-section .section-desc { color: rgba(255,255,255,0.6); }

        .fasilitas-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }

        .fasilitas-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 32px;
            transition: all 0.4s;
        }

        .fasilitas-card:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-4px);
            border-color: var(--accent);
        }

        .fasilitas-card-icon {
            font-size: 32px;
            color: var(--accent);
            margin-bottom: 16px;
        }

        .fasilitas-card h4 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--white);
        }

        .fasilitas-card p {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.6);
            line-height: 1.7;
        }

        /* ===== PROFIL SECTION ===== */
        .profil-section {
            background: var(--main-bg);
        }

        .profil-tabs {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-bottom: 48px;
            flex-wrap: wrap;
        }

        .profil-tab {
            padding: 10px 24px;
            border-radius: 10px;
            border: 2px solid var(--primary);
            background: transparent;
            color: var(--primary);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            font-family: inherit;
        }

        .profil-tab.active,
        .profil-tab:hover {
            background: var(--primary);
            color: var(--white);
        }

        .profil-content {
            display: none;
        }

        .profil-content.active {
            display: block;
            animation: fadeInContent 0.5s ease;
        }

        @keyframes fadeInContent {
            from { opacity: 0; transform: translateY(16px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .visi-misi-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 32px;
        }

        .visi-card, .misi-card {
            background: var(--white);
            border-radius: 20px;
            padding: 40px;
            box-shadow: var(--shadow);
        }

        .visi-card h3, .misi-card h3 {
            font-size: 22px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .visi-card p {
            font-size: 15px;
            line-height: 1.9;
            color: var(--dark);
            opacity: 0.75;
        }

        .misi-card ul {
            list-style: none;
            padding: 0;
        }

        .misi-card li {
            font-size: 14px;
            line-height: 1.8;
            color: var(--dark);
            opacity: 0.75;
            padding: 8px 0;
            padding-left: 28px;
            position: relative;
        }

        .misi-card li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--primary);
            font-weight: 700;
        }

        /* Sejarah Timeline */
        .sejarah-timeline {
            position: relative;
            max-width: 800px;
            margin: 0 auto;
        }

        .sejarah-timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--accent);
            transform: translateX(-50%);
        }

        .timeline-item {
            display: flex;
            margin-bottom: 40px;
            position: relative;
        }

        .timeline-item:nth-child(odd) { justify-content: flex-start; padding-right: calc(50% + 30px); }
        .timeline-item:nth-child(even) { justify-content: flex-end; padding-left: calc(50% + 30px); }

        .timeline-item::before {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            background: var(--primary);
            border: 3px solid var(--accent);
            border-radius: 50%;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 2;
        }

        .timeline-content {
            background: var(--white);
            border-radius: 16px;
            padding: 24px;
            box-shadow: var(--shadow);
            max-width: 350px;
        }

        .timeline-year {
            font-size: 14px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 8px;
        }

        .timeline-content h4 {
            font-size: 16px;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 8px;
        }

        .timeline-content p {
            font-size: 13px;
            color: var(--dark);
            opacity: 0.7;
            line-height: 1.7;
        }

                /* ===== STRUKTUR ORGANISASI (FIXED RAPIH) ===== */
        .org-wrapper { overflow-x: auto; padding: 30px 0 40px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--primary) var(--main-bg); }
        .org-wrapper::-webkit-scrollbar { height: 6px; }
        .org-wrapper::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
        
        .org-chart { display: flex; flex-direction: column; align-items: center; min-width: fit-content; padding: 20px; }
        .org-row { display: flex; justify-content: center; gap: 40px; position: relative; margin-bottom: 20px; width: 100%; }
        .kepala-row { justify-content:left !important; align-items: flex-start;}
        .org-col { display: flex; flex-direction: column; align-items: center; flex: 1; max-width: 220px; position: relative; }
        
        .org-box { background: var(--white); border: 2px solid var(--primary); border-radius: 8px; padding: 12px 16px; text-align: center; width: 100%; box-shadow: var(--shadow); transition: all 0.3s; position: relative; z-index: 2; }
        .org-box:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--accent); }
        .org-box.main-header { border-color: var(--dark); padding: 14px 20px; margin-bottom: -20px; min-width: 180px; }
        .org-box.dashed { border-style: dashed; width: 140px; }
        .org-box.small { padding: 10px 12px; min-width: 140px; }
        .org-box.table-inner { padding: 14px; min-width: 180px; }
        
        .org-title { font-size: 10px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--primary); }
        .org-name { font-size: 13px; font-weight: 700; color: var(--dark); line-height: 1.3; }
        .org-name.small { font-size: 11px; }
        .org-name.center { font-size: 10px; color: var(--primary); font-weight: 600; }
        
        .sub-table { width: 100%; font-size: 10px; border-collapse: collapse; margin-top: 8px; }
        .sub-table td { padding: 3px 6px; border: 1px solid rgba(86,130,89,0.3); text-align: left; }
        .sub-table td:first-child { font-weight: 600; color: var(--primary); width: 45%; }
        .sub-table tr:first-child td { background: var(--primary); color: white; text-align: center; font-weight: 700; border-color: var(--primary); }

        /* EXPLICIT CONNECTORS FOR PERFECT ALIGNMENT */
        .line-v { width: 2px; height: 70px; background: var(--primary); margin: 0 auto; }
        /* .line-v-box { width: 2px; height: 150px; background: var(--primary); margin: 0; } */
        .line-v-short { width: 2px; height: 30px; background: var(--primary); margin: 0 auto; }
        .line-h-full { height: 2px; background: var(--primary); width: 92%; margin: 0 auto; }
        .line-dotted { width: 50px; height: 0; border-top: 2px dashed var(--dark); margin: 35px auto; }
        .spacer { height: 0; }

        /* Struktur Organisasi */
        .struktur-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 24px;
            max-width: 900px;
            margin: 0 auto;
        }

        .struktur-card {
            background: var(--white);
            border-radius: 16px;
            padding: 28px 20px;
            text-align: center;
            box-shadow: var(--shadow);
            transition: all 0.3s;
        }

        .struktur-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }

        .struktur-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
            font-size: 28px;
            color: white;
        }

        .struktur-card h4 {
            font-size: 15px;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 4px;
        }

        .struktur-card span {
            font-size: 12px;
            color: var(--primary);
            font-weight: 600;
        }

        /* ===== PROFIL SECTION =====  */
        .guru-img {
            width: 100%;
            height: 80%;
            border-radius: 50%;
        }

        /* ===== GALERI ===== */
        .galeri-section {
            background: var(--soft-bg);
        }

        .galeri-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }

        .galeri-item {
            border-radius: 16px;
            overflow: hidden;
            position: relative;
            cursor: pointer;
            aspect-ratio: 1;
        }

        .galeri-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

        .galeri-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }

        .galeri-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(70, 78, 71, 0.8), transparent);
            display: flex;
            align-items: flex-end;
            padding: 20px;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .galeri-item:hover img { transform: scale(1.1); }
        .galeri-item:hover .galeri-overlay { opacity: 1; }

        .galeri-overlay span {
            color: white;
            font-size: 14px;
            font-weight: 600;
        }

        /* ===== PPDB SECTION ===== */
        .ppdb-section {
            background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
            color: var(--white);
            position: relative;
            overflow: hidden;
        }

        .ppdb-section::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='m0 40l40-40h-15l-40 40h15zm40 0v-15l40 40h-15z'/%3E%3C/g%3E%3C/svg%3E");
        }

        .ppdb-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .ppdb-content h2 {
            font-size: 36px;
            font-weight: 800;
            margin-bottom: 16px;
        }

        .ppdb-content p {
            font-size: 16px;
            opacity: 0.8;
            line-height: 1.8;
            margin-bottom: 32px;
        }

        .ppdb-steps {
            list-style: none;
            padding: 0;
        }

        .ppdb-steps li {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 20px;
        }

        .ppdb-step-num {
            width: 40px;
            height: 40px;
            min-width: 40px;
            border-radius: 12px;
            background: var(--accent);
            color: var(--dark);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 16px;
        }

        .ppdb-step-text h4 {
            font-size: 15px;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .ppdb-step-text p {
            font-size: 13px;
            opacity: 0.7;
            margin-bottom: 0;
        }

        .ppdb-form {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 24px;
            padding: 40px;
        }

        .ppdb-form h3 {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 24px;
            text-align: center;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-group label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 6px;
            color: rgba(255, 255, 255, 0.9);
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px 16px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.1);
            color: var(--white);
            font-size: 14px;
            font-family: inherit;
            transition: all 0.3s;
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--accent);
            background: rgba(255, 255, 255, 0.15);
        }

        .form-group select option {
            background: var(--dark);
            color: var(--white);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        .btn-submit {
            width: 100%;
            padding: 14px;
            background: var(--accent);
            color: var(--dark);
            border: none;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            font-family: inherit;
            margin-top: 8px;
        }

        .btn-submit:hover {
            background: var(--white);
            transform: translateY(-2px);
        }

        /* ===== KONTAK ===== */
        .kontak-section {
            background: var(--main-bg);
        }

        .kontak-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 48px;
        }

        .kontak-info-list {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .kontak-info-item {
            display: flex;
            gap: 16px;
            align-items: flex-start;
        }

        .kontak-info-icon {
            width: 48px;
            height: 48px;
            min-width: 48px;
            border-radius: 12px;
            background: rgba(86, 130, 89, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 18px;
        }

        .kontak-info-text h4 {
            font-size: 15px;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 4px;
        }

        .kontak-info-text p {
            font-size: 14px;
            color: var(--dark);
            opacity: 0.6;
            line-height: 1.6;
        }

        .kontak-map {
            border-radius: 20px;
            overflow: hidden;
            height: 350px;
            box-shadow: var(--shadow);
        }

        .kontak-map iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        .kontak-form {
            background: var(--soft-bg);
            border-radius: 20px;
            padding: 40px;
            box-shadow: var(--shadow);
        }

        .kontak-form h3 {
            font-size: 22px;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 24px;
        }

        .kontak-form .form-group input,
        .kontak-form .form-group textarea {
            background: var(--main-bg);
            color: var(--dark);
            border: 1px solid rgba(70, 78, 71, 0.15);
        }

        .kontak-form .form-group label {
            color: var(--dark);
        }

        .kontak-form .form-group input::placeholder,
        .kontak-form .form-group textarea::placeholder {
            color: rgba(70, 78, 71, 0.4);
        }

        .kontak-form .form-group input:focus,
        .kontak-form .form-group textarea:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(86, 130, 89, 0.1);
        }

        .kontak-form .btn-submit {
            background: var(--primary);
            color: white;
        }

        .kontak-form .btn-submit:hover {
            background: var(--dark);
        }

        /* ===== FOOTER ===== */
        .footer {
            background: var(--navbar);
            color: var(--white);
            padding: 60px 0 0;
        }

        .footer .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 48px;
            padding-bottom: 48px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .footer-brand h3 {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 12px;
        }

        .footer-brand p {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.6);
            line-height: 1.7;
            margin-bottom: 20px;
        }

        .footer-social {
            display: flex;
            gap: 12px;
        }

        .footer-social a {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            text-decoration: none;
            transition: all 0.3s;
        }

        .footer-social a:hover {
            background: var(--primary);
            transform: translateY(-2px);
        }

        .footer-col h4 {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 20px;
            color: var(--accent);
        }

        .footer-col ul {
            list-style: none;
            padding: 0;
        }

        .footer-col li {
            margin-bottom: 10px;
        }

        .footer-col a {
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s;
        }

        .footer-col a:hover {
            color: var(--accent);
        }

        .footer-bottom {
            padding: 24px 0;
            text-align: center;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.4);
        }

        /* ===== SCROLL ANIMATIONS ===== */
        .animate-on-scroll {
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .animate-on-scroll.animate-left {
            transform: translateX(-60px);
        }

        .animate-on-scroll.animate-right {
            transform: translateX(60px);
        }

        .animate-on-scroll.animate-scale {
            transform: scale(0.9);
        }

        .animate-on-scroll.visible {
            opacity: 1;
            transform: translateY(0) translateX(0) scale(1);
        }

        .stagger-1 { transition-delay: 0.1s; }
        .stagger-2 { transition-delay: 0.2s; }
        .stagger-3 { transition-delay: 0.3s; }
        .stagger-4 { transition-delay: 0.4s; }
        .stagger-5 { transition-delay: 0.5s; }
        .stagger-6 { transition-delay: 0.6s; }

        /* ===== PARALLAX HELPER ===== */
        .parallax-element {
            will-change: transform;
            transition: transform 0.1s linear;
        }

        /* ===== BACK TO TOP ===== */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 48px;
            height: 48px;
            border-radius: 14px;
            background: var(--primary);
            color: white;
            border: none;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all 0.4s;
            z-index: 999;
            box-shadow: var(--shadow);
        }

        .back-to-top.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .back-to-top:hover {
            background: var(--dark);
            transform: translateY(-4px);
        }

        /* ===== MODAL ===== */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .modal-overlay.active { display: flex; }

        .modal {
            background: var(--white);
            border-radius: 24px;
            max-width: 500px;
            width: 100%;
            padding: 40px;
            position: relative;
            animation: modalIn 0.4s ease;
        }

        @keyframes modalIn {
            from { opacity: 0; transform: scale(0.9) translateY(20px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        .modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: none;
            background: var(--main-bg);
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }

        .modal-close:hover { background: var(--soft-bg); }

        .modal h2 {
            font-size: 24px;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 8px;
        }

        .modal p {
            font-size: 14px;
            color: var(--dark);
            opacity: 0.6;
            margin-bottom: 24px;
        }

        .modal .form-group input {
            background: var(--main-bg);
            color: var(--dark);
            border: 1px solid rgba(70, 78, 71, 0.15);
        }

        .modal .form-group input::placeholder {
            color: rgba(70, 78, 71, 0.4);
        }

        .modal .form-group input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(86, 130, 89, 0.1);
        }

        .modal .btn-submit {
            background: var(--primary);
            color: white;
        }

        .modal .btn-submit:hover {
            background: var(--dark);
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .hero .container { grid-template-columns: 1fr; text-align: center; }
            .hero-content p { margin: 0 auto 32px; }
            .hero-buttons { justify-content: center; }
            .hero-image { order: -1; }
            .hero-img-wrapper { max-width: 400px; }
            .hero-float-card { display: none; }
            .sambutan-grid { grid-template-columns: 1fr; }
            .sambutan-photo { max-width: 300px; margin: 0 auto; }
            .berita-grid { grid-template-columns: repeat(2, 1fr); }
            .ekskul-grid { grid-template-columns: repeat(2, 1fr); }
            .fasilitas-grid { grid-template-columns: repeat(2, 1fr); }
            .ppdb-grid { grid-template-columns: 1fr; }
            .kontak-grid { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr 1fr; }
            .visi-misi-grid { grid-template-columns: 1fr; }
            .galeri-grid { grid-template-columns: repeat(3, 1fr); }
        }

        @media (max-width: 768px) {
            .nav-links { 
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                background: var(--white);
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 16px;
            }
            #span-mobile{
                height: 25px;
            }
            .nav-links.open { display: flex; }
            .nav-links a { color: var(--dark) !important; font-size: 18px; }
            .mobile-toggle { display: block; z-index: 1001; }
            .berita-grid { grid-template-columns: 1fr; }
            .ekskul-grid { grid-template-columns: 1fr; }
            .fasilitas-grid { grid-template-columns: 1fr; }
            .galeri-grid { grid-template-columns: repeat(2, 1fr); }
            .galeri-item:nth-child(1) { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
            .footer-grid { grid-template-columns: 1fr; }
            .form-row { grid-template-columns: 1fr; }
            .sejarah-timeline::before { left: 20px; }
            .timeline-item:nth-child(odd),
            .timeline-item:nth-child(even) {
                padding-left: 60px;
                padding-right: 0;
                justify-content: flex-start;
            }
            .timeline-item::before { left: 20px; }
            .struktor-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 480px) {
            .section { padding: 60px 0; }
            .galeri-grid { grid-template-columns: 1fr 1fr; }
            .galeri-item:nth-child(1) { grid-column: span 1; }
        }

        /* Loading Animation */
        .page-loader {
            position: fixed;
            inset: 0;
            background: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            transition: opacity 0.5s, visibility 0.5s;
        }

        .page-loader.hidden {
            opacity: 0;
            visibility: hidden;
        }

        .loader-spinner {
            width: 48px;
            height: 48px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Counter Animation */
        .counter-section {
            background: var(--primary);
            padding: 60px 0;
        }

        .counter-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 32px;
            text-align: center;
        }

        .counter-item h3 {
            font-size: 42px;
            font-weight: 800;
            color: var(--accent);
            margin-bottom: 8px;
        }

        .counter-item p {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.8);
        }

        @media (max-width: 768px) {
            .counter-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
            .counter-item h3 { font-size: 32px; }
        }