:root {
    --primary-color: #0eaece;
    --primary-dark: #098ca6;
    --primary-light: #e6f7fa;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);

    --card-program-bg: #ffffff;
    --card-about-bg: #ffffff;
    --card-feature-bg: #ffffff;

    --icon-bg-program: #e6f7fa;
    --icon-bg-about: #e6f7fa;
    --icon-bg-feature: #e6f7fa;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Section & Overlay */
.pkbm-section {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
}

.pkbm-section-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* 0. Header & Navigasi Atas */
.site-header {
    background: var(--header-bg, #ffffff);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 14px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-branding img.custom-logo,
.custom-logo-link img {
    max-height: var(--logo-height, 48px);
    height: var(--logo-height, 48px);
    width: auto;
    object-fit: contain;
    transition: all 0.2s ease;
}

.brand-text-wrap .site-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.brand-text-wrap .site-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 26px;
    align-items: center;
}

.main-nav a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dark);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}

.btn-header {
    background-color: var(--btn-header-bg, var(--primary-color));
    color: var(--btn-header-text, #ffffff);
}

.btn-header:hover {
    background-color: var(--btn-header-hover-bg, var(--primary-dark));
    color: var(--btn-header-hover-text, #ffffff);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* 1. Hero Section */
.hero-section {
    padding: 100px 0;
    color: var(--white);
    background-color: #0f172a;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 174, 206, 0.2);
    border: 1px solid rgba(14, 174, 206, 0.5);
    color: #7ee8fc;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 720px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #e2e8f0;
    max-width: 640px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 42px;
}

.btn-hero-primary {
    background-color: var(--btn-hero-bg, var(--primary-color));
    color: var(--btn-hero-text, #ffffff);
}

.btn-hero-primary:hover {
    background-color: var(--btn-hero-hover-bg, var(--primary-dark));
    color: var(--btn-hero-hover-text, #ffffff);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    background-color: var(--btn-hero2-bg, rgba(255, 255, 255, 0.12));
    color: var(--btn-hero2-text, #ffffff);
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}

.btn-hero-secondary:hover {
    background-color: var(--btn-hero2-hover-bg, rgba(255, 255, 255, 0.24));
    color: var(--btn-hero2-hover-text, #ffffff);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-item p {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* 2. Program Kesetaraan */
.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.program-card {
    background: var(--card-program-bg, var(--white));
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 18px;
    background-color: var(--icon-bg-program, var(--primary-light));
}

.program-level {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.program-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.program-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-program {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    background-color: var(--btn-program-bg, var(--primary-light));
    color: var(--btn-program-text, var(--primary-color));
    align-self: flex-start;
}

.btn-program:hover {
    background-color: var(--btn-program-hover-bg, var(--primary-color));
    color: var(--btn-program-hover-text, #ffffff);
}

/* 3. Galeri Kegiatan & Sekilas Tentang */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 72px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    height: 230px;
    background: #e2e8f0;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-caption {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.1) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    color: var(--white);
}

.gallery-caption span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7ee8fc;
    font-weight: 700;
}

.gallery-caption h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

/* Lightbox Modal */
.pkbm-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.pkbm-lightbox.active {
    display: flex;
}

.pkbm-lightbox-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
    position: relative;
}

.pkbm-lightbox-content img {
    max-height: 78vh;
    margin: 0 auto 14px;
    border-radius: 12px;
}

.pkbm-lightbox-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
}

.pkbm-lightbox-close {
    position: absolute;
    top: -42px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
}

/* Sekilas Tentang PKBM */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--card-about-bg, var(--white));
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.about-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.about-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--icon-bg-about, var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.about-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 4. PPDB / Menerima Siswa Baru */
.ppdb-box {
    background: var(--white);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
}

.ppdb-content {
    padding: 44px;
}

.ppdb-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.ppdb-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.ppdb-content > p {
    color: var(--text-muted);
    margin-bottom: 22px;
    font-size: 0.95rem;
}

.ppdb-checklist {
    list-style: none;
    margin-bottom: 24px;
    display: grid;
    gap: 10px;
}

.ppdb-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-dark);
}

.ppdb-checklist li i {
    font-size: 1rem;
}

.btn-ppdb {
    background-color: var(--btn-ppdb-bg, var(--primary-color));
    color: var(--btn-ppdb-text, #ffffff);
    padding: 13px 26px;
}

.btn-ppdb:hover {
    background-color: var(--btn-ppdb-hover-bg, var(--primary-dark));
    color: var(--btn-ppdb-hover-text, #ffffff);
}

.ppdb-media {
    position: relative;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 28px;
}

.ppdb-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.2));
}

.ppdb-quote {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.ppdb-quote blockquote {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 8px;
}

.ppdb-quote cite {
    font-size: 0.82rem;
    color: #7ee8fc;
    font-style: normal;
    font-weight: 600;
}

/* 5. Completed Journeys / Berita */
.journeys-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
}

.btn-journeys {
    background-color: var(--btn-journeys-bg, var(--primary-color));
    color: var(--btn-journeys-text, #ffffff);
}

.btn-journeys:hover {
    background-color: var(--btn-journeys-hover-bg, var(--primary-dark));
    color: var(--btn-journeys-hover-text, #ffffff);
}

.journeys-featured {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    padding: 32px;
    color: var(--white);
    margin-bottom: 24px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journeys-featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.journeys-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.25));
}

.journeys-featured-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.journeys-featured-content h3 {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 8px 0 10px;
    color: #ffffff;
}

.journeys-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.journey-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 210px;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    color: var(--white);
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journey-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.journey-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.15));
}

.journey-card-content {
    position: relative;
    z-index: 2;
}

.journey-card-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
}

.journey-card-content span {
    font-size: 0.78rem;
    color: #cbd5e1;
}

/* 6. Komitmen & Keunggulan */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--card-feature-bg, var(--white));
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--icon-bg-feature, var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 7. Footer */
.site-footer {
    background-color: #0b1324;
    color: #cbd5e1;
    padding: 64px 0 28px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col p, .footer-col li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    list-style: none;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    color: #94a3b8;
}

/* Built-in Floating Chat Widget */
.pkbm-floating-chat {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25d366;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    font-weight: 700;
    font-size: 0.9rem;
}

.pkbm-floating-chat:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
    color: #ffffff;
}

.pkbm-floating-chat i {
    font-size: 1.3rem;
}

.page-content-wrap {
    padding: 60px 0;
}


/* Section Artikel Terbaru (3 Postingan) */
.articles-section {
    background-color: var(--bg-light);
}

.articles-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.article-thumb-link {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

.article-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-thumb-link img {
    transform: scale(1.05);
}

.article-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    font-size: 0.78rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-card-title {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.38;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.article-card-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    flex-grow: 1;
}

.btn-article-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--primary-color);
}

.btn-article-read:hover {
    color: var(--primary-dark);
}

.btn-all-articles {
    background-color: var(--btn-articles-bg, var(--primary-color));
    color: var(--btn-articles-text, #ffffff);
}

.btn-all-articles:hover {
    background-color: var(--btn-articles-hover-bg, var(--primary-dark));
    color: var(--btn-articles-hover-text, #ffffff);
    transform: translateY(-2px);
}

@media (max-width: 960px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .program-grid, .about-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .ppdb-box {
        grid-template-columns: 1fr;
    }
    .journeys-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    .main-nav {
        display: none;
    }
    .main-nav.open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-md);
    }
    .main-nav.open ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .mobile-menu-toggle {
        display: block;
    }
}
