/**
 * landing.css - Modern Tech-Edu Design System
 * SMK Gajah Mungkur 2 Giritontro
 * Clean, Simple, Responsive, 60fps animations
 */

:root {
    /* Brand & Primary Colors (SMPN 1 Baturetno Style: Deep Royal Navy & Blue) */
    --navy-950: #0a1329;
    --navy-900: #0f2347;
    --navy-850: #132b57;
    --navy-800: #172554;
    --navy-700: #1e3a8a;
    --primary: #1e3a8a;
    --primary-navy: #0f2347;
    --primary-accent: #2563eb;
    --primary-hover: #172554;
    --primary-light: #eff6ff;
    --primary-subtle: rgba(15, 35, 71, 0.08);
    --primary-glow: rgba(37, 99, 235, 0.25);

    /* Secondary / Accent Colors */
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #f0f9ff;
    --accent-cyan: #38bdf8;
    --accent-gold: #f59e0b;
    --accent-gold-light: #fef3c7;
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;

    /* Neutrals & Slate Palette */
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;

    /* Backgrounds & Text */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --text-heading: #0f2347;
    --text-body: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0a1329 0%, #0f2347 50%, #1e3a8a 100%);
    --gradient-primary: linear-gradient(135deg, #0f2347 0%, #1e3a8a 50%, #2563eb 100%);
    --gradient-accent: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --gradient-gold: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 16px -2px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 16px 30px -4px rgba(15, 23, 42, 0.08), 0 6px 12px -3px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.14);
    --shadow-glow: 0 15px 30px -5px rgba(37, 99, 235, 0.28);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transition */
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-body);
    background-color: var(--bg-page);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* True Tone Screen Filter Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99998;
    backdrop-filter: sepia(0.28) hue-rotate(-12deg);
    -webkit-backdrop-filter: sepia(0.28) hue-rotate(-12deg);
    background-color: rgba(245, 158, 11, 0.035);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.true-tone-active::after {
    opacity: 1;
    visibility: visible;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: var(--radius-full);
    border: 2px solid var(--slate-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.header-section {
    position: relative;
    z-index: 1000;
}

.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 14px 0;
    transition: var(--transition);
}

.navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--slate-200);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 2rem;
}

.navbar-brand img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.navbar.navbar-scrolled .navbar-brand img {
    height: 46px;
}

.navbar-nav .nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.935rem;
    font-weight: 500;
    color: var(--slate-700);
    padding: 8px 14px !important;
    margin: 0 2px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.navbar-nav .nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 600;
}

/* True Tone Toggle Button */
.true-tone-btn {
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    color: var(--slate-600);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    margin-left: 8px;
}

.true-tone-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.2);
}

.true-tone-btn.active {
    background: #fef3c7;
    color: #d97706;
    border-color: #fde68a;
}

.true-tone-btn .tooltip-text {
    visibility: hidden;
    background-color: var(--slate-900);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    position: absolute;
    z-index: 100;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: var(--shadow-md);
}

.true-tone-btn .tooltip-text::after {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: transparent transparent var(--slate-900) transparent;
}

.true-tone-btn:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Header WhatsApp CTA */
.btn-nav-cta {
    background: var(--gradient-primary);
    color: var(--white) !important;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 18px !important;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    margin-left: 10px;
    transition: var(--transition);
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    color: var(--white) !important;
}

.navbar-toggler {
    border: 1px solid var(--slate-200);
    padding: 6px 10px;
    border-radius: var(--radius-md);
    background: var(--slate-50);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

/* Subtle background glowing orbs */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-full);
    color: #93c5fd;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.hero-badge i {
    color: #60a5fa;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.18;
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-title-highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.hero-description {
    font-size: 1.025rem;
    color: #94a3b8;
    margin-bottom: 2.25rem;
    max-width: 560px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 2.5rem;
}

/* Modern Pill Buttons */
.btn-hero-primary {
    /* Starts at the accent, not navy: a navy start melted into the dark hero and hid the button's edge. */
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--white);
    padding: 13px 28px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 25px -6px rgba(37, 99, 235, 0.55);
    border: none;
    text-decoration: none;
    transition: var(--transition);
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 28px -6px rgba(37, 99, 235, 0.65);
    color: var(--white);
}

.btn-hero-primary:active {
    transform: translateY(0);
}

/* White inner + blue outer ring stays visible on both the dark hero and light sections. */
.btn-hero-primary:focus-visible,
.btn-hero-secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--accent);
    color: var(--white);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 13px 26px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* Hero Trust Highlights */
.hero-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-trust-item i {
    color: #38bdf8;
    font-size: 0.95rem;
}

/* Framed Carousel Media */
.hero-media-wrapper {
    position: relative;
    z-index: 2;
}

.hero-media-frame {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    padding: 12px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.45);
    position: relative;
}

.hero-carousel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.hero-carousel .carousel-item {
    height: 440px;
    background: #0f172a;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-lg);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.85;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-carousel .carousel-control-prev {
    left: 16px;
}

.hero-carousel .carousel-control-next {
    right: 16px;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: var(--primary);
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}

.hero-carousel .carousel-indicators {
    bottom: 14px;
    margin-bottom: 0;
}

.hero-carousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: var(--transition);
}

.hero-carousel .carousel-indicators button.active {
    width: 24px;
    background-color: var(--white);
    border-radius: var(--radius-full);
}

/* ==========================================================================
   Stats Counter Section (Floating Grid)
   ========================================================================== */
.stats-section {
    position: relative;
    z-index: 20;
    margin-top: -46px;
    padding-bottom: 60px;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.08) rotate(3deg);
}

.stat-icon.primary {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-icon.sky {
    background: var(--accent-light);
    color: var(--accent);
}

.stat-icon.emerald {
    background: var(--success-light);
    color: var(--success);
}

.stat-icon.amber {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-info {
    flex-grow: 1;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.1;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.3;
}

/* ==========================================================================
   Section Headers & Shared Layout
   ========================================================================== */
.section-padding {
    padding: 90px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.015em;
    margin-bottom: 14px;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0;
}

/* ==========================================================================
   Pengumuman (Announcements / News) Section
   ========================================================================== */
.pengumuman-section {
    background: var(--bg-surface);
    padding: 90px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.news-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.news-thumb-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--slate-100);
}

.news-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-thumb-wrapper img {
    transform: scale(1.06);
}

.news-date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
    line-height: 1.4;
    transition: var(--transition);
}

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

.news-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.news-link i {
    transition: transform 0.2s ease;
}

.news-card:hover .news-link i {
    transform: translateX(4px);
}

.empty-state-modern {
    text-align: center;
    padding: 60px 20px;
    background: var(--slate-50);
    border: 1px dashed var(--slate-300);
    border-radius: var(--radius-lg);
    max-width: 500px;
    margin: 0 auto;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    background: var(--slate-200);
    color: var(--slate-500);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

/* ==========================================================================
   Keunggulan (Why Choose Us) Section
   ========================================================================== */
.features-section {
    background: var(--bg-page);
    padding: 90px 0;
}

.feature-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.feature-icon-wrapper {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 22px;
    transition: var(--transition);
}

.feature-box:hover .feature-icon-wrapper {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.06);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-heading);
}

.feature-desc {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0;
}

/* ==========================================================================
   Program Keahlian (Jurusan) Section
   ========================================================================== */
.jurusan-section {
    background: var(--bg-surface);
    padding: 90px 0;
    border-top: 1px solid var(--border-color);
}

.jurusan-card-modern {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.jurusan-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transition: var(--transition);
}

.jurusan-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.25);
}

.jurusan-card-modern:hover::before {
    opacity: 1;
}

.jurusan-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.jurusan-icon-box {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: var(--transition);
}

.jurusan-card-modern:hover .jurusan-icon-box {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.08) rotate(-4deg);
}

.jurusan-code-badge {
    background: var(--slate-100);
    color: var(--slate-700);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.jurusan-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
    line-height: 1.3;
}

.jurusan-desc {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
    flex-grow: 1;
}

.jurusan-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    border-top: 1px solid var(--slate-100);
    padding-top: 18px;
}

.jurusan-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--slate-600);
    margin-bottom: 8px;
}

.jurusan-features-list li i {
    color: var(--success);
    font-size: 0.82rem;
}

.jurusan-badge-bottom {
    display: inline-block;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: auto;
}

/* ==========================================================================
   Fasilitas Section
   ========================================================================== */
.fasilitas-section {
    background: var(--bg-page);
    padding: 90px 0;
    border-top: 1px solid var(--border-color);
}

.facility-card-modern {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.facility-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.facility-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--slate-100);
}

.facility-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.facility-card-modern:hover .facility-image-wrap img {
    transform: scale(1.06);
}

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

.facility-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.facility-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Expandable items */
.facility-item.hidden,
.gallery-item.hidden {
    display: none !important;
}

.facility-item.show,
.gallery-item.show {
    display: block !important;
    animation: fadeInReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Galeri Kegiatan Section
   ========================================================================== */
.galeri-section {
    background: var(--bg-surface);
    padding: 90px 0;
    border-top: 1px solid var(--border-color);
}

.gallery-card-modern {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.gallery-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--slate-100);
}

.gallery-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-card-modern:hover .gallery-image-wrap img {
    transform: scale(1.06);
}

.gallery-zoom-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: var(--transition);
    opacity: 0.85;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-card-modern:hover .gallery-zoom-badge {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
    opacity: 1;
}

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

.gallery-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
    line-height: 1.35;
    transition: var(--transition);
}

.gallery-card-modern:hover .gallery-title {
    color: var(--primary);
}

.gallery-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-action-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.gallery-action-link i {
    transition: transform 0.2s ease;
}

.gallery-card-modern:hover .gallery-action-link i {
    transform: scale(1.15) translateX(2px);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
    /* Langsung visible saat dibuka agar tombol tutup bisa langsung menerima fokus; fade-out saat tutup tetap. */
    transition: opacity 0.3s ease, visibility 0s;
}

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

.lightbox-content img {
    max-height: 75vh;
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    object-fit: contain;
}

.lightbox-caption {
    color: var(--white);
    margin-top: 16px;
    font-size: 1.1rem;
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    top: -46px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    /* Bukan "all": visibility warisan dari modal tidak boleh ikut tertunda, agar tombol bisa langsung difokus. */
    transition-property: background-color, color;
}

.lightbox-close:hover {
    background: var(--white);
    color: var(--slate-900);
}

/* ==========================================================================
   Call To Action (CTA) Banner
   ========================================================================== */
.cta-banner-section {
    padding: 60px 0;
    background: var(--bg-surface);
}

.cta-banner-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
    border-radius: var(--radius-xl);
    padding: 60px 48px;
    color: var(--white);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.35);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cta-banner-card::before {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-banner-content {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.cta-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.cta-banner-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 12px;
}

.cta-banner-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0;
}

.cta-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.btn-cta-whatsapp {
    background: #25d366;
    color: var(--white);
    padding: 13px 26px;
    border-radius: var(--radius-full);
    font-size: 0.98rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px -4px rgba(37, 211, 102, 0.4);
    border: none;
    transition: var(--transition);
}

.btn-cta-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 14px 24px -4px rgba(37, 211, 102, 0.5);
    color: var(--white);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    color: var(--white);
    padding: 13px 24px;
    border-radius: var(--radius-full);
    font-size: 0.98rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-cta-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer-section {
    background: #0b1120;
    color: #94a3b8;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo img {
    height: 72px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.footer-about {
    font-size: 0.93rem;
    line-height: 1.7;
    margin-bottom: 24px;
    color: #94a3b8;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-heading {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

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

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

.footer-links a {
    color: #94a3b8;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a i {
    font-size: 0.72rem;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

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

.footer-contact li {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.55;
}

.footer-contact li i {
    color: #38bdf8;
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 200px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    color: #64748b;
}

/* ==========================================================================
   Back To Top Floating Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.4);
    color: var(--white);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Laptop & Tablet Large (max 1199.98px) */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 2.85rem;
    }
    .cta-banner-card {
        padding: 48px 36px;
    }
}

/* Tablet (max 991.98px) */
@media (max-width: 991.98px) {
    .navbar {
        padding: 12px 0;
    }

    .navbar-collapse {
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        padding: 20px;
        margin-top: 14px;
        box-shadow: var(--shadow-xl);
    }

    .navbar-nav .nav-link {
        padding: 10px 16px !important;
        margin: 2px 0;
    }

    .btn-nav-cta {
        margin: 12px 0 0 0;
        justify-content: center;
        width: 100%;
    }

    .true-tone-btn {
        margin: 10px 0 0 0;
    }

    .hero-section {
        padding: 130px 0 80px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust-list {
        justify-content: center;
    }

    .hero-media-wrapper {
        margin-top: 40px;
    }

    .hero-carousel .carousel-item {
        height: 380px;
    }

    .stats-section {
        margin-top: 0;
        padding-top: 40px;
    }

    .cta-banner-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }

    .cta-banner-actions {
        justify-content: center;
        width: 100%;
    }

    .cta-banner-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Devices (max 767.98px) */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }

    .pengumuman-section,
    .features-section,
    .jurusan-section,
    .fasilitas-section,
    .galeri-section {
        padding: 60px 0;
    }

    .hero-section {
        padding: 110px 0 60px;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-carousel .carousel-item {
        height: 280px;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .stat-card {
        padding: 18px 16px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }

    .cta-banner-title {
        font-size: 1.65rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    .navbar-brand img {
        height: 42px;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-carousel .carousel-item {
        height: 230px;
    }

    .gallery-image-wrap {
        aspect-ratio: 16 / 10;
    }
}

/* ==========================================================================
   SMPN 1 Baturetno Style Design System Additions
   ========================================================================== */

/* Topbar */
.topbar-section {
    background: #0a1329;
    color: #e2e8f0;
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #cbd5e1;
}

.topbar-item i {
    font-size: 0.85rem;
}

.topbar-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    cursor: default;
}

.topbar-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
    flex-shrink: 0;
}

.topbar-status.is-open .topbar-status-dot {
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

.topbar-status strong {
    font-weight: 600;
    color: #fff;
}

.topbar-status-sep {
    color: #475569;
}

.topbar-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.75rem;
    transition: var(--transition);
}

.topbar-socials a:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hero Quote Card */
.hero-quote-card {
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid #f59e0b;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 14px 20px;
    margin: 20px 0 26px;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-quote-icon {
    color: #f59e0b;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.hero-quote-text {
    font-style: italic;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 4px;
}

.hero-quote-author {
    font-size: 0.8rem;
    color: #93c5fd;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sambutan Kepala Sekolah (SMPN 1 Baturetno Style) */
.sambutan-section {
    background: #ffffff;
    padding: 85px 0;
    border-bottom: 1px solid var(--border-color);
}

.sambutan-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 44px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.sambutan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #0f2347 0%, #2563eb 100%);
}

.sambutan-photo-frame {
    position: relative;
    display: inline-block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(15, 35, 71, 0.15);
    border: 4px solid #ffffff;
}

.sambutan-photo {
    width: 260px;
    height: 330px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.sambutan-photo-frame:hover .sambutan-photo {
    transform: scale(1.03);
}

.sambutan-badge-akreditasi {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0f2347 0%, #1e3a8a 100%);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sambutan-badge-akreditasi i {
    color: #fbbf24;
}

.sambutan-content {
    padding-left: 10px;
}

.sambutan-author-name {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f2347;
    margin-bottom: 2px;
}

.sambutan-author-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 16px;
}

.sambutan-text {
    color: var(--slate-700);
    font-size: 0.98rem;
    line-height: 1.75;
}

/* Inovasi Digital Section */
.inovasi-section {
    background: #f8fafc;
    padding: 85px 0;
    border-bottom: 1px solid var(--border-color);
}

.inovasi-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.inovasi-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.35);
}

.inovasi-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.inovasi-card:hover .inovasi-icon-wrap {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    transform: scale(1.08) rotate(3deg);
}

.inovasi-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #0f2347;
    margin-bottom: 10px;
}

.inovasi-desc {
    font-size: 0.9rem;
    color: var(--slate-600);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-inovasi-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e3a8a;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: #eff6ff;
    width: fit-content;
    transition: var(--transition);
}

.btn-inovasi-link:hover {
    background: #1e3a8a;
    color: #ffffff;
    gap: 12px;
}

/* Warta & Kabar Sekolah (SMPN 1 Baturetno Style) */
.berita-section {
    background: #ffffff;
    padding: 85px 0;
    border-bottom: 1px solid var(--border-color);
}

.featured-news-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.featured-news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.3);
}

.featured-news-thumb {
    position: relative;
    height: 310px;
    overflow: hidden;
}

.featured-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-news-card:hover .featured-news-thumb img {
    transform: scale(1.05);
}

.news-category-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 35, 71, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.featured-news-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.featured-news-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f2347;
    line-height: 1.35;
    margin-bottom: 12px;
}

.featured-news-excerpt {
    color: var(--slate-600);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
}

.compact-news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.compact-news-item {
    display: flex;
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    transition: var(--transition);
}

.compact-news-item:hover {
    transform: translateX(4px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: var(--shadow-md);
}

.compact-news-thumb {
    width: 105px;
    height: 82px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.compact-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.compact-news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--slate-500);
    margin-bottom: 5px;
}

.compact-news-meta .meta-cat {
    color: #2563eb;
    font-weight: 600;
}

.compact-news-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.compact-news-title a {
    color: #0f2347;
    transition: var(--transition);
}

.compact-news-title a:hover {
    color: #2563eb;
}

/* Agenda Mendatang (SMPN 1 Baturetno Style) */
.agenda-section {
    background: #f8fafc;
    padding: 85px 0;
    border-bottom: 1px solid var(--border-color);
}

.agenda-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.agenda-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.35);
}

.agenda-date-box {
    width: 68px;
    height: 72px;
    background: linear-gradient(145deg, #0f2347 0%, #1e3a8a 100%);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(15, 35, 71, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.agenda-day {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

.agenda-month {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #93c5fd;
    margin-top: 2px;
}

.agenda-info {
    flex-grow: 1;
}

.agenda-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f2347;
    margin-bottom: 8px;
    line-height: 1.35;
}

.agenda-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--slate-600);
    margin-bottom: 8px;
}

.agenda-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.agenda-meta-item i {
    color: #2563eb;
}

.agenda-desc {
    font-size: 0.85rem;
    color: var(--slate-500);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Prestasi Kebanggaan Section */
.prestasi-section {
    background: #ffffff;
    padding: 85px 0;
    border-bottom: 1px solid var(--border-color);
}

.prestasi-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.prestasi-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(245, 158, 11, 0.4);
}

.prestasi-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.prestasi-card:hover .prestasi-img-wrap img {
    transform: scale(1.05);
}

/* Diskop ke .prestasi-card: pages.css (juga dimuat di beranda) punya .prestasi-rank-badge
   untuk halaman Prestasi dengan left + warna putih !important. */
.prestasi-card .prestasi-rank-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    left: auto;
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    color: #0f172a !important;
    text-shadow: none;
    border: 0;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.prestasi-card .prestasi-rank-badge i {
    color: inherit !important;
}

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

.prestasi-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f2347;
    margin-bottom: 8px;
    line-height: 1.35;
}

.prestasi-student {
    font-size: 0.92rem;
    color: #1e3a8a;
    margin-bottom: 12px;
}

/* Testimoni Siswa & Alumni */
.testimoni-section {
    background: #f8fafc;
    padding: 85px 0;
    border-bottom: 1px solid var(--border-color);
}

.testimoni-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.testimoni-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.3);
}

.testimoni-rating {
    display: flex;
    gap: 4px;
    color: #f59e0b;
    font-size: 0.95rem;
}

.testimoni-quote {
    font-style: italic;
    color: var(--slate-700);
    font-size: 0.95rem;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 0;
}

.testimoni-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #2563eb;
    flex-shrink: 0;
}

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

.testimoni-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f2347;
    margin-bottom: 2px;
}

.testimoni-role {
    font-size: 0.82rem;
    color: var(--slate-500);
}

/* ==========================================================================
   Mobile polish — keep at the END of this file. The sections above were
   added after the @media blocks, so the earlier breakpoints never reach them.
   ========================================================================== */
@media (max-width: 767.98px) {
    .sambutan-section,
    .inovasi-section,
    .berita-section,
    .agenda-section,
    .prestasi-section,
    .testimoni-section {
        padding: 56px 0;
    }

    .sambutan-card {
        padding: 24px 20px;
    }

    .sambutan-text .lead {
        font-size: 1.05rem;
        line-height: 1.65;
    }

    /* Paragraph-length copy is hard to read centred on a narrow screen. */
    .hero-section {
        text-align: left;
    }

    .hero-description {
        margin-left: 0;
    }

    .hero-trust-list {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    /* Two cards per row leave ~160px each: stack icon over the number so it fits. */
    .stat-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }

    .stat-info {
        min-width: 0;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.82rem;
    }
}

/* Touch screens: grow hit areas to ~44px. Visual size stays the same on purpose
   (the ::before layer is invisible), so mouse layouts are untouched. */
@media (pointer: coarse) {
    .topbar-socials a,
    .social-links a,
    .carousel-indicators [data-bs-target],
    .filter-pill-btn,
    .view-btn {
        position: relative;
    }

    .topbar-socials a::before,
    .social-links a::before,
    .carousel-indicators [data-bs-target]::before {
        content: "";
        position: absolute;
        inset: -9px;
    }

    .carousel-indicators [data-bs-target]::before {
        inset: -18px -6px;
    }

    .filter-pill-btn,
    .view-btn {
        min-height: 40px;
    }
}

/* Admin-only preview notice while the public site is in maintenance mode */
.maintenance-preview-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
    padding: 10px 16px;
    background: #fef3c7;
    color: #78350f;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.maintenance-preview-bar a {
    font-weight: 700;
    color: #78350f;
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .btn-hero-primary,
    .btn-hero-secondary {
        transition: none;
    }

    .btn-hero-primary:hover,
    .btn-hero-secondary:hover {
        transform: none;
    }
}

/* Logo sizing by shape (SiteSetting::logoShape): an emblem gets height, a wordmark gets width. */
.navbar-brand img.logo-shape-wide {
    height: auto;
    max-height: 48px;
    max-width: 210px;
    object-fit: contain;
}

.footer-logo img {
    object-fit: contain;
}

.footer-logo img.logo-shape-wide {
    height: auto;
    max-height: 72px;
    max-width: 260px;
}

@media (max-width: 480px) {
    .navbar-brand img.logo-shape-wide {
        max-width: 160px;
        max-height: 42px;
    }
}

/* School name beside an emblem-style (square/tall) logo */
.navbar-brand-text {
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1.15;
}

.navbar-brand-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text-heading);
    white-space: normal;
    max-width: 230px;
}

.navbar-brand-tagline {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: normal;
    max-width: 230px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

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

.footer-brand-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--white);
}

.footer-brand-tagline {
    font-size: 0.8rem;
    color: var(--slate-400);
    margin-top: 2px;
}

@media (max-width: 480px) {
    .navbar-brand-title {
        font-size: 0.88rem;
        max-width: 190px;
    }

    .navbar-brand-tagline {
        display: none;
    }
}

/* Navbar width budget. The full menu needs ~1060px, so the links are
   tightened (up to 1499px, so an emblem's name fits beside it from 1400px); at
   992-1199px the WhatsApp button also drops to its icon. The logo may
   never be squeezed to zero width. */
.navbar-brand {
    flex-shrink: 0;
}

.btn-nav-cta {
    white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1499.98px) {
    .navbar-nav .nav-link {
        font-size: 0.86rem;
        padding: 8px 8px !important;
        margin: 0;
    }

    .btn-nav-cta {
        padding: 8px 12px !important;
        font-size: 0.82rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .btn-nav-cta-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .btn-nav-cta {
        width: 40px;
        height: 40px;
        justify-content: center;
        padding: 0 !important;
        font-size: 1rem;
    }

    .navbar-brand img.logo-shape-square,
    .navbar-brand img.logo-shape-tall {
        height: 44px;
    }

    .navbar-brand img.logo-shape-wide {
        max-width: 150px;
    }
}

@media (min-width: 1400px) {
    .navbar-brand-title,
    .navbar-brand-tagline {
        max-width: 170px;
    }
}

/* Agenda teaser on the homepage uses the same rows as the Agenda page */
.agenda-teaser { max-width: 860px; margin: 0 auto; }

/* ==========================================================================
   Beranda ringkas: Jelajahi Sekolah + Kabar Terbaru
   Semua aturan di-scope ke .jelajahi-section / .kabar-section agar tidak
   tertimpa selector generik di pages.css.
   ========================================================================== */
.jelajahi-section,
.kabar-section {
    padding: 72px 0;
}

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

.kabar-section {
    background: var(--slate-50);
    border-top: 1px solid var(--border-color);
}

.jelajahi-section .jelajahi-head,
.kabar-section .kabar-head {
    margin-bottom: 36px;
    max-width: 640px;
    text-align: left;
}

.jelajahi-section .jelajahi-title,
.kabar-section .kabar-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-heading);
    margin: 0 0 8px;
}

.jelajahi-section .jelajahi-lead,
.kabar-section .kabar-lead {
    margin: 0;
    color: var(--slate-600);
    font-size: 1rem;
}

/* Jelajahi: daftar editorial, 2 entri utama lalu 4 entri ringkas */
.jelajahi-section .jelajahi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
}

.jelajahi-section .jelajahi-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 6px;
    align-content: start;
    min-height: 44px;
    padding: 16px 0 14px;
    border-top: 2px solid var(--primary-navy);
    color: var(--text-body);
    text-decoration: none;
}

.jelajahi-section .jelajahi-item.is-primary {
    grid-column: 1 / -1;
}

.jelajahi-section .jelajahi-name {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--text-heading);
}

.jelajahi-section .jelajahi-name i {
    font-size: 0.85rem;
    color: var(--slate-600);
}

.jelajahi-section .jelajahi-name-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    padding-bottom: 2px;
    transition: background-size 0.3s ease;
}

.jelajahi-section .jelajahi-item.is-primary .jelajahi-name-text {
    font-size: 1.75rem;
}

.jelajahi-section .jelajahi-desc {
    color: var(--slate-600);
    font-size: 0.95rem;
    line-height: 1.5;
}

.jelajahi-section .jelajahi-arrow {
    font-size: 0.8em;
    color: var(--primary);
    margin-left: 8px;
    transition: transform 0.25s;
}

.jelajahi-section .jelajahi-item:hover .jelajahi-name-text,
.jelajahi-section .jelajahi-item:focus-visible .jelajahi-name-text {
    background-size: 100% 2px;
}

.jelajahi-section .jelajahi-item:hover .jelajahi-arrow,
.jelajahi-section .jelajahi-item:focus-visible .jelajahi-arrow {
    transform: translateX(6px);
}

.jelajahi-section .jelajahi-item:focus-visible,
.kabar-section a:focus-visible {
    outline: 3px solid var(--primary-accent);
    outline-offset: 4px;
    border-radius: 2px;
}

@media (min-width: 992px) {
    .jelajahi-section .jelajahi-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .jelajahi-section .jelajahi-item.is-primary {
        grid-column: span 6;
    }

    .jelajahi-section .jelajahi-item.is-compact {
        grid-column: span 3;
    }
}

@media (max-width: 575.98px) {
    .jelajahi-section,
    .kabar-section {
        padding: 48px 0;
    }

    .jelajahi-section .jelajahi-title,
    .kabar-section .kabar-title {
        font-size: 1.6rem;
    }

    .jelajahi-section .jelajahi-grid {
        gap: 18px 20px;
    }

    .jelajahi-section .jelajahi-item {
        padding: 12px 0 10px;
    }

    .jelajahi-section .jelajahi-desc {
        display: none;
    }

    .jelajahi-section .jelajahi-item.is-primary .jelajahi-desc {
        display: block;
        font-size: 0.9rem;
    }

    .jelajahi-section .jelajahi-item.is-primary .jelajahi-name-text {
        font-size: 1.35rem;
    }
}

/* Kabar Terbaru */
.kabar-section .kabar-col-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    margin-bottom: 20px;
    border-top: 2px solid var(--primary-navy);
}

.kabar-section .kabar-col-head h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}

.kabar-section .kabar-more {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.kabar-section .kabar-more:hover {
    text-decoration: underline;
}

.kabar-section .kabar-more i {
    margin-left: 4px;
    font-size: 0.75rem;
}

.kabar-section .kabar-lead-story img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

@media (min-width: 576px) {
    .kabar-section .kabar-lead-story img {
        aspect-ratio: 2 / 1;
    }
}

.kabar-section .kabar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 0.82rem;
    color: var(--slate-600);
    margin-bottom: 6px;
}

.kabar-section .kabar-meta span {
    font-weight: 600;
    color: var(--primary);
}

.kabar-section .kabar-lead-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

.kabar-section .kabar-lead-title a,
.kabar-section .kabar-compact-title {
    color: var(--text-heading);
    text-decoration: none;
}

.kabar-section .kabar-lead-title a:hover,
.kabar-section .kabar-compact-title:hover {
    text-decoration: underline;
}

.kabar-section .kabar-lead-excerpt {
    color: var(--slate-600);
    line-height: 1.65;
    margin: 0 0 24px;
}

.kabar-section .kabar-compact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kabar-section .kabar-compact li {
    padding: 14px 0;
    border-top: 1px solid var(--border-color);
}

.kabar-section .kabar-compact-title {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.4;
}

.kabar-section .kabar-empty {
    color: var(--slate-600);
    margin: 0;
}

/* Satu gaya visual di Kabar: baris agenda dibuat datar seperti daftar berita */
.kabar-section .agenda-row {
    background: none;
    border: 0;
    border-top: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: none;
    padding: 14px 0;
    margin: 0;
}

.kabar-section .agenda-row .agenda-date-box {
    background: var(--primary-navy);
    background-image: none;
    box-shadow: none;
    border-radius: var(--radius-sm);
}

@media (min-width: 992px) {
    .kabar-section .kabar-lead-title {
        font-size: 1.45rem;
    }

    .kabar-section .kabar-lead-excerpt {
        margin-bottom: 16px;
    }
}

@media (max-width: 575.98px) {
    .kabar-section .kabar-lead-title {
        font-size: 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jelajahi-section .jelajahi-name-text,
    .jelajahi-section .jelajahi-arrow {
        transition: none;
    }

    .jelajahi-section .jelajahi-item:hover .jelajahi-arrow,
    .jelajahi-section .jelajahi-item:focus-visible .jelajahi-arrow {
        transform: none;
    }
}
