/* ==============================
   Variables & Global Reset
============================== */
:root {
    --primary-color: #2c7a4b;
    --secondary-color: #66bb6a;
    --accent-color: #007BFF;
    --text-color: #fff;
    --bg-light: #f9f9f9;
    --bg-page: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: var(--bg-page);
    color: #333;
}

.map-responsive {
    overflow: hidden;
    /* Maintain a 4:3 aspect ratio */
    padding-bottom: 75%; 
    position: relative;
    height: 0;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* ==============================
   Container
============================== */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* ==============================
   Header & Navbar
============================== */
header {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==============================
   Logo + Judul Universal
============================== */
.logo-title {
    display: flex;
    align-items: center; /* logo dan tulisan sejajar vertikal */
    gap: 10px;           /* jarak antara logo dan teks */
}

.logo-title img {
    width: 50px;
    height: 50px;
}

.title-text .small-title,
.title-text .main-title {
    font-size: 22px;      /* ukuran teks konsisten */
    font-weight: bold;
    color: var(--text-color);
    line-height: 1.2;
    display: block;       /* tetap baris terpisah */
}

/* Responsive untuk layar kecil */
@media (max-width: 480px) {
    .logo-title img {
        width: 40px;
        height: 40px;
    }

    .title-text .small-title,
    .title-text .main-title {
        font-size: 18px;
    }
}

/* Navbar */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a.active,
nav ul li a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
}

/* Responsive Navbar */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: var(--primary-color);
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 10px;
        border-radius: 0 0 10px 10px;
        z-index: 999;
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* ==============================
   Hero Section
============================== */
.hero {
    position: relative;
    background: var(--secondary-color);
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
}

.hero h2 {
    font-size: 36px;
}

.hero p {
    margin-top: 10px;
    font-size: 18px;
}

/* ==============================
   Tabel Kode Pos
============================== */
.kode-pos {
    padding: 40px 0;
}

.kode-pos h2 {
    text-align: center;
    margin-bottom: 30px;
}

.kode-pos table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.kode-pos th, .kode-pos td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.kode-pos th {
    background: var(--primary-color);
    color: var(--text-color);
}

.kode-pos tr:hover {
    background: #e0f2e9;
}

/* ==============================
   Footer
============================== */
footer {
    background: var(--primary-color);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section h3 {
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 5px;
}

.footer-section ul li a {
    text-decoration: none;
    color: #fff;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

/* Animasi Fade-in */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .kode-pos table {
        font-size: 14px;
    }
}