:root {
    --green: #22c55e;
    --green-dark: #166534;
    --bg: #f9fafb;
    --card: #ffffff;
    --text: #065f46;
    --muted: #6b7280;
    --border: #e5e7eb;
}


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: Poppins, Segoe UI, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit
}

img {
    max-width: 100%;
    display: block
}


/* NAVBAR */

.navbar {
    background: linear-gradient(90deg, var(--green-dark), var(--green));
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #ecfdf5;
    font-size: 20px;
    font-weight: 700;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 16px;
}

.nav-menu a {
    color: #ecfdf5;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-menu a.active {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 12px;
}

.btn-admin {
    background: #fff;
    color: var(--green-dark)!important;
    font-weight: 600;
}


/* HERO */

.hero {
    text-align: center;
    padding: 90px 20px;
    background: #ecfdf5;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px
}

.hero p {
    color: #047857
}


/* CONTAINER */

.container {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
}

.section {
    margin-bottom: 70px
}

.section h2 {
    font-size: 26px;
    margin-bottom: 20px
}


/* GRID & CARD */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card);
    border-radius: 16px;
    padding: 22px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.card h3 {
    margin: 12px 0 6px
}

.card small {
    color: var(--muted)
}


/* LIST */

.list {
    list-style: none
}

.list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}


/* GALERI */

.gallery img {
    border-radius: 14px;
    aspect-ratio: 4/3;
    object-fit: cover;
}


/* MAP */

.map iframe {
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: 16px;
}


/* FOOTER */

footer {
    background: linear-gradient(90deg, var(--green-dark), var(--green));
    color: #ecfdf5;
    text-align: center;
    padding: 30px;
    margin-top: 60px;
}


/* RESPONSIVE */

@media(max-width:768px) {
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center
    }
    .hero h1 {
        font-size: 28px
    }
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    margin-bottom: 14px;
}

.btn-kirim {
    background: #22c55e;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
}

.btn-kirim:hover {
    opacity: .9
}


/* ===============================
PENGUMUMAN BERANDA (FIX PAS)
================================*/

.pengumuman-list {
    list-style: none;
}

.pengumuman-item {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}


/* UKURAN PAS */

.pengumuman-item img {
    width: 140px;
    height: 95px;
    max-width: 140px;
    max-height: 95px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}


/* TEKS */

.pengumuman-text {
    flex: 1;
}

.pengumuman-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.pengumuman-text small {
    color: var(--muted);
    font-size: 13px;
}

.berita-card {
    text-decoration: none;
    color: inherit;
    transition: .25s;
}

.berita-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .15);
}


/* ===============================
   WARNA TEKS BERANDA (HITAM)
================================ */


/* teks umum */

body {
    color: #1f2937;
    /* hitam keabu */
}


/* judul section */

.section h2,
.section h3 {
    color: #111827;
    /* hitam pekat */
}


/* isi paragraf */

.section p,
.section li,
.section small {
    color: #374151;
}


/* kartu konten */

.card {
    color: #1f2937;
}


/* pengumuman */

.pengumuman-body h3 {
    color: #111827;
}

.pengumuman-body small {
    color: #6b7280;
}


/* berita */

#berita .card h3 {
    color: #111827;
}

#berita .card p {
    color: #374151;
}

html {
    scroll-behavior: smooth;
}