/* ============================================================
   style.css — Kemenag Bontang
   File CSS terpusat. Jangan hapus bagian apapun dari sini.
   Dipanggil dari: includes/header.php
   ============================================================ */


/* ================= VARIABEL WARNA ================= */
:root {
    --green-dark: #0f5132;
    --green-main: #198754;
    --green-soft: #157347;
    --green-light: #e9f7ef;
}


/* ================= TOPBAR (minimalist modern) ================= */
.topbar {
    background: #ffffff;
    color: #6b7280;
    font-size: 12.5px;
    letter-spacing: 0.2px;
    border-bottom: 1px solid #edf0ee;
}

.topbar .topbar-info {
    display: flex;
    align-items: center;
    gap: 22px;
}

.topbar .topbar-info span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.topbar .topbar-info i {
    font-size: 13px;
    color: var(--green-main);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-divider {
    display: block;
    width: 1px;
    height: 16px;
    background: #e3e8e5;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.social-icons a {
    width: 26px;
    height: 26px;
    background: transparent;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9aa1a6;
    margin-left: 2px;
    font-size: 13px;
    transition: color 0.2s ease, background 0.2s ease;
}

.social-icons a:hover {
    background: var(--green-light);
    color: var(--green-main);
    transform: none;
}


/* ================= MAIN HEADER (logo + navbar sejajar) ================= */
.main-header {
    background: #ffffff;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.main-header.navbar-scrolled {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Lebar container header dibuat fluid (mengikuti lebar layar secara halus),
   bukan melompat bertingkat seperti .container bawaan Bootstrap (1140px -> 1320px
   di breakpoint 1400px). Tanpa ini, di lebar layar tertentu (mis. 1366px/zoom 100%)
   ruang tiba-tiba jadi sempit dan menu navbar terpental ke baris baru. */
.main-header .container,
.topbar .container {
    width: 100%;
    max-width: 1320px;
}

.main-header .brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.logo-title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.45;
    color: #1a1a1a;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.logo-title .logo-subtitle {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: #8a9088;
    text-transform: none;
    letter-spacing: 0.2px;
    margin-top: 3px;
}

/* ================= NAVBAR (sejajar dengan logo, background transparan) ================= */
.navbar-custom {
    background: transparent;
    transition: all 0.3s ease;
}

.navbar-custom .nav-link {
    color: #1a1a1a !important;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.25s ease;
    position: relative;
}

.navbar-custom .nav-link:hover {
    background: var(--green-light);
    color: var(--green-dark) !important;
}

.navbar-custom .nav-link.active {
    background: var(--green-main);
    color: #ffffff !important;
}

.main-header nav.navbar-custom {
    flex: 1 1 auto;
    justify-content: flex-end;
}

.dropdown-menu {
    border-radius: 12px;
    border: none;
    padding: 10px 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    transition: 0.2s ease;
}

.dropdown-item:hover {
    background: var(--green-light);
    color: var(--green-dark);
}

/* ================= NAVBAR: custom breakpoint (bukan breakpoint baku Bootstrap) =================
   Konten navbar (logo + 8 menu) butuh ruang lebih dari breakpoint bawaan Bootstrap (992/1200px),
   sehingga di antara breakpoint tersebut (mis. saat halaman di-zoom) menu jadi berdesakan.
   Maka breakpoint desktop/mobile navbar diatur manual di 1300px, bukan pakai navbar-expand-*. */
@media (min-width: 1300px) {
    .navbar-custom .navbar-toggler {
        display: none;
    }
    .navbar-custom .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        justify-content: flex-end;
    }
    .navbar-custom .navbar-nav {
        flex-direction: row;
        gap: 4px;
    }
    .navbar-custom .navbar-nav .dropdown-menu {
        position: absolute;
    }
    .navbar-custom .nav-link {
        padding-right: .5rem;
        padding-left: .5rem;
    }
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}


/* ================= PAGE HERO (standar semua halaman) ================= */
/*
   Gunakan class .page-hero untuk semua halaman.
   Menggantikan: bg-success py-5, page-title, dan inline gradient lama.
*/
.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    align-items: center;
    padding: 48px 0;
    background: url('hero.jpg') center center / cover no-repeat;
    color: #fff;
}
.page-hero::before {
    /* overlay gelap agar teks tetap terbaca di atas foto */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
        rgba(6, 36, 24, 0.88) 0%,
        rgba(10, 60, 38, 0.75) 45%,
        rgba(15, 81, 50, 0.55) 100%);
    z-index: 0;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 90% 10%, rgba(255,255,255,.08) 0, transparent 40%),
        radial-gradient(circle at 5%  90%, rgba(255,255,255,.06) 0, transparent 35%);
    pointer-events: none;
    z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.page-hero h2 i {
    color: #d4af37;
    font-size: 0.85em;
    margin-right: 4px;
}
.page-hero p   { margin-bottom: 0; opacity: .9; font-size: 16px; font-weight: 400; }
.page-hero small { opacity: .82; font-size: 14px; }
/* breadcrumb dalam hero */
.page-hero .hero-breadcrumb { font-size: 13px; opacity: .85; margin-bottom: 14px; }
.page-hero .hero-breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.page-hero .hero-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.page-hero .hero-breadcrumb .sep { margin: 0 8px; opacity: .5; }

/* ================= SHARED SIDEBAR (tentang, layanan_detail, ppid) ================= */
.side-nav {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    margin-bottom: 20px;
    position: sticky;
    top: 96px;
    align-self: flex-start;
    z-index: 10;
    max-height: calc(100vh - 116px);
    overflow-y: auto;
}
.side-nav-title {
    background: #0f5132;
    color: #fff;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.side-nav-item {
    border-bottom: 1px solid #f0f0f0;
}
.side-nav-item:last-child { border-bottom: none; }
.side-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: .2s;
}
.side-nav-link i.chev { font-size: 11px; transition: transform .2s; flex-shrink: 0; }
.side-nav-link:hover  { background: #f0f9f4; color: #198754; }
.side-nav-link.active { background: #e9f7ef; color: #0f5132; font-weight: 600; }
.side-nav-link.active i.chev { transform: rotate(90deg); }


/* ================= FOOTER (minimalist modern) ================= */
.footer-clean {
    background: #ffffff;
    border-top: 1px solid #eef0ef;
}

.footer-clean .footer-brand {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
    color: #1a1a1a !important;
}

.footer-clean .footer-desc {
    color: #8a9088;
    line-height: 1.7;
    font-size: 13px;
}

.footer-clean h6 {
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #1a1a1a;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: var(--green-main);
    padding-left: 3px;
}

.footer-contact p {
    color: #6b7280;
    font-size: 13.5px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-contact i {
    color: var(--green-main);
    font-size: 13px;
    margin-top: 3px;
}

.footer-social-min {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social-min a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e3e8e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 13px;
    transition: 0.2s ease;
}

.footer-social-min a:hover {
    background: var(--green-main);
    border-color: var(--green-main);
    color: #fff;
}

.footer-divider {
    border-top: 1px solid #eef0ef;
}

.footer-bottom-min {
    color: #9aa1a6;
    font-size: 12.5px;
    letter-spacing: 0.2px;
}


/* ================= HALAMAN BERANDA (index.php) ================= */

/* Carousel hero */
.hero-carousel {
    background: linear-gradient(135deg, #f3fbf6 0%, #e6f4ec 100%);
}

.hero-carousel .carousel-inner {
    background: #eef7f2;
}

.hero-carousel .carousel-item {
    height: clamp(360px, 36.45vw, 620px);
    min-height: 360px;
}

.hero-carousel .carousel-item > a {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Aplikasi Kemenag slider */
.aplikasi-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.aplikasi-slider {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 50px;
    align-items: center;
}

.aplikasi-item {
    flex: 0 0 140px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.aplikasi-item img {
    width: 70px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
}

.aplikasi-item span {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.aplikasi-item:hover {
    transform: translateY(-4px);
}

.aplikasi-nav {
    position: absolute;
    background: #198754;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.aplikasi-nav.left  { left: 0; }
.aplikasi-nav.right { right: 0; }

/* Jadwal shalat glass morphism 2.0 — background netral, kotak berwarna */
.jadwal-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 20%, rgba(255,255,255,0.55), transparent 32%),
        radial-gradient(circle at 82% 85%, rgba(148,163,184,0.18), transparent 32%),
        linear-gradient(135deg, #f4f6f8 0%, #eef1f4 50%, #e8ecef 100%);
}

.jadwal-section::before,
.jadwal-section::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(148,163,184,0.14);
    filter: blur(24px);
    pointer-events: none;
}

.jadwal-section::before { left: -70px; top: -90px; }
.jadwal-section::after  { right: -90px; bottom: -110px; }

.jadwal-section .container {
    position: relative;
    z-index: 1;
}

.jadwal-heading p {
    color: #64748b;
    font-size: 15px;
}

.jadwal-heading h4 {
    color: #1e293b !important;
}

.jadwal-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(15,23,42,0.08);
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 8px 20px rgba(15,23,42,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.jadwal-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,0.55), rgba(255,255,255,0.25));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 26px 12px;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(15,23,42,0.08);
    border: 1px solid rgba(255,255,255,0.6);
    transition: 0.3s ease;
    color: #1e293b;
}

.jadwal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.35), transparent 42%);
    opacity: 0.8;
    pointer-events: none;
}

.jadwal-card:hover {
    transform: translateY(-6px);
}

.jadwal-icon,
.jadwal-label,
.jadwal-time {
    position: relative;
    z-index: 1;
}

.jadwal-icon i {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 27px;
    color: #fff;
}

.jadwal-label {
    font-weight: 700;
    font-size: 13px;
    margin-top: 10px;
    letter-spacing: 0.3px;
    opacity: 0.85;
}

.jadwal-time {
    font-size: 24px;
    font-weight: 800;
}

/* ── Aksen hijau senada untuk semua kotak jadwal ── */
.jadwal-card {
    background: linear-gradient(145deg, rgba(16,185,129,0.22), rgba(16,185,129,0.06));
    border-color: rgba(16,185,129,0.30);
    box-shadow: 0 16px 40px rgba(15,118,110,0.14);
}
.jadwal-card:hover {
    box-shadow: 0 22px 50px rgba(15,118,110,0.22);
}
.jadwal-card .jadwal-icon i {
    background: #0f766e;
    box-shadow: 0 8px 18px rgba(15,118,110,0.4);
}
.jadwal-card .jadwal-label { color: #0f766e; }
.jadwal-card .jadwal-time  { color: #065f46; }

/* variasi tone halus per waktu shalat, tetap dalam keluarga warna hijau */
.jadwal-subuh  { background: linear-gradient(145deg, rgba(45,212,191,0.24), rgba(45,212,191,0.06)); border-color: rgba(45,212,191,0.32); }
.jadwal-subuh  .jadwal-icon i { background: #14b8a6; }

.jadwal-dzuhur { background: linear-gradient(145deg, rgba(16,185,129,0.24), rgba(16,185,129,0.06)); border-color: rgba(16,185,129,0.32); }
.jadwal-dzuhur .jadwal-icon i { background: #10b981; }

.jadwal-ashar  { background: linear-gradient(145deg, rgba(5,150,105,0.24), rgba(5,150,105,0.06)); border-color: rgba(5,150,105,0.32); }
.jadwal-ashar  .jadwal-icon i { background: #059669; }

.jadwal-maghrib{ background: linear-gradient(145deg, rgba(4,120,87,0.24), rgba(4,120,87,0.06)); border-color: rgba(4,120,87,0.32); }
.jadwal-maghrib .jadwal-icon i { background: #047857; }

.jadwal-isya   { background: linear-gradient(145deg, rgba(6,95,70,0.26), rgba(6,95,70,0.07)); border-color: rgba(6,95,70,0.32); }
.jadwal-isya   .jadwal-icon i { background: #065f46; }

/* ── Section label (tag kecil di atas judul section) ── */
.seksi-section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #198754;
    background: #e9f7ef;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Garis dekorasi di bawah judul Seksi & Layanan */
.seksi-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #198754, #4ade80);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* Sambutan */
.sambutan-section {
    perspective: 1500px;
}

.sambutan-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 12px 40px rgba(0,0,0,.07);
    border: 1px solid #eaf3ec;
    transform-style: preserve-3d;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
    will-change: transform;
}

.sambutan-wrapper:hover {
    box-shadow: 0 40px 70px rgba(15,23,42,.16);
}

.sambutan-wrapper .row {
    transform-style: preserve-3d;
}

.sambutan-glare {
    position: absolute;
    inset: 0;
    border-radius: 25px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
    mix-blend-mode: overlay;
}

.foto-kepala {
    border-radius: 20px;
    max-height: 320px;
    object-fit: cover;
    width: 100%;
    transform: translateZ(50px);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.sambutan-wrapper .col-md-8 h3,
.sambutan-wrapper .col-md-8 .salam,
.sambutan-wrapper .col-md-8 .sambutan-text,
.sambutan-wrapper .col-md-8 .mt-4 {
    transform: translateZ(30px);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.salam          { font-style: italic; color: #198754; }
.sambutan-text  { line-height: 1.8; }

/* Seksi cards */
.seksi-card {
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    transition: 0.3s;
    border: 1px solid #f0f0f0 !important;
    background: #fff;
}

.seksi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(25,135,84,.12);
    border-color: #d7ecdf !important;
}

.seksi-icon i {
    font-size: 36px;
    color: #198754;
    background: #e9f7ef;
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    transition: 0.3s;
}

.seksi-card:hover .seksi-icon i {
    background: #198754;
    color: #fff;
}

/* Hero berita */
.hero-berita     { height: 400px; }
.hero-img        { height: 400px; object-fit: cover; }

.hero-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
}

.informasi-scroll,
.berita-scroll { max-height: 380px; overflow-y: auto; }

/* Galeri elite (di beranda) — hanya gambar, tanpa border/shadow.
   Keterangan naik + fade in saat gambar di-hover, gaya editorial 2026. */
.elite-galeri-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--kb-sage, #eef2ea);
}

.elite-galeri-card img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.elite-galeri-card:hover img,
.elite-galeri-card:focus-visible img {
    transform: scale(1.06);
}

.elite-zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    background: rgba(11, 59, 46, 0.35);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 2;
}

.elite-galeri-card:hover .elite-zoom,
.elite-galeri-card:focus-visible .elite-zoom {
    opacity: 1;
    transform: translateY(0);
}

.elite-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 16px;
    background: linear-gradient(to top, rgba(6,20,15,0.92) 0%, rgba(6,20,15,0.55) 38%, rgba(6,20,15,0) 78%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.elite-galeri-card:hover .elite-overlay,
.elite-galeri-card:focus-visible .elite-overlay {
    opacity: 1;
}

.elite-kategori {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-family: var(--kb-font-body, inherit);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.4s ease 0.05s, opacity 0.4s ease 0.05s;
}

.elite-title {
    display: block;
    font-family: var(--kb-font-display, inherit);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
}

.elite-galeri-card:hover .elite-kategori,
.elite-galeri-card:focus-visible .elite-kategori,
.elite-galeri-card:hover .elite-title,
.elite-galeri-card:focus-visible .elite-title {
    transform: translateY(0);
    opacity: 1;
}

/* Modal lightbox beranda */
.elite-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    padding: 28px;
    background: rgba(3, 7, 18, 0.74);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
}

.elite-modal.is-open {
    display: flex;
}

.elite-modal-panel {
    position: relative;
    width: min(980px, 96vw);
}

.elite-modal-content {
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 35px 90px rgba(0,0,0,0.45);
}

.elite-modal-caption {
    color: #fff;
    font-family: var(--kb-font-display, inherit);
    font-weight: 600;
    font-size: 17px;
    line-height: 1.4;
    padding: 16px 4px 0;
    text-align: left;
}

.elite-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    background: rgba(15,23,42,0.55);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: 0.25s ease;
}

.elite-close:hover {
    background: rgba(255,255,255,0.22);
    transform: rotate(90deg);
}


/* ================= HALAMAN BERITA (berita.php) ================= */

.featured-img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    height: 380px;
}

.featured-content h3 {
    font-size: 26px;
    line-height: 1.4;
}

.news-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: 0.4s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-body    { padding: 20px; }

.news-excerpt {
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
    margin-bottom: 12px;
}

.news-link {
    text-decoration: none;
    font-weight: 600;
    color: #198754;
}

.news-link:hover { text-decoration: underline; }

.pagination .page-link {
    border-radius: 12px;
    margin: 0 4px;
    border: 1px solid #e5e5e5;
    color: #198754;
    font-weight: 500;
}

.pagination .page-link:hover { background: #f4f7f6; }

.pagination .page-item.active .page-link {
    background: #198754;
    border-color: #198754;
    color: white;
}


/* ================= HALAMAN DETAIL BERITA (detail_berita.php) ================= */

.detail-hero {
    height: 420px;
    overflow: hidden;
}

.hero-title {
    font-size: 32px;
    max-width: 800px;
}

.meta-info {
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb-custom       { font-size: 14px; }
.breadcrumb-custom a     { color: #ddd; text-decoration: none; }
.breadcrumb-custom span  { margin: 0 8px; color: #aaa; }
.breadcrumb-custom .active { color: #fff; }

.content-berita {
    font-size: 17px;
    line-height: 1.9;
    color: #333;
}

.content-berita img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

.sidebar-card         { border-radius: 16px; }
.sidebar-item a:hover { color: #198754 !important; }

@media (max-width: 768px) {
    .hero-title  { font-size: 22px; }
    .detail-hero { height: 300px; }
    .hero-img    { height: 300px; }
}


/* ================= HALAMAN GALERI (galeri.php) ================= */

.filter-btn {
    border: 1px solid rgba(25,135,84,0.24);
    background: rgba(255,255,255,0.78);
    color: #198754;
    padding: 8px 18px;
    margin: 5px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(15,81,50,0.06);
}

.filter-btn:hover,
.filter-btn.active {
    background: #198754;
    color: white;
    border-color: #198754;
    transform: translateY(-2px);
}

/* Galeri (galeri.php) — hanya gambar, tanpa border/kartu putih.
   Judul & kategori disembunyikan dalam overlay, baru muncul saat hover. */
.gallery-card {
    border-radius: 18px;
    overflow: hidden;
}

.gallery-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.gallery-img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card:hover .gallery-img,
.gallery-link:focus-visible .gallery-img { transform: scale(1.06); }

.gallery-zoom {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    background: rgba(11, 59, 46, 0.35);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 2;
}

.gallery-card:hover .gallery-zoom,
.gallery-link:focus-visible .gallery-zoom {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 6px;
    padding: 16px;
    background: linear-gradient(to top, rgba(6,20,15,0.92) 0%, rgba(6,20,15,0.55) 38%, rgba(6,20,15,0) 78%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-overlay,
.gallery-link:focus-visible .gallery-overlay {
    opacity: 1;
}

.gallery-overlay strong {
    display: block;
    font-family: var(--kb-font-display, inherit);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
}

.kategori-label {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--kb-font-body, inherit);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.4s ease 0.05s, opacity 0.4s ease 0.05s;
}

.gallery-card:hover .gallery-overlay strong,
.gallery-link:focus-visible .gallery-overlay strong,
.gallery-card:hover .kategori-label,
.gallery-link:focus-visible .kategori-label {
    transform: translateY(0);
    opacity: 1;
}

/* Perangkat sentuh tidak punya hover — tampilkan keterangan langsung
   supaya tetap informatif tanpa perlu interaksi apa pun. */
@media (hover: none) {
    .elite-overlay,
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(6,20,15,0.85) 0%, rgba(6,20,15,0.2) 55%, transparent 85%);
    }
    .elite-title,
    .elite-kategori,
    .gallery-overlay strong,
    .kategori-label {
        opacity: 1;
        transform: translateY(0);
    }
    .elite-zoom,
    .gallery-zoom {
        display: none;
    }
}

/* Modal preview (galeri.php) — polos tanpa panel/header, hanya gambar
   mengambang. Judul & kategori muncul sebagai overlay saat gambar di-hover. */

/* Backdrop bawaan Bootstrap defaultnya abu-abu terang & tanpa blur —
   disamakan dengan modal beranda: gelap pekat + blur. Halaman publik
   cuma pakai satu modal Bootstrap ini, jadi aman di-override global. */
.modal-backdrop.show {
    opacity: 1;
    background: rgba(3, 7, 18, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.gallery-modal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

.gallery-modal-body {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

.gallery-modal-img {
    display: block;
    max-width: 100%;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 35px 90px rgba(0,0,0,0.45);
}

.gallery-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    background: rgba(15,23,42,0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: 0.25s ease;
}

.gallery-modal-close:hover {
    background: rgba(255,255,255,0.22);
    transform: rotate(90deg);
}

.gallery-modal-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 56px 24px 20px;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(to top, rgba(6,20,15,0.92) 0%, rgba(6,20,15,0.5) 45%, transparent 85%);
    text-align: left;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-modal-body:hover .gallery-modal-caption,
.gallery-modal-body:focus-within .gallery-modal-caption {
    opacity: 1;
}

.gallery-modal-category,
.gallery-modal-title {
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-modal-title { transition-delay: 0.08s; }

.gallery-modal-body:hover .gallery-modal-category,
.gallery-modal-body:hover .gallery-modal-title,
.gallery-modal-body:focus-within .gallery-modal-category,
.gallery-modal-body:focus-within .gallery-modal-title {
    transform: translateY(0);
    opacity: 1;
}

.gallery-modal-category {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.gallery-modal-title {
    color: #fff;
    font-family: var(--kb-font-display, inherit);
    font-weight: 600;
    font-size: 19px;
    line-height: 1.35;
}


/* ================= HALAMAN KONTAK (kontak.php) ================= */

.kontak-glass-bg {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 12%, rgba(25,135,84,0.14), transparent 26%),
        radial-gradient(circle at 88% 18%, rgba(20,184,166,0.14), transparent 30%),
        linear-gradient(135deg, #f8fffb 0%, #eefbf4 48%, #f8fafc 100%);
}

.kontak-glass-bg::before {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(25,135,84,0.12);
    filter: blur(8px);
}

.kontak-glass-bg .container {
    position: relative;
    z-index: 1;
}

.kontak-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255,255,255,0.42));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 35px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: 0 24px 70px rgba(15,81,50,0.10);
}

.kontak-info-card {
    height: 100%;
}

.kontak-card h5,
.kontak-card h6 {
    color: #123524;
}

.kontak-card h6  { margin-top: 15px; }

.kontak-card p {
    color: #4b5563;
}

.kontak-card hr {
    border-color: rgba(15,81,50,0.14);
}

.kontak-glass-form label {
    margin-bottom: 7px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
}

.kontak-glass-form .form-control {
    border: 1px solid rgba(25,135,84,0.14);
    background: rgba(255,255,255,0.62);
    border-radius: 16px;
    padding: 13px 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.60);
    transition: 0.25s ease;
}

.kontak-glass-form .form-control:focus {
    background: rgba(255,255,255,0.90);
    border-color: rgba(25,135,84,0.52);
    box-shadow: 0 0 0 4px rgba(25,135,84,0.10);
}

.form-control    { border-radius: 12px; padding: 12px; }
.btn-success     { border-radius: 30px; }
.map-section iframe { display: block; }


/* ================= HALAMAN TENTANG (tentang.php) ================= */

.tentang-content {
    line-height: 1.9;
    font-size: 16px;
}

.list-group-item {
    padding: 14px 20px;
    transition: 0.2s;
}

.list-group-item:hover    { background: #e9f7ef; }
.list-group-item.active   { font-weight: 600; }


/* ================= HALAMAN LAYANAN (layanan.php & layanan_detail.php) ================= */

.layanan-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.layanan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.layanan-img     { height: 200px; object-fit: cover; }
.layanan-content { line-height: 1.9; font-size: 15px; }
.lihat-detail    { font-size: 13px; color: #198754; font-weight: 500; }

.sidebar-title {
    background: #f0f0f0;
    color: green;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.sidebar-btn {
    display: block;
    text-decoration: none;
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    color: #333;
    transition: 0.3s ease;
    font-size: 14px;
}

.sidebar-btn:hover {
    background: #f4f7f6;
    border-color: #198754;
    color: #198754;
}

.sidebar-btn.active {
    background: #198754;
    color: white;
    border-color: #198754;
}


/* ================= HALAMAN LAYANAN ITEM (layanan_item.php) ================= */

.layanan-detail-card { border-radius: 18px; }

.poster-layanan {
    max-height: 600px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .poster-layanan { max-height: 400px; }
}


/* ================= HALAMAN INFORMASI (informasi.php & informasi_detail.php) ================= */

.informasi-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.informasi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.08);
}

.informasi-img          { height: 200px; object-fit: cover; }
.informasi-detail-card  { border-radius: 18px; }

.informasi-detail-img {
    max-height: 500px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.informasi-content { line-height: 1.9; font-size: 16px; }

@media (max-width: 768px) {
    .informasi-detail-img { max-height: 350px; }
}


@media (max-width: 768px) {
    .jadwal-card { padding: 22px 10px; border-radius: 20px; }
    .jadwal-time { font-size: 21px; }
    .kontak-card { padding: 24px; border-radius: 22px; }
    .gallery-modal-title { font-size: 16px; }
    .gallery-modal-img { max-height: 68vh; border-radius: 16px; }
    .gallery-modal-caption { padding: 40px 16px 14px; }
    .elite-modal { padding: 14px; }
}


/* ================= RESPONSIVE FIXES 2026-07 NAVBAR & MOBILE ================= */
.navbar-custom .dropdown-toggle::after {
    margin-left: 8px;
    vertical-align: middle;
}

.navbar-custom .dropdown-menu {
    min-width: 230px;
}

.navbar-custom .dropdown-item {
    white-space: normal;
    line-height: 1.35;
}

@media (max-width: 1299.98px) {
    .topbar .container {
        flex-direction: column;
        justify-content: center !important;
        gap: 6px;
        text-align: center;
    }

    .topbar {
        font-size: 12px;
        line-height: 1.45;
    }

    .topbar-info {
        flex-direction: column;
        gap: 4px !important;
    }

    .social-icons a {
        margin: 0 4px;
    }

    .main-header {
        padding: 14px 0;
    }

    .main-header .brand-logo {
        width: 44px;
        height: 44px;
    }

    .logo-title {
        font-size: 13px;
        line-height: 1.35;
        letter-spacing: 0.2px;
    }

    .logo-title .logo-subtitle {
        font-size: 10.5px;
    }

    .navbar-toggler {
        border: 0;
        border-radius: 12px;
        padding: 8px 10px;
        box-shadow: none !important;
    }

    .navbar-collapse {
        width: 100%;
        margin-top: 10px;
        padding: 12px;
        border-radius: 18px;
        background: rgba(7, 86, 55, 0.94);
        border: 1px solid rgba(255,255,255,0.16);
        box-shadow: 0 18px 45px rgba(0,0,0,0.18);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        max-height: calc(100vh - 176px);
        overflow-y: auto;
    }

    .navbar-nav {
        width: 100%;
        gap: 4px !important;
    }

    .navbar-custom .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 11px 14px;
        border-radius: 12px;
        color: #ffffff !important;
    }

    .navbar-custom .nav-link:hover,
    .navbar-custom .nav-link.show,
    .navbar-custom .nav-link.active {
        background: rgba(255,255,255,0.16);
        color: #ffffff !important;
    }

    .navbar-custom .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin: 5px 0 8px;
        padding: 8px;
        border-radius: 14px;
        background: rgba(255,255,255,0.96);
        box-shadow: none;
        max-height: 260px;
        overflow-y: auto;
    }

    .navbar-custom .dropdown-item {
        border-radius: 10px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .hero-carousel .carousel-item {
        height: auto;
        min-height: 0;
        aspect-ratio: auto;
    }

    .hero-carousel .carousel-item > a {
        height: auto;
    }

    .carousel-image {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 11%;
    }

    .hero-carousel .carousel-control-prev-icon,
    .hero-carousel .carousel-control-next-icon {
        width: 1.65rem;
        height: 1.65rem;
        filter: drop-shadow(0 2px 5px rgba(0,0,0,.35));
    }

    .page-hero {
        padding: 32px 0;
        min-height: 190px;
    }

    .page-hero h2 {
        font-size: 26px;
    }

    .sambutan-wrapper {
        padding: 28px !important;
    }

    .hero-berita,
    .hero-img {
        height: 320px;
    }

    .hero-overlay {
        padding: 18px;
    }

    .hero-overlay h4 {
        font-size: 18px;
        line-height: 1.35;
    }

    .informasi-scroll,
    .berita-scroll {
        max-height: none;
        overflow-y: visible;
    }

    .aplikasi-slider {
        gap: 22px;
        padding: 10px 42px;
    }

    .aplikasi-item {
        flex: 0 0 112px;
    }

    .gallery-img {
        height: 180px;
    }

    .gallery-modal .modal-dialog {
        margin: 12px;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-carousel .carousel-item {
        height: auto;
        min-height: 0;
        aspect-ratio: auto;
    }

    .hero-carousel .carousel-item > a {
        height: auto;
    }

    .carousel-image {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 9%;
    }

    .hero-carousel .carousel-control-prev-icon,
    .hero-carousel .carousel-control-next-icon {
        width: 1.25rem;
        height: 1.25rem;
    }

    .jadwal-section {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }

    .jadwal-heading {
        margin-bottom: 28px !important;
    }

    .jadwal-badge {
        font-size: 11px;
        padding: 7px 14px;
    }

    .jadwal-card {
        min-height: 145px;
    }

    .jadwal-icon i {
        width: 46px;
        height: 46px;
        font-size: 23px;
        border-radius: 15px;
    }

    .jadwal-label {
        font-size: 12px;
    }

    .jadwal-time {
        font-size: 20px;
    }

    .sambutan-wrapper {
        padding: 22px !important;
        border-radius: 20px;
    }

    .foto-kepala {
        max-height: 260px;
    }

    .d-flex.justify-content-between.align-items-center.mb-5 {
        align-items: flex-start !important;
        gap: 12px;
    }

    .elite-galeri-card,
    .gallery-card {
        border-radius: 18px;
    }

    .elite-galeri-card img {
        height: 155px;
    }

    .elite-overlay {
        padding: 12px;
    }

    .elite-title {
        font-size: 13px;
    }

    .gallery-img {
        height: 150px;
    }

    .gallery-overlay {
        padding: 12px;
    }

    .gallery-overlay strong {
        font-size: 12.5px;
    }

    .filter-btn {
        padding: 7px 13px;
        font-size: 12.5px;
        margin: 4px 3px;
    }

    .gallery-modal-close {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .gallery-modal-img {
        max-height: 64vh;
    }

    .elite-modal-content {
        max-height: 70vh;
    }

    .elite-modal-caption {
        font-size: 14px;
        line-height: 1.4;
    }

    .kontak-card {
        padding: 20px;
    }

    .kontak-glass-form .form-control {
        padding: 12px 13px;
        border-radius: 14px;
    }

    .map-section iframe {
        height: 300px;
    }

    .aplikasi-slider {
        gap: 16px;
        padding: 10px 36px;
    }

    .aplikasi-item {
        flex-basis: 96px;
    }

    .aplikasi-item img {
        width: 58px;
        height: 44px;
    }

    .aplikasi-item span {
        font-size: 12px;
    }
}
