/* ============================================
   NAVBAR STYLES
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --hover-color: #2563eb;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --nasa-black: #05070b;
    --nasa-surface: rgba(5, 7, 11, 0.62);
    --nasa-surface-strong: rgba(5, 7, 11, 0.92);
    --nasa-red: #d91f26;
}

/* Navbar Container */
.navbar {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* NASA-ish header treatment on homepage (over the hero) */
.page-home .navbar {
    position: fixed;
    background: var(--nasa-surface);
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

/* Navbar Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.25rem;
    transition: opacity 0.3s ease;
}

.page-home .navbar-brand a {
    color: rgba(255, 255, 255, 0.92);
}

.navbar-brand a:hover {
    opacity: 0.8;
}

.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}


/* Navbar Toggle (Mobile Menu Button) */
.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.page-home .navbar-toggle span {
    background-color: rgba(255, 255, 255, 0.85);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navbar Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.navbar-nav {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
}

/* Nav Items */
.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: #f3f4f6;
}

.page-home .nav-link {
    color: rgba(255, 255, 255, 0.90);
}

.page-home .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
}

/* Tombol Login di navbar */
.nav-link--btn {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    margin-left: 8px;
}
.nav-link--btn:hover {
    background-color: var(--primary-dark, #1d4ed8);
    color: #fff !important;
}
.page-home .nav-link--btn {
    background-color: rgba(255, 255, 255, 0.25);
    color: #fff !important;
}
.page-home .nav-link--btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    color: #fff !important;
}

/* Dropdown Toggle */
.dropdown-toggle {
    position: relative;
    padding-right: 28px;
}

.dropdown-toggle::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-color);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    list-style: none;
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid var(--border-color);
}

.page-home .dropdown-menu {
    background: var(--nasa-surface-strong);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 22px;
}

.dropdown-item--disabled {
    cursor: not-allowed;
    opacity: 0.6;
    color: #9ca3af;
}
.dropdown-item--disabled:hover {
    background-color: transparent;
    color: #9ca3af;
    border-left-color: transparent;
    padding-left: 20px;
}

.page-home .dropdown-item {
    color: rgba(255, 255, 255, 0.88);
}

.page-home .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-left-color: var(--nasa-red);
}

.page-home .dropdown-item--disabled {
    color: rgba(255, 255, 255, 0.5);
}
.page-home .dropdown-item--disabled:hover {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.5);
    border-left-color: transparent;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 992px) {
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        flex-direction: column;
        align-items: stretch;
    }

    .page-home .navbar-menu {
        background: var(--nasa-surface-strong);
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    }
    
    .navbar-menu.active {
        max-height: 600px;
        padding: 10px 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 14px 20px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .page-home .nav-link {
        border-bottom-color: rgba(255, 255, 255, 0.10);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        background-color: #f9fafb;
    }

    .page-home .dropdown-menu {
        background: rgba(255, 255, 255, 0.06);
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 8px 0;
    }
    
    .dropdown-item {
        padding: 12px 40px;
        border-left: none;
    }
    
    .dropdown-item:hover {
        padding-left: 40px;
        border-left: none;
        background-color: #e5e7eb;
    }

    .page-home .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.10);
    }
    
    .dropdown-toggle::after {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 15px;
        min-height: 60px;
    }
    
    .navbar-logo {
        height: 40px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .navbar-logo {
        margin-right: 0;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-link:focus,
.dropdown-item:focus,
.navbar-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Active state for current page */
.nav-link.active {
    color: var(--primary-color);
    background-color: #eff6ff;
    font-weight: 600;
}

/* ============================================
   MAIN CONTENT STYLES
   ============================================ */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 40px 0;
}

.main-content.main-content--home {
    padding-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: 2rem;
    color: var(--primary-color);
}
.page-subtitle.guru-staff-count {
    font-size: 1rem;
    color: var(--text-light);
    margin: -8px 0 24px 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section.hero-section--nasa {
    position: relative;
    padding: 0;
    text-align: left;
    overflow: hidden;
    min-height: clamp(520px, 65vh, 780px);
    background: #05070b;
}

.hero-section.hero-section--nasa .hero-section__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 600px at 20% 20%, rgba(255, 255, 255, 0.12), transparent 60%),
        radial-gradient(900px 500px at 85% 40%, rgba(59, 130, 246, 0.18), transparent 55%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.78) 100%);
}

.hero-section.hero-section--nasa .hero-section__content {
    position: relative;
    z-index: 2;
    padding: clamp(64px, 10vh, 120px) 20px 0;
    text-align: left;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    min-height: clamp(560px, 78vh, 820px);
    overflow: hidden;
}
.slider-wrapper { position: relative; min-height: clamp(560px, 78vh, 820px); }
.hero-slider .slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.hero-slider .slide.active { opacity: 1; z-index: 1; }

.hero-slider .slide-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Satu video saja: pastikan slide selalu tampil (tanpa rotasi slider) */
.hero-slider--video-only .slide.slide--video.active {
    opacity: 1;
    z-index: 1;
}

.hero-slider .slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(1000px 600px at 22% 28%, rgba(255, 255, 255, 0.14), transparent 55%),
        linear-gradient(to right, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.08) 75%, rgba(0,0,0,0.55) 100%),
        linear-gradient(to bottom, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.68) 100%);
}
.hero-slider .slide-content {
    position: relative;
    z-index: 2;
    padding: clamp(70px, 10vh, 130px) 20px clamp(32px, 5vh, 56px);
    color: white;
    text-align: left;
}
.hero-slider .slide-content h1 { font-size: clamp(2.2rem, 4.4vw, 4rem); margin-bottom: 14px; letter-spacing: -0.02em; text-shadow: 0 2px 10px rgba(0,0,0,0.45); max-width: 16ch; }
.hero-slider .slide-content p { font-size: 1.1rem; margin-bottom: 20px; opacity: 0.95; }

/* NASA-style hero bits */
.nasa-hero {
    position: relative;
    min-height: clamp(480px, 60vh, 680px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 28px;
    padding-bottom: 24px;
}

.nasa-hero__content {
    max-width: 720px;
}

.nasa-hero__kicker {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 14px;
}

.nasa-hero__lead {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 60ch;
    opacity: 0.95;
    margin-bottom: 22px;
}

.nasa-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn.btn-hero {
    background: #d91f26; /* NASA-ish red */
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.btn.btn-hero:hover {
    background: #b51a1f;
}

.btn.btn-hero.btn-hero--ghost {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.24);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn.btn-hero.btn-hero--ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.35);
}

.nasa-hero__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.14);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nasa-hero__meta-item {
    text-decoration: none;
    color: rgba(255,255,255,0.92);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nasa-hero__meta-item:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}

.nasa-hero__meta-label {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
}

.nasa-hero__meta-value {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ============================================
   HOME SECTIONS (NASA-style with image cards)
   ============================================ */

.home-section {
    padding: clamp(48px, 6vw, 72px) 0;
}

#pengumuman {
    scroll-margin-top: 80px;
}

.home-section--dark {
    background: var(--nasa-black);
    color: #fff;
}

.home-section--dark .home-section__title,
.home-section--dark .home-section__subtitle {
    color: rgba(255, 255, 255, 0.95);
}

.home-section--dark .home-section__subtitle {
    opacity: 0.85;
}

.home-section--compact {
    padding: 32px 0;
}

.home-section__title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--text-color);
}

.home-section__subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 28px;
}

.home-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.home-section__head-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
}

.home-section__head-link:hover {
    text-decoration: underline;
}

.home-section--dark .home-section__head-link {
    color: rgba(255, 255, 255, 0.75);
}

.home-section__more {
    margin-top: 32px;
    text-align: center;
}

.home-section__empty {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
}

/* Instagram preview section */
.home-section--instagram .home-section__head--instagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.home-section--instagram .home-section__head-link {
    font-weight: 600;
    color: #E1306C;
}

.home-section--instagram .home-section__head-link:hover {
    color: #C13584;
}

.instagram-preview {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.instagram-preview__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(225, 48, 108, 0.4);
}

.instagram-preview__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.5);
    color: #fff;
}

.instagram-preview__icon {
    display: inline-flex;
}

.instagram-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 360px;
    width: 100%;
}

.instagram-preview__tile {
    aspect-ratio: 1;
    border-radius: 12px;
    background: linear-gradient(135deg, #fdf497 0%, #fd5949 50%, #d6249f 100%);
    background-size: 200% 200%;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.instagram-preview__tile:hover {
    opacity: 1;
    transform: scale(1.03);
}

/* Wadah embed iframe dari SnapWidget / EmbedSocial dll */
.instagram-embed {
    margin-top: 24px;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.instagram-embed iframe {
    display: block;
    width: 100%;
    min-height: 400px;
    border: 0;
}

@media (min-width: 600px) {
    .instagram-preview__grid {
        max-width: 480px;
        gap: 16px;
    }
}

/* NASA-style cards: image on top, then title + excerpt */
.nasa-cards {
    display: grid;
    gap: 24px;
    margin-top: 8px;
}

.nasa-cards--3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.nasa-cards--4 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.nasa-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nasa-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.home-section--dark .nasa-card {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.home-section--dark .nasa-card:hover {
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.nasa-card__image {
    width: 100%;
    padding-top: 56%;
    background-size: cover;
    background-position: center;
    background-color: #e5e7eb;
    position: relative;
}

.nasa-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.nasa-card__body {
    padding: 20px;
}

.nasa-card__date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.home-section--dark .nasa-card__date {
    color: rgba(255, 255, 255, 0.7);
}

.nasa-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.home-section--dark .nasa-card__title {
    color: #fff;
}

.nasa-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 12px;
}

.home-section--dark .nasa-card__excerpt {
    color: rgba(255, 255, 255, 0.8);
}

.nasa-card__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.home-section--dark .nasa-card__link {
    color: #d91f26;
}

.nasa-card:hover .nasa-card__link {
    text-decoration: underline;
}

/* Featured News (Artikel) layout like nasa.gov */
.featured-news {
    margin-top: 12px;
}

.featured-news__top {
    display: grid;
    grid-template-columns: 2fr 1.25fr 1.1fr;
    gap: 18px;
    align-items: stretch;
}

.featured-news__stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
}

.featured-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #111827;
    min-height: 220px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.featured-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.78) 100%),
        radial-gradient(900px 500px at 25% 20%, rgba(255,255,255,0.12), transparent 55%);
}

.featured-card__meta {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.featured-card__type {
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.featured-card__content {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2;
}

.featured-card__read {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.featured-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 24ch;
}

.featured-card--xl {
    min-height: 360px;
}

.featured-card--xl .featured-card__title {
    font-size: clamp(1.35rem, 2.1vw, 1.9rem);
    max-width: 28ch;
}

.featured-card--tall {
    min-height: 360px;
}

.featured-card--sm {
    min-height: 171px;
}

.featured-card--sm .featured-card__title {
    font-size: 1rem;
    max-width: 26ch;
}

.featured-news__bottom {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.mini-story {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: start;
    text-decoration: none;
    color: inherit;
}

.mini-story__thumb {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background-size: cover;
    background-position: center;
    background-color: #e5e7eb;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.mini-story__read {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 6px;
}

.mini-story__title {
    display: block;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text-color);
}

.mini-story:hover .mini-story__title {
    text-decoration: underline;
}

/* Quick links strip */
.home-quicklinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
}

.home-quicklinks__item {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.home-quicklinks__item:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .home-section__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .featured-news__top {
        grid-template-columns: 1fr;
    }

    .featured-news__stack {
        grid-template-rows: auto;
    }

    .featured-news__bottom {
        grid-template-columns: 1fr;
    }

    .nasa-cards--3,
    .nasa-cards--4 {
        grid-template-columns: 1fr;
    }
    .home-section__more .btn {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

.section-title { text-align: center; margin-bottom: 30px; color: var(--primary-color); font-size: 1.8rem; letter-spacing: -0.01em; }
.announcements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 20px; }
.announcement-card { position: relative; }
.announcement-card .badge { font-size: 0.75rem; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; }
.badge-biasa { background: #e5e7eb; color: #374151; }
.badge-penting { background: #fef3c7; color: #92400e; }
.badge-sangat_penting { background: #fecaca; color: #991b1b; }

/* Content Section */
.content-section {
    padding: 60px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--hover-color);
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 5px 0;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

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

.footer {
    background-color: var(--nasa-black);
    color: white;
    margin-top: auto;
    padding: 50px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #d1d5db;
    text-decoration: none;
    border: 1px solid #4b5563;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-links a.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-links a.social-icon:hover {
    color: white;
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.social-links a.social-icon--placeholder {
    opacity: 0.85;
    cursor: default;
}

.social-links a:not(.social-icon) {
    color: #d1d5db;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #4b5563;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-links a:not(.social-icon):hover {
    color: white;
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.footer-link {
    color: #93c5fd;
    text-decoration: none;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-social-hint {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #9ca3af;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* ============================================
   RESPONSIVE STYLES FOR CONTENT
   ============================================ */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 1.5rem;
    }

    .hero-slider {
        min-height: 560px;
    }
    .slider-wrapper {
        min-height: 560px;
    }
    .nasa-hero__meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .hero-slider .slide-content h1 {
        max-width: 22ch;
    }
}

/* ============================================
   ADDITIONAL COMPONENT STYLES
   ============================================ */

/* Content Wrapper */
.content-wrapper {
    max-width: 100%;
}

.content-section {
    margin-bottom: 40px;
}

.section-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.section-card h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.section-card h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.section-card.highlight {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid var(--primary-color);
}

/* Foto kepala sekolah di halaman Visi & Misi - posisi tengah */
.visi-misi-kepsek .section-card--kepsek {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.kepsek-photo-wrap {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}
.kepsek-photo {
    width: 160px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow);
}
.kepsek-photo--placeholder {
    width: 160px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    color: var(--text-light);
    font-size: 0.85rem;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    box-sizing: border-box;
}
.kepsek-caption {
    font-size: 0.95rem;
    color: var(--text-color);
}
.kepsek-caption strong { color: var(--primary-color); }
.kepsek-nip { font-size: 0.85rem; color: var(--text-light); }
.visi-quote {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 16px 0;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.08);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 6px 6px 0;
}
.mission-list--misi { margin-top: 12px; }

/* Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.info-table th,
.info-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.info-table th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: var(--text-color);
}

.info-table tr:hover {
    background-color: #f9fafb;
}

/* Lists */
.mission-list,
.goal-list,
.rules-list,
.requirements-list,
.terms-list,
.documents-list,
.notes-list,
.feature-list,
.evaluation-list {
    list-style-position: inside;
    padding-left: 0;
    line-height: 1.8;
}

.mission-list li,
.goal-list li,
.rules-list li,
.requirements-list li,
.terms-list li,
.documents-list li,
.notes-list li,
.feature-list li,
.evaluation-list li {
    margin-bottom: 10px;
    padding-left: 10px;
}

/* Organization Chart */
.org-chart,
.osis-structure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.org-level,
.osis-level {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Sekbid: 11 kartu, wrap rapi */
.osis-level--sekbid {
    max-width: 100%;
}
.osis-level--sekbid .osis-box {
    flex: 0 0 220px;
    min-width: 180px;
}
.osis-level--sekbid .osis-box h3 {
    font-size: 0.9rem;
    line-height: 1.3;
}

.org-box,
.osis-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    min-width: 200px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.org-box:hover,
.osis-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.org-box.top,
.osis-box.top {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: var(--primary-color);
}

.org-box__photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
    background: #f3f4f6;
}

.org-box.top .org-box__photo {
    border-color: rgba(255, 255, 255, 0.5);
}

.org-box__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.org-box__nip {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
    margin-bottom: 0;
}

.org-box.top .org-box__nip {
    color: rgba(255, 255, 255, 0.9);
}

.org-box h3,
.osis-box h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.org-box .name,
.osis-box .name {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 5px;
}

.org-box.top .name,
.osis-box.top .name {
    color: white;
}

/* Struktur Organisasi - frame & judul (legacy, no overflow agar bagan tidak terpotong) */
.org-chart-frame {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: visible;
    box-shadow: var(--shadow);
    padding: 24px;
    margin: 24px 0;
}
.org-chart-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 4px;
}
.org-chart-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 28px;
}
.org-chart-frame .org-chart {
    margin: 0;
    gap: 0;
}
.org-chart-frame .org-level {
    gap: 16px;
    margin-bottom: 8px;
}
.org-level--top {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}
.org-box--komite {
    min-width: 180px;
}
.org-box--kepala {
    min-width: 200px;
}
.org-connector {
    background: #1f2937;
}
.org-connector--horizontal {
    width: 40px;
    height: 3px;
    flex-shrink: 0;
}
.org-connector--vertical {
    width: 3px;
    height: 24px;
    margin: 0 auto;
    border-radius: 2px;
}
.org-level--waka {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.org-level--waka .org-box {
    min-width: 140px;
    max-width: 160px;
}
.org-box--oval {
    min-width: 160px;
    border-radius: 50px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: var(--primary-color);
}
.org-box--oval h3 {
    font-size: 0.9rem;
    margin: 0;
}
.org-level--staf {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.org-box--staf {
    min-width: 130px;
    max-width: 150px;
    padding: 14px;
}
.org-box--staf .org-box__photo {
    width: 70px;
    height: 70px;
    margin: 0 auto 8px;
}
.org-box--staf h3 {
    font-size: 0.85rem;
}
.org-box--staf .name,
.org-box--staf .org-box__nip {
    font-size: 0.8rem;
}
.org-level--bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
}
.org-box--wide {
    min-width: 200px;
    padding: 16px 24px;
}
.org-box--wide h3 {
    margin: 0;
    font-size: 1rem;
}

/* ========== ORGANIZATIONAL CHART TREE LAYOUT ========== */
.org-chart-frame {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 32px 24px 48px;
    margin: 24px 0;
    border: 1px solid var(--border-color, #e5e7eb);
    overflow: visible;
    min-height: 400px;
}
.org-chart-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 0 0 4px;
}
.org-chart-subtitle {
    font-size: 0.95rem;
    color: var(--text-light, #6b7280);
    text-align: center;
    margin: 0 0 32px;
}
.org-chart-empty {
    color: #6b7280;
    text-align: center;
    padding: 24px;
}

.org-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    --org-card-w: 160px;
    --org-connector-w: 2px;
    --org-gap: 20px;
}
/* Di layar sempit: scroll horizontal agar 5 kolom tetap bisa dilihat */
.org-chart-frame {
    overflow-x: auto;
    overflow-y: visible;
}

/* Connectors */
.org-connector {
    flex-shrink: 0;
    background: #374151;
}
.org-connector--v {
    width: var(--org-connector-w);
    min-height: 24px;
    margin: 0 auto;
}
.org-connector--main { min-height: 28px; }
.org-connector--h {
    width: 32px;
    height: var(--org-connector-w);
    margin: 0 8px;
}

/* Level 1: table 3 kolom agar Komite kiri, Kepala tengah, pasti rapi */
.org-row-1-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    border: none;
}
.org-row-1-table td {
    vertical-align: middle;
    border: none;
    padding: 8px;
}
.org-td-left { width: 33%; text-align: right; }
.org-td-center { width: 34%; text-align: center; }
.org-td-right { width: 33%; text-align: left; }
.org-td-center .org-connector--h { margin: 0 auto 8px; }
.org-td-center .org-card--kepala { margin: 0 auto; }
.org-row-1-table .org-card--kepala {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
    color: #fff;
    border-color: var(--primary-color);
}
.org-row-1-table .org-card--kepala .org-card__name,
.org-row-1-table .org-card--kepala .org-card__nip { color: rgba(255,255,255,0.95); }
.org-row-1-table .org-card--kepala .org-card__avatar { border-color: rgba(255,255,255,0.5); }

/* Row 2+3: 5 kolom (Waka -> garis -> Staf) + SIM PKB kanan naik setengah */
.org-row--2-3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--org-gap);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.org-columns {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: var(--org-gap);
    flex: 0 0 auto;
    min-width: calc(5 * var(--org-card-w) + 4 * var(--org-gap));
}
.org-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 var(--org-card-w);
    width: var(--org-card-w);
    min-width: var(--org-card-w);
}
.org-col .org-card--waka {
    width: 100%;
}
.org-connector--col {
    width: var(--org-connector-w);
    min-height: 20px;
    margin: 4px 0;
}
.org-col__staf {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.org-col__staf .org-card--staf {
    width: 100%;
}
.org-float-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--org-gap);
    flex-shrink: 0;
}
.org-float-right--simpkb {
    align-self: center;
}
.org-card--oval {
    min-width: var(--org-card-w);
    max-width: 200px;
    border-radius: 999px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid var(--primary-color);
}
.org-card--oval .org-card__role {
    margin: 0;
    font-size: 0.9rem;
    padding: 12px 16px;
}
.org-card--waka {
    width: var(--org-card-w);
}

/* Row 4: Wali Kelas / Peserta Didik */
.org-row--4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--org-gap);
    width: 100%;
}
.org-card--wide {
    min-width: 200px;
    flex: 1 1 200px;
    max-width: 280px;
}
.org-card--wide .org-card__role { margin: 0; }

/* Card design (equal width, avatar, modern) */
.org-card {
    width: var(--org-card-w);
    min-height: 140px;
    background: #fff;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.org-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}
.org-card__avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color, #e5e7eb);
    background: #f3f4f6;
}
.org-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.org-card__avatar--sm {
    width: 56px;
    height: 56px;
    border-width: 2px;
}
.org-card__role {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 4px;
    line-height: 1.2;
}
.org-card__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 2px;
}
.org-card__nip {
    font-size: 0.75rem;
    color: var(--text-light, #6b7280);
    margin: 0;
}
.org-card--staf {
    width: var(--org-card-w);
    min-height: 120px;
    padding: 12px;
}
.org-card--staf .org-card__role { font-size: 0.8rem; }
.org-card--staf .org-card__name,
.org-card--staf .org-card__nip { font-size: 0.75rem; }

/* Responsive */
@media (max-width: 768px) {
    .org-row-1-table { display: block; }
    .org-row-1-table tr { display: block; }
    .org-row-1-table td { display: block; width: 100% !important; text-align: center !important; }
    .org-td-left .org-card { margin: 0 auto; }
    .org-columns {
        flex-wrap: wrap;
        justify-content: center;
        min-width: 0;
    }
    .org-row--2-3 {
        flex-direction: column;
        align-items: center;
    }
    .org-float-right--simpkb { margin-top: 0; }
}
@media (max-width: 600px) {
    .org-tree { --org-card-w: 140px; }
    .org-connector--h {
        width: 24px;
        height: var(--org-connector-w);
        margin: 8px 0;
        transform: rotate(90deg);
    }
    .org-chart-frame { padding: 20px 16px; }
    .org-card { min-height: 120px; }
    .org-card--staf { min-height: 100px; }
}

/* Teacher/Staff Cards */
.teacher-staff-grid,
.bk-teachers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.teacher-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-card h3 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.teacher-card .position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.teacher-card .subject {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Facilities */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.facility-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-5px);
}

.facility-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.facility-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.facility-count {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
}

.facility-card--unavailable .facility-count {
    background: var(--text-light);
}

/* Achievements */
.achievements-list {
    margin-top: 30px;
}

.achievement-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateX(5px);
}

.achievement-badge {
    font-size: 3rem;
    flex-shrink: 0;
}

.achievement-content {
    flex: 1;
    min-width: 0;
}

.achievement-photo {
    flex-shrink: 0;
    width: 180px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.achievement-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 640px) {
    .achievement-item {
        flex-wrap: wrap;
    }
    .achievement-photo {
        width: 100%;
        height: 160px;
        order: -1;
        margin-bottom: 12px;
    }
}

.achievement-content h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.achievement-detail {
    color: var(--text-light);
    margin-bottom: 5px;
}

.achievement-winner {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.achievement-date {
    display: inline-block;
    padding: 5px 12px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.achievement-filter,
.filter-section {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Extracurricular */
.extracurricular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.extracurricular-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.extracurricular-card:hover {
    transform: translateY(-5px);
}

.extracurricular-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.extracurricular-card--link:hover {
    color: inherit;
}

/* Gambar dari atas kartu sampai garis atas nama pembina */
.extracurricular-card__image {
    position: relative;
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--border-color);
    display: flex;
    align-items: flex-end;
}

.extracurricular-card__image-title {
    width: 100%;
    padding: 12px 20px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
}

.extracurricular-card .extracurricular-info {
    padding: 14px 20px 20px;
    border-top: 1px solid var(--border-color);
}

.extracurricular-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.extracurricular-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.extracurricular-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.extracurricular-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* P5 */
.p5-dimensions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dimension-card {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.p5-projects {
    margin-top: 20px;
}

.project-item {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

.project-time {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Schedule */
.schedule-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.schedule-item {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.schedule-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.schedule-table-wrapper {
    overflow-x: auto;
    margin-top: 30px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.schedule-table th {
    background-color: var(--primary-color);
    color: white;
}

.schedule-table .time {
    font-weight: 600;
    background: #f3f4f6;
}

.schedule-table .break {
    text-align: center;
    background: #fef3c7;
    font-weight: 600;
}

/* Calendar */
.calendar-events {
    margin-top: 30px;
}

.calendar-month {
    margin-bottom: 40px;
}

.calendar-month h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.event-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

.event-date {
    flex-shrink: 0;
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 8px;
    min-width: 80px;
}

.event-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.event-date .month {
    display: block;
    font-size: 0.9rem;
}

.event-content h3 {
    margin-bottom: 5px;
    color: var(--text-color);
}

/* Announcements */
.announcements-list {
    margin-top: 30px;
}

.announcement-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.announcement-date {
    flex-shrink: 0;
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 8px;
    min-width: 80px;
}

.announcement-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.announcement-date .month {
    display: block;
    font-size: 0.9rem;
}

.announcement-date .year {
    display: block;
    font-size: 0.8rem;
    margin-top: 5px;
}

.announcement-content h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.announcement-category {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 12px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.article-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-date {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.article-content h3 {
    margin-bottom: 10px;
}

.article-content h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: var(--primary-color);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}

.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-decoration: none;
}

.article-header {
    margin-bottom: 30px;
}

.article-header h1 {
    color: var(--text-color);
    margin: 10px 0;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-body {
    line-height: 1.8;
}

.article-body h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Agenda */
.agenda-list {
    margin-top: 30px;
}

.agenda-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.agenda-date {
    flex-shrink: 0;
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 8px;
    min-width: 80px;
}

.agenda-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.agenda-date .month {
    display: block;
    font-size: 0.9rem;
}

.agenda-content h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.agenda-time,
.agenda-location {
    display: inline-block;
    margin-right: 15px;
    margin-top: 10px;
    padding: 5px 12px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    aspect-ratio: 4/3;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin-bottom: 5px;
    color: white;
}

/* Videos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.video-item {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.video-date {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 10px;
}

/* PPDB */
.ppdb-routes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.route-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.route-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.route-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.route-quota {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
}

.ppdb-flow {
    margin-top: 30px;
}

.flow-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.ppdb-schedule {
    margin-top: 20px;
}

.ppdb-schedule .schedule-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

.schedule-date {
    flex-shrink: 0;
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 8px;
    min-width: 80px;
}

.schedule-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.schedule-date .month {
    display: block;
    font-size: 0.9rem;
}

.route-requirements h3 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.zone-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.zone-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.zone-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.zone-map {
    margin-top: 20px;
}

.map-placeholder {
    background: #f3f4f6;
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

.zone-info {
    margin-top: 20px;
}

.info-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Services */
.services-list,
.bk-services {
    margin-top: 20px;
}

.service-item {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.program-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.program-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.program-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-lead {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.sekbid-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.sekbid-card {
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 24px;
    transition: box-shadow 0.2s ease;
}

.sekbid-card:hover {
    box-shadow: var(--shadow);
}

.sekbid-card h3 {
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.sekbid-card .sekbid-pic,
.sekbid-card .sekbid-program,
.sekbid-card .sekbid-waktu {
    margin: 8px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color);
}

.sekbid-card .sekbid-pic strong,
.sekbid-card .sekbid-program strong,
.sekbid-card .sekbid-waktu strong {
    color: var(--text-color);
    font-weight: 600;
}

.uniform-rules {
    margin-top: 20px;
}

.uniform-item {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.uniform-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.sanctions-list {
    margin-top: 20px;
}

.sanction-item {
    background: #fef3c7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #f59e0b;
}

.sanction-item h3 {
    color: #92400e;
    margin-bottom: 10px;
}

.collection-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    background: #f9fafb;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.staff-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.staff-item {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.staff-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.letter-types {
    margin-top: 20px;
}

.letter-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.letter-fee {
    padding: 5px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.process-steps {
    margin-top: 20px;
}

.process-steps .step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.process-steps .step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.process-steps .step-content h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.ppdb-cta {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.link:hover {
    text-decoration: underline;
}

.note {
    margin-top: 15px;
    padding: 15px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
    color: #92400e;
}

.contact-info {
    margin-top: 15px;
}

.contact-info p {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Form Styles */
.complaint-form,
.letter-form {
    margin-top: 20px;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group input[type="file"] {
    padding: 8px;
}

/* Responsive additions */
@media (max-width: 768px) {
    .org-level,
    .osis-level {
        flex-direction: column;
        width: 100%;
    }
    
    .org-box,
    .osis-box {
        width: 100%;
    }
    
    .flow-step {
        flex-direction: column;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .articles-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

