* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --biru-tua: #0a2b3e;
    --biru-muda: #1b4f6e;
    --orange: #ffb347;
    --orange-gelap: #e69a2e;
    --abu: #f5f7fa;
    --abu-gelap: #e9ecef;
    --putih: #ffffff;
    --teks: #333333;
    --teks-abu: #6c757d;
    --merah: #e74c3c;
    --merah-gelap: #c1121f;
    --hijau: #27ae60;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border: #e1e8ed;
    --radius: 16px;
    --radius-kecil: 12px;
}

body {
    font-family: 'Segoe UI', 'Inter', Arial, sans-serif;
    background: var(--abu);
    color: var(--teks);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
}

h2 {
    font-size: 1.8rem;
    color: var(--biru-tua);
}

h3 {
    font-size: 1.3rem;
    color: var(--biru-tua);
    margin-bottom: 0.8rem;
}

header {
    background: var(--biru-tua);
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo {
    max-height: 55px;
    width: auto;
}

.logo-container h1 {
    font-size: 1.3rem;
    color: var(--putih);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

nav ul li a {
    color: var(--putih);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: 0.2s;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--orange);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--orange);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--putih);
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.page-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-title h2 {
    display: inline-block;
    border-bottom: 3px solid var(--orange);
    padding-bottom: 0.5rem;
}

.page-title p {
    color: var(--teks-abu);
    margin-top: 0.5rem;
}

.hero {
    background: linear-gradient(135deg, var(--biru-tua), var(--biru-muda));
    color: var(--putih);
    padding: 3.5rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.2rem;
    color: var(--putih);
    margin-bottom: 0.8rem;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn-primary,
.btn-secondary,
.btn-add,
.btn-edit,
.btn-delete,
.btn-update,
.btn-map {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: var(--orange);
    color: var(--biru-tua);
}

.btn-primary:hover {
    background: var(--orange-gelap);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--biru-muda);
    color: var(--putih);
}

.btn-secondary:hover {
    background: var(--biru-tua);
    transform: translateY(-2px);
}

.btn-add {
    background: var(--orange);
    color: var(--biru-tua);
    padding: 0.6rem 1.5rem;
}

.btn-add:hover {
    background: var(--orange-gelap);
}

.btn-edit {
    background: var(--biru-muda);
    color: var(--putih);
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
}

.btn-edit:hover {
    background: var(--biru-tua);
}

.btn-delete {
    background: var(--merah);
    color: var(--putih);
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
}

.btn-delete:hover {
    background: var(--merah-gelap);
}

.btn-update {
    background: var(--orange);
    color: var(--biru-tua);
    width: 100%;
}

.btn-cancel {
    display: inline-block;
    background: var(--merah-gelap);
    color: var(--putih);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.btn-update:hover {
    background: var(--orange-gelap);
}

.btn-map {
    background: var(--orange);
    color: var(--biru-tua);
    margin-top: 1rem;
}

.about-short,
.feature-card,
.program-card,
.form-container,
.contact-info,
.contact-form,
.visi-misi,
.struktur,
.sejarah,
.table-wrapper,
.edit-container,
.data-header {
    background: var(--putih);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover,
.program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.program-card h3 {
    color: var(--biru-tua);
    margin-bottom: 0.5rem;
}

.durasi {
    color: var(--orange);
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border);
}

.program-card p {
    color: var(--teks-abu);
    font-size: 0.95rem;
}

.features-highlight {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.feature-card {
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--teks-abu);
    font-size: 0.9rem;
}

.form-container {
    max-width: 650px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--biru-tua);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-kecil);
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.1);
}

.error-message {
    color: var(--merah);
    font-size: 0.7rem;
    margin-top: 0.3rem;
    display: block;
}

.data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.data-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.table-wrapper {
    padding: 0;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--biru-tua);
    color: var(--putih);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tr:hover {
    background: var(--abu);
}

.badge-program {
    background: #e8f4fd;
    color: var(--biru-tua);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.action-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.edit-container {
    max-width: 550px;
    margin: 0 auto;
}

.edit-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.btn-back {
    display: inline-block;
    margin-bottom: 1.2rem;
    color: var(--biru-muda);
    text-decoration: none;
    font-weight: 500;
}

.btn-back:hover {
    text-decoration: underline;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-info p {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.map-placeholder {
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
}

.visi-misi {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.visi,
.misi {
    flex: 1;
}

.misi ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.misi li {
    margin: 0.6rem 0;
    color: var(--teks-abu);
}

.org-chart {
    margin-top: 1rem;
}

.org-item {
    background: var(--abu);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-kecil);
    margin: 0.6rem 0;
    font-weight: 500;
    color: var(--biru-tua);
    border-left: 4px solid var(--orange);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--teks-abu);
}

.empty-state p {
    margin-bottom: 1rem;
}

footer {
    background: var(--biru-tua);
    color: var(--putih);
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    main {
        padding: 1.5rem;
    }
    
    .program-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 1.5rem;
    }
    
    .logo-container h1 {
        font-size: 1.1rem;
    }
    
    .logo {
        max-height: 45px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    nav ul li a {
        display: block;
        padding: 0.5rem;
    }

    .hero {
        padding: 2rem 1.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }

    main {
        padding: 1rem;
    }
    
    .page-title h2 {
        font-size: 1.5rem;
    }
    
    .data-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .features-highlight {
        flex-direction: column;
    }
    
    .program-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }

    .visi-misi {
        flex-direction: column;
    }

    .form-container {
        padding: 1.2rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
    
    .action-buttons {
        gap: 0.3rem;
    }
    
    .btn-edit,
    .btn-delete {
        padding: 0.2rem 0.7rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .logo-container h1 {
        display: none;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .btn-primary,
    .btn-add {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--abu-gelap);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--biru-muda);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--biru-tua);
}