@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;600;700&family=Vidaloka&display=swap');

:root {
    --primary: #0F2C59;      /* Biru Navy Elegan */
    --primary-light: #1D4ED8;
    --accent: #F59E0B;       /* Kuning/Oranye Emas */
    --accent-hover: #D97706;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --radius: 10px;
    --shadow: 0 4px 20px rgba(15, 44, 89, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Source Sans 3', 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.65;
}

h1, h2, h3, .font-serif {
    font-family: 'Vidaloka', serif;
    color: var(--primary);
    letter-spacing: 0.3px;
}

a { text-decoration: none; color: inherit; transition: 0.25s; }
img { max-width: 100%; display: block; }

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Topbar & Sosmed */
.topbar {
    background: var(--primary);
    color: var(--white);
    font-size: 0.875rem;
    padding: 8px 0;
    border-bottom: 2px solid var(--accent);
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: var(--white);
}
.social-links a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}
.social-links svg { width: 15px; height: 15px; fill: currentColor; }

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    border-radius: 6px;
}
.brand-text h1 { font-size: 1.35rem; line-height: 1.2; }
.brand-text span { font-size: 0.8rem; color: var(--text-muted); display: block; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 22px;
    align-items: center;
}
.nav-menu a {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent-hover);
    border-bottom-color: var(--accent);
}
.btn-ppdb {
    background: var(--accent);
    color: var(--primary) !important;
    padding: 8px 18px !important;
    border-radius: 50px;
    font-weight: 700 !important;
}
.btn-ppdb:hover { background: var(--accent-hover); color: var(--white) !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--primary); cursor: pointer; }

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 480px;
    overflow: hidden;
    background: var(--primary);
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}
.slide.active { opacity: 1; z-index: 2; }
.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,44,89,0.88) 0%, rgba(15,44,89,0.45) 100%);
}
.slide-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 680px;
}
.slide-content h2 {
    color: var(--white);
    font-size: 2.6rem;
    margin-bottom: 12px;
    line-height: 1.2;
}
.slide-content p { font-size: 1.15rem; margin-bottom: 24px; color: #E2E8F0; }
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 6px;
}
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }

/* Sections & Cards */
section { padding: 64px 0; }
.section-header {
    text-align: center;
    margin-bottom: 42px;
}
.section-header h2 { font-size: 2.1rem; margin-bottom: 8px; }
.section-header .line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.25s;
}
.card:hover { transform: translateY(-4px); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.badge {
    display: inline-block;
    background: #FEF3C7;
    color: #B45309;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Sambutan Kepsek */
.sambutan-box {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    align-items: center;
    border-left: 6px solid var(--accent);
}
.sambutan-box img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Footer */
footer {
    background: var(--primary);
    color: #CBD5E1;
    padding-top: 54px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    padding-bottom: 40px;
}
footer h3 { color: var(--white); margin-bottom: 16px; font-size: 1.3rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul a:hover { color: var(--accent); }
.footer-bottom {
    background: #091D3E;
    padding: 18px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom a { color: var(--accent); font-weight: 600; }

/* Admin Layout */
.admin-wrap { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px;
    background: var(--primary);
    color: var(--white);
    padding: 24px 16px;
    flex-shrink: 0;
}
.sidebar h2 { color: var(--accent); font-size: 1.4rem; margin-bottom: 24px; padding-left: 10px; }
.sidebar a {
    display: block;
    padding: 11px 14px;
    border-radius: 6px;
    margin-bottom: 6px;
    color: #E2E8F0;
    font-weight: 600;
}
.sidebar a:hover, .sidebar a.active { background: var(--accent); color: var(--primary); }
.admin-main { flex: 1; padding: 30px; overflow-x: auto; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--primary); }
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
}
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--primary); color: var(--white); }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
    }
    .nav-menu.open { display: flex; }
    .sambutan-box { grid-template-columns: 1fr; }
    .hero-slider { height: 380px; }
    .slide-content h2 { font-size: 1.9rem; }
    .admin-wrap { flex-direction: column; }
    .sidebar { width: 100%; }
}