/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Reset dan Pengaturan Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    background-color: #ffc107;
    color: #0d47a1;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #ffca2c;
    transform: translateY(-2px);
}

/* Header & Navigasi BARU */
header {
    background-color: #ffffff;
    padding: 1rem 0;
    border-bottom: 3px solid #0d47a1;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 60px;
    margin-right: 15px;
}

header .logo h1 {
    font-size: 1.2rem;
    color: #0d47a1;
    font-weight: 700;
    line-height: 1;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #ffc107;
    transition: width 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: #0d47a1;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Sembunyikan di desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #0d47a1;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}


/* Slider BARU */
.slider-container {
    width: 100%;
    height: 80vh; /* Tinggi slider bisa disesuaikan */
    position: relative;
    overflow: hidden;
    background-color: #333;
}

.slider {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1; /* lebih rendah dari tombol */

    
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    width: 80%;
    max-width: 800px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5); 
    border-radius: 10px;
    z-index: 5; /* <-- TAMBAHKAN BARIS INI */
}

.slide-content h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    color: #333;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px;
    z-index: 10;
}
.slider-btn:hover { background-color: white; }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}
.dot.active { background-color: white; }


/* SEKSI LAINNYA (dengan sedikit penyesuaian) */
.menu-utama { padding: 4rem 0; }
/* ... (CSS untuk .menu-grid, .card, .informasi-terkini, dll tetap sama dari file css Anda sebelumnya) ... */
/* PASTE SEMUA CSS LAMA ANDA DI SINI, KECUALI BAGIAN HEADER */
.section-title, .page-title { text-align: center; margin-bottom: 3rem; }
.section-title h2, .page-title h1 { font-size: 2.5rem; color: #0d47a1; font-weight: 700; margin-bottom: 0.5rem; }
.section-title p, .page-title p { font-size: 1.1rem; color: #555; max-width: 600px; margin: 0 auto; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.card { background-color: #fff; border-radius: 10px; padding: 2rem; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none; color: inherit; border: 1px solid #eee; }
.card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.card-icon { margin-bottom: 1.5rem; }
.card-icon svg { width: 50px; height: 50px; color: #ffc107; }
.card h3 { font-size: 1.4rem; color: #0d47a1; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: #666; }
.informasi-terkini { padding: 4rem 0; background-color: #ffffff; }
.berita-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.berita-item { border: 1px solid #e0e0e0; padding: 1.5rem; border-radius: 8px; display: flex; flex-direction: column; }
.berita-tanggal { font-size: 0.85rem; color: #888; font-weight: 600; margin-bottom: 0.5rem; }
.berita-item h3 { font-size: 1.1rem; color: #0d47a1; margin-bottom: 0.5rem; flex-grow: 1; }
.berita-item p { font-size: 0.9rem; color: #555; margin-bottom: 1rem; }
.berita-item a { text-decoration: none; color: #0d47a1; font-weight: 600; font-size: 0.9rem; transition: color 0.3s ease; }
.berita-item a:hover { color: #ffc107; }
.komitmen-akses { padding: 4rem 0; }
.komitmen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.aplikasi-mpaspor, .komitmen-layanan { background-color: #fff; padding: 2.5rem; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.aplikasi-mpaspor h3, .komitmen-layanan h3 { color: #0d47a1; font-size: 1.5rem; margin-bottom: 1rem; }
.aplikasi-mpaspor p { margin-bottom: 1.5rem; }
.app-buttons { display: flex; gap: 1rem; }
.app-button { background-color: #1a237e; color: #fff; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: 600; transition: background-color 0.3s ease; }
.app-button:hover { background-color: #3f51b5; }
.komitmen-layanan blockquote { border-left: 4px solid #ffc107; padding-left: 1.5rem; font-style: italic; font-size: 1.1rem; color: #444; }
.zona-integritas { background-color: #e3f2fd; color: #0d47a1; padding: 3rem 0; text-align: center; }
.zona-integritas h2 { font-size: 2rem; margin-bottom: 1rem; }
.zona-integritas .anti-korupsi { margin-top: 1rem; font-size: 1.1rem; }
footer { background-color: #0d47a1; color: #fff; text-align: center; padding: 1.5rem 0; margin-top: auto; }

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }
    .main-nav.active {
        max-height: 300px; /* Cukup besar untuk menampung link */
        border-top: 1px solid #eee;
    }
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        align-items: center;
    }
    .menu-toggle {
        display: flex;
    }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

    .slide-content h2 { font-size: 2rem; }
    .slide-content p { font-size: 1rem; }
    .komitmen-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    header .logo h1 { display: none; } /* Sembunyikan tulisan di layar sangat kecil */
    .slide-content { padding: 1rem; }
    .slide-content h2 { font-size: 1.5rem; }
    .slide-content p { display: none; } /* Sembunyikan deskripsi di layar sangat kecil */
    .slider-btn { font-size: 1.5rem; padding: 0.2rem 0.7rem; }
}

/* ===================================== */
/* STYLE UNTUK HALAMAN INFORMASI & PENGADUAN */
/* ===================================== */

/* FAQ Accordion */
.faq-container {
    margin-top: 2rem;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: #0d47a1;
}

.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 400;
    color: #0d47a1;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1rem;
}

.faq-answer p {
    margin-bottom: 1.5rem;
}

/* Contact Channels */
.contact-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.channel-card {
    background-color: #f9fafb;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.channel-card svg {
    color: #0d47a1;
    margin-bottom: 1rem;
}

.channel-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.channel-card p {
    color: #555;
    font-weight: 600;
}

/* LAPOR Box */
.lapor-box {
    margin-top: 2rem;
    background-color: #fff3e0;
    border-color: #ffcc80;
    border-left-color: #ffa726;
    color: #8d5b00;
}

.lapor-box a.btn {
    margin-top: 1rem;
    background-color: #ffa726;
    color: white;
}
.lapor-box a.btn:hover {
    background-color: #fb8c00;
}