/* ==========================================================================
   1. GLOBAL VARIABLES & ISLAMIC LUXURY DESIGN SYSTEM
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
    /* Emerald & Gold Luxury Palette */
    --primary-color: #064e3b;          /* Deep Islamic Emerald */
    --primary-emerald: #047857;        /* Rich Jewel Emerald */
    --primary-dark: #022c22;           /* Royal Obsidian Green */
    --primary-light: #ecfdf5;          /* Soft Mint Emerald Tint */
    --primary-hover: #065f46;
    
    --accent-color: #d4af37;           /* Royal Champagne Gold */
    --accent-hover: #b45309;           /* Deep Amber Gold */
    --accent-light: #fef3c7;           /* Warm Gold Light */
    --accent-gold-soft: rgba(212, 175, 55, 0.15);
    --accent-glow: rgba(212, 175, 55, 0.35);

    /* Text & Neutral Palette */
    --text-dark: #0f172a;              /* Deep Slate Navy (High Contrast) */
    --text-muted: #475569;             /* Slate Neutral */
    --text-light: #64748b;             /* Soft Muted Text */
    --bg-light: #fcfbf8;               /* Warm Alabaster Canvas */
    --bg-surface: #ffffff;             /* Pure White Surface */
    --white: #ffffff;
    --border-color: #e2e8f0;
    --border-gold: rgba(212, 175, 55, 0.3);

    /* Functional Colors */
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #0284c7;

    /* Glassmorphism & Elevation */
    --glass-bg: rgba(255, 255, 255, 0.94);
    --glass-border: rgba(6, 78, 59, 0.1);
    --glass-dark: rgba(2, 44, 34, 0.95);
    --shadow-soft: 0 8px 25px -4px rgba(6, 78, 59, 0.06);
    --shadow-card: 0 14px 35px -8px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 22px 45px -12px rgba(6, 78, 59, 0.15);
    --shadow-gold: 0 12px 30px -8px rgba(212, 175, 55, 0.35);

    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

html {
    scroll-behavior: smooth;
}

/* GLOBAL SEAMLESS ISLAMIC BACKGROUND (TEMBUS SAMPAI BAWAH DENGAN FIXED ATTACHMENT) */
body {
    background-color: #fcfbf8;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.07) 0%, transparent 35%),
        radial-gradient(circle at 85% 35%, rgba(6, 78, 59, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 20% 70%, rgba(212, 175, 55, 0.06) 0%, transparent 45%),
        url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M35 0l35 35-35 35L0 35z' fill='%23064e3b' fill-opacity='0.035' stroke='%23064e3b' stroke-opacity='0.045' stroke-width='0.5' fill-rule='evenodd'/%3E%3Cpath d='M35 17l18 18-18 18-18-18z' fill='%23d4af37' fill-opacity='0.048' stroke='%23d4af37' stroke-opacity='0.06' stroke-width='0.5'/%3E%3Ccircle cx='35' cy='35' r='2.5' fill='%23d4af37' fill-opacity='0.06'/%3E%3C/svg%3E");
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary-emerald); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ==========================================================================
   2. UTILITIES & TYPOGRAPHY
   ========================================================================== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-danger { color: var(--danger); font-weight: 500; }
.text-success { color: var(--success); }
.text-gold { color: var(--accent-color); }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.85rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }


/* ==========================================================================
   3. ANIMATIONS & SCROLL OBSERVER CLASSES
   ========================================================================== */
.reveal-on-scroll, 
.reveal-slide-up, 
.fade-up, 
.fade-right, 
.fade-left, 
.reveal-scale {
    opacity: 0;
    transition: var(--transition);
    will-change: opacity, transform;
}

.fade-up, .reveal-slide-up { transform: translateY(35px); }
.fade-right { transform: translateX(-35px); }
.fade-left { transform: translateX(35px); }
.reveal-scale { transform: scale(0.92); }

.active.fade-up, 
.active.reveal-slide-up, 
.active.reveal-on-scroll,
.active.fade-right,
.active.fade-left,
.active.reveal-scale { 
    opacity: 1; 
    transform: translateY(0) translateX(0) scale(1); 
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.pulse-animation { animation: pulseGlow 2.2s infinite; }


/* ==========================================================================
   4. BUTTONS & BADGES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.btn-sm { padding: 8px 16px; font-size: 0.84rem; border-radius: 10px; }
.btn-large { padding: 15px 30px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }

.btn-primary { 
    background: linear-gradient(135deg, var(--primary-emerald) 0%, var(--primary-color) 100%); 
    color: var(--white); 
    box-shadow: 0 4px 18px -2px rgba(4, 120, 87, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-primary:hover { 
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); 
    transform: translateY(-2px); 
    box-shadow: 0 8px 24px -3px rgba(4, 120, 87, 0.45); 
    color: var(--white);
}

.btn-secondary { 
    background: var(--white); 
    color: var(--primary-color); 
    border: 1.5px solid var(--primary-emerald); 
}
.btn-secondary:hover { 
    background: var(--primary-light); 
    color: var(--primary-dark);
    transform: translateY(-2px); 
}

.btn-outline { 
    background: #ffffff; 
    border: 2px solid var(--primary-emerald); 
    color: var(--primary-color); 
}
.btn-outline:hover { 
    background: var(--primary-emerald); 
    color: var(--white); 
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
    color: #ffffff;
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
    background: linear-gradient(135deg, #e5c158 0%, #9a4407 100%);
    transform: translateY(-2px);
    color: #ffffff;
}

.badge-premium { 
    background: linear-gradient(135deg, #b45309 0%, #d4af37 100%); 
    color: var(--white); 
    padding: 7px 18px; 
    border-radius: 30px; 
    font-size: 0.85rem; 
    font-weight: 700; 
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px; 
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
    letter-spacing: 0.5px;
}


/* ==========================================================================
   5. NAVBAR HEADER & NAVIGATION (1 BARIS SEJAJAR RAPI)
   ========================================================================== */
.glassmorphism-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 78px;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}
.brand-logo img:hover {
    transform: scale(1.02);
}

/* NAV CONTAINER (SOLUSI ANTI-BERTINGKAT: 1 BARIS SEJAJAR HORIZONTAL) */
#main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

/* Desktop Navigation Menu Links */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.88rem;
    position: relative;
    padding: 6px 0;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2.5px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary-emerald), var(--accent-color));
    transition: var(--transition);
    border-radius: 4px;
}

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

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-emerald);
}

/* Nav Action Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-nav-santri {
    height: 40px;
    padding: 0 16px;
    background: #ffffff;
    border: 1.5px solid var(--primary-emerald);
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 11px;
    font-size: 0.86rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.08);
    white-space: nowrap;
    box-sizing: border-box;
}
.btn-nav-santri:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(4, 120, 87, 0.14);
}
.btn-nav-santri .badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px var(--accent-color);
}

/* TOMBOL DONASI DESKTOP BERUKURAN SELARAS DENGAN EFEK CAHAYA MENGKILAP */
#btn-nav-donasi {
    height: 40px;
    padding: 0 18px;
    font-size: 0.86rem;
    font-weight: 700;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.35);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

#btn-nav-donasi::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 38px;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-150%) skewX(-20deg);
    animation: goldShine 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
}

#btn-nav-donasi:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.48);
    background: linear-gradient(135deg, #e5c158 0%, #9a4407 100%);
}

@keyframes goldShine {
    0% {
        transform: translateX(-150%) skewX(-20deg);
        opacity: 0;
    }
    15% {
        opacity: 0.9;
    }
    40% {
        transform: translateX(250%) skewX(-20deg);
        opacity: 0;
    }
    100% {
        transform: translateX(250%) skewX(-20deg);
        opacity: 0;
    }
}

/* Hamburger Menu Toggle Button (Mobile) */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid rgba(6, 78, 59, 0.2);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    transition: var(--transition);
}
.mobile-menu-toggle:hover {
    background: var(--primary-light);
    border-color: var(--primary-emerald);
}
.mobile-menu-toggle .bar {
    width: 22px;
    height: 2.5px;
    background-color: var(--primary-dark);
    border-radius: 3px;
    transition: var(--transition);
}
.mobile-menu-toggle.is-open .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.mobile-menu-toggle.is-open .bar:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-open .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Navigation Off-Canvas Drawer */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.mobile-drawer-overlay.active { opacity: 1; visibility: visible; }

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 82%;
    max-width: 320px;
    height: 100%;
    background: #ffffff;
    z-index: 1600;
    box-shadow: -10px 0 35px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-drawer.active { transform: translateX(0); }

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}
.drawer-logo { height: 38px; width: auto; object-fit: contain; }
.btn-close-drawer {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}
.btn-close-drawer:hover { background: #fee2e2; color: var(--danger); }

.drawer-content {
    padding: 24px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.drawer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.drawer-nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.98rem;
    border-radius: 10px;
    transition: var(--transition);
}
.drawer-nav-list li a i { width: 22px; color: var(--primary-emerald); font-size: 1.1rem; }
.drawer-nav-list li a:hover,
.drawer-nav-list li a.active {
    background: var(--primary-light);
    color: var(--primary-color);
}
.drawer-actions {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}


/* ==========================================================================
   6. HERO SECTION (2-COLUMN BALANCED LAYOUT & CLEAN GOLD TITLE)
   ========================================================================== */
.hero-section {
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 135px;
    padding-bottom: 70px;
    background: transparent;
    overflow: hidden;
}

/* 2-Column Grid Layout: Mengisi Kanan Layar yang Sebelumnya Kosong */
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 45px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 20px;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

/* WARNA GRADASI JUDUL BERSIH & BERKILAU (ROYAL GOLD RADIANT) */
.hero-content h1 .gold-text {
    background: linear-gradient(135deg, #b45309 0%, #d97706 45%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    display: inline-block;
}

.hero-content p.lead {
    font-size: 1.12rem;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Floating Showcase Card di Kanan Hero (Islamic Royal Medallion Design) */
.hero-feature-card {
    background: linear-gradient(165deg, #ffffff 0%, #faf8f3 50%, #f6f3e8 100%);
    border: 2px solid rgba(212, 175, 55, 0.45);
    border-radius: 28px;
    padding: 32px 26px;
    box-shadow: 
        0 25px 55px -12px rgba(6, 78, 59, 0.16), 
        0 0 30px rgba(212, 175, 55, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.hero-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #064e3b 0%, #d4af37 50%, #b45309 100%);
    z-index: 2;
}

.hero-feature-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 65px -15px rgba(6, 78, 59, 0.22), 
        0 0 40px rgba(212, 175, 55, 0.28);
    border-color: var(--accent-color);
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.hero-card-badge {
    background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 100%);
    color: #047857;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-card-sub {
    font-size: 0.82rem;
    color: #475569;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hero-card-center {
    text-align: center;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.hero-card-icon-wrap {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #fef08a;
    font-size: 1.85rem;
    border: 2px solid #d4af37;
    box-shadow: 
        0 8px 25px rgba(6, 78, 59, 0.25), 
        0 0 20px rgba(212, 175, 55, 0.35);
    transition: var(--transition);
}

.hero-card-icon-wrap:hover {
    transform: scale(1.06);
    box-shadow: 
        0 12px 30px rgba(6, 78, 59, 0.35), 
        0 0 28px rgba(212, 175, 55, 0.5);
}

.hero-card-center h3 {
    font-size: 1.38rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.hero-card-motto {
    font-size: 0.84rem;
    color: #64748b;
    font-weight: 600;
    margin: 0;
}

/* Micro-Cards List */
.hero-highlights-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.hero-hl-item {
    display: flex;
    align-items: center;
    gap: 13px;
    background: #ffffff;
    border: 1.5px solid rgba(212, 175, 55, 0.22);
    border-radius: 16px;
    padding: 11px 15px;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.02);
}

.hero-hl-item:hover {
    transform: translateX(5px);
    border-color: var(--accent-color);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.16);
    background: #fffdfa;
}

.hero-hl-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.hero-hl-icon.icon-tahfidz {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.hero-hl-icon.icon-formal {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #065f46;
    border: 1px solid rgba(4, 120, 87, 0.35);
}

.hero-hl-icon.icon-diniyah {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #c2410c;
    border: 1px solid rgba(194, 65, 12, 0.3);
}

.hero-hl-icon.icon-portal {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    color: #0f766e;
    border: 1px solid rgba(15, 118, 110, 0.3);
}

.hero-hl-content {
    flex: 1;
    min-width: 0;
}

.hero-hl-content strong {
    display: block;
    font-size: 0.91rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.hero-hl-content span {
    display: block;
    font-size: 0.77rem;
    color: var(--text-muted);
}

.hl-pills-wrap {
    display: flex;
    gap: 4px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.pill-mini {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 6px;
    background: rgba(6, 78, 59, 0.08);
    color: #064e3b;
    border: 1px solid rgba(6, 78, 59, 0.16);
    display: inline-block;
    letter-spacing: 0.3px;
}

.hl-check {
    color: #10b981;
    font-size: 0.95rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.hero-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ecfdf5 0%, #fffbeb 100%);
    border-radius: 14px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary-dark);
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.12);
    position: relative;
    z-index: 2;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

/* Mobile Quick Action Buttons in Hero (PRESERVED & WITH GOLD SHIMMER) */
.hero-mobile-actions {
    display: none; /* Desktop hidden */
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
    width: 100%;
}
.btn-hero-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    flex: 1;
    max-width: 190px;
}
.btn-hero-mobile-akun {
    background: #ffffff;
    color: var(--primary-dark);
    border: 1.5px solid var(--primary-emerald);
    box-shadow: 0 4px 15px rgba(6, 78, 59, 0.1);
}
.btn-hero-mobile-donasi,
#btn-mobile-drawer-donasi {
    background: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
    color: #ffffff;
    border: 1.5px solid transparent;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-hero-mobile-donasi::after,
#btn-mobile-drawer-donasi::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 38px;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-150%) skewX(-20deg);
    animation: goldShine 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
}


/* ==========================================================================
   7. SECTIONS & LAYOUT CONTROLS (TRANSPARAN AGAR POLA TEMBUS SAMPAI BAWAH)
   ========================================================================== */
section { 
    padding: 90px 0; 
    background: transparent; /* Tembus pandang ke pola ketupat global */
}
.bg-light, .bg-white { 
    background-color: transparent !important; 
}

.section-tagline { 
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-hover); 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 12px; 
    font-size: 0.85rem;
    background: var(--accent-light);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.section-header h2 { 
    font-size: 2.6rem; 
    margin-bottom: 16px; 
    color: var(--primary-dark); 
    font-weight: 800; 
    line-height: 1.25; 
    letter-spacing: -0.3px;
}
.section-header p { 
    font-size: 1.1rem; 
    color: var(--text-muted); 
    max-width: 720px; 
    margin: 0 auto; 
    line-height: 1.7;
}


/* ==========================================================================
   8. TENTANG KAMI & SHOWCASE KELEMBAGAAN TERPADU
   ========================================================================== */
.about-grid { 
    display: grid; 
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 60px; 
    align-items: center; 
}

.about-text h2 { 
    font-size: 2.3rem; 
    color: var(--primary-dark); 
    margin-bottom: 18px; 
    line-height: 1.3; 
    font-weight: 800;
}
.about-text p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 14px;
}

.feature-list { list-style: none; margin-top: 25px; }
.feature-list li { 
    margin-bottom: 14px; 
    font-size: 1.02rem; 
    display: flex; 
    align-items: center; 
    gap: 14px; 
    font-weight: 600; 
    color: var(--text-dark);
}
.feature-list i { 
    color: var(--primary-emerald); 
    font-size: 1.25rem; 
    background: var(--primary-light); 
    padding: 7px; 
    border-radius: 50%; 
    border: 1px solid rgba(4, 120, 87, 0.2);
}

/* Institutional Showcase Card */
.institution-showcase-card {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}
.institution-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-emerald), var(--accent-color));
}

.showcase-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.showcase-emblem {
    width: 54px;
    height: 54px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-emerald);
    border: 1px solid rgba(4, 120, 87, 0.2);
}
.showcase-header-text h3 {
    font-size: 1.18rem;
    color: var(--primary-dark);
    font-weight: 800;
}
.showcase-header-text p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.jenjang-badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}
.jenjang-badge-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}
.jenjang-badge-card:hover {
    background: var(--primary-light);
    border-color: var(--primary-emerald);
    transform: translateY(-2px);
}
.jenjang-icon {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-emerald);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.jenjang-info h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}
.jenjang-info span {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.showcase-footer-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 18px;
    border-top: 1px dashed var(--border-color);
    text-align: center;
}
.stat-pill h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-emerald);
    margin: 0;
}
.stat-pill p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 600;
}


/* ==========================================================================
   9. KEUNGGULAN UTAMA (HARMONIZED ISLAMIC LUXURY)
   ========================================================================== */
.keunggulan-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 28px; 
    margin-top: 45px; 
}

.keunggulan-card { 
    background: var(--white); 
    border-radius: 20px; 
    padding: 32px 28px; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    box-shadow: var(--shadow-soft); 
    transition: var(--transition); 
    border: 1px solid var(--border-color); 
    position: relative;
}
.keunggulan-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover); 
    border-color: rgba(212, 175, 55, 0.4); 
}

.icon-box { 
    width: 62px; 
    height: 62px; 
    border-radius: 16px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.6rem; 
    margin-bottom: 22px; 
    background: var(--primary-light);
    color: var(--primary-emerald);
    border: 1px solid rgba(4, 120, 87, 0.2);
    transition: var(--transition);
}
.keunggulan-card:hover .icon-box {
    background: var(--accent-light);
    color: var(--accent-hover);
    border-color: rgba(212, 175, 55, 0.4);
    transform: rotate(5deg) scale(1.05);
}

.text-box h3 { 
    font-size: 1.25rem; 
    color: var(--primary-dark); 
    margin-bottom: 10px; 
    font-weight: 800;
    line-height: 1.35; 
}
.text-box p { 
    font-size: 0.94rem; 
    color: var(--text-muted); 
    line-height: 1.65; 
}


/* ==========================================================================
   10. ROADMAP TAHFIDZ AL-QUR'AN
   ========================================================================== */
.tahfidz-roadmap { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 28px; 
    margin: 55px 0 45px 0; 
    position: relative;
}

.roadmap-item { 
    text-align: center; 
    padding: 38px 28px; 
    background: var(--white); 
    border-radius: 22px; 
    box-shadow: var(--shadow-soft); 
    transition: var(--transition); 
    border: 1px solid var(--border-color); 
    position: relative;
}
.roadmap-item:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-hover); 
    border-color: var(--accent-color); 
}

.roadmap-icon { 
    width: 68px; 
    height: 68px; 
    background: linear-gradient(135deg, var(--primary-emerald) 0%, var(--primary-color) 100%); 
    color: var(--white); 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 1.6rem; 
    font-weight: 800; 
    margin: 0 auto 22px; 
    box-shadow: 0 10px 22px rgba(4, 120, 87, 0.3); 
    border: 3px solid var(--accent-color);
}
.roadmap-item h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    font-weight: 800;
    margin-bottom: 10px;
}
.roadmap-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}


/* ==========================================================================
   11. SHOWCASE INOVASI DIGITAL: PORTAL AKUN SANTRI (UNIQUE KILLER FEATURE)
   ========================================================================== */
.portal-showcase-section {
    background: linear-gradient(145deg, #022c22 0%, #064e3b 100%);
    color: var(--white);
    border-radius: 28px;
    padding: 55px 45px;
    margin-top: 40px;
    box-shadow: 0 25px 50px -12px rgba(2, 44, 34, 0.4);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.portal-showcase-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.portal-showcase-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 45px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.portal-showcase-text .badge-gold-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.18);
    color: #fef08a;
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.portal-showcase-text h3 {
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
}
.portal-showcase-text p {
    color: #cbd5e1;
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

.portal-feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}
.portal-feature-pill {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f8fafc;
    font-weight: 600;
}
.portal-feature-pill i { color: var(--accent-color); }

/* Smartphone Live Mockup Box */
.portal-mockup-card {
    background: #ffffff;
    color: var(--text-dark);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    border: 3px solid rgba(212, 175, 55, 0.5);
    max-width: 360px;
    margin: 0 auto;
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}
.portal-mockup-card:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-5px);
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.mockup-header-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--primary-dark);
}
.mockup-status {
    font-size: 0.72rem;
    background: #dcfce7;
    color: #15803d;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.mockup-balance-box {
    background: linear-gradient(135deg, var(--primary-emerald) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(6, 78, 59, 0.2);
}
.mockup-balance-box span { font-size: 0.75rem; color: #cbd5e1; }
.mockup-balance-box h4 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 4px 0 0 0;
    color: #fef08a;
}

.mockup-trx-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.82rem;
}
.mockup-trx-item:last-child { border-bottom: none; }
.trx-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.trx-meta i {
    width: 26px;
    height: 26px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-emerald);
}


/* ==========================================================================
   12. MADRASAH DINIYAH (4-COLUMN CLEAN ARCHITECTURE)
   ========================================================================== */
.diniyah-grid-4-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 24px;
    margin-top: 45px;
}

.diniyah-card { 
    background: var(--white); 
    border-radius: 20px; 
    padding: 30px 22px; 
    box-shadow: var(--shadow-soft); 
    border: 1.5px solid var(--border-color); 
    transition: var(--transition); 
    display: flex;
    flex-direction: column;
}
.diniyah-card:hover { 
    transform: translateY(-6px); 
    box-shadow: var(--shadow-hover); 
    border-color: var(--primary-emerald);
}

.diniyah-card.premium-board { 
    border: 2px solid var(--accent-color); 
    background: linear-gradient(155deg, var(--white) 0%, #fffdf5 100%); 
    position: relative; 
    overflow: hidden; 
    box-shadow: 0 10px 30px -5px rgba(212, 175, 55, 0.2);
}
.diniyah-card.premium-board::after {
    content: '👑 Mahkota Santri';
    position: absolute;
    top: 14px;
    right: -32px;
    background: var(--accent-color);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 35px;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card-header { 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 16px; 
    margin-bottom: 20px; 
}
.card-header h3 {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--primary-dark);
}
.level-badge { 
    display: inline-block; 
    background: var(--primary-light); 
    color: var(--primary-emerald); 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-size: 0.78rem; 
    font-weight: 700; 
    margin-top: 8px; 
    border: 1px solid rgba(4, 120, 87, 0.2);
}
.level-badge.gold { 
    background: #fef3c7; 
    color: #92400e; 
    border-color: rgba(212, 175, 55, 0.4);
}

.kitab-list { list-style: none; flex-grow: 1; }
.kitab-list li { 
    padding: 10px 0; 
    border-bottom: 1px dashed #cbd5e1; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 0.9rem; 
    font-weight: 600; 
    color: var(--text-dark);
}
.kitab-list li:last-child { border-bottom: none; }
.kitab-list i { color: var(--primary-emerald); font-size: 1.05rem; }


/* ==========================================================================
   13. MODALS & POP-UPS (PREVIEW QRIS, DONASI, PENDAFTARAN)
   ========================================================================== */
.modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(15, 23, 42, 0.75); 
    z-index: 2000;
    display: flex; 
    justify-content: center; 
    align-items: center;
    backdrop-filter: blur(8px); 
    opacity: 1; 
    visibility: visible; 
    transition: var(--transition);
}
.modal-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.modal-content {
    background: var(--white); 
    padding: 38px 34px; 
    border-radius: 24px; 
    position: relative;
    max-width: 820px; 
    width: min(820px, 92vw); 
    box-shadow: 0 25px 60px -15px rgba(0,0,0,0.4);
    max-height: 88vh; 
    overflow-y: auto;
    overflow-x: hidden !important; /* Mencegah scrollbar horizontal 100% */
    border: 1px solid var(--border-color);
    box-sizing: border-box;
}

.modal-header { 
    text-align: center; 
    margin-bottom: 24px; 
    padding: 0 35px; /* Memberi ruang aman untuk tombol X di pojok kanan */
}
.modal-header h2 { color: var(--primary-dark); font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.modal-header p { color: var(--text-muted); font-size: 0.95rem; }

/* TOMBOL CLOSE DI DALAM MODAL (TIDAK AKAN TERPOTONG & TIDAK MEMICU SCROLLBAR) */
.btn-close {
    position: absolute; 
    top: 18px; 
    right: 18px; 
    background: #f1f5f9; 
    color: #475569;
    border: 1.5px solid #cbd5e1; 
    width: 38px; 
    height: 38px; 
    border-radius: 50%;
    font-size: 1.35rem; 
    line-height: 1;
    cursor: pointer; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: var(--transition); 
    z-index: 30;
}
.btn-close:hover { 
    background: #fee2e2; 
    color: var(--danger); 
    border-color: #fca5a5; 
    transform: rotate(90deg); 
}

.opsi-daftar-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
}
.opsi-card { 
    padding: 28px 22px; 
    border-radius: 20px; 
    text-align: center; 
    border: 2px solid transparent; 
    transition: var(--transition); 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    box-sizing: border-box;
}
.opsi-card.premium-card { 
    background: var(--primary-light); 
    border-color: var(--primary-emerald); 
}
.opsi-card.standard-card { 
    background: #f8fafc; 
    border-color: #e2e8f0; 
}
.opsi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.opsi-card h3 { font-size: 1.25rem; color: var(--primary-dark); margin-bottom: 8px; font-weight: 800; }
.opsi-card p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.9rem; line-height: 1.55; }
.opsi-icon { font-size: 2.8rem; color: var(--primary-emerald); margin-bottom: 14px; }

/* Modal Donasi */
.donasi-modal-card { 
    max-width: 580px; 
    width: min(580px, 92vw);
    padding: 36px 30px; 
}
.donasi-channels-list { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
    margin-top: 20px; 
    width: 100%;
}
.channel-card {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: #f8fafc; 
    border: 1.5px solid #e2e8f0; 
    padding: 16px 20px; 
    border-radius: 18px;
    transition: var(--transition);
    gap: 16px;
    box-sizing: border-box;
    width: 100%;
}
.channel-card:hover { 
    border-color: var(--primary-emerald); 
    background: var(--white); 
    transform: translateY(-2px); 
    box-shadow: var(--shadow-soft); 
}
.channel-info { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    min-width: 0;
}
.bank-logo-img { 
    width: 85px; 
    height: auto; 
    max-height: 42px;
    object-fit: contain; 
    flex-shrink: 0;
}
.channel-info h4 { font-size: 1rem; color: var(--text-dark); margin-bottom: 3px; font-weight: 700; }
.account-number { font-size: 1.1rem; font-weight: 800; color: var(--primary-dark); letter-spacing: 0.5px; }
.account-holder { font-size: 0.82rem; color: var(--text-muted); }
.channel-card .btn { flex-shrink: 0; }


/* ==========================================================================
   14. FORMULIR PENDAFTARAN ONLINE & PREVIEW CETAK (PRESERVED)
   ========================================================================== */
.bg-form-page { background-color: var(--bg-light); background-image: radial-gradient(var(--primary-light) 2px, transparent 2px); background-size: 30px 30px; }
.form-wrapper { max-width: 950px; margin: 60px auto; padding: 0 20px; }
.form-logo.kop-surat-online { width: 100%; max-width: 750px; height: auto; margin-bottom: 25px; border-bottom: 3px solid var(--primary-dark); padding-bottom: 15px; display: inline-block; }
.form-header { margin-bottom: 40px; }
.form-header h1 { color: var(--primary-dark); font-size: 2.5rem; font-weight: 800; }
.form-header .subtitle { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 20px; }
.alert { padding: 14px 20px; border-radius: 12px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; font-size: 0.95rem; font-weight: 500; }
.alert-info { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.full-width { grid-column: 1 / -1; }
.card-glass { background: #ffffff; border: 1px solid var(--border-color); border-radius: 18px; padding: 35px; box-shadow: var(--shadow-soft); margin-bottom: 30px; }
.section-title h2 { color: var(--primary-dark); font-size: 1.35rem; font-weight: 800; border-bottom: 1px solid var(--border-color); padding-bottom: 14px; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.input-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); font-size: 0.92rem; }
.input-group input[type="text"], .input-group input[type="email"], .input-group input[type="date"] {
    width: 100%; padding: 14px 18px; border: 1.5px solid #cbd5e1; border-radius: 12px; font-size: 0.98rem; transition: var(--transition); background: #f8fafc; color: var(--text-dark);
}
.input-group input:focus { outline: none; border-color: var(--primary-emerald); background: var(--white); box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.15); }
.radio-group { display: flex; flex-wrap: wrap; gap: 14px; }
.radio-group.vertical { flex-direction: column; gap: 10px; }
.radio-label { display: flex; align-items: center; gap: 10px; cursor: pointer; background: var(--white); padding: 12px 18px; border: 1.5px solid #cbd5e1; border-radius: 12px; transition: var(--transition); font-weight: 600; flex-grow: 1; }
.radio-label:hover { border-color: var(--primary-emerald); background: var(--primary-light); }
.radio-label input[type="radio"] { accent-color: var(--primary-emerald); transform: scale(1.2); }

.highlight-input { background: #ecfdf5; padding: 22px; border-radius: 16px; border: 2px dashed var(--success); }
.file-upload input { background: var(--bg-light); padding: 12px; border-radius: 10px; border: 2px dashed #94a3b8; width: 100%; cursor: pointer; }
.file-upload input:hover { border-color: var(--primary-emerald); background: var(--primary-light); }


/* ==========================================================================
   15. FOOTER (ISLAMIC OBSIDIAN LUXURY)
   ========================================================================== */
.main-footer { 
    background: var(--primary-dark); 
    color: var(--white); 
    padding: 85px 0 0 0; 
    margin-top: 60px; 
    position: relative;
    border-top: 3px solid var(--accent-color);
}
.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1.2fr; 
    gap: 50px; 
    margin-bottom: 50px; 
}

.footer-logo { 
    max-width: 150px; 
    height: auto;
    margin-bottom: 18px; 
    display: block;
}
.footer-brand p {
    color: #cbd5e1;
    font-size: 0.94rem;
    line-height: 1.7;
    max-width: 420px;
}

.footer-links h4, .footer-contact h4 { 
    color: var(--accent-color); 
    font-size: 1.15rem; 
    font-weight: 800;
    margin-bottom: 22px; 
    position: relative; 
    padding-bottom: 10px; 
    letter-spacing: 0.3px;
}
.footer-links h4::after, .footer-contact h4::after { 
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: 0; 
    width: 38px; 
    height: 3px; 
    background: var(--accent-color); 
    border-radius: 2px; 
}

.footer-links ul, .footer-contact ul { list-style: none; }
.footer-links li, .footer-contact li { 
    margin-bottom: 12px; 
    color: #cbd5e1; 
    display: flex; 
    gap: 12px; 
    font-size: 0.93rem;
    align-items: center;
}
.footer-links a { color: #cbd5e1; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--accent-color); transform: translateX(5px); display: inline-block; }
.footer-contact li i { color: var(--accent-color); font-size: 1.05rem; width: 18px; }

.social-links { display: flex; gap: 14px; margin-top: 22px; }
.social-links a { 
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white); 
    font-size: 1.25rem; 
    transition: var(--transition); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-links a:hover { 
    background: var(--accent-color);
    color: var(--primary-dark) !important; 
    transform: translateY(-3px); 
}

.footer-bottom { 
    text-align: center; 
    padding: 22px; 
    background: #011a14; 
    color: #94a3b8; 
    font-size: 0.88rem; 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}


/* ==========================================================================
   16. FLOATING WHATSAPP BUTTON
   ========================================================================== */
.floating-whatsapp {
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background: #25d366; 
    color: #ffffff !important; 
    border-radius: 50px; 
    padding: 13px 22px;
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 0.98rem; 
    font-weight: 700; 
    text-decoration: none !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45); 
    z-index: 1100; 
    transition: var(--transition);
}
.floating-whatsapp:hover { 
    background: #1ebe57; 
    transform: translateY(-4px) scale(1.02); 
    color: #ffffff !important; 
}
.floating-whatsapp i { font-size: 1.4rem; }


/* ==========================================================================
   17. RESPONSIVE MEDIA QUERIES (TABLET & SMARTPHONE ADAPTATION)
   ========================================================================== */
@media (max-width: 1180px) {
    .hero-content h1 { font-size: 2.8rem; }
    .hero-grid { gap: 32px; }
    .nav-links { gap: 14px; }
    .nav-links li a { font-size: 0.85rem; }
    #main-nav { gap: 16px; }
    .brand-logo img { height: 44px; }
}

@media (max-width: 1024px) {
    /* Enable Hamburger & Hide Desktop Links on Tablet & Medium Screens */
    .nav-links { display: none; }
    .nav-actions { display: none; }
    .mobile-menu-toggle { display: flex; }
    
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .portal-showcase-grid { grid-template-columns: 1fr; gap: 35px; }
    .portal-mockup-card { transform: none; }
    .tahfidz-roadmap { grid-template-columns: 1fr; gap: 20px; }
    .keunggulan-grid { grid-template-columns: repeat(2, 1fr); }
    .diniyah-grid-4-columns { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    
    .nav-wrapper { height: 70px; }
    .brand-logo img { height: 42px; }
    
    /* SHOW PRESERVED MOBILE HERO ACTION BUTTONS IN MOBILE VIEW */
    .hero-mobile-actions { display: flex; }
    
    .hero-section {
        padding-top: 105px;
        padding-bottom: 50px;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.22;
    }
    .hero-content p.lead {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .keunggulan-grid { grid-template-columns: 1fr; gap: 20px; }
    .diniyah-grid-4-columns { grid-template-columns: 1fr; gap: 20px; }
    .jenjang-badges-grid { grid-template-columns: 1fr; }
    
    .portal-showcase-section {
        padding: 35px 22px;
        border-radius: 20px;
    }
    .portal-showcase-text h3 { font-size: 1.8rem; }
    
    .opsi-daftar-grid { grid-template-columns: 1fr; gap: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .card-glass { padding: 24px 18px; }
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    
    .floating-whatsapp { padding: 15px; bottom: 20px; right: 20px; border-radius: 50%; }
    .floating-whatsapp .wa-text { display: none; } 
    .floating-whatsapp i { font-size: 1.7rem; margin: 0; }

    /* Modal Responsive Setup on Mobile */
    .modal-overlay { padding: 12px; }
    .modal-content {
        padding: 32px 18px 24px !important;
        width: 95% !important;
        max-width: 480px !important;
        border-radius: 20px !important;
        overflow-x: hidden !important;
    }
    .modal-header { padding: 0 15px !important; }
    .btn-close {
        top: 12px !important;
        right: 12px !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 1.25rem !important;
    }
    .channel-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .channel-card .btn { width: 100% !important; }
}


/* ==========================================================================
   18. PRINT LAYOUT SYSTEM ENGINE (FORMULIR-CETAK A4 LOCK - 100% PRESERVED)
   ========================================================================== */
@media print {
    body { background: #fff; font-size: 9.5pt !important; color: #000; margin: 0; padding: 0; }
    #area-cetak { width: 100%; margin: 0; padding: 5px !important; background: #fff !important; color: #000 !important; }
    .print-action-bar, button, a, nav, footer, .floating-whatsapp, .mobile-drawer-overlay, .mobile-drawer { display: none !important; }
    
    header { text-align: center; margin-bottom: 10px; border-bottom: 3px solid #000; padding-bottom: 5px; }
    header img { max-width: 100%; height: auto; max-height: 80px !important; }
    
    h1 { font-size: 13pt !important; text-align: center; margin: 4px 0 !important; text-transform: uppercase; font-weight: bold; color: #000 !important; }
    
    fieldset { 
        border: 2px solid #000 !important; padding: 10px 14px !important; margin-bottom: 10px !important; 
        page-break-inside: avoid; border-radius: 0 !important; background: #fff !important; width: 100% !important;
    }
    legend { font-weight: bold; padding: 0 5px; font-size: 10.5pt !important; background: #fff; color: #000 !important; }
    p { margin-bottom: 5px !important; line-height: 1.35 !important; font-size: 9.5pt !important; color: #000 !important; }
    
    .label-field { width: 220px !important; }
    
    .ttd-container { display: flex; justify-content: space-between; margin-top: 15px !important; page-break-inside: avoid; }
    .ttd-box { width: 40%; text-align: center; font-size: 9.5pt !important; }
    .ttd-box p { display: block; margin: 0 !important; }
    .ttd-box br { display: block; content: ""; margin: 15px 0 !important; } 
}
