* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    color: #333;
}


/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* CARD */
.card {
    background: white;
    padding: 24px;
    border-radius: 12px;

    margin-bottom: 24px;

    box-shadow:
        0 2px 10px rgba(0,0,0,0.05);
}

/* TITLE */
h1 {
    margin-bottom: 20px;
}

h2 {
    margin-bottom: 10px;
}

/* BUTTON */
.btn {
    display: inline-block;

    background: #3498db;
    color: white;

    padding: 10px 16px;

    border-radius: 8px;

    text-decoration: none;

    border: none;

    cursor: pointer;

    transition: 0.3s;
    font-weight: 600;
}

.btn:hover {
    background: #2980b9;
}

/* FORM */
input[type="text"] {
    width: 100%;

    padding: 12px;

    border: 1px solid #ccc;

    border-radius: 8px;

    margin-top: 8px;
}

button {
    background: #3498db;
    color: white;

    border: none;

    padding: 12px 20px;

    border-radius: 8px;

    cursor: pointer;
}

button:hover {
    background: #2980b9;
}

/* LINKS */
a {
    text-decoration: none;
}

/* QUILL */
.ql-container {
    background: white;
    min-height: 300px;
}

/* GRID */
.grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;

    margin-top: 20px;
}

/* SECTION */
section {
    margin-bottom: 60px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    nav {
        flex-direction: column;
    }

}

.card-image {
    width: 100%;
    height: 220px;

    object-fit: cover;

    border-radius: 12px;

    margin-bottom: 15px;
}

/* =========================
   ADMIN LAYOUT
========================= */

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 260px;

    background: #1e293b;

    color: white;

    padding: 30px 20px;
}

.sidebar-title {
    margin-bottom: 40px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-nav a {
    color: white;

    padding: 12px 16px;

    border-radius: 10px;

    transition: 0.2s;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.1);
}

/* CONTENT */
.admin-content {
    flex: 1;

    background: #f4f6f9;

    padding: 40px;
}

/* DASHBOARD GRID */
.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;

    margin-top: 30px;
}

/* STAT CARD */
.stat-card {
    background: white;

    padding: 30px;

    border-radius: 16px;

    box-shadow:
        0 2px 10px rgba(0,0,0,0.05);
}

.stat-card h2 {
    font-size: 40px;

    margin-top: 10px;
}

/* QUICK ACTION */
.quick-actions {
    display: flex;
    gap: 20px;

    margin-top: 30px;
}

/* RESPONSIVE ADMIN */
@media (max-width: 768px) {

    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

}

/* =========================
   NAVBAR
========================= */

.navbar {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 20px 40px;

    background: white;

    position: sticky;
    top: 0;

    z-index: 999;

    box-shadow:
        0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.navbar nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar nav a {
    font-weight: 500;
}

.menu-toggle {
    display: none;

    font-size: 28px;

    background: none;
    border: none;

    cursor: pointer;
}

/* MOBILE NAVBAR */
@media (max-width: 768px) {

    .navbar {
        padding: 20px;
    }

    .menu-toggle {
        display: block;
    }

    .navbar nav {

        display: none;

        position: absolute;

        top: 80px;
        left: 0;

        width: 100%;

        background: white;

        flex-direction: column;

        padding: 20px;

        box-shadow:
            0 5px 20px rgba(0,0,0,0.1);
    }

    .navbar nav.active {
        display: flex;
    }

}

/* =========================
   HERO
========================= */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    background-image:
        url('../img/bg-gereja.png');

    background-size: cover;
    background-position: center;

    overflow: hidden;
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            rgba(0,0,0,0.6),
            rgba(0,0,0,0.5)
        );
}

.hero-content {
    position: relative;

    z-index: 2;

    color: white;

    max-width: 700px;

    padding: 20px;
}

.hero-subtitle {
    font-size: 18px;

    letter-spacing: 2px;

    text-transform: uppercase;

    margin-bottom: 20px;

    opacity: 0.9;
}

.hero-title {
    font-size: 64px;

    line-height: 1.1;

    margin-bottom: 25px;
}

.hero-text {
    font-size: 20px;

    color: rgba(255,255,255,0.9);

    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;

    gap: 20px;

    flex-wrap: wrap;
}

/* MOBILE HERO */
@media (max-width: 768px) {

    .hero {
        min-height: 80vh;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-text {
        font-size: 18px;
    }

}

/* SECTION */
.section-title {
    font-size: 40px;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    margin-bottom: 40px;
}

/* CARD MODERN */
.card {
    overflow: hidden;

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 220px;

    object-fit: cover;
}

.card-body {
    padding: 24px;
}

.card-title {
    font-size: 24px;

    margin-bottom: 10px;
}

.card-text {
    color: #666;

    line-height: 1.7;
}

/* ABOUT */
.about-section {
    padding: 100px 0;
}

.about-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(300px, 1fr));

    gap: 50px;

    align-items: center;
}

.about-text {
    line-height: 1.8;

    color: #555;

    margin-top: 20px;
}

.about-image {
    width: 100%;

    border-radius: 20px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.1);
}

/* =========================
   FOOTER
========================= */

.footer {
    background: #111827;

    color: white;

    margin-top: 100px;

    padding-top: 70px;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 40px;
}

.footer-logo {
    font-size: 32px;

    margin-bottom: 20px;
}

.footer-title {
    margin-bottom: 20px;
}

.footer-text {
    color: rgba(255,255,255,0.7);

    line-height: 1.8;
}

.footer-links {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);

    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 50px;

    border-top:
        1px solid rgba(255,255,255,0.1);

    padding: 25px;

    text-align: center;

    color: rgba(255,255,255,0.6);

    font-size: 14px;
}

/* =========================
   PREMIUM CARD
========================= */

.event-card,
.warta-card {
    border-radius: 24px;

    overflow: hidden;

    background: white;

    transition: 0.35s;

    position: relative;
}

.event-card:hover,
.warta-card:hover {

    transform:
        translateY(-10px);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.12);
}

/* IMAGE */
.event-image {
    width: 100%;
    height: 240px;

    object-fit: cover;

    transition: 0.5s;
}

.event-card:hover .event-image {
    transform: scale(1.05);
}

/* BODY */
.card-body {
    padding: 28px;
}

/* TITLE */
.card-title {
    font-size: 26px;

    line-height: 1.3;

    margin-bottom: 15px;
}

/* TEXT */
.card-text {
    color: #555;

    line-height: 1.8;

    margin-bottom: 20px;
}

/* BUTTON DARK */
.btn-dark {
    background: #111827;

    color: white;
}

.btn-dark:hover {
    background: #000;
}

/* SECTION SPACING */
.section {
    padding: 80px 0;
}

/* =========================
   DETAIL PAGE
========================= */

.detail-hero {
    position: relative;

    height: 70vh;

    overflow: hidden;

    display: flex;
    align-items: end;
}

.detail-hero-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.detail-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            rgba(0,0,0,0.2),
            rgba(0,0,0,0.7)
        );
}

.detail-content {
    position: relative;

    z-index: 2;

    color: white;

    padding-bottom: 60px;
}

.detail-meta {
    font-size: 15px;

    opacity: 0.9;

    margin-bottom: 15px;

    letter-spacing: 1px;
}

.detail-title {
    font-size: 64px;

    line-height: 1.1;

    max-width: 900px;
}

.detail-title.dark {
    color: #111827;
}

.detail-body-section {
    padding: 80px 0;
}

.detail-narrow {
    max-width: 850px;
}

.detail-content-text {
    margin-top: 40px;

    line-height: 2;

    color: #444;

    font-size: 18px;
}

.detail-content-text p {
    margin-bottom: 20px;
}

.detail-content-text img {
    width: 100%;

    border-radius: 20px;

    margin: 30px 0;
}

/* MOBILE */
@media (max-width: 768px) {

    .detail-title {
        font-size: 42px;
    }

    .detail-content-text {
        font-size: 16px;
    }

}

/* =========================
   WARTA DETAIL
========================= */

.detail-thumbnail {
    width: 100%;

    max-height: 500px;

    object-fit: cover;

    border-radius: 20px;

    margin-bottom: 30px;
}

.detail-title {
    font-size: 48px;

    line-height: 1.2;

    margin-bottom: 10px;
}

.detail-date {
    color: #777;
}

.warta-content {
    background: white;

    padding: 40px;

    border-radius: 20px;

    line-height: 1.8;

    font-size: 18px;

    box-shadow:
        0 2px 10px rgba(0,0,0,0.05);
}

.warta-content img {
    max-width: 100%;
    border-radius: 12px;
}

.pdf-viewer {
    background: white;

    padding: 20px;

    border-radius: 20px;

    box-shadow:
        0 2px 10px rgba(0,0,0,0.05);
}

/* MOBILE */
@media (max-width: 768px) {

    .detail-title {
        font-size: 34px;
    }

    .warta-content {
        padding: 25px;
    }

}

/* =========================
   PAGINATION
========================= */

.pagination {

    display: flex;

    gap: 10px;

    justify-content: center;

    margin-top: 50px;

    flex-wrap: wrap;
}

.pagination-btn {

    padding: 12px 18px;

    background: white;

    border-radius: 10px;

    color: #111827;

    font-weight: 600;

    transition: 0.3s;

    box-shadow:
        0 2px 10px rgba(0,0,0,0.05);
}

.pagination-btn:hover {

    transform: translateY(-2px);

    background: #111827;

    color: white;
}

.pagination-btn.active {

    background: #111827;

    color: white;
}

/* =========================
   SEARCH FORM
========================= */

.search-form {

    display: flex;

    gap: 12px;

    margin-bottom: 30px;

    flex-wrap: wrap;
}

.search-input {

    flex: 1;

    min-width: 250px;
}

/* =========================
   RICH CONTENT
========================= */

.warta-content h1,
.warta-content h2,
.warta-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;

    line-height: 1.3;

    color: #111827;
}

.warta-content h1 {
    font-size: 42px;
}

.warta-content h2 {
    font-size: 32px;
}

.warta-content h3 {
    font-size: 26px;
}

.warta-content p {
    margin-bottom: 20px;
}

.warta-content blockquote {

    border-left: 4px solid #2563eb;

    padding-left: 20px;

    margin: 30px 0;

    color: #555;

    font-style: italic;
}

.warta-content pre {

    background: #111827;

    color: white;

    padding: 20px;

    border-radius: 12px;

    overflow-x: auto;

    margin: 30px 0;
}

.warta-content a {
    color: #2563eb;
}

.warta-content ul,
.warta-content ol {

    padding-left: 30px;

    margin-bottom: 20px;
}

.warta-content img {

    max-width: 100%;

    border-radius: 16px;

    margin: 30px 0;
}

/* =========================
   FLASH MESSAGE
========================= */

.flash-message {

    padding: 16px 20px;

    border-radius: 12px;

    margin-bottom: 25px;

    font-weight: 600;
}

.flash-success {

    background: #dcfce7;
    color: #166534;

    border: 1px solid #86efac;
}

.flash-error {

    background: #fee2e2;
    color: #991b1b;

    border: 1px solid #fca5a5;
}

/* ========================================= */
/* ESTETIK PROFILE GEREJA ANIMASI SCROLL     */
/* ========================================= */

/* Kondisi awal sebelum elemen masuk layar (sembunyi & sedikit turun) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Kondisi saat elemen tersorot layar (aktif) */
.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Kartu atau Kotak Profil yang estetik */
.profile-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Efek Hover: Mengambang ke atas pelan-pelan saat kursor mendekat */
.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Foto Gembala / Gereja dengan efek zoom halus saat hover */
.profile-img-wrapper {
    overflow: hidden;
    border-radius: 16px;
}

.profile-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Efek gambar ikut bergerak/zoom lembut saat di-hover */
.profile-card:hover .profile-img {
    transform: scale(1.03);
}

/* ========================================= */
/* TATA LETAK FLEKSIBEL PROFIL (DESKTOP VS HP) */
/* ========================================= */

/* Styling Dasar untuk Desktop (Kiri - Kanan) */
.profile-flex-container {
    display: flex;
    align-items: center;
    gap: 40px; /* Jarak antara foto dan teks */
}

.profile-flex-container .profile-img-col {
    flex: 0 0 40%; /* Lebar kolom foto sekitar 40% */
}

.profile-flex-container .profile-text-col {
    flex: 1; /* Sisa ruang untuk teks */
    text-align: left; /* Rata kiri di desktop */
}

/* KHUSUS LAYAR HP (Maksimal Lebar 768px) */
@media (max-width: 768px) {
    .profile-flex-container {
        flex-direction: column !important; /* Ubah arah dari menyamping jadi ke bawah (vertikal) */
        text-align: center !important;     /* Paksa semua teks jadi rata tengah */
        gap: 20px !important;
    }

    .profile-flex-container .profile-img-col {
        width: 100% !important;            /* Lebar foto jadi penuh */
    }

    .profile-flex-container .profile-text-col {
        text-align: center !important;     /* Teks deskripsi dan judul jadi di tengah */
    }

    /* Kecilkan sedikit ukuran font judul profil di HP agar pas */
    .profile-card h3 {
        font-size: 20px !important;
    }
}