@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── PRICING DISCOUNT STYLES ─────────────────── */
.biaya-discount-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, #DC2626, #991B1B);
    color: white; padding: 4px 14px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 800; margin-bottom: 12px;
    letter-spacing: 0.5px; text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(220,38,38,0.4);
    animation: pulse-red 2s infinite;
}
.biaya-original-price {
    font-size: 0.9rem; color: #DC2626;
    text-decoration: line-through;
    font-weight: 500; margin-bottom: 4px;
    display: block;
}
.biaya-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,0.12); }

:root {
    --color-primary: #0A3D33;
    --color-primary-light: #0E5044;
    --color-accent: #D4AF77;
    --color-accent-light: #E8C77F;
    --color-accent-hover: #B89050;
    --color-wa: #25D366;
    --color-wa-hover: #128C7E;
    --color-bg: #F8F4ED;
    --color-bg-alt: #F0E9DC;
    --color-urgent: #B91C1C;
    --text-main: #1A2A24;
    --text-light: #FFFFFF;
    --text-muted: #6B7280;
    --gold-glow: 0 0 20px rgba(212,175,119,0.4);
    --shadow-card: 0 20px 60px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 65px;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
}

section { padding: 70px 0; }

/* ── ANIMATIONS ─────────────────────────────── */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

@keyframes pulse-gold {
    0%,100% { box-shadow: 0 0 0 0 rgba(212,175,119,0.5); }
    70%      { box-shadow: 0 0 0 12px rgba(212,175,119,0); }
}
@keyframes pulse-red {
    0%,100% { box-shadow: 0 0 0 0 rgba(185,28,28,0.6); }
    70%      { box-shadow: 0 0 0 12px rgba(185,28,28,0); }
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}
@keyframes fillProgress {
    from { width: 0; }
    to   { width: 93%; }
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-8px); }
}

/* ── DIVIDER ─────────────────────────────────── */
.gold-divider {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    border-radius: 2px;
    margin: 0 auto 30px;
}

/* ── SECTION TITLE ───────────────────────────── */
.section-title {
    font-size: 1.7rem;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.35;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* ── BUTTONS ─────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 18px 28px; border-radius: 14px; font-weight: 700;
    text-decoration: none; transition: all 0.3s ease;
    font-size: 1rem; border: none; cursor: pointer; text-align: center;
    font-family: 'Poppins', sans-serif; gap: 10px;
}
.btn-full { width: 100%; }

.btn-gold {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(212,175,119,0.45);
    animation: pulse-gold 2.5s infinite;
    position: relative; overflow: hidden;
}
.btn-gold::after {
    content: '';
    position: absolute; top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 3s infinite;
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(212,175,119,0.6);
}

.btn-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 8px 25px rgba(37,211,102,0.4);
}
.btn-wa:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(37,211,102,0.55);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}
.btn-outline:hover {
    background: rgba(212,175,119,0.1);
    transform: translateY(-2px);
}

/* ── STICKY BANNER ───────────────────────────── */
.sticky-banner {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
    background: linear-gradient(135deg, var(--color-urgent), #7F1D1D);
    color: white; display: flex; align-items: center;
    justify-content: space-between; padding: 10px 18px;
    box-shadow: 0 4px 20px rgba(185,28,28,0.5);
    animation: slideDown 0.8s ease-out;
}
.sticky-banner-text { font-size: 0.75rem; font-weight: 700; line-height: 1.3; }
.sticky-countdown {
    font-weight: 800; font-size: 1.2rem; color: #FDE047; letter-spacing: 2px;
}
.btn-sticky {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: var(--color-primary); padding: 8px 16px; border-radius: 8px;
    font-weight: 800; text-decoration: none; font-size: 0.8rem;
    text-transform: uppercase; animation: pulse-gold 2s infinite;
    white-space: nowrap;
}

/* ── HEADER ──────────────────────────────────── */
.main-header {
    position: absolute; left: 0; right: 0; z-index: 10;
    padding: 16px 24px;
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.6), transparent);
}
.lang-btn {
    color: white; text-decoration: none; font-weight: 700;
    padding: 5px 12px; border-radius: 6px; font-size: 0.8rem;
    transition: all 0.2s;
}
.lang-btn:hover { transform: scale(1.05); }
.lang-btn.active { background: var(--color-accent); color: var(--color-primary); }
.lang-btn.inactive { background: rgba(255,255,255,0.15); }

/* ── HERO ────────────────────────────────────── */
.hero-section {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    background: url('foto/ruang-belajar-tahfidz-fokus.jpg') center/cover no-repeat;
    padding: 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(10,61,51,0.88) 0%, rgba(10,61,51,0.75) 60%, rgba(0,0,0,0.85) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 160px; padding-bottom: 60px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(212,175,119,0.2); border: 1px solid var(--color-accent);
    color: var(--color-accent); padding: 7px 18px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600; margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2rem; color: white;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    margin-bottom: 8px; line-height: 1.25;
}
.hero-title span { color: var(--color-accent); display: block; }

.hero-pesantren-name {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-accent) !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding: 6px 18px;
    border: 1px solid rgba(212,175,119,0.5);
    border-radius: 8px;
    display: inline-block;
    background: rgba(212,175,119,0.1);
    text-shadow: 0 0 20px rgba(212,175,119,0.6);
}

.hero-sub-hook {
    font-size: 1rem; color: #D1FAE5;
    margin: 16px 0 32px; line-height: 1.7;
}
.hero-sub-hook strong { color: var(--color-accent); }

.hero-cta-stack { display: flex; flex-direction: column; gap: 14px; }

/* ── PAIN SECTION ─────────────────────────────── */
.pain-section { background: white; }

.pain-card {
    background: linear-gradient(135deg, #F8F4ED, #F0E9DC);
    padding: 36px 28px; border-radius: 20px;
    border-left: 5px solid var(--color-accent);
    box-shadow: var(--shadow-card);
}
.pain-quote {
    font-size: 1.1rem; color: var(--color-primary);
    font-style: italic; font-weight: 600;
    margin: 18px 0; line-height: 1.7;
    border-left: 3px solid var(--color-accent);
    padding-left: 16px;
}
.pain-closing { color: var(--text-muted); font-size: 0.95rem; }
.pain-closing strong { color: var(--color-primary); }

/* ── PILAR SECTION ─────────────────────────────── */
.pilar-section { background: var(--color-bg-alt); }
.card-stack { display: flex; flex-direction: column; gap: 22px; }

.pilar-card {
    background: white; padding: 30px 26px; border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(212,175,119,0.2);
    position: relative; overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pilar-card:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(0,0,0,0.12); }
.pilar-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.pilar-number {
    font-size: 3rem; font-weight: 800; color: rgba(212,175,119,0.15);
    position: absolute; top: 10px; right: 16px;
    font-family: 'Cinzel', serif; line-height: 1;
}
.pilar-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.pilar-icon i { font-size: 1.5rem; color: var(--color-accent); }
.pilar-card h3 { font-size: 1.15rem; color: var(--color-primary); margin-bottom: 10px; }
.pilar-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }
.pilar-card p strong { color: var(--color-primary); }

/* ── AUTHORITY SECTION ─────────────────────────── */
.authority-section {
    background: linear-gradient(160deg, var(--color-primary) 0%, #061F1A 100%);
    color: white; text-align: center;
}
.authority-section .section-title { color: var(--color-accent); }
.authority-section .section-subtitle { color: rgba(255,255,255,0.65); }

.authority-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,119,0.25);
    border-radius: 24px; padding: 40px 24px;
    backdrop-filter: blur(10px);
    position: relative; overflow: hidden;
}
.authority-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(212,175,119,0.08), transparent 70%);
}

.world-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, rgba(212,175,119,0.3), rgba(232,199,127,0.2));
    border: 1px solid var(--color-accent);
    color: var(--color-accent); padding: 5px 16px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 700; margin-bottom: 24px;
    letter-spacing: 1px; text-transform: uppercase;
}

.authority-img-wrapper {
    width: 200px; height: 240px; border-radius: 20px;
    border: 3px solid var(--color-accent);
    margin: 0 auto 28px; overflow: hidden; cursor: pointer;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), var(--gold-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: float 4s ease-in-out infinite;
}
.authority-img-wrapper:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 30px rgba(212,175,119,0.5);
}
.authority-img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: center 10%;
    transform: scale(1.45); display: block;
}

.img-hint {
    font-size: 0.72rem; color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
}
.img-hint i { color: var(--color-accent); }

.authority-name { color: white; font-size: 1.25rem; margin-bottom: 8px; }
.authority-title { color: var(--color-accent); font-size: 0.85rem; margin-bottom: 28px; }

.authority-list { list-style: none; text-align: left; max-width: 400px; margin: 0 auto; }
.authority-list li {
    display: flex; align-items: flex-start; gap: 12px;
    color: #D1FAE5; font-size: 0.9rem; margin-bottom: 14px; line-height: 1.5;
}
.authority-list li i { color: var(--color-accent); margin-top: 3px; flex-shrink: 0; }

/* ── FASILITAS SECTION ────────────────────────── */
.fasilitas-section { background: white; }

.fasilitas-tagline {
    text-align: center; font-weight: 600; color: var(--color-primary);
    font-size: 0.95rem; margin-bottom: 30px;
    padding: 14px 20px; border-radius: 12px;
    background: linear-gradient(135deg, #F0FFF4, #D1FAE5);
    border: 1px solid #6EE7B7;
}

.fasilitas-grid-mobile {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.fasilitas-item {
    position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1/1;
    cursor: pointer;
}
.fasilitas-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.fasilitas-item:hover img { transform: scale(1.08); }
.fasilitas-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(10,61,51,0.95), transparent);
    color: white; font-size: 0.8rem; font-weight: 600;
    padding: 24px 10px 10px; text-align: center;
}

/* ── FLYER SECTION ────────────────────────────── */
.flyer-section { background: var(--color-bg); }

/* ── BIAYA SECTION ────────────────────────────── */
.biaya-section { background: var(--color-bg-alt); }

.biaya-highlight {
    text-align: center; padding: 20px 24px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 16px; color: white; margin-top: 28px;
    border: 1px solid rgba(212,175,119,0.3);
}
.biaya-highlight strong { color: var(--color-accent); }

.biaya-card {
    background: white; padding: 28px 24px; border-radius: 20px;
    box-shadow: var(--shadow-card); text-align: center;
    border-top: 4px solid var(--color-primary);
    transition: transform 0.3s ease;
}
.biaya-card:hover { transform: translateY(-4px); }
.biaya-card:nth-child(2) { border-top-color: var(--color-accent); }
.biaya-header { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.biaya-amount {
    font-size: 1.75rem; font-weight: 800; color: var(--color-primary);
    font-family: 'Cinzel', serif; margin-bottom: 8px;
}
.biaya-desc { font-size: 0.85rem; color: var(--text-muted); }

/* ── CTA SECTION ──────────────────────────────── */
.cta-section {
    background: linear-gradient(160deg, #7F1D1D 0%, #450A0A 100%);
    color: white; text-align: center; padding: 80px 0;
}

.scarcity-alert {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
    color: white; padding: 10px 24px; border-radius: 50px;
    font-weight: 700; font-size: 0.9rem; margin-bottom: 28px;
    animation: pulse-red 2s infinite;
}
.cta-urgency-title {
    font-size: 1.9rem; color: white; margin-bottom: 16px;
}
.cta-urgency-title span { color: #FDE047; display: block; }
.cta-desc { color: rgba(255,255,255,0.8); font-size: 1rem; margin-bottom: 32px; line-height: 1.7; }
.cta-desc strong { color: #FDE047; }

.countdown-wrapper {
    display: flex; justify-content: center; align-items: center;
    gap: 10px; margin-bottom: 28px; flex-wrap: wrap;
}
.countdown-item {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(212,175,119,0.4);
    border-radius: 12px; padding: 12px 10px; width: 72px; text-align: center;
}
.countdown-item span {
    display: block; font-size: 1.8rem; font-weight: 800;
    color: #FDE047; line-height: 1; margin-bottom: 4px;
}
.countdown-item label { font-size: 0.7rem; text-transform: uppercase; color: rgba(255,255,255,0.6); letter-spacing: 1px; }
.countdown-separator { font-size: 1.8rem; font-weight: 800; color: var(--color-accent); margin-top: -16px; }

.progress-container { max-width: 420px; margin: 0 auto 36px; }
.progress-text { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 8px; }
.progress-bar { background: rgba(255,255,255,0.15); border-radius: 50px; height: 14px; overflow: hidden; position: relative; }
.progress-fill {
    background: linear-gradient(90deg, var(--color-accent), #FDE047);
    height: 100%; border-radius: 50px; width: 93%;
    box-shadow: 0 0 12px rgba(212,175,119,0.6);
    animation: fillProgress 2.5s ease-out forwards;
    position: relative;
}
.progress-fill::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 2s infinite linear;
}

.cta-buttons { display: flex; flex-direction: column; gap: 14px; }

/* ── MAPS ─────────────────────────────────────── */
.maps-links { margin-top: 50px; text-align: left; }
.maps-title {
    color: var(--color-accent); margin-bottom: 24px;
    font-size: 1.1rem; text-align: center;
}
.map-card {
    background: rgba(255,255,255,0.06); padding: 22px;
    border-radius: 16px; border: 1px solid rgba(212,175,119,0.2);
    margin-bottom: 16px;
}
.map-card h4 { color: white; margin-bottom: 8px; font-family: 'Poppins', sans-serif; font-size: 0.95rem; }
.map-card p { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin-bottom: 12px; line-height: 1.5; }
.map-iframe-wrapper { border-radius: 10px; overflow: hidden; margin-bottom: 12px; height: 180px; }
.map-open-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    color: var(--color-accent); font-weight: 600; font-size: 0.88rem;
    text-decoration: none; padding: 10px;
    background: rgba(212,175,119,0.1); border-radius: 10px;
    transition: background 0.2s;
}
.map-open-btn:hover { background: rgba(212,175,119,0.2); }

/* ── FOOTER ───────────────────────────────────── */
footer {
    background: #040F0C; color: rgba(255,255,255,0.4);
    text-align: center; padding: 28px 0; font-size: 0.85rem;
}
footer img { height: 40px; opacity: 0.6; margin-bottom: 10px; display: block; margin-left: auto; margin-right: auto; }

/* ── FLOATING WA BUTTON ───────────────────────── */
.float-wa {
    position: fixed; bottom: 24px; right: 20px; z-index: 8000;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white; width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; box-shadow: 0 8px 30px rgba(37,211,102,0.5);
    text-decoration: none; animation: float 3s ease-in-out infinite;
    transition: transform 0.2s;
}
.float-wa:hover { transform: scale(1.1); }

/* ── MODAL ────────────────────────────────────── */
.modal {
    display: none; position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
    padding: 20px;
}
.modal.active { display: flex; }
.modal-content { max-width: 90vw; max-height: 90vh; border-radius: 16px; object-fit: contain; }
.modal-close {
    position: absolute; top: 20px; right: 24px; color: white;
    font-size: 2rem; cursor: pointer; z-index: 100000;
    width: 44px; height: 44px; background: rgba(255,255,255,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (min-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2.1rem; }
    .card-stack { flex-direction: row; }
    .pilar-card, .biaya-card { flex: 1; }
    .container { max-width: 1080px; }
    .fasilitas-grid-mobile { grid-template-columns: repeat(3, 1fr); }
    .cta-buttons { flex-direction: row; justify-content: center; }
    .cta-buttons .btn-full { width: auto; min-width: 320px; }
    .sticky-banner { padding: 12px 48px; justify-content: center; gap: 48px; }
    .sticky-banner-text br { display: none; }
    .sticky-banner-text { font-size: 0.95rem; }
    .sticky-countdown { font-size: 1.5rem; }
    .hero-cta-stack { flex-direction: row; justify-content: center; }
    .hero-cta-stack .btn-full { width: auto; min-width: 260px; }
}
