/* Modern Reset & Variables */
@import 'carousel.css';

:root {
    /* Fallback sebelum JS menyinkronkan tinggi navbar (menu mobile) */
    --site-nav-dropdown-top: 5.75rem;
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --accent: #0ea5e9;
    /* Sky blue */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --font-sans: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    /* Navbar & sections (dark mode) */
    --navbar-bg: rgba(255, 255, 255, 0.92);
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.97);
    --navbar-border: rgba(0, 0, 0, 0.06);
    --navbar-tagline: #000000;
    --footer-bg: #0f172a;
    --footer-muted: #94a3b8;
    --section-elevated: #ffffff;
    --section-muted: #f1f5f9;
    --section-soft: #f8fafc;
    --section-highlight: #eff6ff;
    --calendar-cell-bg: #f8fafc;
    color-scheme: light;
}

html[data-theme='dark'] {
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --primary-light: rgba(96, 165, 250, 0.18);
    --accent: #38bdf8;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --bg-body: #0f172a;
    --bg-white: #1e293b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.2);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.35), 0 2px 4px -2px rgb(0 0 0 / 0.28);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.35);
    --navbar-bg: rgba(15, 23, 42, 0.9);
    --navbar-bg-scrolled: rgba(15, 23, 42, 0.96);
    --navbar-border: rgba(148, 163, 184, 0.14);
    --navbar-tagline: #e2e8f0;
    --footer-bg: #020617;
    --footer-muted: #94a3b8;
    --section-elevated: #1e293b;
    --section-muted: #172033;
    --section-soft: #151c2e;
    --section-highlight: rgba(96, 165, 250, 0.1);
    --calendar-cell-bg: #334155;
    color-scheme: dark;
}

/* Section backgrounds (ganti inline di halaman) */
.section-bg-elevated {
    background: var(--section-elevated);
}

.section-bg-muted {
    background: var(--section-muted);
}

.section-bg-soft {
    background: var(--section-soft);
}

.section-bg-highlight {
    background: var(--section-highlight);
}

.box-highlight {
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    background: var(--section-highlight);
}

/* Tema: tombol navbar */
.theme-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--navbar-border);
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: scale(1.05);
}

html[data-theme='dark'] .theme-toggle:hover {
    color: var(--primary);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.theme-toggle__icon {
    font-size: 1.1rem;
    line-height: 1;
}

.theme-toggle__icon--to-light {
    display: none;
}

html[data-theme='dark'] .theme-toggle__icon--to-dark {
    display: none;
}

html[data-theme='dark'] .theme-toggle__icon--to-light {
    display: inline;
}

.navbar.navbar--scrolled .theme-toggle {
    width: 2.25rem;
    height: 2.25rem;
}

.navbar.navbar--scrolled .theme-toggle__icon {
    font-size: 1rem;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
}

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

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

/* Navbar — tetap di atas (fixed); mode ringkas saat digulir: .navbar--scrolled */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    --nav-height-expanded: 5rem;
    --nav-height-expanded-stacked: 5.85rem;
    --nav-height-compact: 2.875rem;
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--navbar-border);
    transition:
        background 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.navbar.navbar--scrolled {
    background: var(--navbar-bg-scrolled);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--navbar-border);
}

@media (prefers-reduced-motion: reduce) {
    .navbar,
    .navbar .container,
    .logo,
    .logo-text,
    .site-logo-img,
    .site-logo-name,
    .site-hero-tagline,
    .nav-links,
    .nav-link,
    .theme-toggle {
        transition: none !important;
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition:
        min-height 0.28s ease,
        height 0.28s ease,
        padding-block 0.28s ease,
        padding-inline 0.28s ease;
}

.navbar:not(.navbar--scrolled) .container {
    min-height: var(--nav-height-expanded);
    height: auto;
    padding-block: 0.45rem;
}

.navbar:not(.navbar--scrolled):has(.logo-text--stacked) .container {
    min-height: var(--nav-height-expanded-stacked);
}

.navbar.navbar--scrolled .container {
    height: var(--nav-height-compact);
    min-height: var(--nav-height-compact);
    padding-block: 0.15rem;
    padding-inline: 1.25rem;
}

.logo {
    position: relative;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    min-width: 0;
    transition: gap 0.28s ease, font-size 0.28s ease;
}

.navbar.navbar--scrolled .logo {
    font-size: 1rem;
    gap: 0.4rem;
}

.logo:hover .site-logo-name {
    color: var(--primary-dark, #1d4ed8);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.12rem;
    min-width: 0;
    transition: gap 0.28s ease;
}

.navbar.navbar--scrolled .logo-text {
    gap: 0;
}

.logo-icon-fallback {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Logo mempertahankan rasio aspek: lebar mengikuti tinggi maksimum */
.site-logo-img {
    width: auto;
    height: auto;
    max-height: clamp(34px, 9vw, 52px);
    max-width: min(280px, min(42vw, 12rem));
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
    border-radius: 10px;
    transition: max-height 0.28s ease, max-width 0.28s ease;
}

.navbar.navbar--scrolled .site-logo-img {
    max-height: clamp(22px, 6vw, 30px);
    max-width: min(168px, 36vw);
}

.site-logo-name {
    line-height: 1.15;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(280px, 46vw);
    transition: max-width 0.28s ease, opacity 0.25s ease;
}

.navbar.navbar--scrolled .site-logo-name {
    max-width: min(176px, 40vw);
}

.site-hero-tagline {
    /* Lebih besar dari ⅓ nama sekolah; min ~13px, max ~15px saat nama besar */
    font-size: clamp(0.8125rem, 0.58em, 0.9375rem);
    font-weight: 500;
    color: var(--navbar-tagline);
    line-height: 1.25;
    max-width: min(300px, 52vw);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.navbar.navbar--scrolled .site-hero-tagline {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    transition: gap 0.28s ease;
}

.navbar.navbar--scrolled .nav-links {
    gap: 1rem;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
}

.navbar.navbar--scrolled .nav-link {
    font-size: 0.875rem;
}

.navbar.navbar--scrolled .nav-links .btn {
    padding: 0.45rem 1rem;
    font-size: 0.8125rem;
}

.footer-brand .footer-logo-img {
    display: block;
    height: 56px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.footer-brand h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: font-size 0.28s ease;
}

.navbar.navbar--scrolled .mobile-toggle {
    font-size: 1.35rem;
}

.hero-brand-mark {
    display: flex;
    align-items: center;
}

.hero-brand-logo {
    height: 72px;
    width: auto;
    max-width: min(280px, 70vw);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

html[data-theme='dark'] .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
}

html[data-theme='dark'] .hero::before {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.12) 0%, rgba(15, 23, 42, 0) 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/* Hero — layout fullscreen (carousel full lebar, teks tengah bawah) */
.hero.hero--fullscreen {
    padding-top: 5.5rem;
    padding-bottom: 0;
    background: #0f172a;
    overflow: hidden;
}

.hero.hero--fullscreen::before {
    display: none;
}

.hero-fullscreen-stage {
    position: relative;
    width: 100%;
    min-height: clamp(22rem, calc(100vh - 6.5rem), 52rem);
}

.hero--fullscreen .hero-fullscreen-carousel.carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    overflow: hidden;
}

.hero--fullscreen .hero-fullscreen-inner.carousel-inner {
    display: block;
    height: 100%;
}

.hero--fullscreen .carousel-item {
    height: 100%;
}

.hero--fullscreen .carousel-item.active {
    height: 100%;
}

.hero--fullscreen .hero-fullscreen-img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    display: block;
}

.hero-fullscreen-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 23, 42, 0.45) 38%,
        rgba(15, 23, 42, 0.15) 62%,
        transparent 100%
    );
}

.hero-fullscreen-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 2rem 1.25rem 2.75rem;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.hero-fullscreen-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: #f8fafc;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-fullscreen-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: rgba(248, 250, 252, 0.88);
    margin-bottom: 1.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero-buttons--on-dark {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-outline--on-dark {
    border-color: rgba(255, 255, 255, 0.85);
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
}

.btn-outline--on-dark:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #fff;
    color: #fff;
}

.hero-fullscreen-controls.carousel-controls {
    bottom: auto;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 0.75rem;
    transform: translateY(-50%);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    z-index: 3;
    pointer-events: none;
}

.hero-fullscreen-controls .carousel-control {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.45);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-fullscreen-controls .carousel-control:hover {
    background: rgba(37, 99, 235, 0.95);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

@media (min-width: 769px) {
    .hero-fullscreen-controls.carousel-controls {
        padding: 0 1.25rem;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Cards General */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Berita Grid */
.berita-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Agenda */
.agenda-list {
    display: grid;
    gap: 1.5rem;
}

.agenda-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.agenda-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.agenda-date-box {
    background: var(--primary-light);
    color: var(--primary);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 80px;
}

.agenda-date-box .day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.agenda-date-box .month {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.agenda-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.agenda-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Agenda Layout — kalender + daftar berdampingan */
.agenda-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.agenda-list-wrap {
    min-width: 0;
}

.agenda-list-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.agenda-list-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.agenda-list-count {
    font-size: 0.8125rem;
    color: var(--text-muted);
    background: rgba(37, 99, 235, 0.08);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-weight: 600;
}

.agenda-empty {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed rgba(37, 99, 235, 0.25);
}

.agenda-empty i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: rgba(37, 99, 235, 0.5);
}

.agenda-empty p {
    margin: 0;
}

/* Kalender Bulanan Agenda */
.agenda-calendar {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

html[data-theme='dark'] .agenda-calendar {
    border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme='dark'] .agenda-calendar__legend {
    border-top-color: rgba(148, 163, 184, 0.15);
}

html[data-theme='dark'] .agenda-calendar__cell.has-event {
    color: var(--text-main);
}

html[data-theme='dark'] .agenda-calendar__cell:not(.is-empty):hover {
    color: var(--primary);
}

html[data-theme='dark'] .legend-swatch.is-today {
    background: var(--bg-white);
}

.agenda-calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.agenda-calendar__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: capitalize;
    letter-spacing: 0.01em;
}

.agenda-calendar__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    transition: var(--transition);
    text-decoration: none;
}

.agenda-calendar__nav:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.agenda-calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

.agenda-calendar__weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    padding: 0.4rem 0;
}

.agenda-calendar__weekday.is-sunday {
    color: #dc2626;
}

.agenda-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.agenda-calendar__cell {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: var(--calendar-cell-bg);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.agenda-calendar__cell.is-empty {
    background: transparent;
    border: none;
    pointer-events: none;
}

.agenda-calendar__cell.is-sunday {
    color: #dc2626;
}

.agenda-calendar__cell:not(.is-empty):hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.agenda-calendar__cell.has-event {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.12));
    color: var(--primary-dark);
    font-weight: 700;
    cursor: pointer;
}

.agenda-calendar__cell.has-event:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

.agenda-calendar__cell.is-today {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) inset;
}

.agenda-calendar__cell.is-selected {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.agenda-calendar__cell.is-selected .agenda-calendar__dot {
    background: #fff;
}

.agenda-calendar__day {
    line-height: 1;
}

.agenda-calendar__dot {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}

.agenda-calendar__cell.has-event:hover .agenda-calendar__dot {
    background: #fff;
}

.agenda-calendar__count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.agenda-calendar__cell.is-selected .agenda-calendar__count {
    background: #fff;
    color: var(--primary);
}

.agenda-calendar__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.08);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.agenda-calendar__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.legend-swatch.is-event {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(14, 165, 233, 0.4));
    border: 1px solid rgba(37, 99, 235, 0.4);
}

.legend-swatch.is-today {
    background: #fff;
    border: 2px solid var(--primary);
}

.agenda-calendar__reset {
    margin-left: auto;
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    transition: var(--transition);
}

.agenda-calendar__reset:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Arsip Singkat — kartu kecil yang tautannya membawa ke tanggal di kalender */
.agenda-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.agenda-archive-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary);
    transition: var(--transition);
    color: inherit;
    text-decoration: none;
}

.agenda-archive-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-left-color: var(--accent);
}

.agenda-archive-info {
    min-width: 0;
    flex: 1;
}

.agenda-archive-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: var(--text-main);
    line-height: 1.35;
}

@media (max-width: 900px) {
    .agenda-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .agenda-calendar {
        padding: 1rem 0.85rem 0.85rem;
    }

    .agenda-calendar__cell {
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .agenda-calendar__count {
        min-width: 16px;
        height: 16px;
        font-size: 0.625rem;
    }
}

/* Prestasi */
.prestasi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.prestasi-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 300px;
}

.prestasi-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prestasi-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1.5rem;
    color: white;
}

.prestasi-overlay .prestasi-tingkat-badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.92;
    margin: 0.35rem 0 0.25rem;
}

/* Galeri */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.8);
    /* Primary color with opacity */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    background: var(--bg-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-caption {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
}

.gallery-item:hover .gallery-icon,
.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: #f8fafc;
    padding: 4rem 0 2rem;
}

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

.footer-brand h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #f8fafc;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--footer-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: #f8fafc;
    padding-left: 5px;
}

.footer-social h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #f8fafc;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--footer-muted);
    transition: var(--transition);
    text-decoration: none;
}

.footer-social-link:hover {
    background: rgba(59, 130, 246, 0.35);
    color: #f8fafc;
    transform: translateY(-2px);
}

.copyright {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding-top: 2rem;
    text-align: center;
    color: var(--footer-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .hero-fullscreen-caption {
        padding-bottom: 2.25rem;
    }

    .hero-fullscreen-controls.carousel-controls {
        padding: 0 0.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--site-nav-dropdown-top);
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        gap: 1rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }
}

/* Modal/Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}