/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Variabel Warna */
:root {
    --primary-dark: #013220;  /* Hijau Hutan Tua (Forest Green) */
    --primary-light: #2E8B57; /* Hijau Laut (Sea Green) */
    --accent-gold: #D4A373;   /* Pasir Gurun / Emas Kusam (Desert Sand) */
    --light-bg: #F5F5F0;     /* Putih Gading (Ivory White) */
    --text-dark: #36454F;     /* Abu-abu Arang (Charcoal Gray) */
    --text-light: #F8F8F8;     /* Putih Pucat */
}


/* Reset dan Pengaturan Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header dan Navigasi */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex; /* Membuat logo dan teks sejajar horizontal */
    align-items: center; /* Membuat logo dan teks sejajar secara vertikal di tengah */
    gap: 35px; /* Memberi jarak antara logo dan teks */
}

.logo img {
    height: 50px; /* Atur tinggi logo Anda di sini. 40px-50px biasanya ideal */
    width: auto; /* Lebar akan menyesuaikan secara otomatis */
    transform: scale(2.0);
}

.logo span {
    color: var(--primary-dark);
    font-size: 1.4rem; /* Mungkin perlu sedikit disesuaikan ukurannya */
    font-weight: 700;
    line-height: 1; /* Memastikan teks tidak terlalu tinggi */
}

.logo a:hover {
    color: var(--primary-light);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--primary-light);
    font-weight: 600;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-gold);
    transform-origin: bottom center;
    transition: transform 0.25s ease-out;
}

nav a:hover, nav a.active {
    color: var(--primary-dark);
}

nav a:hover::after, nav a.active::after {
    transform: scaleX(1);
    transform-origin: bottom center;
}


/* Main Content Styling */
main {
    padding: 4rem 0;
}

/* Halaman Beranda (Welcome Section) */
.welcome-section {
    text-align: center;
    padding: 5rem 0;
    background: linear-gradient(rgba(10, 38, 71, 0.8), rgba(10, 38, 71, 0.8)), url('/img/banner1.jpg') no-repeat center center/cover;
    color: var(--text-light);
}

.welcome-section h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.welcome-section h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.welcome-section p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta-button {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #ffc107;
    transform: translateY(-3px);
}

/* Halaman Beranda (Info Section) */
.info-section {
    padding: 4rem 0;
    background-color: #fff;
}

.info-section .container {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

.info-card {
    text-align: center;
    padding: 2rem;
    flex-basis: 30%;
}

.info-card h3 {
    color: var(--primary-light);
    margin-bottom: 1rem;
}

/* Judul Halaman Lain */
.page-title {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}

.page-title h1 {
    font-size: 2.5rem;
}

/* Kartu Layanan (Halaman Layanan) */
.services-grid {
    padding: 4rem 0;
}

.services-grid .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-card h4 {
    color: var(--primary-light);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-card a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Animasi */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-fade-in {
    animation: fadeIn 1s ease-in-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-in-out forwards;
    opacity: 0;
}

/* ================================== */
/* ===== GAYA UNTUK KONTEN BARU ===== */
/* ================================== */

/* Judul Umum Section */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--accent-gold);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Penyesuaian Info Card dengan Ikon */
.info-card .info-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* Bagian Layanan Unggulan */
.featured-services {
    padding: 4rem 0;
}

.featured-services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Ikon pada Kartu Layanan */
.service-card .card-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.service-card:hover .card-icon {
    color: var(--accent-gold);
}


/* Bagian Alur Pelayanan */
.flow-section {
    padding: 4rem 0;
    background-color: #fff;
}

.flow-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    gap: 1rem;
    flex-wrap: wrap; /* Agar responsif di layar kecil */
}

.step {
    text-align: center;
    flex: 1;
    padding: 0 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem auto;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.step:hover .step-number {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    transform: scale(1.1);
}

.step-title {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--accent-gold);
    font-weight: 700;
}

/* Sembunyikan panah di layar kecil */
@media (max-width: 768px) {
    .step-arrow {
        display: none;
    }
    .flow-steps {
        flex-direction: column;
        gap: 2rem;
    }
}


/* Bagian Berita Terkini */
.latest-news {
    padding: 4rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.5rem;
    display: block;
}

.news-title {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.news-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-link {
    text-decoration: none;
    color: var(--accent-gold);
    font-weight: 600;
}

.news-link:hover {
    text-decoration: underline;
}

/* ======================================= */
/* ===== OPSI 1: ANIMASI BG GRADASI ====== */
/* ======================================= */

.bg-animasi-gradasi {
    position: relative; /* Diperlukan agar konten tetap di atas */
    z-index: 1;
    overflow: hidden; /* Sembunyikan gradasi yang keluar dari section */
}

.bg-animasi-gradasi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Atur gradasi warna di sini. Gunakan warna yang sangat mirip agar halus */
    background: linear-gradient(125deg, #ffffff, #f0f4f8, #ffffff);
    background-size: 200% 200%; /* Buat ukuran gradasi lebih besar dari section */
    
    z-index: -1; /* Letakkan di belakang konten */
    
    /* Nama animasi, durasi, tipe, dan perulangan */
    animation: gerakGradasi 15s ease infinite;
}

/* Keyframes untuk animasi gradasi */
@keyframes gerakGradasi {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========================================= */
/* ===== OPSI 2: ANIMASI BG PARTIKEL ===== */
/* ========================================= */

.bg-animasi-partikel {
    position: relative;
    overflow: hidden; /* Penting untuk menjaga partikel tetap di dalam section */
}

.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Di belakang konten tapi di atas background section */
}

.bubbles span {
    position: absolute;
    bottom: -150px; /* Mulai dari bawah */
    width: 40px;
    height: 40px;
    background-color: rgba(0, 150, 136, 0.4); /* Warna biru transparan */
    border-radius: 50%;
    
    /* Nama animasi, durasi, tipe, perulangan */
    animation: gelembungNaik 25s linear infinite;
}

/* Variasi ukuran, posisi, dan delay animasi */
.bubbles span:nth-child(1) { left: 10%; animation-duration: 22s; }
.bubbles span:nth-child(2) { left: 20%; animation-duration: 15s; width: 20px; height: 20px; }
.bubbles span:nth-child(3) { left: 35%; animation-duration: 30s; }
.bubbles span:nth-child(4) { left: 50%; animation-duration: 18s; width: 60px; height: 60px; }
.bubbles span:nth-child(5) { left: 65%; animation-duration: 28s; }
.bubbles span:nth-child(6) { left: 80%; animation-duration: 12s; width: 30px; height: 30px; }
.bubbles span:nth-child(7) { left: 90%; animation-duration: 20s; width: 15px; height: 15px; }

/* Keyframes untuk animasi partikel/gelembung */
@keyframes gelembungNaik {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) scale(1.5); /* Naik hingga keluar layar */
        opacity: 0;
    }
}

/* ========================================= */
/* ===== CSS UNTUK DESAIN RESPONSIF ====== */
/* ========================================= */

/* Breakpoint 1: Untuk Tablet dan Layar Lebih Kecil (di bawah 992px) */
@media (max-width: 992px) {
    .container {
        padding: 0 30px; /* Beri sedikit lebih banyak padding di sisi */
    }

    /* Ukuran font utama dikecilkan agar tidak terlalu besar */
    .welcome-section h1 {
        font-size: 2.5rem;
    }
    .welcome-section h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}


/* Breakpoint 2: Untuk Tablet Portrait dan Mobile (di bawah 768px) */
@media (max-width: 768px) {
    /* ----- Penyesuaian Header & Navigasi ----- */
    header .container {
        flex-direction: column; /* Logo dan Navigasi ditumpuk vertikal */
        gap: 15px;
    }

    nav ul {
        gap: 15px; /* Kurangi jarak antar menu */
        justify-content: center; /* Posisikan menu di tengah */
        flex-wrap: wrap; /* Izinkan menu turun ke baris baru jika tidak muat */
    }

    /* ----- Penyesuaian Layout Konten ----- */
    main {
        padding: 2rem 0; /* Kurangi padding utama */
    }

    /* Tumpuk kartu Visi & Misi secara vertikal */
    .info-section .container {
        flex-direction: column;
        gap: 1rem;
    }

    /* Tumpuk alur pelayanan secara vertikal */
    .flow-steps {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step-arrow {
        display: none; /* Sembunyikan panah di mobile */
    }

    /* ----- Penyesuaian Grid ----- */
    /* Grid untuk layanan dan berita sudah responsif berkat 'auto-fit', 
       tapi kita bisa mengurangi gap agar lebih pas di mobile */
    .services-grid .container, .news-grid {
        gap: 1.5rem;
    }
}


/* Breakpoint 3: Khusus untuk Mobile (di bawah 576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 20px; /* Padding sisi untuk mobile */
    }

    /* Perkecil lagi ukuran font untuk layar yang sangat kecil */
    .welcome-section h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    .welcome-section h2 {
        font-size: 1.2rem;
    }
    .welcome-section p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Agar footer tidak terlalu memakan tempat */
    footer {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
}

/* ================================== */
/* ===== GAYA UNTUK BAGIAN FAQ ====== */
/* ================================== */

.faq-section {
    padding: 4rem 0;
    background-color: #fff; /* Memberi kontras dengan section lain */
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -1rem auto 3rem auto;
    color: #555;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question i {
    font-size: 1rem;
    color: var(--primary-light);
    transition: transform 0.3s ease-in-out;
}

.faq-answer {
    max-height: 0; /* Awalnya jawaban disembunyikan */
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.3s ease;
    padding: 0 1rem; /* Hilangkan padding saat tersembunyi */
}

.faq-answer p {
    color: #333;
    line-height: 1.7;
    padding-bottom: 1.5rem; /* Beri jarak bawah saat terbuka */
}

/* Style saat FAQ aktif/terbuka */
.faq-item.active .faq-question {
    color: var(--primary-light);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg); /* Putar ikon panah ke atas */
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Atur tinggi maksimal agar jawaban terlihat */
    padding-top: 0.5rem;
}

/* ========================================= */
/* ===== GAYA UNTUK BAGIAN PANDUAN & TIPS ====== */
/* ========================================= */

.tips-section {
    padding: 4rem 0;
    background-color: var(--light-bg); /* Menggunakan warna latar terang */
}

/* Menggunakan kembali style subtitle yang sudah ada */
.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -1rem auto 3rem auto;
    color: #555;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tip-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--accent-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.tip-icon {
    margin-bottom: 1.5rem;
}

.tip-icon i {
    font-size: 3rem;
    color: var(--primary-light);
}

.tip-card h4 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.tip-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

/* ===== OPSI 1: CSS HEADER TOP BAR ===== */
.header-professional {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Styling Top Bar */
.header-top-bar {
    background-color: var(--primary-dark);
    color: #e0e0e0;
    padding: 0.5rem 0;
    font-size: 0.85rem;
     margin-top: -16px
    
}

.header-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 1.5rem;
}

.contact-info i, .social-media i {
    color: var(--accent-gold);
    margin-right: 0.5rem;
}

.social-media a {
    color: #e0e0e0;
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #fff;
}

/* Styling Header Utama */
.main-header {
    padding: 1.25rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul { list-style: none; display: flex; gap: 25px; }
nav a {
    text-decoration: none;
    color: var(--primary-light);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}
nav a::after { /* Efek underline yang sudah ada */
    content: ''; position: absolute; width: 100%; transform: scaleX(0); height: 2px;
    bottom: 0; left: 0; background-color: var(--accent-gold);
    transform-origin: bottom center; transition: transform 0.25s ease-out;
}
nav a:hover::after, nav a.active::after { transform: scaleX(1); }

/* Responsif untuk Top Bar */
@media (max-width: 768px) {
    .header-top-bar {
        display: none; /* Sembunyikan top bar di mobile untuk menghemat ruang */
    }
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========================================= */
/* ===== CSS UNTUK HALAMAN PROFIL ====== */
/* ========================================= */

/* Menggunakan kembali style page-title dari homepage jika ada */
.page-title {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}
.page-title h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.page-title p {
    font-size: 1.1rem;
    color: #ccc;
    font-weight: 400;
}

/* Bagian Profile Intro */
.profile-intro {
    padding: 4rem 0;
    background: #fff;
}
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}
.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.intro-text h3 {
    font-size: 1.8rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}
.intro-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* ===== OPSI 1: CSS STRUKTUR ORGANISASI - DAFTAR MINIMALIS ===== */
.struktur-organisasi {
    padding: 4rem 0;
}
.pejabat-list {
    max-width: 800px;
    margin: 3rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.pejabat-list-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-light);
}
.pejabat-icon-container {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1.5rem;
}
.pejabat-icon-container i {
    font-size: 1.8rem;
    color: var(--primary-light);
}
.pejabat-info h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin: 0 0 0.25rem 0;
}
.pejabat-info .jabatan {
    color: #555;
    font-size: 0.95rem;
    margin: 0;
}

/* Bagian Info Tambahan */
.info-tambahan {
    padding: 4rem 0;
    background: var(--light-bg);
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}
.wilayah-kerja h3, .maklumat-pelayanan h3 {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}
.wilayah-kerja i, .maklumat-pelayanan i {
    margin-right: 0.75rem;
    color: var(--accent-gold);
}
.wilayah-kerja ul {
    list-style: none;
    padding-left: 0;
}
.wilayah-kerja ul li {
    background: #fff;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    border-left: 4px solid var(--accent-gold);
}
.maklumat-pelayanan blockquote {
    margin: 0;
    padding: 2rem;
    background: #fff;
    border-left: 5px solid var(--primary-light);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    border-radius: 0 8px 8px 0;
}

/* Responsif untuk Halaman Profil */
@media (max-width: 992px) {
    .intro-grid, .info-grid {
        grid-template-columns: 1fr;
    }
}