:root { --primary: #00007a; --accent: #ffee00; --text: #333; --light: #f4f4f4; }
body { font-family: 'Arial', sans-serif; margin: 0; background: var(--light); color: var(--text); line-height: 1.6; }
.container { max-width: 1100px; margin: auto; padding: 0 20px; }

/* Header & Nav */
header { background: #fff; padding: 25px 0; text-align: center; border-bottom: 4px solid var(--primary); }
header h1 { margin: 0; font-family: 'Georgia', serif; font-size: 38px; color: var(--primary); }
nav { background: var(--primary); position: sticky; top: 0; z-index: 1000; }
nav .nav-flex { display: flex; justify-content: space-between; align-items: center; }
nav a { color: #fff; padding: 15px 15px; text-decoration: none; font-weight: bold; font-size: 13px; text-transform: uppercase; }
nav a:hover { background: var(--accent); }

/* Search Bar */
.search-form { display: flex; background: #fff; border-radius: 4px; overflow: hidden; height: 35px; }
.search-form input { border: none; padding: 5px 10px; outline: none; }
.search-form button { background: var(--accent); border: none; color: white; padding: 0 15px; cursor: pointer; }

/* News Layout */
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-top: 30px; }
.card { background: #fff; margin-bottom: 25px; border-bottom: 3px solid #ddd; }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-content { padding: 15px; }
.category-label { background: var(--accent); color: white; font-size: 10px; padding: 3px 8px; text-transform: uppercase; font-weight: bold; }
.card h3 { font-family: 'Georgia', serif; margin: 10px 0; font-size: 20px; }
.card h3 a { text-decoration: none; color: var(--primary); }
.card h3 a:hover { color: var(--accent); }

/* Admin */
.admin-box { background: #fff; padding: 20px; border-radius: 5px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
input, textarea, select { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ccc; box-sizing: border-box; }

/* Style Tambahan untuk Top Bar */
.admin-login-link {
    font-size: 11px;
    color: #666;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-login-link:hover {
    color: var(--accent);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Memastikan Menu Link rapi */
.menu-links {
    display: flex;
}

@media (max-width: 768px) {
    .nav-flex {
        flex-direction: column;
        padding: 10px 0;
    }
}

/* Layout Header agar konten di tengah */
.header-content {
    display: flex;
    justify-content: center; /* Mengetengahkan seluruh blok logo */
    padding: 20px 0;
}

/* Wrapper untuk Gambar + Teks */
.brand-wrapper {
    display: flex;
    align-items: center; /* Menyejajarkan gambar dan teks secara vertikal */
    text-decoration: none;
    gap: 20px; /* Jarak antara gambar dan teks */
}

/* Pengaturan Gambar Logo */
.header-logo-img {
    height: 70px; /* Sesuaikan tinggi logo Anda */
    width: auto;
}

/* Pengaturan Grup Teks */
.header-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left; /* Teks rata kiri terhadap grupnya */
}

.logo-text {
    font-family: 'Georgia', serif;
    font-size: 40px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.tagline {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 13px;
    font-style: italic;
    letter-spacing: 1px;
}

/* Responsif untuk HP */
@media (max-width: 600px) {
    .brand-wrapper {
        gap: 10px;
    }
    .header-logo-img {
        height: 50px;
    }
    .logo-text {
        font-size: 28px;
    }
}

/* Styling Struktur Organisasi */
.struktur-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.struktur-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

.struktur-card {
    background: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary);
    transition: transform 0.3s;
}

.struktur-card:hover {
    transform: translateY(-5px);
}

.pimpinan {
    width: 250px;
    border-top-color: var(--accent);
}

.struktur-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    background: #eee;
}

.struktur-card h4 {
    margin: 5px 0;
    font-size: 16px;
    color: var(--primary);
}

.struktur-card p {
    margin: 0;
    font-size: 13px;
    color: var(--accent);
    font-weight: bold;
    text-transform: uppercase;
}

/* Styling Link di Footer */
.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    margin: 0 10px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Memastikan container tetap di tengah */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}