/*
 * =====================================================
 * PAUD Ar Rayyan - Landing Page Stylesheet
 * =====================================================
 * Konsep: Bersih, ceria, ramah anak
 * Warna dominan: Pastel (biru muda, kuning, hijau)
 * Font: Nunito (rounded, child-friendly)
 * 
 * Daftar Isi:
 * 1. CSS Variables (Variabel Warna & Ukuran)
 * 2. Reset & Base
 * 3. Utility Classes
 * 4. Navbar
 * 5. Hero Section
 * 6. About Section
 * 7. Programs Section
 * 8. Gallery Section
 * 9. Testimonials Section
 * 10. Contact Section
 * 11. Footer
 * 12. Animations
 * 13. Responsive / Media Queries
 * =====================================================
 */

/* =====================================================
   1. CSS VARIABLES - Variabel global untuk warna & ukuran
   ===================================================== */
:root {
    /* Warna Utama (Pastel) */
    --color-primary: #5BBCF0;        /* Biru muda cerah */
    --color-primary-dark: #3AA3E0;   /* Biru muda gelap */
    --color-primary-light: #D4EFFC;  /* Biru muda sangat terang */
    --color-secondary: #FFD966;      /* Kuning pastel */
    --color-secondary-dark: #F5C842; /* Kuning gelap */
    --color-accent: #7ED4A6;         /* Hijau pastel */
    --color-accent-dark: #5DC08A;    /* Hijau gelap */
    --color-pink: #F9A8D4;           /* Pink pastel */
    --color-purple: #C4B5FD;         /* Ungu pastel */
    --color-orange: #FDB977;         /* Orange pastel */

    /* Warna Teks */
    --text-dark: #2D3748;
    --text-medium: #4A5568;
    --text-light: #718096;
    --text-white: #FFFFFF;

    /* Warna Latar */
    --bg-white: #FFFFFF;
    --bg-light: #F7FAFC;
    --bg-programs: linear-gradient(135deg, #E8F4FD 0%, #FFF9E6 50%, #E8F8EF 100%);
    --bg-contact: linear-gradient(135deg, #5BBCF0 0%, #7ED4A6 100%);

    /* Bayangan (Shadow) */
    --shadow-sm: 0 2px 8px rgba(91, 188, 240, 0.10);
    --shadow-md: 0 4px 20px rgba(91, 188, 240, 0.15);
    --shadow-lg: 0 8px 40px rgba(91, 188, 240, 0.20);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50%;

    /* Transisi */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container-max: 1200px;
    --navbar-height: 80px;
}

/* =====================================================
   2. RESET & BASE - Reset default browser
   ===================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

html.nav-menu-open,
body.nav-menu-open {
    overflow: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* =====================================================
   3. UTILITY CLASSES - Kelas bantuan yang sering dipakai
   ===================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* Judul Section */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 20px;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-badge.badge-light {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.section-title {
    font-family: 'Baloo 2', cursive;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.section-title.text-white {
    color: var(--text-white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle.text-white-muted {
    color: rgba(255, 255, 255, 0.85);
}

/* Highlight teks */
.highlight {
    color: var(--color-primary);
    position: relative;
}

.highlight-2 {
    color: var(--color-accent-dark);
}

.highlight-light {
    color: var(--color-secondary);
}

/* Tombol */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--text-white);
    box-shadow: 0 4px 16px rgba(91, 188, 240, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(91, 188, 240, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--text-white);
    transform: translateY(-3px);
}

.btn-submit {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--text-white);
    border: none;
    width: 100%;
    justify-content: center;
    font-size: 1.05rem;
    padding: 16px 32px;
    box-shadow: 0 4px 16px rgba(91, 188, 240, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 188, 240, 0.45);
}

/* =====================================================
   4. NAVBAR - Menu navigasi atas
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

/* Navbar saat di-scroll */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo & brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Baloo 2', cursive;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    z-index: 1001;
}

.navbar-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(91, 188, 240, 0.3);
}

.navbar-title {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Menu navigasi */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-medium);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

/* Link Pendaftaran (highlight khusus) */
.nav-link-daftar {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)) !important;
    color: white !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(91, 188, 240, 0.3);
}

.nav-link-daftar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(91, 188, 240, 0.45) !important;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary)) !important;
    color: white !important;
}

/* Tombol hamburger (mobile) */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    width: 26px;
    height: 3px;
    background: var(--color-primary-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* =====================================================
   5. HERO SECTION - Banner utama
   ===================================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #E8F4FD 0%, #FFF9E6 30%, #E8F8EF 60%, #F3E8FF 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--navbar-height);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 80px;
}

/* Dekorasi mengambang */
.hero-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.decoration {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

.decoration-1 { top: 15%; left: 5%; animation-delay: 0s; }
.decoration-2 { top: 25%; right: 8%; animation-delay: 1s; font-size: 2.5rem; }
.decoration-3 { top: 60%; left: 3%; animation-delay: 2s; font-size: 3rem; }
.decoration-4 { bottom: 25%; right: 5%; animation-delay: 0.5s; }
.decoration-5 { top: 10%; left: 40%; animation-delay: 3s; }
.decoration-6 { bottom: 35%; left: 15%; animation-delay: 1.5s; }

/* Teks hero */
.hero-text {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-orange));
    color: #7C5E1E;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: 'Baloo 2', cursive;
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Statistik hero */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    max-width: fit-content;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Baloo 2', cursive;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--color-primary-light), transparent);
}

/* Gambar hero */
.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.hero-image-blob {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-pink));
    border-radius: var(--radius-xl);
    z-index: 1;
    opacity: 0.5;
    transform: rotate(3deg);
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* =====================================================
   6. ABOUT SECTION - Tentang Kami
   ===================================================== */
.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(91, 188, 240, 0.1);
    transition: var(--transition);
    height: 100%;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.about-card p {
    color: var(--text-medium);
    margin-bottom: 12px;
    line-height: 1.8;
}

.about-vm {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vm-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.vm-card:hover {
    transform: translateY(-4px);
}

.visi-card {
    background: linear-gradient(135deg, #E8F4FD, #D4EFFC);
    border: 1px solid rgba(91, 188, 240, 0.2);
}

.misi-card {
    background: linear-gradient(135deg, #E8F8EF, #D4F1E2);
    border: 1px solid rgba(126, 212, 166, 0.2);
}

.vm-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.visi-card .vm-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
}

.misi-card .vm-icon {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: white;
}

.vm-card h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.vm-card p {
    color: var(--text-medium);
    line-height: 1.8;
}

.vm-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vm-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-medium);
    line-height: 1.6;
}

.vm-card li i {
    color: var(--color-accent-dark);
    font-size: 1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* =====================================================
   7. PROGRAMS SECTION - Program Unggulan
   ===================================================== */
.programs {
    background: var(--bg-white);
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Sembunyikan wave karena background sudah seragam putih */
.programs-bg,
.programs-wave-bottom {
    display: none;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.program-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.program-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.program-card:hover .program-image img {
    transform: scale(1.08);
}

.program-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 16px rgba(91, 188, 240, 0.4);
    z-index: 2;
}

.program-badge.badge-green {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    box-shadow: 0 4px 16px rgba(126, 212, 166, 0.4);
}

.program-badge.badge-yellow {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-orange));
    box-shadow: 0 4px 16px rgba(255, 217, 102, 0.4);
}

.program-body {
    padding: 32px 28px 28px;
}

.program-body h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.program-body p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.program-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.program-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.program-features li i {
    color: var(--color-accent);
    font-size: 1rem;
}

/* =====================================================
   8. GALLERY SECTION - Galeri Foto
   ===================================================== */
.gallery {
    background: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.gallery-item-large {
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 55, 72, 0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: white;
    margin-bottom: 8px;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
}

.gallery-overlay span {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.05s;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* =====================================================
   9. TESTIMONIALS SECTION - Testimoni
   ===================================================== */
.testimonials {
    background: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Baloo 2', cursive;
    font-size: 5rem;
    line-height: 1;
    color: var(--color-primary-light);
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-stars i {
    color: var(--color-secondary);
    font-size: 1rem;
}

.testimonial-text {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar i {
    font-size: 1.8rem;
    color: white;
}

.author-info h4 {
    font-family: 'Baloo 2', cursive;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.author-info span {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* =====================================================
   10. CONTACT SECTION - Kontak
   ===================================================== */
.contact {
    background: var(--bg-white);
    position: relative;
    padding-top: 100px;
    padding-bottom: 80px;
}

/* Sembunyikan wave karena background sudah seragam putih */
.contact-wave-top {
    display: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info-card {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: none;
    color: white;
    box-shadow: var(--shadow-lg);
}

.contact-info-card h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-info-card h3 i {
    margin-right: 8px;
}

.contact-info-card > p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.contact-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Form kontak */
.contact-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.contact-form h3 i {
    color: var(--color-primary);
    margin-right: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
    background: var(--bg-light);
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(91, 188, 240, 0.15);
}

.textarea-wrapper {
    align-items: flex-start;
}

.textarea-wrapper i {
    top: 16px;
}

.textarea-wrapper textarea {
    resize: vertical;
    min-height: 100px;
}

/* =====================================================
   11. FOOTER
   ===================================================== */
.footer {
    background: var(--text-dark);
    position: relative;
    color: white;
}

.footer-wave {
    position: absolute;
    top: -78px;
    left: 0;
    right: 0;
    line-height: 0;
    color: var(--text-dark);
}

.footer-wave svg {
    width: 100%;
    height: 80px;
}

.footer-content {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
}

/* Brand footer */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Baloo 2', cursive;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-brand i {
    color: var(--color-secondary);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Sosial media */
.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

/* Link footer */
.footer-heading {
    font-family: 'Baloo 2', cursive;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.footer-links a i {
    font-size: 0.7rem;
}

/* Kontak footer */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-contact li i {
    color: var(--color-primary);
    margin-top: 4px;
    flex-shrink: 0;
}

/* Copyright */
.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* =====================================================
   12. ANIMATIONS - Animasi CSS
   ===================================================== */

/* Mengambang naik-turun */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Denyut (pulse) */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* Fade in dari bawah (untuk scroll reveal) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Kelas animasi yang diterapkan oleh JavaScript */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   13. RESPONSIVE - Media Queries untuk berbagai ukuran layar
   ===================================================== */

/* Tablet besar (max 1024px) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.6rem;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* Tablet (max 768px) */
@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Navbar mobile */
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        min-height: 100dvh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 99999;
        transition: var(--transition);
        padding: calc(var(--navbar-height) + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .navbar-menu li {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 12px 32px;
    }

    /* Hamburger animasi X */
    .navbar-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 5px);
    }
    .navbar-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .navbar-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -5px);
    }

    .navbar.menu-open {
        z-index: 100000;
    }

    .navbar.menu-open .navbar-brand,
    .navbar.menu-open .navbar-toggle {
        position: relative;
        z-index: 100001;
    }

    /* Hero mobile */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        margin: 0 auto;
    }

    .hero-image-blob {
        display: none;
    }

    /* About mobile */
    .about-content {
        grid-template-columns: 1fr;
    }

    /* Programs mobile */
    .programs-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    /* Gallery mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item-large {
        grid-row: span 1;
    }

    /* Testimonials mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Contact mobile */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
        text-align: left;
    }

    .footer-links a {
        justify-content: center;
    }
}

/* Mobile kecil (max 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 2px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .about-card,
    .vm-card {
        padding: 24px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card,
    .contact-form {
        padding: 24px;
    }

    .programs {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .contact {
        padding-top: 80px;
    }
}

/* =========================
   ABOUT SECTION
========================= */
.about {
    background: var(--bg-white);
}

/* =========================
   KEPALA SEKOLAH (ATAS)
========================= */
.kepsek-full {
    margin-bottom: 60px;
}

.kepsek-card {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;

    background: linear-gradient(135deg, #ffffff, #f8fbff);
    padding: 40px;
    border-radius: 20px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 1px solid rgba(91, 188, 240, 0.15);

    transition: var(--transition);
}

.kepsek-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* FOTO */
.kepsek-photo {
    width: 100%;
}

.kepsek-photo img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;

    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* TEKS */
.kepsek-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kepsek-text h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);

    position: relative;
    padding-bottom: 10px;
}

.kepsek-text h3::after {
    content: "";
    width: 50px;
    height: 4px;
    background: var(--color-primary);
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 2px;
}

.kepsek-text p {
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: 14px;
}

/* =========================
   VISI MISI (BAWAH)
========================= */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.vm-card {
    padding: 35px;
    border-radius: var(--radius-lg);
    transition: var(--transition);

    display: flex;
    flex-direction: column;
    height: 100%;
}

.vm-card:hover {
    transform: translateY(-4px);
}

.visi-card {
    background: linear-gradient(135deg, #E8F4FD, #D4EFFC);
    border: 1px solid rgba(91, 188, 240, 0.2);
}

.misi-card {
    background: linear-gradient(135deg, #E8F8EF, #D4F1E2);
    border: 1px solid rgba(126, 212, 166, 0.2);
}

/* ICON */
.vm-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.visi-card .vm-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
}

.misi-card .vm-icon {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: white;
}

/* TEXT */
.vm-card h3 {
    font-family: 'Baloo 2', cursive;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.vm-card p {
    color: var(--text-medium);
    line-height: 1.8;
}

.vm-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vm-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-medium);
    line-height: 1.6;
}

.vm-card li i {
    color: var(--color-accent-dark);
    font-size: 1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* =========================
   CONTACT SECTION FIX
   Background abu-abu muda
========================= */
.contact {
    background: #f5f7fa !important;
}

/* =========================
   RESPONSIVE — TABLET (≤1024px)
========================= */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
    }

    .kepsek-card {
        grid-template-columns: 280px 1fr;
        gap: 30px;
    }

    /* Programs - 2 kolom di tablet */
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Gallery - 2 kolom di tablet */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gallery-item-large {
        grid-row: span 1;
    }

    /* Testimonials - 2 kolom di tablet */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Contact */
    .contact-grid {
        gap: 28px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   RESPONSIVE — MOBILE (≤768px)
========================= */
@media (max-width: 768px) {
    .kepsek-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .kepsek-photo img {
        max-height: 260px;
    }

    .kepsek-text h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

/* =========================
   MOBILE LAYOUT SAFEGUARDS
   Keeps phone layouts from inheriting tablet grid rules.
========================= */
@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .section {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-title,
    .section-subtitle,
    .hero-title,
    .hero-subtitle,
    .kepsek-text p,
    .program-body p,
    .testimonial-text,
    .contact-info-card p,
    .footer-desc {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .hero {
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 32px;
        padding-bottom: 56px;
    }

    .hero-text,
    .hero-image {
        width: 100%;
        min-width: 0;
    }

    .hero-buttons {
        align-items: center;
    }

    .hero-buttons .btn {
        max-width: 100%;
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

    .hero-stats {
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-image-wrapper,
    .hero-image-wrapper img {
        width: 100%;
    }

    .kepsek-full {
        margin-bottom: 40px;
    }

    .kepsek-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px;
        text-align: center;
    }

    .kepsek-photo img {
        width: 100%;
        height: auto;
        max-height: 280px;
        object-fit: cover;
    }

    .about-content,
    .programs-grid,
    .testimonials-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-content,
    .programs-grid,
    .testimonials-grid,
    .contact-grid {
        gap: 24px;
    }

    .vm-card,
    .program-card,
    .testimonial-card,
    .contact-info-card,
    .contact-form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .vm-card li,
    .program-features li {
        min-width: 0;
    }

    .programs-grid,
    .testimonials-grid {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .program-image {
        height: 210px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .gallery-item,
    .gallery-item-large {
        grid-row: auto;
        min-width: 0;
        aspect-ratio: 4 / 3;
    }

    .contact-item {
        min-width: 0;
    }

    .contact-item > div:last-child {
        min-width: 0;
    }

    .contact-item p {
        overflow-wrap: anywhere;
    }

    .footer-content {
        padding: 48px 0 32px;
    }

    .footer-grid {
        gap: 32px;
        text-align: center;
    }

    .footer-brand,
    .footer-social,
    .footer-links a {
        justify-content: center;
    }

    .footer-desc,
    .footer-contact {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact li {
        justify-content: flex-start;
        text-align: left;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .footer-contact li span,
    .footer-contact li a {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .section-header {
        margin-bottom: 28px;
    }

    .hero-container {
        gap: 28px;
        padding-top: 24px;
        padding-bottom: 44px;
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        width: 100%;
        padding: 18px 20px;
    }

    .kepsek-card,
    .vm-card,
    .program-body,
    .testimonial-card,
    .contact-info-card,
    .contact-form {
        padding: 24px;
    }

    .program-image {
        height: 190px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-item {
        gap: 12px;
    }

    .footer-content {
        padding-top: 40px;
    }
}
