:root {
    --primary: #155eef;
    --primary-dark: #0b2d5c;
    --navy: #071b38;
    --secondary: #64748b;
    --light-bg: #f5f8fc;
    --border: #e5eaf1;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', sans-serif;
    color: #243247;
    background: #fff;
    line-height: 1.7;
}

a {
    text-decoration: none;
}

/* NAVBAR */

.public-navbar {
    min-height: 78px;
    box-shadow: 0 3px 20px rgba(15, 35, 65, 0.06);
}

.brand-logo,
.footer-logo {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-size: 24px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brand-text strong {
    font-size: 15px;
    color: var(--navy);
    letter-spacing: 0.5px;
}

.brand-text small {
    font-size: 11px;
    color: var(--secondary);
    letter-spacing: 2px;
}

.public-navbar .nav-link {
    color: #344054;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 12px !important;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: var(--primary);
}

.btn-login {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
}

/* HERO */

.hero-section {
    position: relative;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 85% 25%,
            rgba(38, 119, 255, 0.45),
            transparent 30%),
        linear-gradient(120deg, #071b38, #103d78);
}

.min-vh-hero {
    min-height: 590px;
    padding-top: 75px;
    padding-bottom: 75px;
}

.hero-label {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 30px;
    color: #c9ddff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 22px;
}

.hero-title span {
    display: block;
    color: #70b7ff;
}

.hero-description {
    max-width: 570px;
    color: #d2deef;
    font-size: 16px;
}

.hero-section .btn {
    border-radius: 9px;
    padding: 13px 22px;
    font-weight: 600;
}

.hero-statistics {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
}

.hero-statistics div {
    display: flex;
    flex-direction: column;
}

.hero-statistics strong {
    color: white;
    font-size: 18px;
}

.hero-statistics span {
    color: #b9c9df;
    font-size: 12px;
}

.hero-visual {
    min-height: 380px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon-main {
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 35px rgba(255,255,255,0.035);
}

.hero-icon-main i {
    font-size: 125px;
    color: #9bcaff;
}

.hero-floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 12px;
    background: white;
    color: var(--navy);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    font-size: 13px;
    font-weight: 700;
}

.hero-floating-card i {
    color: var(--primary);
    font-size: 23px;
}

.card-one {
    top: 55px;
    left: 0;
}

.card-two {
    bottom: 55px;
    right: 0;
}

/* SECTION */

.section-padding {
    padding: 90px 0;
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-title {
    color: var(--navy);
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 18px;
}

.section-description {
    color: var(--secondary);
    max-width: 650px;
    font-size: 15px;
}

/* PROFILE */

.profile-visual {
    min-height: 340px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0b2d5c, #2677e9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 15px;
    box-shadow: 0 20px 45px rgba(21, 94, 239, 0.16);
}

.profile-icon {
    width: 130px;
    height: 130px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-icon i {
    font-size: 70px;
}

.profile-visual span {
    font-weight: 800;
    letter-spacing: 2px;
}

/* INFORMATION CARD */

.info-card {
    background: white;
    padding: 35px 25px;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: 0.25s ease;
}

.info-card:hover,
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(20, 40, 80, 0.09);
}

.info-card-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 16px;
    color: var(--primary);
    background: #edf4ff;
    font-size: 30px;
}

.info-card h5 {
    color: var(--navy);
    font-weight: 700;
}

.info-card p {
    color: var(--secondary);
    font-size: 14px;
    margin-bottom: 0;
}

/* FEATURED NEWS */

.featured-news-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    box-shadow: 0 10px 35px rgba(15, 35, 65, 0.05);
}

.featured-news-image,
.featured-news-placeholder {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
}

.featured-news-placeholder,
.news-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8eb8f7;
    background: linear-gradient(135deg, #dceaff, #edf4ff);
}

.featured-news-placeholder i {
    font-size: 90px;
}

.featured-news-content {
    padding: 40px;
}

.news-category {
    display: inline-block;
    color: var(--primary);
    background: #edf4ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 15px;
}

.featured-news-content h3 {
    color: var(--navy);
    font-weight: 800;
    font-size: 25px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.featured-news-content p {
    color: var(--secondary);
    font-size: 14px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--secondary);
    font-size: 12px;
}

/* NEWS CARD */

.news-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: white;
    transition: 0.25s ease;
}

.news-card-image,
.news-card-placeholder {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-card-placeholder i {
    font-size: 55px;
}

.news-card-body {
    padding: 22px;
}

.news-card-body h5 {
    color: var(--navy);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 12px;
}

.news-card-body p {
    color: var(--secondary);
    font-size: 13px;
}

.news-card-date {
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--secondary);
    font-size: 12px;
}

/* EMPTY STATE */

.empty-news-state,
.gallery-empty {
    padding: 60px 20px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8faff;
}

.empty-news-state > i,
.gallery-empty > i {
    color: #8eb8f7;
    font-size: 55px;
}

.empty-news-state h5,
.gallery-empty h5 {
    margin-top: 15px;
    color: var(--navy);
    font-weight: 700;
}

.empty-news-state p,
.gallery-empty p {
    color: var(--secondary);
    font-size: 14px;
    margin-bottom: 0;
}

/* CTA */

.cta-section {
    padding: 75px 20px;
    color: white;
    background: linear-gradient(110deg, #0b2d5c, #155eef);
}

.cta-section h2 {
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-section p {
    color: #d6e5ff;
    margin-bottom: 25px;
}

.cta-section .btn {
    padding: 13px 25px;
    border-radius: 9px;
    color: var(--primary);
    font-weight: 700;
}

/* FOOTER */

.public-footer {
    background: #06172e;
}

.footer-description {
    color: #aebed2;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aebed2;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-divider {
    border-color: rgba(255,255,255,0.15);
    margin: 35px 0 22px;
}

/* RESPONSIVE */

@media (max-width: 991px) {

    .min-vh-hero {
        min-height: auto;
        padding-top: 85px;
        padding-bottom: 85px;
    }

    .section-padding {
        padding: 65px 0;
    }

    .featured-news-image,
    .featured-news-placeholder {
        min-height: 280px;
        height: 280px;
    }

    .featured-news-content {
        padding: 28px;
    }

}

@media (max-width: 576px) {

    .hero-title {
        font-size: 36px;
    }

    .hero-statistics {
        gap: 20px;
    }

    .section-padding {
        padding: 55px 0;
    }

    .featured-news-content {
        padding: 23px;
    }

    .featured-news-content h3 {
        font-size: 21px;
    }

    .news-card-image,
    .news-card-placeholder {
        height: 200px;
    }

}

/* =========================
   HALAMAN PROFIL SEKOLAH
========================= */

.profile-hero {
    background: linear-gradient(120deg, #0b1f3a, #174b91);
    color: #fff;
    padding: 85px 0;
}

.profile-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #79b8ff;
    margin-bottom: 18px;
}

.profile-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 15px;
}

.profile-hero p {
    color: #d7e6f8;
    max-width: 650px;
    line-height: 1.8;
}

.profile-placeholder {
    min-height: 350px;
    background: linear-gradient(135deg, #e7f0ff, #c8ddfa);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #1456a0;
    text-align: center;
    padding: 30px;
}

.profile-placeholder i {
    font-size: 75px;
    margin-bottom: 20px;
}

.profile-content {
    line-height: 1.9;
    color: #526174;
}

.profile-content h2,
.profile-info-card h3 {
    color: #102b50;
}

.profile-info-card {
    padding: 30px;
    background: #f5f8fc;
    border-radius: 18px;
    border: 1px solid #e5edf7;
}

.profile-info-card p {
    color: #526174;
    line-height: 1.9;
    margin-bottom: 0;
}

.profile-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #e1edff;
    color: #1264d8;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.navbar {
    min-height: 70px;
    background: #fff;
    z-index: 1000;
}

.navbar .nav-link {
    color: #344054;
    font-weight: 600;
    padding: 12px 14px;
    transition: color .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #1264ff;
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: #1764f5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 23px;
}

.brand-subtitle {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: #64748b;
}

/* Tampilan kartu berita */
.news-card {
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10) !important;
}

.news-card .card-img-top {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.news-card .card-body {
    display: flex;
    flex-direction: column;
}

.news-card .card-body > a {
    align-self: flex-start;
    margin-top: auto;
}