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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Poppins, sans-serif;
    color: #14213d;
    background: #f8fafc;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* NAVBAR */
.navbar {
    height: 82px;
    background: #071d3a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border: 2px solid #ffc107;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 23px;
}

.brand strong {
    display: block;
    font-size: 17px;
}

.brand small {
    display: block;
    color: #cbd5e1;
    font-size: 11px;
}

.navbar nav {
    display: flex;
    gap: 22px;
}

.navbar nav a {
    font-size: 14px;
}

.navbar nav a:hover {
    color: #ffc107;
}

/* BUTTON */
.btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    font: inherit;
}

.btn-dark {
    background: #071d3a;
    color: #fff;
}

.btn-yellow {
    background: #ffc107;
    color: #14213d;
}

.btn-outline {
    border: 1px solid #ccd4df;
    color: #14213d;
    background: #fff;
}

.btn.small {
    padding: 9px 13px;
    font-size: 13px;
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 410px;
    background: #fff;
}

.hero-text {
    padding: 70px 7%;
}

.welcome,
.eyebrow {
    color: #2671db;
    font-weight: 700;
}

.hero h1 {
    font-size: 46px;
    line-height: 1.15;
    margin: 10px 0 18px;
}

.hero h1 span {
    color: #f9b900;
}

.hero-text > p:not(.welcome) {
    max-width: 620px;
    color: #5b6677;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.hero-art {
    background: linear-gradient(135deg, #dbeafe, #eef5fb);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #5b6677;
}

.hero-logo {
    width: 280px;
    height: 280px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* SECTION */
.section {
    padding: 55px 5%;
}

.alt {
    background: #eef3f8;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title h2 {
    font-size: 27px;
}

.section-title a {
    color: #2671db;
    font-weight: 600;
}

/* CARD */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.card,
.news-card,
.contact-card,
.form-card,
.admin-card {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}

.card {
    padding: 22px;
}

.card h3 {
    font-size: 19px;
    margin: 12px 0 8px;
}

.card p {
    color: #667085;
    font-size: 14px;
    min-height: 76px;
    margin-bottom: 15px;
}

.club-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #eaf2ff;
    display: grid;
    place-items: center;
    font-size: 25px;
}

.three {
    grid-template-columns: repeat(3, 1fr);
}

/* FOTO EKSKUL */
.foto-ekskul {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 15px;
    display: block;
}

/* BERITA */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.news-card {
    overflow: hidden;
}

.news-cover {
    height: 130px;
    display: grid;
    place-items: center;
    font-size: 60px;
    background: linear-gradient(135deg, #dbeafe, #f3f6fa);
}

.news-body {
    padding: 18px;
}

.news-body small,
.news-full small {
    color: #778196;
}

.news-body h3 {
    font-size: 17px;
    margin: 6px 0;
}

.news-body p {
    color: #667085;
    font-size: 13px;
}

/* CTA */
.cta {
    margin: 40px 5%;
    padding: 40px;
    border-radius: 14px;
    background: #071d3a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cta p {
    color: #cbd5e1;
}

.cta h2 {
    margin: 5px 0 8px;
}

/* PAGE HEAD */
.page-head {
    padding: 55px 5%;
    background: #eaf2fb;
}

.page-head h1 {
    font-size: 35px;
}

.page-head p {
    color: #667085;
}

/* DETAIL */
.detail {
    max-width: 1000px;
    margin: auto;
}

.detail-card {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    padding: 40px;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 30px;
}

.detail-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #eaf2ff;
    display: grid;
    place-items: center;
    font-size: 55px;
}

.detail h1 {
    font-size: 38px;
    margin: 4px 0 15px;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.info-list div {
    padding: 13px;
    background: #f6f8fb;
    border-radius: 8px;
}

.info-list b,
.info-list span {
    display: block;
}

.info-list span {
    color: #667085;
}

/* BERITA FULL */
.news-list {
    display: grid;
    gap: 18px;
}

.news-full {
    display: grid;
    grid-template-columns: 220px 1fr;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    overflow: hidden;
}

.news-cover.big {
    height: 100%;
    min-height: 180px;
}

.news-full > div:last-child {
    padding: 22px;
}

.news-full h2 {
    margin: 5px 0 10px;
}

/* KONTAK */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.contact-card {
    padding: 25px;
}

/* FORM */
.form-wrap {
    max-width: 850px;
    margin: auto;
}

.form-card {
    padding: 28px;
}

.form-card label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    margin-top: 6px;
    padding: 12px 13px;
    border: 1px solid #cfd7e3;
    border-radius: 8px;
    font: inherit;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: 2px solid #b7d2fa;
    border-color: #2671db;
}

/* ALERT */
.alert {
    padding: 13px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.success {
    background: #dcfce7;
    color: #166534;
}

.error {
    background: #fee2e2;
    color: #991b1b;
}

/* LOGIN */
.login-page {
    min-height: 70vh;
    display: grid;
    place-items: center;
}

.login-card {
    width: min(430px, 100%);
}

.login-card small {
    display: block;
    margin-top: 12px;
    color: #667085;
}

/* FOOTER */
.footer {
    background: #071d3a;
    color: #fff;
    padding: 50px 5%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer p,
.footer a {
    color: #cbd5e1;
    font-size: 14px;
    display: block;
    margin-top: 6px;
}

.copyright {
    text-align: center;
    background: #05162c;
    color: #9ba6b5;
    padding: 14px;
    font-size: 13px;
}

/* ADMIN */
.admin-body {
    background: #f1f5f9;
}

.admin-top {
    height: 68px;
    background: #071d3a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3%;
}

.admin-top a {
    color: #ffc107;
}

.admin-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: calc(100vh - 68px);
}

.sidebar {
    background: #fff;
    border-right: 1px solid #e3e8ef;
    padding: 20px;
}

.sidebar a {
    display: block;
    padding: 11px 12px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.sidebar a:hover {
    background: #eef4fc;
    color: #2671db;
}

.admin-main {
    padding: 30px;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 25px 0;
}

.stats > div {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    padding: 20px;
}

.stats span,
.stats b,
.stats small {
    display: block;
}

.stats span {
    font-size: 27px;
}

.stats b {
    font-size: 32px;
}

.stats small {
    color: #667085;
}

.admin-card {
    padding: 24px;
    margin-bottom: 20px;
}

.table-wrap {
    overflow: auto;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px;
}

.table-wrap th,
.table-wrap td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #edf0f4;
    font-size: 14px;
}

.table-wrap th {
    background: #f8fafc;
}

/* RESPONSIVE */
@media (max-width: 1000px) {

    .navbar nav {
        display: none;
    }

    .hero,
    .three,
    .news-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-text {
        padding: 50px 5%;
    }

    .hero-art {
        min-height: 260px;
    }

    .footer {
        grid-template-columns: 1fr 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: flex;
        overflow: auto;
        gap: 5px;
        border-right: 0;
        border-bottom: 1px solid #e3e8ef;
    }

    .sidebar a {
        white-space: nowrap;
    }

    .admin-main {
        padding: 20px;
    }
}

@media (max-width: 600px) {

    .brand small {
        display: none;
    }

    .brand strong {
        font-size: 13px;
    }

    .card-grid,
    .footer,
    .stats {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-actions,
    .cta,
    .admin-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-card,
    .news-full {
        grid-template-columns: 1fr;
    }

    .info-list {
        grid-template-columns: 1fr;
    }

    .detail-icon {
        width: 90px;
        height: 90px;
        font-size: 40px;
    }
    .foto-ekskul {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

}