/*
Theme Name: Sekolah Modern Premium
Theme URI: https://sman1harapanbangsa.sch.id
Author: Tim Pengembang Sekolah
Author URI: https://sman1harapanbangsa.sch.id
Description: Tema website profil sekolah modern, elegan, responsif, dan kaya fitur berstandar premium. Memenuhi seluruh spesifikasi PRD sekolah nasional, siap pakai dan mudah dimigrasikan ke Hostinger.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: sekolah-modern
*/

:root {
    --primary: #0b2545;
    --primary-light: #133c6d;
    --primary-dark: #07192f;
    --secondary: #137547;
    --secondary-light: #2a9d5c;
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --gold: #d97706;
    --gold-light: #f59e0b;
    --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --navy-gradient: linear-gradient(135deg, #0b2545 0%, #1e3a8a 100%);
    --emerald-gradient: linear-gradient(135deg, #065f46 0%, #059669 100%);

    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-soft: #f1f5f9;
    --bg-alt: #e2e8f0;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 4px rgba(11, 37, 69, 0.04);
    --shadow-md: 0 8px 20px rgba(11, 37, 69, 0.08);
    --shadow-lg: 0 16px 36px rgba(11, 37, 69, 0.12);
    --shadow-hover: 0 20px 40px rgba(11, 37, 69, 0.16);

    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-max: 1240px;
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 3.8vw, 3.25rem);
}

h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.35rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

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

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

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

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Badges & Tags */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-primary {
    background: rgba(11, 37, 69, 0.1);
    color: var(--primary);
}

.badge-gold {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.badge-accent {
    background: rgba(2, 132, 199, 0.12);
    color: var(--accent);
}

.badge-secondary {
    background: rgba(19, 117, 71, 0.12);
    color: var(--secondary);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--navy-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(11, 37, 69, 0.25);
}

.btn-primary:hover {
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(11, 37, 69, 0.35);
}

.btn-gold {
    background: var(--gold-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-gold:hover {
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.45);
}

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

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

.btn-white {
    background: #ffffff;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: #f8fafc;
    color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

/* Top bar */
.top-bar {
    background: var(--primary-dark);
    color: var(--text-light);
    font-size: 0.825rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.top-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.top-info-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.85);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-socials {
    display: flex;
    gap: 0.6rem;
}

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

.top-social-link:hover {
    background: var(--gold);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Breaking Ticker */
.ticker-bar {
    background: #0f172a;
    color: #ffffff;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.ticker-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ticker-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.ticker-text {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-slide 28s linear infinite;
    color: #cbd5e1;
}

.ticker-text a {
    color: #38bdf8;
    font-weight: 600;
    margin-left: 0.5rem;
}

@keyframes ticker-slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Header & Navbar */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 104px;
    padding: 10px 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    text-decoration: none;
}

.brand-logo-img {
    width: 96px;
    height: 96px;
    max-height: 96px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.brand-link:hover .brand-logo-img {
    transform: scale(1.03);
}

.brand-icon-box {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    background: var(--navy-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(11, 37, 69, 0.2);
    flex-shrink: 0;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.brand-tagline {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.95rem;
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-item.current-menu-item>.nav-link {
    color: var(--accent);
    background: rgba(2, 132, 199, 0.08);
}

.nav-arrow {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.nav-item:hover>.nav-link .nav-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.nav-item:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown-item a:hover {
    background: var(--bg-soft);
    color: var(--accent);
    padding-left: 1.1rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: right 0.35s ease;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-drawer-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.drawer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawer-nav-link {
    display: block;
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-subtle);
}

.drawer-submenu {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.25rem;
}

.drawer-submenu a {
    display: block;
    padding: 0.5rem 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 580px;
    background: var(--navy-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 5rem 0;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.28;
    mix-blend-mode: overlay;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 40%, rgba(2, 132, 199, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.25) 0%, transparent 50%);
}

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

.hero-content {
    max-width: 780px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fef08a;
    margin-bottom: 1.25rem;
}

.hero-title {
    color: #ffffff;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    line-height: 1.18;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.hero-highlight {
    background: linear-gradient(120deg, #fef08a, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: #e2e8f0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Hero Stats Bar */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.hero-stats-grid.stats-count-1 {
    grid-template-columns: minmax(220px, 340px);
}

.hero-stats-grid.stats-count-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
}

.hero-stats-grid.stats-count-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
}

.hero-stats-grid.stats-count-4 {
    grid-template-columns: repeat(4, 1fr);
}

.stat-card {
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fef08a;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 500;
}

/* Sections */
.section {
    padding: 5.5rem 0;
}

.section-alt {
    background: #ffffff;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}

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

/* Card General */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(2, 132, 199, 0.25);
}

/* Sambutan Kepala Sekolah */
.principal-section {
    background: #ffffff;
}

.principal-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 3.5rem;
    align-items: center;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
}

.principal-image-wrap {
    position: relative;
}

.principal-photo {
    width: 100%;
    border-radius: var(--radius-md);
    aspect-ratio: 1/1;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.principal-badge-floating {
    position: absolute;
    bottom: -15px;
    right: -10px;
    background: var(--gold-gradient);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.principal-quote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 4px solid var(--accent);
}

.principal-meta {
    margin-top: 1.5rem;
}

.principal-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.15rem;
}

.principal-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Feature/Pilar Grid (Dynamic Columns for 1, 2, 3, 4, 5+ Pillars) */
.pilar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.pilar-grid.pilar-grid-1 {
    grid-template-columns: minmax(auto, 600px);
}

.pilar-grid.pilar-grid-2 {
    grid-template-columns: repeat(2, minmax(auto, 480px));
}

.pilar-grid.pilar-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pilar-grid.pilar-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {

    .pilar-grid,
    .pilar-grid.pilar-grid-3,
    .pilar-grid.pilar-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {

    .pilar-grid,
    .pilar-grid.pilar-grid-1,
    .pilar-grid.pilar-grid-2,
    .pilar-grid.pilar-grid-3,
    .pilar-grid.pilar-grid-4 {
        grid-template-columns: 1fr !important;
    }
}

.pilar-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.pilar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.pilar-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
    font-size: 1.75rem;
}

.icon-blue {
    background: rgba(2, 132, 199, 0.12);
    color: var(--accent);
}

.icon-gold {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.icon-green {
    background: rgba(19, 117, 71, 0.12);
    color: var(--secondary);
}

.icon-purple {
    background: rgba(147, 51, 234, 0.12);
    color: #9333ea;
}

.icon-red {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.icon-cyan {
    background: rgba(6, 182, 212, 0.12);
    color: #0891b2;
}

/* Berita & Artikel Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-thumb-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

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

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

.news-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

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

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

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

.news-title a:hover {
    color: var(--accent);
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Pengumuman List */
.announcement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.announcement-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    transition: var(--transition);
}

.announcement-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.announcement-date-box {
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    min-width: 65px;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.announcement-day {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.announcement-month {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.announcement-content {
    flex-grow: 1;
}

.announcement-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.announcement-title a {
    color: var(--primary);
}

.announcement-title a:hover {
    color: var(--accent);
}

.announcement-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Prestasi Cards */
.prestasi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.prestasi-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

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

.prestasi-thumb-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

.prestasi-medal-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--gold-gradient);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
}

.prestasi-body {
    padding: 1.25rem;
}

.prestasi-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.4rem;
    color: var(--primary);
}

.prestasi-winner {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.prestasi-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
}

/* Direktori Guru */
.guru-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.guru-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.guru-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.guru-avatar-wrap {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.25rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(11, 37, 69, 0.15);
}

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

.guru-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.guru-role {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.guru-nip {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Ekstrakurikuler */
.ekskul-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

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

.ekskul-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.ekskul-thumb-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f1f5f9;
}

.ekskul-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.ekskul-card:hover .ekskul-thumb {
    transform: scale(1.05);
}

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

.ekskul-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(19, 117, 71, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
}

.ekskul-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.ekskul-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.ekskul-meta {
    font-size: 0.775rem;
    color: var(--text-muted);
    background: var(--bg-soft);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Agenda Kegiatan */
.agenda-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.agenda-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    transition: var(--transition);
}

.agenda-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.agenda-date-badge {
    background: var(--navy-gradient);
    color: #ffffff;
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    min-width: 65px;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

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

.agenda-date-month {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fef08a;
}

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

.agenda-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.agenda-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Galeri & Video Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

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

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 37, 69, 0.85) 0%, transparent 60%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    transition: var(--transition);
}

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

.gallery-caption {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Video & Social Section */
.media-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.video-responsive-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.video-responsive-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.social-feed-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.social-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.social-insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.social-insta-thumb {
    border-radius: var(--radius-sm);
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 100%;
    transition: var(--transition);
}

.social-insta-thumb:hover {
    transform: scale(1.05);
}

.social-feed-custom-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.social-feed-custom-wrap iframe {
    max-width: 100% !important;
}

.social-feed-custom-wrap #sb_instagram {
    padding: 0 !important;
}

.youtube-feed-wrap {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.youtube-feed-wrap iframe {
    max-width: 100% !important;
}

/* CTA PPDB */
.cta-ppdb-section {
    background: var(--navy-gradient);
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 3rem auto;
}

.cta-ppdb-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.cta-ppdb-content {
    max-width: 650px;
}

.cta-ppdb-title {
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.cta-ppdb-subtitle {
    color: #cbd5e1;
    font-size: 1.05rem;
    margin-bottom: 0;
}

.cta-ppdb-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    background: #07192f;
    color: #94a3b8;
    padding-top: 4.5rem;
    font-size: 0.925rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.25fr 1.25fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.6rem;
}

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

.footer-desc {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: #cbd5e1;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links a:hover {
    color: #38bdf8;
    transform: translateX(4px);
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: #cbd5e1;
    font-size: 0.875rem;
}

.footer-map-frame {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-sm);
    border: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.75rem 0;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Page Header (Subpage Banner) */
.page-header-banner {
    background: var(--navy-gradient);
    color: #ffffff;
    padding: 4rem 0 3.5rem 0;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.page-header-banner.has-bg-image {
    background-blend-mode: overlay;
}

.page-header-banner.has-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.92) 0%, rgba(30, 58, 138, 0.88) 100%);
    z-index: 1;
}

.page-header-banner.has-bg-image .container {
    position: relative;
    z-index: 2;
}

.page-header-title {
    color: #ffffff;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 0.75rem;
}

.breadcrumb-trail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.breadcrumb-trail a {
    color: #93c5fd;
}

/* Contact Page Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3.5rem;
}

.contact-info-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(2, 132, 199, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-form-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Floating Back to Top */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 46px;
    height: 46px;
    background: var(--navy-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1024px) {

    .pilar-grid,
    .guru-grid,
    .prestasi-grid,
    .ekskul-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 868px) {
    .header-inner {
        min-height: 75px;
        height: auto;
        padding: 8px 0;
    }

    .brand-link {
        gap: 0.75rem;
    }

    .brand-logo-img {
        width: 60px;
        height: 60px;
        max-height: 60px;
    }

    .brand-icon-box {
        width: 54px;
        height: 54px;
        font-size: 1.4rem;
        border-radius: 12px;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .brand-tagline {
        font-size: 0.7rem;
    }

    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .top-bar {
        display: none;
    }

    .principal-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .principal-image-wrap {
        max-width: 280px;
        margin: 0 auto;
    }

    .news-grid,
    .announcement-grid,
    .agenda-grid,
    .media-section-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-ppdb-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-ppdb-actions {
        justify-content: center;
    }

    .hero-stats-grid,
    .hero-stats-grid.stats-count-2,
    .hero-stats-grid.stats-count-3,
    .hero-stats-grid.stats-count-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-stats-grid,
    .hero-stats-grid.stats-count-1,
    .hero-stats-grid.stats-count-2,
    .hero-stats-grid.stats-count-3,
    .hero-stats-grid.stats-count-4 {
        grid-template-columns: 1fr;
    }
}