:root {
    --emerald-dark: #065f46;
    --emerald-main: #059669;
    --emerald-soft: #ecfdf5;
    --sky-main: #0284c7;
    --sky-soft: #e0f2fe;
    --sage-bg: #f4f9f7;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --gold-accent: #d97706;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    background-color: var(--sage-bg);
    color: var(--text-dark);
    margin: 0;
}

.font-arabic {
    font-family: 'Amiri', serif;
}

/* Navbar */
.navbar-madrasah {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.12);
    box-shadow: 0 4px 20px rgba(6, 95, 70, 0.05);
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--emerald-main) !important;
    background-color: var(--emerald-soft);
}

/* Hero Section dengan Background Sekolah Sore Dinamis */
.hero-sore {
    position: relative;
    min-height: 84vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.84) 0%, rgba(3, 105, 161, 0.72) 60%, rgba(15, 23, 42, 0.65) 100%);
}

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

.badge-sore {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(6px);
    color: #fef3c7;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Cards & Sections */
.section-padding {
    padding: 76px 0;
}

.section-title {
    color: var(--emerald-dark);
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.card-sejuk {
    background: #ffffff;
    border: 1px solid rgba(5, 150, 105, 0.12);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(6, 95, 70, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.card-sejuk:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(6, 95, 70, 0.1);
}

/* Foto Kepala Madrasah */
.foto-kepala-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 4px solid #ecfdf5;
    box-shadow: 0 12px 28px rgba(6, 95, 70, 0.14);
    background: #ecfdf5;
}

.foto-kepala-img {
    width: 100%;
    height: 310px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Galeri Foto-Foto Beranda */
.galeri-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(6, 95, 70, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.14);
    background: #fff;
    height: 100%;
    transition: transform 0.25s ease;
}

.galeri-card:hover {
    transform: translateY(-5px);
}

.galeri-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.galeri-card:hover .galeri-img {
    transform: scale(1.04);
}

.umkm-img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    background-color: #ecfdf5;
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}

.icon-box-emerald {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, #d1fae5, #e0f2fe);
    color: var(--emerald-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.btn-emerald {
    background: linear-gradient(135deg, var(--emerald-main), var(--emerald-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 11px 24px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-emerald:hover {
    background: linear-gradient(135deg, var(--emerald-dark), #064e3b);
    color: #fff;
    transform: translateY(-1px);
}

.btn-sky-outline {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.7);
    border-radius: 12px;
    padding: 11px 24px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.btn-sky-outline:hover {
    background: #ffffff;
    color: var(--emerald-dark);
}

.kepala-badge {
    background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
    border-left: 4px solid var(--emerald-main);
    border-radius: 12px;
    padding: 14px 18px;
}

footer {
    background: linear-gradient(135deg, #064e3b, #0c4a6e);
    color: #e2e8f0;
}


/* Carousel Slide Foto Kegiatan Beranda */
.slider-kegiatan-wrap {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(6, 95, 70, 0.14);
    border: 3px solid #ffffff;
    background: #064e3b;
}

.slide-kegiatan-item {
    position: relative;
    height: 460px;
}

.slide-kegiatan-img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
}

.slide-kegiatan-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 44, 34, 0.88) 0%, rgba(2, 44, 34, 0.35) 55%, rgba(0, 0, 0, 0.12) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    color: #ffffff;
}

@media (max-width: 768px) {
    .slide-kegiatan-item, .slide-kegiatan-img {
        height: 320px;
    }
    .slide-kegiatan-overlay {
        padding: 1.4rem;
    }
}
