/* --- Pengaturan Dasar & Tipografi --- */
:root {
    --primary-color: #0A2351; /* Biru Tua */
    --secondary-color: #FFC107; /* Emas/Kuning */
    --background-color: #f4f7f9;
    --text-color: #333;
    --light-text-color: #666;
    --white-color: #ffffff;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.content-section {
    background-color: var(--white-color);
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.content-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
}


/* --- Header & Navigasi --- */
header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 1rem 0;
    position: relative;
    border-bottom: 4px solid var(--secondary-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo img {
    height: 60px; /* Ukuran logo di mobile */
}

#header-title {
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#header-title h1 {
    font-size: 0.9rem; /* Lebih kecil di mobile */
    font-weight: 600;
    line-height: 1.2;
}

#header-title p {
    font-size: 0.7rem;
    font-weight: 300;
}

/* Tombol Hamburger Menu */
#mobile-menu-toggle {
    display: block; /* Tampil di mobile */
    font-size: 1.8rem;
    color: var(--white-color);
    background: none;
    border: none;
    cursor: pointer;
}

#mobile-menu-close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: var(--white-color);
    background: none;
    border: none;
    cursor: pointer;
}

/* Navigasi (Default: Tersembunyi di Mobile) */
#main-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Sembunyikan di kanan */
    width: 80%;
    height: 100vh;
    background-color: var(--primary-color);
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transition: right 0.4s ease-in-out;
    z-index: 1000;
    padding-top: 5rem;
}

#main-nav.is-open {
    right: 0; /* Tampilkan saat class .is-open ditambahkan */
}

#main-nav ul {
    display: flex;
    flex-direction: column;
}

#main-nav li a {
    display: block;
    padding: 1rem 2rem;
    color: var(--white-color);
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#main-nav li a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

#main-nav li a i {
    margin-right: 1rem;
    width: 20px;
}

/* --- Banner Slider --- */
#banner-slider {
    position: relative;
    width: 100%;
    height: 250px; /* Tinggi banner di mobile */
    overflow: hidden;
    background-color: var(--primary-color);
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide::after { /* Overlay gelap agar teks terbaca */
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
}
.slide.active { opacity: 1; }

.caption {
    position: absolute;
    bottom: 1.5rem;
    left: 5%;
    width: 90%;
    color: var(--white-color);
    z-index: 2;
    text-align: center;
}
.caption h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.caption p { font-size: 0.9rem; font-weight: 300; }


/* --- Sesi Berita --- */
.berita-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.berita-item {
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.berita-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.berita-content { padding: 1rem; }
.berita-meta { font-size: 0.8rem; color: var(--light-text-color); margin: 0.5rem 0; }
.btn-baca {
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}
.btn-baca:hover { background-color: #071a3d; }


/* --- Sesi Alur Permohonan --- */
.alur-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}
.step-icon {
    font-size: 2.5rem;
    color: var(--white-color);
    background-color: var(--primary-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem auto;
    border: 3px solid var(--secondary-color);
}
.step h3 { color: var(--primary-color); font-size: 1.2rem; margin-bottom: 0.5rem; }


/* --- Sesi Lokasi & Jam Operasional --- */
.lokasi-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.jam-container h3 { color: var(--primary-color); margin-top: 1rem; margin-bottom: 0.5rem; }
.jam-container ul li { margin-bottom: 0.5rem; }


/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: #ccc;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    font-size: 0.8rem;
}


/* =============================================== */
/* --- DESKTOP VIEW (Layar lebih besar dari 800px) --- */
/* =============================================== */
@media (min-width: 800px) {
    .container { width: 85%; }

    /* Header & Navigasi Desktop */
    #mobile-menu-toggle, #mobile-menu-close {
        display: none; /* Sembunyikan tombol mobile */
    }

    .header-container {
        flex-direction: column; /* Ubah tata letak header jadi kolom */
    }

    #logo img {
        height: 100px; /* Logo lebih besar di desktop */
        margin-bottom: 1rem;
        transform: scale(2.0);
    }
    
    #header-title {
        position: static;
        transform: none;
        margin-bottom: 1.5rem;
    }

    #header-title h1 { font-size: 2rem; }
    #header-title p { font-size: 1.2rem; }

    #main-nav {
        position: static;
        width: 100%;
        height: auto;
        background: none;
        box-shadow: none;
        padding-top: 0;
    }
    #main-nav ul {
        flex-direction: row;
        justify-content: center;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 1rem;
    }
    #main-nav li a {
        border-bottom: none;
        border-radius: 5px;
        margin: 0 0.5rem;
        padding: 0.5rem 1rem;
    }

    /* Banner Desktop */
    #banner-slider { height: 450px; }
    .caption { text-align: left; left: 10%; width: 50%; }
    .caption h2 { font-size: 2.5rem; }
    .caption p { font-size: 1.1rem; }

    /* Layout Konten Desktop */
    .content-section { padding: 3rem; }
    
    .berita-grid {
        flex-direction: row;
    }
    .berita-item {
        flex: 1;
    }

    .alur-steps {
        flex-direction: row;
        justify-content: space-around;
    }
    .step {
        flex-basis: 22%;
    }

    .lokasi-grid {
        flex-direction: row;
        align-items: flex-start;
    }
    .peta-container {
        flex: 1.5;
    }
    .jam-container {
        flex: 1;
    }
}

/* =============================================== */
/* --- RUNNING TEXT / NEWS TICKER --- */
/* =============================================== */
#running-text-container {
    background-color: #EF6C00; /* Warna kuning emas */
    color: var(--primary-color); /* Teks warna biru tua */
    padding: 0.8rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ticker-wrap {
    display: flex;
    align-items: center;
    overflow: hidden; /* Penting: Menyembunyikan teks yang keluar dari area */
}

.ticker-label {
    font-weight: 700;
    font-size: 0.9rem;
    padding-right: 1rem;
    white-space: nowrap; /* Mencegah label terpotong ke baris baru */
}

.ticker-label i {
    margin-right: 0.5rem;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
}

.ticker-content p {
    margin: 0;
    padding-left: 100%; /* Mulai teks dari luar layar sebelah kanan */
    display: inline-block;
    white-space: nowrap;
    
    /* Menerapkan animasi */
    animation-name: scroll-left;
    animation-duration: 40s; /* Durasi animasi, sesuaikan jika teks lebih panjang/pendek */
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Efek berhenti saat mouse diarahkan */
.ticker-content:hover p {
    animation-play-state: paused;
}

/* Definisi Keyframes untuk Animasi Scrolling */
@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Penyesuaian untuk Tampilan Mobile */
@media (max-width: 800px) {
    .ticker-label span {
        display: none; /* Sembunyikan tulisan "INFO PENTING" di HP, sisakan ikon saja */
    }

    .ticker-label {
        padding-right: 0.7rem;
    }
}