:root {
    --green-deep: #1B4332;
    --green-mid: #2D6A4F;
    --green-light: #52B788;
    --gold: #C9A84C;
    --gold-light: #E8C96B;
    --cream: #F9F5EC;
    --cream-dark: #EDE8DA;
    --text-dark: #1A1A1A;
    --text-muted: #6B7280;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ── NAVBAR ── */
.navbar-brand-text {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white) !important;
    line-height: 1.2;
}

.navbar-brand-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--gold-light);
    text-transform: uppercase;
}

.navbar {
    background: var(--green-deep) !important;
    border-bottom: 2px solid var(--gold);
}

.nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-light) !important;
}

/* ── HERO ── */
.hero {
    background: linear-gradient(160deg, var(--green-deep) 0%, var(--green-mid) 60%, #40916C 100%);
    min-height: 88vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='1'%3E%3Cpath d='M30 0 L36 12 L48 6 L42 18 L54 24 L42 30 L48 42 L36 36 L30 48 L24 36 L12 42 L18 30 L6 24 L18 18 L12 6 L24 12Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-arabic {
    font-family: 'Amiri', serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    color: var(--gold);
    opacity: 0.9;
    line-height: 1.6;
    text-align: right;
    direction: rtl;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-family: 'Lora', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
}

.hero-title span {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    max-width: 520px;
    line-height: 1.7;
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 168, 76, 0.18);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 2px;
    margin-bottom: 1.2rem;
}

.btn-hero-primary {
    background: var(--gold);
    color: var(--green-deep);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 3px;
    transition: all 0.25s;
    text-decoration: none;
}

.btn-hero-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    transition: all 0.25s;
    text-decoration: none;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.hero-stat-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 6px;
    padding: 1.2rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(8px);
}

.hero-stat-num {
    font-family: 'Lora', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.hero-stat-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
}

.hero-mosque-icon {
    position: absolute;
    right: -2%;
    bottom: 0;
    width: 42%;
    max-width: 520px;
    opacity: 0.07;
}

/* ── DIVIDER ── */
.arabesque-divider {
    text-align: center;
    color: var(--gold);
    font-size: 1.4rem;
    opacity: 0.55;
    letter-spacing: 0.5em;
    padding: 0.5rem 0;
}

/* ── SECTION TITLES ── */
.section-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Lora', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--green-deep);
    line-height: 1.25;
}

.section-title .accent {
    color: var(--gold);
}

.gold-rule {
    width: 48px;
    height: 3px;
    background: var(--gold);
    border: none;
    margin: 0.9rem 0 1.2rem;
}

/* ── STATISTIK CARDS ── */
.stat-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    border-top: 4px solid var(--gold);
    box-shadow: 0 2px 16px rgba(27, 67, 50, 0.07);
    transition: transform 0.25s, box-shadow 0.25s;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(27, 67, 50, 0.12);
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--gold);
    font-size: 1.4rem;
}

.stat-card-num {
    font-family: 'Lora', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--green-deep);
}

.stat-card-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ── TIPE DAYAH CARDS ── */
.tipe-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(27, 67, 50, 0.07);
    transition: all 0.28s;
    height: 100%;
}

.tipe-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(27, 67, 50, 0.14);
}

.tipe-card-header {
    background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
    padding: 1.5rem;
    position: relative;
}

.tipe-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--green-deep);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    margin-bottom: 0.75rem;
}

.tipe-card-title {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}

.tipe-card-body {
    padding: 1.4rem 1.5rem;
}

.tipe-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 0.5rem;
}

.tipe-feature i {
    color: var(--green-mid);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── DAYAH LIST CARDS ── */
.dayah-card {
    background: var(--white);
    border-radius: 8px;
    border-left: 5px solid var(--green-mid);
    padding: 1.4rem 1.6rem;
    box-shadow: 0 2px 10px rgba(27, 67, 50, 0.06);
    transition: all 0.25s;
    height: 100%;
}

.dayah-card:hover {
    border-left-color: var(--gold);
    box-shadow: 0 8px 28px rgba(27, 67, 50, 0.11);
    transform: translateY(-3px);
}

.dayah-card-name {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green-deep);
    margin-bottom: 0.3rem;
}

.dayah-card-loc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.dayah-card-loc i {
    color: var(--gold);
}

.dayah-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    background: var(--cream);
    color: var(--green-deep);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.dayah-meta span i {
    font-size: 0.7rem;
}

/* ── TABLE SECTION ── */
.table-section {
    background: var(--white);
}

#tabelDayah thead {
    background: var(--green-deep);
    color: var(--white);
}

#tabelDayah thead th {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    padding: 1rem 1.2rem;
}

#tabelDayah tbody tr {
    transition: background 0.15s;
}

#tabelDayah tbody tr:hover {
    background: var(--cream);
}

#tabelDayah td {
    font-size: 0.875rem;
    vertical-align: middle;
    padding: 0.9rem 1.2rem;
}

.badge-tipe {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
}

.badge-tafidz {
    background: #FEF3C7;
    color: #92400E;
}

.badge-salafi {
    background: #D1FAE5;
    color: #065F46;
}

.badge-modern {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-terpadu {
    background: #EDE9FE;
    color: #5B21B6;
}

/* ── CHART SECTION ── */
.chart-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.8rem;
    box-shadow: 0 2px 14px rgba(27, 67, 50, 0.07);
}

.chart-card-title {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green-deep);
    margin-bottom: 1.2rem;
}

/* ── FOOTER ── */
footer {
    background: var(--green-deep);
    border-top: 2px solid var(--gold);
    color: rgba(255, 255, 255, 0.75);
}

footer .footer-title {
    font-family: 'Lora', serif;
    color: var(--white);
    font-weight: 700;
}

footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.875rem;
}

footer a:hover {
    color: var(--gold-light);
}

footer .footer-arabic {
    font-family: 'Amiri', serif;
    color: var(--gold);
    font-size: 1.6rem;
    direction: rtl;
    text-align: center;
    opacity: 0.8;
}

/* ── MISC ── */
section {
    padding: 80px 0;
}

.bg-cream {
    background: var(--cream);
}

.bg-green-deep {
    background: var(--green-deep);
}

.text-gold {
    color: var(--gold);
}

@media (max-width: 768px) {
    section {
        padding: 56px 0;
    }

    .hero {
        min-height: auto;
        padding: 80px 0 60px;
    }

    .hero-mosque-icon {
        display: none;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--cream-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--green-mid);
    border-radius: 3px;
}