/* ==========================================================================
   VARIABEL WARNA & STYLE GLOBAL (Sesuai Mockup)
   ========================================================================== */
:root {
    --primary-color: #0E3A2F;  /* Hijau Tua Khas MyQurana */
    --accent-orange: #FF6F3D;  /* Jingga Hangat Terang */
    --accent-gold: #F7C566;    /* Emas Lembut */
    --bg-light: #FCFBF7;       /* Krem Putih Gading */
    --text-dark: #1E293B;      /* Abu Gelap */
    --text-muted: #64748B;     /* Abu Netral */
    --white: #FFFFFF;
    --border-color: #EBDCB9;   /* Garis Batas Warna Krem Emas */
    --radius-lg: 24px;
    --radius-md: 16px;
}

/* RESET */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.inline-block { display: inline-block; }
.margin-top-40 { margin-top: 40px; }

/* REUSABLE COMPONENT: BADGE */
.section-badge {
    background-color: #F1ECE1;
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    color: var(--primary-color);
    margin-bottom: 50px;
    line-height: 1.3;
}

.section-title.text-white {
    color: var(--white);
}

.highlight-orange {
    color: var(--accent-orange);
}

/* ================== BUTTONS ================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #08241d;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-orange);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #e55c2a;
    transform: translateY(-2px);
}

.btn-cta {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 10px 22px;
}

.btn-cta.orange-large {
    padding: 14px 36px;
    font-size: 16px;
}

/* ================== NAVBAR ================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(252, 251, 247, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(235, 220, 185, 0.5);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.brand-tagline {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 22px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent-orange);
}

.nav-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
}

/* ================== HERO SECTION ================== */
.hero-section {
    padding: 160px 0 120px 0;
    background: radial-gradient(circle at top right, #fcf4e8, var(--bg-light));
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    color: var(--primary-color);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 35px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.image-frame img {
    border-radius: 50% 50% 20px 20px; /* Bentuk Kubah Estetis */
    width: 100%;
    max-width: 440px;
    height: 480px;
    object-fit: cover;
    border: 8px solid var(--white);
    box-shadow: 0 20px 40px rgba(14, 58, 47, 0.1);
    margin-left: auto;
}

/* ================== OVERLAPPING SUMMARY BAR ================== */
.summary-bar-section {
    margin-top: -60px; /* Efek Overlap ke Hero */
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.summary-card {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px 25px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(14, 58, 47, 0.15);
    border-bottom: 4px solid var(--accent-gold);
}

.sum-icon i {
    font-size: 28px;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.summary-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.summary-card p {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
}

/* ================== TENTANG KAMI (DOME FRAME) ================== */
.about-section {
    padding-bottom: 100px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.dome-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 180px 180px 30px 30px; /* Custom Arch Arch */
    box-shadow: 0 20px 45px rgba(0,0,0,0.06);
    border: 5px solid var(--border-color);
}

.about-desc {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 30px;
}

.vision-mission-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vml-item {
    display: flex;
    gap: 20px;
}

.vml-icon {
    width: 48px;
    height: 48px;
    background-color: #F1ECE1;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vml-icon i {
    color: var(--primary-color);
    font-size: 18px;
}

.vml-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.vml-content p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ================== KEUNGGULAN (6 CARDS GRID) ================== */
.keunggulan-section {
    padding: 100px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.keunggulan-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.keunggulan-card {
    background-color: var(--white);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px 15px;
    transition: all 0.3s ease;
}

.keunggulan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(14, 58, 47, 0.05);
    border-color: var(--accent-orange);
}

.k-icon i {
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.keunggulan-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.keunggulan-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ================== TIMELINE METODE ================== */
.timeline-section {
    padding: 100px 0;
    background-color: var(--primary-color);
    position: relative;
}

.timeline-wrapper {
    position: relative;
    margin-top: 80px;
}

.timeline-line {
    position: absolute;
    top: 50px;
    left: 5%;
    right: 5%;
    height: 2px;
    background-color: rgba(247, 197, 102, 0.3);
    z-index: 1;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
}

.timeline-item {
    text-align: center;
}

.timeline-number-box {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.arabic-accent {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 5px;
}

.num-circle {
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto;
}

.timeline-item h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.timeline-item p {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.4;
}

/* ================== PILIHAN PROGRAM ================== */
.program-section {
    padding: 100px 0;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.program-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: left;
    transition: all 0.3s ease;
}

.program-card:hover {
    box-shadow: 0 15px 35px rgba(14, 58, 47, 0.08);
    transform: translateY(-5px);
}

.p-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.p-content {
    padding: 25px;
}

.p-content h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.p-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    min-height: 40px;
}

.btn-text {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ================== STATS BAR ================== */
.stats-bar-section {
    background-color: var(--primary-color);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stats-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--white);
}

.stats-item i {
    font-size: 32px;
    color: var(--accent-gold);
}

.stats-item h4 {
    font-size: 26px;
    font-weight: 800;
}

.stats-item p {
    font-size: 13px;
    color: #cbd5e1;
}

/* ================== GALERI KEGIATAN ================== */
.galeri-section {
    padding: 100px 0;
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.galeri-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ================== TESTIMONI (MODERN GRID FIXED) ================== */
.testimoni-section {
    padding: 100px 0;
    background-color: #FAF8F5; 
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Pastikan container grid memaksa konten di dalamnya rata kiri */
.testimoni-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch; /* Membuat tinggi semua kartu sama rata */
    margin-top: 40px;
    text-align: left; /* Mengunci teks agar tidak lari ke tengah */
}

.testi-modern-card {
    background-color: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(235, 220, 185, 0.6);
    box-shadow: 0 4px 20px rgba(14, 58, 47, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Menjaga profile tetap di bawah, teks di atas */
    align-items: flex-start; /* Memaksa semua elemen di dalam kartu rata kiri */
    text-align: left;
}

.testi-modern-card.featured {
    border-top: 4px solid var(--accent-orange);
}

.testi-modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(14, 58, 47, 0.06);
    border-color: var(--accent-gold);
}

.testi-stars {
    color: #F7C566; 
    font-size: 14px;
    display: flex;
    gap: 4px;
    margin-bottom: 16px; /* Memberi jarak ke teks di bawahnya */
}

.testi-text {
    font-size: 14.5px;
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 24px;
    text-align: left;
    width: 100%;
}

/* Bagian User Profile di dalam kartu */
.testi-user {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    border-top: 1px solid rgba(235, 220, 185, 0.4);
    padding-top: 16px;
    text-align: left;
}

.testi-user img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* Mencegah foto gepeng */
}

.testi-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.testi-info h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.testi-info p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
}

/* ================== RESPONSIVE MEDIA QUERIES ================== */
@media (max-width: 1024px) {
    .testimoni-modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimoni-modern-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.nav-arrow {
    background-color: var(--primary-color);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testi-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.testi-dots .dot {
    width: 8px;
    height: 8px;
    background-color: #cbd5e1;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.testi-dots .dot.active {
    background-color: var(--accent-orange);
    width: 20px;
    border-radius: 4px;
}

/* ================== FAQ ACCORDION ================== */
.faq-section {
    padding: 100px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.faq-left img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 5px solid var(--white);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.accordion-group {
    margin-top: 30px;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-header h3 {
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 700;
}

.accordion-header i {
    font-size: 14px;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-body p {
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 15px;
}

.accordion-item.active .accordion-body {
    max-height: 200px;
}

.accordion-item.active .accordion-header i {
    transform: rotate(45deg); /* Mengubah '+' jadi 'x' */
}

/* ================== CTA BANNER FOOTER ================== */
.banner-cta-section {
    padding-bottom: 50px;
}

.banner-cta-card {
    background-color: var(--primary-color);
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--white);
    background-image: radial-gradient(circle at top right, rgba(247, 197, 102, 0.1), transparent);
}

.banner-cta-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    max-width: 700px;
    margin: 0 auto 30px auto;
    line-height: 1.4;
}

/* ================== FOOTER CONTACT ================== */
.footer-section {
    padding: 60px 0 30px 0;
    background-color: #FAF6EF;
}

.footer-contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.contact-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.contact-box .c-icon {
    font-size: 28px;
    color: var(--accent-orange);
    margin-bottom: 15px;
}

.contact-box h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-box p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-copyright {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ================== RESPONSIVE MEDIA QUERIES (UPDATED) ================== */

@media (max-width: 1024px) {
    /* Mencegah tabrakan layout di tablet */
    .keunggulan-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .timeline-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    .timeline-line {
        display: none; /* Menyembunyikan garis karena arah grid telah dipisah */
    }
    .galeri-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Style Navbar Mobile */
    .nav-menu { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-light);
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        border-bottom: 1px solid var(--border-color);
        gap: 15px;
    }
    
    /* State menu aktif dari JS */
    .nav-menu.show {
        display: flex;
    }
    
    .menu-toggle { 
        display: block; 
    }
    
    .hero-grid, .about-grid, .faq-grid, .footer-contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }

    .image-frame img {
        margin: 0 auto;
    }

    .dome-image-wrapper img {
        height: 350px;
    }

    .hero-text h1 { 
        font-size: 38px; 
    }

    .summary-bar-section { 
        margin-top: -30px; 
    }

    .stats-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }

    .testimoni-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .testimoni-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .keunggulan-grid, .timeline-grid, .galeri-grid, .summary-grid, .program-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 28px;
    }
    .hero-text h1 {
        font-size: 30px;
    }
    .banner-cta-card h2 {
        font-size: 22px;
    }
    .nav-action .btn-cta {
        display: none; /* Sembunyikan tombol CTA navbar di HP sangat kecil */
    }
}