/* =========================
   GOOGLE FONTS & RESET
========================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f7f7fb;
    color: #22223b;
    line-height: 1.6;
}

/* =========================
   HEADER
========================= */

header {
    background: #17152b;
    padding: 0 50px;
    height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.25);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    border-radius: 50%;
    display: inline-block;
}

header h2 {
    color: white;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

/* NAV */

nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

nav a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

nav a:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

nav a.nav-active {
    color: white;
    background: linear-gradient(135deg, rgba(124,58,237,0.55), rgba(37,99,235,0.55));
    font-weight: 600;
}

/* HAMBURGER */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =========================
   BANNER HOME
========================= */

.banner {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 60%, #06b6d4 100%);
    color: white;
    text-align: center;
    padding: 130px 20px 110px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.banner h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
    position: relative;
    animation: fadeUp 0.7s ease both;
}

.banner p {
    font-size: 19px;
    opacity: 0.9;
    position: relative;
    animation: fadeUp 0.7s 0.15s ease both;
}

/* PAGE BANNER (halaman dalam) */

.page-banner {
    background: linear-gradient(135deg, #17152b 0%, #30205c 100%);
    color: white;
    padding: 55px 50px 45px;
    position: relative;
    overflow: hidden;
}

.page-banner::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(124,58,237,0.15);
}

.page-banner h1 {
    font-size: 32px;
    font-weight: 800;
    position: relative;
}

.page-banner p {
    font-size: 15px;
    opacity: 0.65;
    margin-top: 6px;
    position: relative;
}


/* =========================
   CONTAINER
========================= */

.container {
    width: 85%;
    max-width: 1100px;
    margin: 60px auto;
    animation: fadeUp 0.6s ease both;
}

.container h1 {
    margin-bottom: 20px;
    font-size: 30px;
    font-weight: 700;
}

.container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
}

.container p {
    line-height: 1.8;
    color: #4a4a6a;
}


/* =========================
   INFO HOME CARDS
========================= */

.info {
    display: flex;
    gap: 20px;
    margin-top: 35px;
}

.info div {
    background: white;
    padding: 28px 25px;
    flex: 1;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.info div:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.18);
    border-color: #c4b5fd;
}

.info div b {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.info div p {
    font-size: 15px;
    color: #22223b;
    font-weight: 500;
    line-height: 1.5;
}


/* =========================
   SEJARAH
========================= */

.sejarah {
    background: white;
    margin-top: 25px;
    padding: 30px 35px;
    border-left: 4px solid #7c3aed;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    animation: fadeUp 0.5s ease both;
}

.sejarah:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(124,58,237,0.12);
}

.sejarah h2 {
    color: #7c3aed;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    display: inline-block;
    background: #f5f3ff;
    padding: 4px 14px;
    border-radius: 20px;
}

.sejarah h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: #22223b;
    font-weight: 600;
}

.sejarah p {
    color: #555;
    line-height: 1.8;
}


/* =========================
   VISI MISI
========================= */

.visi {
    background: white;
    margin-top: 22px;
    padding: 30px 35px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.visi:hover {
    box-shadow: 0 8px 30px rgba(37,99,235,0.12);
}

.visi h2 {
    color: #2563eb;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eff6ff;
}

.visi p {
    line-height: 1.85;
    color: #444;
}


/* =========================
   TABEL STRUKTUR
========================= */

.tabel-struktur {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.tabel-struktur th {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.tabel-struktur td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f8;
    font-size: 14px;
    color: #333;
}

.tabel-struktur tbody tr:last-child td {
    border-bottom: none;
}

.tabel-struktur tbody tr:hover {
    background: #f5f3ff;
}

.tabel-struktur th:first-child,
.tabel-struktur td:first-child {
    width: 60px;
    text-align: center;
}


/* =========================
   TABEL PROGRAM
========================= */

.program-container {
    width: 85%;
    max-width: 1100px;
    margin: 60px auto;
    animation: fadeUp 0.6s ease both;
}

.program-container h1 {
    color: #22223b;
    margin-bottom: 25px;
    font-size: 30px;
    font-weight: 700;
}

.tabel-program {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.tabel-program th {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

.tabel-program td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f8;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

.tabel-program tr:last-child td {
    border-bottom: none;
}

.tabel-program tbody tr:hover {
    background: #f5f3ff;
}

.tabel-program th:first-child,
.tabel-program td:first-child {
    width: 55px;
    text-align: center;
}

.tabel-program th:nth-child(2) { width: 230px; }

.tabel-program td:nth-child(2) {
    font-weight: 600;
    color: #22223b;
}


/* =========================
   FOOTER
========================= */

footer {
    background: #17152b;
    color: white;
    padding: 35px 20px;
    margin-top: 70px;
    text-align: center;
}

.footer-inner {
    max-width: 500px;
    margin: 0 auto;
}

.footer-brand {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
}

.footer-admin-link {
    margin-bottom: 15px;
}

.footer-admin-link a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

.footer-admin-link a:hover {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
}

.footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 14px;
}


/* =========================
   ANIMASI
========================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    header {
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: #1e1b35;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    nav a {
        padding: 14px 25px;
        border-radius: 0;
        font-size: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    nav a:last-child { border-bottom: none; }

    .banner {
        padding: 90px 25px 70px;
    }

    .banner h1 {
        font-size: 36px;
    }

    .banner p {
        font-size: 16px;
    }

    .page-banner {
        padding: 40px 25px 35px;
    }

    .page-banner h1 {
        font-size: 26px;
    }

    .container {
        width: 90%;
        margin: 40px auto;
    }

    .container h1 { font-size: 24px; }
    .container h2 { font-size: 20px; }

    .info {
        flex-direction: column;
        gap: 14px;
    }

    .sejarah, .visi {
        padding: 22px 20px;
    }

    .tabel-struktur,
    .tabel-program {
        display: block;
        overflow-x: auto;
        font-size: 13px;
    }

    .tabel-struktur th,
    .tabel-struktur td,
    .tabel-program th,
    .tabel-program td {
        padding: 12px 14px;
    }

    .program-container {
        width: 90%;
        margin: 40px auto;
    }

    .program-container h1 { font-size: 24px; }

    footer {
        margin-top: 50px;
        padding: 30px 20px;
    }
}