/* --- Konfigurasi Dasar & Variabel Warna --- */
:root {
    --primary-color: #0D2A4C;  /* Biru Tua Khas Instansi */
    --secondary-color: #E6A400; /* Emas sebagai Aksen */
    --background-light: #f4f7f9; /* Abu-abu Sangat Muda untuk Latar */
    --text-dark: #333333;      /* Abu-abu Tua untuk Teks */
    --text-light: #ffffff;     /* Putih untuk Teks di Latar Gelap */
    --card-shadow: rgba(0, 0, 0, 0.08);
    --card-shadow-hover: rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Gaya untuk Header --- */
.main-header {
    background-color: var(--text-light);
    padding: 1rem 0;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container img {
    height: 50px;
    transform: scale(2.0);
    margin-right: 20px;
}

/* Gaya untuk logo container agar logo dan teks sejajar */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Jarak antara logo dan teks */
}

/* Wadah untuk teks di samping logo */
.logo-text {
    display: flex;
    flex-direction: column;
}

/* Gaya untuk nama kantor */
.office-name {
    font-size: 1.4rem; /* Ukuran font lebih besar */
    font-weight: 700; /* Tebal */
    color: var(--primary-color);
    line-height: 1.2; /* Mengurangi jarak baris */
}

/* Gaya untuk slogan */
.slogan {
    font-size: 0.85rem; /* Ukuran font lebih kecil */
    color: #555; /* Warna abu-abu yang lebih lembut */
    font-weight: 400; /* Tidak tebal */
    letter-spacing: 0.5px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* --- Gaya untuk Konten Utama --- */
.main-content {
    padding: 4rem 0;
}

.page-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* --- Gaya untuk Grid Kartu --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--text-light);
    border: 1px solid #e0e0e0;
    border-left: 5px solid var(--secondary-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 4px 15px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--card-shadow-hover);
    border-left-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.card:hover .card-icon {
    color: var(--secondary-color);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-description {
    font-size: 0.95rem;
    color: #555;
}

/* --- Gaya untuk Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 4rem;
}

.social-media {
    margin-top: 1rem;
}

.social-media a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--secondary-color);
}

/* --- Penyesuaian untuk Layar Kecil (Responsif) --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .page-title {
        font-size: 2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Gaya untuk Bagian Konten Tambahan --- */
.content-section {
    padding: 5rem 0;
}

/* Memberi warna latar berbeda untuk selang-seling bagian */
.bg-light {
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

/* Garis dekoratif di bawah judul bagian */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Gaya Profil --- */
.profile-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}
.profile-image {
    flex: 1;
}
.profile-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.profile-text {
    flex: 1.2;
}
.profile-text h3 {
    color: var(--primary-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* --- Gaya Layanan --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.service-item {
    text-align: center;
    padding: 30px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.service-item:hover {
    transform: translateY(-5px);
    background: #fff;
    border-color: var(--secondary-color);
}
.service-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.service-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* --- Gaya Informasi (Berita) --- */
.news-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}
.news-item:last-child {
    border-bottom: none;
}
.news-date {
    font-size: 0.8rem;
    color: #777;
    display: block;
    margin-bottom: 0.5rem;
}
.news-title {
    margin-bottom: 0.5rem;
}
.news-item a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* --- Gaya FAQ --- */
.faq-accordion details {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 1rem;
}
.faq-accordion summary {
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none; /* Hapus panah default */
    position: relative;
    padding-right: 25px; /* Ruang untuk ikon + */
}
.faq-accordion summary::-webkit-details-marker {
    display: none; /* Hapus panah di Chrome */
}
.faq-accordion summary::after { /* Buat ikon + kustom */
    content: '+';
    position: absolute;
    right: 5px;
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.2s;
}
.faq-accordion details[open] summary::after {
    transform: rotate(45deg);
}
.faq-accordion p {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px dashed #ddd;
}

/* --- Gaya Bagian Pengaduan (Call to Action) --- */
.cta-section {
    background: linear-gradient(rgba(13, 42, 76, 0.9), rgba(13, 42, 76, 0.9)), url(https://via.placeholder.com/1920x400?text=Background+Abstrak) no-repeat center center/cover;
    color: #fff;
    text-align: center;
}
.cta-section h2 {
    font-size: 2rem;
}
.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 1.5rem;
    transition: background-color 0.3s;
}
.cta-button:hover {
    background-color: #ffca28; /* Warna emas lebih cerah saat hover */
}

/* --- Gaya Alur Layanan (Flowchart) --- */
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-top: -2.5rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.flowchart-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.flowchart-step {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-top: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.flowchart-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 15px auto;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.flowchart-step h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.flowchart-arrow {
    flex-shrink: 0;
    align-self: center;
    font-size: 2rem;
    color: #ccc;
    margin: 0 10px;
}

/* --- Penyesuaian Responsif untuk Alur Layanan --- */
@media (max-width: 992px) {
    .flowchart-container {
        flex-direction: column;
        align-items: center;
    }
    .flowchart-arrow {
        transform: rotate(90deg);
        margin: 15px 0;
    }
}

/* --- Gaya Halaman Tambahan (Profil, Layanan, dll.) --- */

.page-hero {
    padding: 4rem 20px;
    text-align: center;
    color: #fff;
    border-bottom: 5px solid var(--secondary-color);
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.bg-light-blue {
    background-color: #f0f4f8; /* Biru muda yang sangat lembut */
}

.two-column-layout {
    display: flex;
    flex-wrap: wrap; /* Agar responsif di layar kecil */
    gap: 40px;
    align-items: flex-start;
}

.two-column-layout .column {
    flex: 1;
    min-width: 300px; /* Lebar minimum sebelum kolom turun */
}

.section-title-left {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
}

.section-title-left i {
    margin-right: 10px;
}

.vision-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #333;
    border-left: 4px solid var(--secondary-color);
    padding: 10px 20px;
    background-color: #f9f9f9;
}

.two-column-layout ul {
    list-style: none;
    padding-left: 0;
}

.two-column-layout ul li {
    padding: 10px 0;
    font-size: 1.1rem;
    border-bottom: 1px dashed #ddd;
}

.two-column-layout ul li::before {
    content: "\f00c"; /* Kode ikon centang dari Font Awesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--secondary-color);
    margin-right: 12px;
}

.text-center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.struktur-organisasi {
    text-align: center;
    margin-top: 1rem;
}

.struktur-organisasi img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

/* --- Gaya Halaman Layanan --- */

.bg-light-beige {
    background-color: #fffaf0; /* Warna FloralWhite, krem yang sangat lembut */
}

.service-feature-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 4rem;
    flex-wrap: wrap; /* Responsif */
}

/* Tata letak terbalik untuk selang-seling */
.service-feature-item.reverse {
    flex-direction: row-reverse;
}

.service-icon-container {
    flex-basis: 200px; /* Lebar area ikon */
    text-align: center;
}

.service-icon-container i {
    font-size: 6rem;
    color: var(--primary-color);
    line-height: 1;
}

.service-details {
    flex: 1; /* Mengisi sisa ruang */
    min-width: 300px;
}

.service-details h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-details p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-details ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.service-details ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

.service-details ul li::before {
    content: "\f14a"; /* Kode ikon centang-kotak dari Font Awesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--secondary-color);
    margin-right: 12px;
}

.btn-learn-more {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-learn-more:hover {
    background-color: #ffcd39;
    transform: translateY(-2px);
}

.support-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.support-service-box {
    background-color: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.support-service-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.support-service-box h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* Penyesuaian responsif untuk tata letak terbalik */
@media (max-width: 768px) {
    .service-feature-item.reverse {
        flex-direction: row; /* Kembalikan ke normal di layar kecil */
    }
    .service-icon-container {
        flex-basis: 100%; /* Ikon mengambil lebar penuh */
        margin-bottom: 20px;
    }
}

/* --- Gaya Halaman Kontak --- */

.contact-details-list {
    list-style: none;
    padding: 0;
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-details-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

.contact-details-list strong {
    display: block;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-details-list span {
    color: #555;
    line-height: 1.6;
}

.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* Rasio 4:3 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form {
    max-width: 800px;
    margin: 2rem auto 0 auto;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Responsif */
}

.contact-form .form-group {
    margin-bottom: 20px;
    flex: 1;
    min-width: 250px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(13, 42, 76, 0.2);
}

.btn-submit {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #0b223c;
}

/* --- Gaya Halaman Informasi --- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden; /* Agar sudut gambar mengikuti border-radius */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Gambar akan mengisi area tanpa distorsi */
}

.news-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Membuat konten mengisi sisa ruang */
}

.news-category {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    align-self: flex-start; /* Posisi di kiri atas */
}

.news-card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    flex-grow: 1; /* Mendorong tombol ke bawah */
}

.news-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.btn-news-read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
}

.btn-news-read-more::after {
    content: ' \2192'; /* Kode untuk panah kanan */
    transition: margin-left 0.3s;
}

.btn-news-read-more:hover::after {
    margin-left: 5px;
}

.info-list {
    list-style: none;
    padding-left: 0;
}

.info-list li {
    padding: 12px 0;
    border-bottom: 1px solid #dce8f6;
}

.info-list li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

.info-list li a:hover {
    color: var(--primary-color);
}

.info-list li span {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-top: 4px;
}

.info-list li i.fa-download {
    float: right;
    color: var(--primary-color);
    cursor: pointer;
}