body {
    margin: 0;
    font-family: "Georgia", serif;
    background: #f5efe6;
    color: #4b3a2f;
}

/* HERO */
.hero {
    position: relative;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* PENTING */
}

/* overlay HARUS di bawah konten */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.6);
    z-index: 1;
}

/* konten di atas overlay */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 20px;
}


.hero h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.verse {
    font-style: italic;
    margin-top: 15px;
}

/* BUTTON */
.btn-primary {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 28px;
    background: #b08a57;
    color: white;
    text-decoration: none;
    border-radius: 30px;
}

.btn-formulir {
    display: inline-flex;              /* 🔥 */
    align-items: center;               /* 🔥 */
    justify-content: center;           /* 🔥 */

    width: 100%;
    height: 42px;

    background-color: #b08a57;
    color: #ffffff !important;         /* 🔥 wajib */
    font-size: 14px;                   /* 🔥 */
    font-weight: 600;
    text-decoration: none;

    border-radius: 6px;
    transition: background 0.3s ease;
}


/* CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* QUICK MENU */
.quick-menu {
    margin-top: -80px;
}

.menu-row {
    display: flex;
    gap: 20px;
}

.menu-card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    flex: 1;
}

.menu-card h3 {
    margin-bottom: 10px;
}

.menu-card a {
    color: #b08a57;
    text-decoration: none;
    font-weight: bold;
}

/* WELCOME */
.welcome {
    display: flex;
    gap: 40px;
    margin-top: 120px;
    align-items: center;
}

.welcome img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* AGENDA */
.agenda {
    margin-top: 60px;
    text-align: center;
    perspective: 1200px;
}

.agenda-verse {
    font-style: italic;
    margin-bottom: 30px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .menu-row {
        flex-direction: column;
    }

    .welcome {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 30px;
    }
}

/* --- UPDATE BAGIAN NAVBAR --- */
.navbar {
    background: #c3b393;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;

    height: 85px; /* dari 55px → 85px */
}

.navbar-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px; 
    height: 100%;
    display: flex;
    /* Ini akan otomatis menaruh logo di pojok kiri dan menu di pojok kanan */
    justify-content: space-between; 
    align-items: center;
}

.navbar-logo {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: bold;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    position: relative;
    cursor: pointer;
}

.navbar-menu a,
.navbar-menu span {
    text-decoration: none;
    color: #4b3a2f;
    font-size: 15px;
}

/* DROPDOWN */
.dropdown-menu {
    display: none;
    position: absolute;
    list-style: none;
    top: 100%;
    margin-top: 8px;
    left: 0;
    min-width: 200px;
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 8px 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    color: #4b3a2f;
}

.dropdown-menu li a:hover {
    background: #f5efe6;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}


/* SHOW DROPDOWN */
.dropdown:hover > .dropdown-menu {
    display: block;
}

section {
    position: relative;
    z-index: 3;
}
/* RESPONSIVE */
@media (max-width: 900px) {
    .navbar-menu {
        gap: 15px;
        font-size: 14px;
    }
}

/* FOOTER */
.site-footer {
    background: #e8dcc7;
    text-align: center;
    padding: 24px 10px;
    margin-top: 80px;
    font-size: 14px;
    color: #4b3a2f;
}

/* ICON MENU */
.menu-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: #f5efe6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon i {
    font-size: 24px;
    color: #b08a57;
}

/* --- UPDATE BAGIAN LOGO --- */
.navbar-logo {
    /* Menghilangkan kemungkinan adanya padding bawaan */
    padding: 0;
    margin: 0;
}

.navbar-logo .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    padding: 0;
    position: relative;
    overflow: visible; 
}

.navbar-logo .logo-img {
    height: 70px;          /* muat di navbar 85px */
    width: auto;
    display: block;
    object-fit: contain;
    margin: 0;
    background: transparent;
}


.navbar-logo .logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: #4a3728;
    line-height: 1.1;
    max-width: 180px;
    text-transform: uppercase;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }
    .navbar-container {
        padding: 0 15px; /* Jarak aman di pinggir layar HP */
    }
    .navbar-logo .logo-img {
        height: 48px;          /* muat di navbar mobile 60px */
        margin: 0;
    }
    .navbar-logo .logo-text {
        font-size: 0.8rem;
        max-width: 120px;
    }
    .navbar-menu {
        gap: 12px;
    }
}

/* ============================= */
/* SECTION KALENDER + RENUNGAN */
/* ============================= */

.calendar-section {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    margin: 100px auto;
    max-width: 1000px;
    padding: 0 20px;
}

/* WIDGET IMANKATOLIK */
.calendar-widget {
    flex-shrink: 0;
}

.calendar-widget table {
    border: 1px solid #e8dcc7 !important;
    font-family: "Georgia", serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.calendar-widget td {
    padding: 10px;
}

/* RENUNGAN */
.calendar-side-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    max-width: 380px;
}

.calendar-side-card h3 {
    font-size: 20px;
    margin-bottom: 14px;
}

.verse-text {
    font-style: italic;
    font-size: 15px;
    line-height: 1.7;
}

.verse-src {
    font-size: 13px;
    margin-top: 6px;
    color: #7a6a58;
}

.btn-secondary {
    display: inline-block;
    margin-top: 18px;
    color: #b08a57;
    text-decoration: none;
    font-weight: bold;
}


/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 768px) {
    .calendar-section {
        flex-direction: column;
        align-items: center;
        margin-top: 70px;
    }

    .calendar-side-card {
        max-width: 100%;
        text-align: center;
    }
}

.form-title {
    min-height: 56px;       /* 🔥 bikin tinggi judul seragam */
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.form-code {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #4b3a2f;
}

.form-action {
    margin-top: auto;      /* 🔥 selalu di bawah */
}

.menu-row {
    display: flex;
    flex-wrap: wrap;            /* 🔥 INI KUNCINYA */
    gap: 24px;
    justify-content: center;
}

/* 4 kolom desktop */
.menu-card {
    width: calc(25% - 24px);    /* 4 ke samping */
    min-width: 240px;
    max-width: 260px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 🔥 rata atas–bawah */
    text-align: center;
}

/* Tablet */
@media (max-width: 1024px) {
    .menu-card {
        width: calc(33.333% - 24px);
    }
}

/* HP */
@media (max-width: 768px) {
    .menu-card {
        width: 100%;
    }
}

.pengumuman-book {
    margin-top: 10px;
    margin-bottom: 10px;
    perspective: 1200px;
}

.pengumuman-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* TABLET */
@media (max-width: 992px) {
    .pengumuman-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 576px) {
    .pengumuman-grid {
        grid-template-columns: 1fr;
    }
}

.pengumuman-card img {
    height: 200px;
}

/* MOBILE */
@media (max-width: 576px) {
    .pengumuman-card img {
        height: 180px;
    }

    .pengumuman-card h3 {
        font-size: 16px;
    }

    .pengumuman-card p {
        font-size: 13px;
    }
}

.nikah-pengumuman {
    display: flex;
    align-items: center;      /* center vertikal */
    justify-content: center;  /* center horizontal */
    text-align: center;
}

.judul-halaman {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.judul-halaman {
    font-weight: 700;
    letter-spacing: 2px;
    color: #3a3a3a;
}

/* Card utama */
.jadwal-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb; /* soft border */
    transition: all 0.25s ease;
}

.jadwal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* Header kategori */
.jadwal-header {
    /* background: #f3f4f6; hampir sama dengan bg default */
    background: #b08a57;
    border-radius: 14px;
    padding: 16px;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
    border-bottom: 1px solid #e5e7eb;
}

/* Body */
.jadwal-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 10px;
}

/* Item jadwal */
.jadwal-item {
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: #fafafa; /* soft */
    border: 1px solid #f0f0f0;
    transition: 0.2s;
    text-align: center;
}

.jadwal-item:hover {
    background: #f5f5f5;
}

.judul-misa {
    font-weight: 600;
    font-size: 15px;
    color: #2f2f2f;
}

.hari {
    font-size: 14px;
    color: #666;
}

.jam {
    margin-top: 4px;
    font-weight: 500;
    color: #444;
}

/* ========================= */
/* GALERI */
/* ========================= */

.galeri-page {
    margin-top: 80px;
    margin-bottom: 80px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.galeri-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #4b3a2f;
    transition: transform .2s ease;
}

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

.galeri-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.galeri-card h3 {
    font-size: 16px;
    padding: 15px;
}

.pagination-wrap {
    margin-top: 40px;
    text-align: center;
}

.arsip-btn-wrap {
    margin-top: 50px;
    text-align: center;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 900px) {
    .galeri-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .galeri-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   PAGINATION FIX (GALERI)
================================ */
.pagination-wrap {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: #fff;
    color: #4b3a2f;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #ddd;
}

/* Active */
.pagination li.active span {
    background: #4b3a2f;
    color: #fff;
    font-weight: bold;
}

/* Disabled */
.pagination li.disabled span {
    opacity: 0.4;
}

/* FIX SVG ICON SIZE */
.pagination svg {
    width: 14px !important;
    height: 14px !important;
}

@media (max-width: 600px) {
    .pagination li a,
    .pagination li span {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 8px;
    }
}

/* ===== MODAL IMAGE ===== */
.modal {
    display: none;
    position: fixed;          /* WAJIB */
    inset: 0;                 /* top right bottom left = 0 */
    background: rgba(0,0,0,0.8);
    z-index: 9999;            /* WAJIB: di atas pagination */
    justify-content: center;
    align-items: center;
}

.modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    cursor: zoom-out;
}


.galeri-search {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
}

.galeri-search input {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 260px;
}

.galeri-search button {
    padding: 10px 14px;
    background: #6b4e2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.galeri-search button:hover {
    opacity: .9;
}

.empty {
    text-align: center;
    width: 100%;
    opacity: .7;
}

.sejarah-book {
    margin-top: 40px;
    perspective: 1200px;
}

.book {
    position: relative;
}

.page {
    width: 100%;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}



/* ANIMASI FLIP */
@keyframes flipIn {
    from {
        transform: rotateY(-90deg);
        opacity: 0;
    }
    to {
        transform: rotateY(0);
        opacity: 1;
    }
}

/* GAMBAR FULL */
.page-image {
    width: 100%;
    height: 100%;
    flex: 1;
    padding: 0;           /* ❗ penting */
    background: #000;     /* biar rapi kalau ada sisa */
    display: flex;
}


.page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* 🔥 bikin gambar penuh */
    object-position: center;
}

/* DESKRIPSI */
.page-content {
    padding: 30px;
}

.page-content h2 {
    margin-bottom: 15px;
}

.page-content p {
    line-height: 1.8;
    text-align: justify;
}

/* NAVIGASI */

.book-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.book-nav a {
    background: #6b4f3f;
    color: white;
    padding: 12px 20px;
    border-radius: 50%;
    font-size: 18px;
}

@media (max-width: 768px) {
    .page {
        min-height: 92vh;
    }

    .page-image {
        height: 65vh;
    }
}

/* =============================
   FORMULIR: 1 baris = 3 kotak
============================= */
.menu-row.formulir-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
    /* opsional: biar kotak tidak terlalu lebar
    max-width: 900px;
    margin-left: auto;
    margin-right: auto; */
}

/* reset ukuran dari aturan .menu-card global (yang 4 kolom) */
.formulir-grid .menu-card {
    width: auto;
    min-width: 0;
    max-width: none;
    flex: none;
}

/* Tablet: 2 kotak */
@media (max-width: 992px) {
    .menu-row.formulir-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* HP: 1 kotak */
@media (max-width: 576px) {
    .menu-row.formulir-grid {
        grid-template-columns: 1fr;
    }
}