/* =========================================================
   STYLE.CSS - Website BKPSDM Kota Payakumbuh
   Design tokens, komponen, dan layout seluruh section.
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
    --color-primary: #D62828;
    --color-primary-dark: #A81E1E;
    --color-secondary: #0B1F3A;
    --color-secondary-light: #142d52;
    --color-accent: #F8F9FA;
    --color-text: #1F2937;
    --color-bg: #FFFFFF;
    --color-muted: #6B7280;
    --color-border: #E5E7EB;

    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;

    --shadow-elegant: 0 20px 50px -12px rgba(11, 31, 58, 0.15);
    --shadow-soft: 0 8px 24px -8px rgba(11, 31, 58, 0.12);
    --transition-base: all .35s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. RESET & BASE ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-secondary);
    font-weight: 700;
    margin: 0;
}

p { margin: 0 0 1rem; color: var(--color-muted); }

a { text-decoration: none; color: inherit; transition: var(--transition-base); }

img { max-width: 100%; display: block; }

::selection { background: var(--color-primary); color: #fff; }

:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 3. LOADING SCREEN ---------- */
#loading-screen {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--color-secondary);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .5s ease, visibility .5s ease;
}
#loading-screen.loaded { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo { width: 64px; height: 64px; margin: 0 auto 20px; object-fit: contain; }
.loader-bar { width: 180px; height: 4px; background: rgba(255,255,255,.15); border-radius: 4px; overflow: hidden; }
.loader-bar span {
    display: block; height: 100%; width: 40%; background: var(--color-primary);
    border-radius: 4px; animation: loaderMove 1.1s ease-in-out infinite;
}
@keyframes loaderMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* ---------- 4. TOP BAR ---------- */
/* FIX DEFINITIF v2: top-bar & main-navbar di-fix LANGSUNG tanpa butuh
   wrapper/div tambahan apapun di navbar.php. Ini bekerja baik untuk
   struktur HTML lama (top-bar & header sebagai sibling terpisah) MAUPUN
   struktur baru (dibungkus <div id="siteHeader">) - jadi fix ini tetap
   berhasil apa pun versi include/navbar.php yang sedang aktif di server. */
.top-bar {
    background: var(--color-secondary);
    color: rgba(255,255,255,.85);
    font-size: .82rem;
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    z-index: 1001;
}
.top-bar-info span { margin-right: 22px; }
.top-bar-info i { color: var(--color-primary); margin-right: 6px; }
.top-bar-social a {
    color: rgba(255,255,255,.75);
    margin-left: 14px;
    font-size: .9rem;
}
.top-bar-social a:hover { color: var(--color-primary); }

/* ---------- 5. NAVBAR ---------- */
/* Navbar dibuat PUTIH PERMANEN (tidak transparan lagi di atas hero) -
   ini menyederhanakan semuanya sekaligus menghindari isu overlap/kontras
   yang berulang kali muncul pada versi transparan sebelumnya. */
.site-header {
    position: static;
}
.main-navbar {
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
    padding: 6px 0;
    position: fixed;
    top: 48px; /* tepat di bawah top-bar pada layar >= 992px */
    left: 0; width: 100%;
    z-index: 1000;
}
@media (max-width: 991.98px) {
    /* top-bar disembunyikan (class d-none d-lg-block) di layar < 992px,
       jadi navbar utama harus menempel di paling atas (top:0). */
    .main-navbar { top: 0; }
}
.main-navbar.scrolled {
    box-shadow: var(--shadow-elegant);
    padding: 0;
}
.navbar-brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.navbar-brand img { width: 170px; height: 50px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand-text strong { font-family: var(--font-display); font-size: .95rem; color: var(--color-secondary); }
.brand-text small { font-size: .66rem; color: var(--color-muted); }
.main-navbar { min-height: 74px; }

/* navbar-collapse tidak boleh membungkus (wrap) item menu ke baris baru,
   karena header bersifat fixed/overlap di atas hero - jika sampai wrap,
   baris kedua akan bertabrakan dengan konten hero di bawahnya. */
.navbar-collapse { flex-wrap: nowrap; }
.navbar-nav { flex-wrap: nowrap; }

.navbar-nav .nav-link {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: .88rem;
    color: var(--color-secondary);
    padding: 10px 12px !important;
    white-space: nowrap;
    position: relative;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover { color: var(--color-primary); }

.navbar-cta { display: flex; gap: 8px; margin-left: 12px; flex-shrink: 0; white-space: nowrap; }
.btn-outline-navbar {
    border: 1.5px solid var(--color-secondary);
    color: var(--color-secondary);
    border-radius: 50px;
    padding: 8px 14px;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
}
.btn-outline-navbar:hover { background: var(--color-secondary); color: #fff; }
.btn-whatsapp {
    background: #25D366; color: #fff; border-radius: 50px;
    padding: 8px 14px; font-size: .82rem; font-weight: 600;
    white-space: nowrap;
}
.btn-whatsapp:hover { background: #1eab52; color: #fff; }

/* ===========================================================
   FIX DEFINITIF: paksa mode hamburger di bawah 1200px LANGSUNG
   lewat CSS, tanpa bergantung pada class navbar-expand-lg/xl
   yang ditulis di HTML. Ini menimpa aturan bawaan Bootstrap CDN
   apapun class expand-* yang terpasang di include/navbar.php,
   sehingga menu tidak akan pernah lagi "diperas" lalu patah baris
   dan bertabrakan dengan tombol/konten hero di bawahnya.
   =========================================================== */
@media (min-width: 1200px) {
    .navbar-toggler { display: none !important; }
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
    }
}

@media (max-width: 1199.98px) {
    .navbar-toggler { display: block !important; }
    .navbar-collapse {
        display: none !important;
        flex-basis: 100% !important;
        width: 100%;
    }
    .navbar-collapse.show {
        display: block !important;
        background: #fff;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-elegant);
        padding: 16px;
        margin-top: 10px;
    }
    .navbar-nav {
        flex-direction: column !important;
    }
    .navbar-nav { flex-wrap: wrap; }
    .navbar-nav .nav-link { white-space: normal; }
    .navbar-cta { flex-direction: column; margin: 14px 0 6px; }
    .navbar-toggler { border: none; }
    .navbar-toggler:focus { box-shadow: none; }
}

/* ---------- 6. BUTTONS (GLOBAL) ---------- */
.btn-primary-custom {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 13px 32px;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: .92rem;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 10px 25px -6px rgba(214,40,40,.5);
}
.btn-primary-custom:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-2px); }

/* ---------- 7. SECTION HEADER (SHARED) ---------- */
.section-header { max-width: 680px; margin: 0 auto 3rem; }
.section-badge {
    display: inline-block;
    background: rgba(214,40,40,.08);
    color: var(--color-primary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 14px;
}
.section-badge-light { background: rgba(255,255,255,.12); color: #ffdada; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-desc { color: var(--color-muted); font-size: 1rem; }

section { padding: 90px 0; }

/* ---------- 8. HERO SLIDER ---------- */
.hero-section { position: relative; height: 100vh; min-height: 620px; }
.hero-swiper, .hero-swiper .swiper-wrapper, .hero-slide { height: 100%; }
.hero-slide {
    background-color: var(--color-secondary); /* fallback jika foto hero belum diupload */
    background-size: cover; background-position: center;
    display: flex; align-items: center;
    position: relative;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(100deg, rgba(11,31,58,.92) 15%, rgba(11,31,58,.55) 60%, rgba(214,40,40,.35) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; color: #fff; padding-top: 110px; padding-bottom: 24px; }
.hero-tag {
    display: inline-block; background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(6px);
    padding: 6px 18px; border-radius: 50px;
    font-size: .8rem; font-weight: 600; letter-spacing: .04em;
    margin-bottom: 16px;
}
.hero-content h1 {
    color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.85rem);
    line-height: 1.18; margin-bottom: 16px;
}
.hero-content p { color: rgba(255,255,255,.85); font-size: 1rem; max-width: 560px; margin-bottom: 22px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--color-primary); color: #fff; padding: 12px 28px;
    border-radius: 50px; font-weight: 600; font-family: var(--font-display);
    box-shadow: 0 10px 25px -6px rgba(214,40,40,.6);
}
.btn-hero-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-2px); }
.btn-hero-outline {
    border: 1.5px solid rgba(255,255,255,.6); color: #fff; padding: 12px 28px;
    border-radius: 50px; font-weight: 600; font-family: var(--font-display);
}
.btn-hero-outline:hover { background: #fff; color: var(--color-secondary); }

.hero-swiper .swiper-pagination-bullet { background: #fff; opacity: .5; width: 9px; height: 9px; }
.hero-swiper .swiper-pagination-bullet-active { opacity: 1; background: var(--color-primary); width: 26px; border-radius: 5px; }
.hero-swiper .swiper-button-next, .hero-swiper .swiper-button-prev { color: #fff; opacity: .7; }
.hero-swiper .swiper-button-next:hover, .hero-swiper .swiper-button-prev:hover { opacity: 1; }
.hero-swiper .swiper-button-next::after, .hero-swiper .swiper-button-prev::after { font-size: 1.4rem; }

.scroll-down {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 3; color: #fff; font-size: 1.5rem;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.4);
    display: flex; align-items: center; justify-content: center;
    animation: bounceDown 2s infinite;
}
@keyframes bounceDown { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- 9. PAGE HERO (halaman internal) ---------- */
.page-hero {
    position: relative; padding: 170px 0 90px;
    background: linear-gradient(120deg, var(--color-secondary), #16305a);
    overflow: hidden;
}
.page-hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(214,40,40,.25), transparent 55%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 14px 0 16px; }
.page-hero .breadcrumb { margin: 0; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: rgba(255,255,255,.7); font-size: .9rem; }
.page-hero .breadcrumb-item.active { color: #fff; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---------- 10. SAMBUTAN KEPALA ---------- */
.sambutan-section { background: var(--color-accent); }
.kepala-photo-wrap { position: relative; }
.kepala-photo {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elegant);
    width: 100%; aspect-ratio: 5/6; object-fit: cover;
}
.kepala-photo-badge {
    position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
    background: #fff; border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 14px 22px; display: flex; align-items: center; gap: 12px;
    width: 88%;
}
.kepala-photo-badge i { color: var(--color-primary); font-size: 1.6rem; }
.kepala-photo-badge strong { display: block; font-family: var(--font-display); font-size: .92rem; color: var(--color-secondary); }
.kepala-photo-badge small { color: var(--color-muted); font-size: .78rem; }
.sambutan-text p { margin-bottom: 12px; }
.ttd-block { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.ttd-img { height: 60px; margin-bottom: 8px; }
.ttd-block strong { display: block; font-family: var(--font-display); color: var(--color-secondary); font-size: .95rem; }
.ttd-block small { color: var(--color-muted); font-size: .8rem; }

/* ---------- 11. LAYANAN CARDS ---------- */
.layanan-card {
    background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); padding: 38px 30px;
    height: 100%; transition: var(--transition-base);
    position: relative; overflow: hidden;
}
.layanan-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    opacity: 0; transition: var(--transition-base); z-index: 0;
}
.layanan-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elegant);
    border-color: transparent;
}
.layanan-card:hover::before { opacity: 1; }
.layanan-card > * { position: relative; z-index: 1; }
.layanan-icon {
    width: 62px; height: 62px; border-radius: 16px;
    background: rgba(214,40,40,.08); color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 22px; transition: var(--transition-base);
}
.layanan-card:hover .layanan-icon { background: rgba(255,255,255,.15); color: #fff; }
.layanan-card h3 { font-size: 1.15rem; margin-bottom: 10px; transition: var(--transition-base); }
.layanan-card:hover h3 { color: #fff; }
.layanan-card p { font-size: .92rem; margin-bottom: 18px; transition: var(--transition-base); }
.layanan-card:hover p { color: rgba(255,255,255,.85); }
.layanan-link { font-weight: 600; font-size: .88rem; color: var(--color-primary); }
.layanan-card:hover .layanan-link { color: #fff; }

/* ---------- 12. STATISTIK ---------- */
.statistik-section {
    background: linear-gradient(120deg, var(--color-secondary), #16305a);
    position: relative;
}
.statistik-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
    padding: 32px 20px; text-align: center;
    backdrop-filter: blur(6px);
    transition: var(--transition-base);
}
.statistik-card:hover { background: rgba(255,255,255,.12); transform: translateY(-6px); }
.statistik-card i { font-size: 1.8rem; color: var(--color-primary); margin-bottom: 14px; }
.statistik-card h3 { color: #fff; font-size: 2rem; margin-bottom: 6px; }
.statistik-card p { color: rgba(255,255,255,.7); margin: 0; font-size: .88rem; }

/* ---------- 13. DASHBOARD CARDS ---------- */
.dashboard-section { background: var(--color-accent); }
.dashboard-card {
    background: #fff; border-radius: var(--radius-md);
    padding: 26px 20px; text-align: center; height: 100%;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
}
.dashboard-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-elegant); }
.dashboard-icon {
    width: 54px; height: 54px; margin: 0 auto 16px;
    border-radius: 14px; background: rgba(11,31,58,.06);
    color: var(--color-secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.dashboard-card h4 { font-size: 1rem; margin-bottom: 8px; }
.dashboard-card p { font-size: .84rem; margin: 0; }

/* ---------- 14. GRAFIK BAR (dashboard.php) ---------- */
.bar-item { margin-bottom: 6px; }
.bar-label { display: flex; justify-content: space-between; margin-bottom: 8px; font-family: var(--font-display); color: var(--color-secondary); }
.bar-track { height: 10px; background: var(--color-accent); border-radius: 10px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--color-primary), var(--color-secondary)); border-radius: 10px; }

/* ---------- 15. BERITA ---------- */
.berita-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-soft); height: 100%;
    transition: var(--transition-base);
}
.berita-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-elegant); }
.berita-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.berita-thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-base); }
.berita-card:hover .berita-thumb img { transform: scale(1.08); }
.berita-kategori {
    position: absolute; top: 16px; left: 16px;
    background: var(--color-primary); color: #fff;
    font-size: .74rem; font-weight: 600;
    padding: 5px 14px; border-radius: 50px;
}
.berita-body { padding: 24px; }
.berita-tanggal { font-size: .78rem; color: var(--color-muted); }
.berita-body h3 { font-size: 1.08rem; margin: 10px 0; line-height: 1.4; }
.berita-body p { font-size: .88rem; margin-bottom: 14px; }
.berita-link { font-weight: 600; font-size: .86rem; color: var(--color-primary); }
.berita-link:hover { color: var(--color-secondary); }

.custom-pagination .page-link {
    border-radius: 50px !important; margin: 0 4px; border: 1px solid var(--color-border);
    color: var(--color-secondary); width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
}
.custom-pagination .page-item.active .page-link { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ---------- 16. PENGUMUMAN TIMELINE ---------- */
.pengumuman-section { background: var(--color-accent); }
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--color-border); }
.timeline-item { position: relative; padding: 0 0 34px 30px; }
.timeline-dot {
    position: absolute; left: -24px; top: 4px; width: 14px; height: 14px;
    background: var(--color-primary); border: 3px solid #fff; border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(214,40,40,.2);
}
.timeline-content { background: #fff; border-radius: var(--radius-md); padding: 18px 22px; box-shadow: var(--shadow-soft); }
.timeline-tag {
    display: inline-block; background: rgba(11,31,58,.08); color: var(--color-secondary);
    font-size: .72rem; font-weight: 700; padding: 3px 12px; border-radius: 50px; margin-bottom: 8px;
}
.timeline-content h4 { font-size: 1rem; margin-bottom: 6px; }
.timeline-date { font-size: .8rem; color: var(--color-muted); }

/* ---------- 17. GALERI ---------- */
.galeri-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px; gap: 16px;
}
.galeri-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.galeri-item {
    position: relative; border-radius: var(--radius-md); overflow: hidden; display: block;
}
.galeri-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-base); }
.galeri-overlay {
    position: absolute; inset: 0; background: rgba(11,31,58,.55);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.6rem; opacity: 0; transition: var(--transition-base);
}
.galeri-item:hover .galeri-overlay { opacity: 1; }
.galeri-item:hover img { transform: scale(1.1); }

/* ---------- 18. MITRA SLIDER ---------- */
.mitra-section { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.mitra-slide { display: flex; align-items: center; justify-content: center; }
.mitra-slide img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .6; transition: var(--transition-base); }
.mitra-slide img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- 19. KONTAK ---------- */
.kontak-map { border-radius: var(--radius-lg); overflow: hidden; height: 280px; box-shadow: var(--shadow-soft); margin-bottom: 24px; }
.kontak-info-list { display: grid; gap: 16px; }
.kontak-info-item { display: flex; align-items: flex-start; gap: 14px; }
.kontak-info-item i { color: var(--color-primary); font-size: 1.2rem; margin-top: 3px; }
.kontak-info-item strong { display: block; font-family: var(--font-display); color: var(--color-secondary); font-size: .92rem; }
.kontak-info-item span { font-size: .88rem; color: var(--color-muted); }

.kontak-form-wrap {
    background: var(--color-accent); border-radius: var(--radius-lg);
    padding: 40px; height: 100%;
}
.kontak-form-wrap h3 { margin-bottom: 22px; font-size: 1.2rem; }
.kontak-form .form-label { font-size: .86rem; font-weight: 600; color: var(--color-secondary); margin-bottom: 6px; }
.kontak-form .form-control {
    border-radius: var(--radius-sm); border: 1px solid var(--color-border);
    padding: 12px 16px; font-size: .92rem;
}
.kontak-form .form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(214,40,40,.12); }

/* ---------- 20. PROFIL PAGE ---------- */
.rounded-custom { border-radius: var(--radius-lg); }
.shadow-custom { box-shadow: var(--shadow-elegant); }
.visi-misi-card {
    background: var(--color-accent); border-radius: var(--radius-lg);
    padding: 34px; height: 100%;
}
.visi-misi-card i { font-size: 1.8rem; color: var(--color-primary); margin-bottom: 16px; }
.visi-misi-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.visi-misi-card ul { padding-left: 20px; color: var(--color-muted); margin: 0; }
.visi-misi-card ul li { margin-bottom: 8px; font-size: .92rem; }

.tugas-card {
    text-align: center; padding: 30px 20px; border-radius: var(--radius-md);
    border: 1px solid var(--color-border); height: 100%; transition: var(--transition-base);
}
.tugas-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.tugas-card i { font-size: 1.7rem; color: var(--color-primary); margin-bottom: 14px; }
.tugas-card h4 { font-size: .98rem; margin-bottom: 8px; }
.tugas-card p { font-size: .85rem; margin: 0; }

/* ---------- 21. LAYANAN PAGE: ALUR & UNDUHAN ---------- */
.alur-section { background: var(--color-accent); }
.alur-card { background: #fff; border-radius: var(--radius-md); padding: 30px 24px; height: 100%; box-shadow: var(--shadow-soft); }
.alur-no { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: rgba(214,40,40,.25); }
.alur-card h4 { margin: 10px 0; font-size: 1rem; }
.alur-card p { font-size: .86rem; margin: 0; }

.unduhan-item {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px; border: 1px solid var(--color-border);
    border-radius: var(--radius-md); transition: var(--transition-base);
}
.unduhan-item:hover { border-color: var(--color-primary); background: rgba(214,40,40,.04); }
.unduhan-item i:first-child { color: var(--color-primary); font-size: 1.4rem; }
.unduhan-item span { flex: 1; font-weight: 500; font-size: .92rem; color: var(--color-secondary); }
.unduhan-icon-download { color: var(--color-muted); }

/* ---------- 22. FOOTER ---------- */
.site-footer { background: var(--color-secondary); color: rgba(255,255,255,.7); padding-top: 80px; }
.footer-top { padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { width: 203px; height: 93px; }
.footer-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand strong { color: #fff; font-family: var(--font-display); }
.footer-brand small { color: rgba(255,255,255,.6); font-size: .75rem; }
.footer-desc { font-size: .88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--color-primary); }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; font-size: .88rem; }
.footer-links a:hover { color: var(--color-primary); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--color-primary); margin-top: 3px; }
.footer-bottom { padding: 24px 0; text-align: center; font-size: .84rem; }

/* ---------- 23. BACK TO TOP ---------- */
.back-to-top {
    position: fixed; bottom: 28px; right: 28px; z-index: 999;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--color-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; box-shadow: var(--shadow-elegant);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: var(--transition-base);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-primary-dark); color: #fff; }

/* ---------- 24. RESPONSIVE ---------- */
@media (max-width: 991.98px) {
    section { padding: 64px 0; }
    .hero-section { min-height: 560px; }
    .galeri-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
    .kontak-form-wrap { padding: 28px; }
}

@media (max-width: 575.98px) {
    .hero-content h1 { font-size: 1.8rem; }
    .galeri-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
    .galeri-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
    .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}