:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
    --shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
    --glass-bg: rgba(255,255,255,.75);
    --glass-border: rgba(255,255,255,.3);
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --radius-sm: .375rem;
    --radius: .5rem;
    --radius-md: .75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --transition: all .3s cubic-bezier(.4,0,.2,1);
    --transition-slow: all .6s cubic-bezier(.4,0,.2,1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    overflow-x: hidden;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: .5rem;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}
.section-title p {
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(30,64,175,.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30,64,175,.4);
    color: var(--white);
}
.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-accent {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(245,158,11,.3);
}
.btn-accent:hover {
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(245,158,11,.4);
}
.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
    background: transparent;
}
.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    padding: .6rem 0;
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    z-index: 1100;
}
.navbar-brand .logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}
.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.navbar-brand .brand-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--white);
    transition: var(--transition);
}
.navbar-brand .brand-sub {
    font-size: .7rem;
    color: rgba(255,255,255,.85);
    transition: var(--transition);
}
.navbar.scrolled .navbar-brand .brand-name { color: var(--gray-900); }
.navbar.scrolled .navbar-brand .brand-sub  { color: var(--gray-500); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
}
.nav-item { position: relative; }
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: .6rem 1rem;
    border-radius: var(--radius);
    color: var(--white);
    font-weight: 600;
    font-size: .92rem;
    transition: var(--transition);
    cursor: pointer;
}
.navbar.scrolled .nav-link { color: var(--gray-700); }
.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,.15);
    color: var(--white);
}
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    background: var(--primary);
    color: var(--white);
}
.nav-cta {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: .5rem;
}

.hamburger {
    display: none;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    cursor: pointer;
    z-index: 1200;
    padding: .5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}
@media (max-width: 768px) {
    .hamburger { display: inline-flex !important; }
}
.navbar.scrolled .hamburger,
.hamburger.inverse {
    background: rgba(255,255,255,.12);
}
.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}
.navbar.scrolled .hamburger span { background: var(--gray-800); }
.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.mobile-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--white);
    z-index: 1090;
    transition: right .4s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,.15);
    overflow-y: auto;
}
.mobile-menu.open {
    right: 0;
}
.mobile-menu-header {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gradient-primary);
    color: var(--white);
}
.mobile-menu-header .brand-mini {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.mobile-menu-header .logo-mini {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
}
.mobile-menu-close {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    border: none;
    background: rgba(255,255,255,.15);
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.mobile-menu-close:hover { background: rgba(255,255,255,.3); }
.mobile-nav {
    list-style: none;
    padding: 1rem;
    flex: 1;
}
.mobile-nav-item { border-radius: var(--radius-md); margin-bottom: .25rem; }
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    color: var(--gray-700);
    font-weight: 600;
    font-size: .95rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--gray-100);
    color: var(--primary);
}
.mobile-nav-link .nav-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}
.mobile-nav-link:hover .nav-icon,
.mobile-nav-link.active .nav-icon {
    background: var(--primary);
    color: var(--white);
}
.mobile-menu-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--gray-100);
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gray-900);
}
.hero-slider {
    position: absolute;
    inset: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(30,64,175,.7) 50%, rgba(14,165,233,.6) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 8rem 0 4rem;
    width: 100%;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .9rem;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    color: var(--white);
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp .8s ease .2s both;
}
.hero-title {
    font-size: clamp(2rem, 6vw, 3.75rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 1.25rem;
    animation: fadeInUp .8s ease .4s both;
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: rgba(255,255,255,.92);
    font-weight: 600;
    margin-bottom: 1rem;
    animation: fadeInUp .8s ease .55s both;
}
.hero-desc {
    font-size: clamp(.9rem, 2vw, 1.05rem);
    color: rgba(255,255,255,.8);
    margin-bottom: 2rem;
    max-width: 620px;
    animation: fadeInUp .8s ease .7s both;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    animation: fadeInUp .8s ease .85s both;
}
.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .6rem;
    z-index: 3;
}
.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: var(--transition);
}
.hero-dots button.active {
    background: var(--white);
    width: 28px;
    border-radius: 999px;
}

.hero-shape {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 2;
    line-height: 0;
}
.hero-shape svg { width: 100%; height: 60px; display: block; }

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

/* ============ STATS / STATISTIK ============ */
.stats {
    padding: 3rem 0;
    margin-top: -2.5rem;
    position: relative;
    z-index: 5;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
}
.stat-card {
    text-align: center;
    padding: .5rem;
    position: relative;
}
.stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--gray-200);
}
.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto .75rem;
    box-shadow: 0 6px 18px rgba(30,64,175,.3);
}
.stat-num {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: .35rem;
}
.stat-label {
    font-size: .85rem;
    color: var(--gray-500);
    font-weight: 600;
}

/* ============ CARDS ============ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}
.card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--gray-200);
}
.card-body { padding: 1.25rem; }
.card-tag {
    display: inline-block;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .025em;
    margin-bottom: .75rem;
}
.card-tag-berita { background: #dbeafe; color: var(--primary); }
.card-tag-pengumuman { background: #fef3c7; color: #b45309; }
.card-tag-prestasi { background: #d1fae5; color: var(--success); }
.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: .5rem;
    line-height: 1.4;
}
.card-meta {
    font-size: .8rem;
    color: var(--gray-500);
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.card-text {
    font-size: .9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* ============ PAGE HEADER / BANNER ============ */
.page-header {
    position: relative;
    padding: 8rem 0 5rem;
    background: var(--gradient-primary);
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(14,165,233,.3) 0%, transparent 40%);
}
.page-header .container { position: relative; }
.page-header h1 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: .75rem;
    animation: fadeInUp .8s ease both;
}
.page-header p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.88);
    animation: fadeInUp .8s ease .15s both;
    max-width: 600px;
}
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .88rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 1rem;
    animation: fadeInUp .8s ease .05s both;
}
.breadcrumbs a { color: rgba(255,255,255,.85); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs .sep { color: rgba(255,255,255,.5); }

.page-shape {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    line-height: 0;
}
.page-shape svg { width: 100%; height: 45px; display: block; }

/* ============ PROFIL CARD (VISI MISI, SAMBUTAN KEPSEK) ============ */
.profile-hero {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    overflow: hidden;
    position: relative;
}
.kepsek-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}
.kepsek-photo {
    width: 220px;
    height: 260px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
}
.kepsek-name { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); margin-bottom: .25rem; }
.kepsek-pos  { color: var(--primary); font-weight: 700; margin-bottom: 1rem; }

.vision-mission {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-top: 5px solid var(--primary);
}
.vision-mission h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* ============ TEACHERS CARD ============ */
.teacher-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}
.teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.teacher-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(30,64,175,.3);
    border: 4px solid var(--white);
    position: relative;
}
.teacher-name {
    font-weight: 800;
    color: var(--gray-900);
    font-size: 1rem;
    margin-bottom: .15rem;
}
.teacher-position {
    font-size: .85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: .35rem;
}
.teacher-subject {
    font-size: .78rem;
    color: var(--gray-500);
}

/* ============ NEWS DETAIL / SHARE ============ */
.news-detail {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.news-detail-img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    background: var(--gray-200);
}
.news-detail-body {
    padding: 2rem;
}
.news-detail-body h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1.25;
    margin-bottom: 1rem;
}
.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
    color: var(--gray-500);
    font-size: .88rem;
}
.news-detail-meta .meta-divider {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--gray-300);
}
.news-detail-content {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.85;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.news-detail-content p { margin-bottom: 1.15rem; text-align: justify; }
.news-detail-content h2 { font-size: 1.5rem; font-weight: 800; margin: 1.75rem 0 .75rem; color: var(--gray-900); line-height: 1.35; }
.news-detail-content h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .5rem; color: var(--gray-900); line-height: 1.4; }
.news-detail-content h4 { font-size: 1.05rem; font-weight: 700; margin: 1.25rem 0 .5rem; color: var(--gray-900); }
.news-detail-content ul, .news-detail-content ol { padding-left: 1.75rem; margin-bottom: 1.15rem; }
.news-detail-content ul { list-style-type: disc; }
.news-detail-content ol { list-style-type: decimal; }
.news-detail-content li { margin-bottom: .45rem; line-height: 1.8; }
.news-detail-content strong, .news-detail-content b { font-weight: 700; color: var(--gray-900); }
.news-detail-content em, .news-detail-content i { font-style: italic; }
.news-detail-content u { text-decoration: underline; }
.news-detail-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    background: linear-gradient(135deg, #f1f5f9, #f8fafc);
    color: #334155;
    border-radius: 0 .6rem .6rem 0;
    font-style: italic;
    line-height: 1.8;
}
.news-detail-content blockquote p:last-child { margin-bottom: 0; }
.news-detail-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.25rem 0;
    font-size: .95rem;
    overflow: hidden;
    border-radius: .6rem;
    box-shadow: 0 1px 3px rgba(15,23,42,.08);
}
.news-detail-content table th {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: .75rem 1rem;
    border-bottom: 2px solid var(--primary-dark);
}
.news-detail-content table td {
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
}
.news-detail-content table tr:nth-child(even) td { background: #f8fafc; }
.news-detail-content table tr:hover td { background: #f1f5f9; }
.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: .75rem;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(15,23,42,.1);
    display: block;
}
.news-detail-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s;
}
.news-detail-content a:hover { color: var(--primary-dark); }
.news-detail-content hr {
    border: none;
    border-top: 2px solid var(--gray-200);
    margin: 1.75rem 0;
}
.news-detail-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: .6rem;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: .88rem;
    line-height: 1.6;
    margin: 1.15rem 0;
}
.news-detail-content code {
    background: #f1f5f9;
    padding: .15rem .4rem;
    border-radius: .3rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: .88rem;
    color: #be123c;
}
.news-detail-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* ============ SIDEBAR & ADSENSE ============ */
.content-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}
.sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}
.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.ads-slot {
    min-height: 250px;
    background: repeating-linear-gradient(
        45deg,
        #f1f5f9,
        #f1f5f9 10px,
        #e2e8f0 10px,
        #e2e8f0 20px
    );
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-weight: 600;
    font-size: .8rem;
    text-align: center;
    border: 2px dashed var(--gray-300);
    overflow: hidden;
}
.ads-slot-inline {
    min-height: 90px;
    margin: 1.5rem 0;
}
.popular-list { list-style: none; }
.popular-list li {
    padding: .6rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.popular-list li:last-child { border-bottom: none; }
.popular-list a {
    display: flex;
    gap: .75rem;
    color: var(--gray-700);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
}
.popular-list a:hover { color: var(--primary); }
.popular-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--gray-100);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 800;
}
.popular-list li:nth-child(1) .popular-num { background: #fee2e2; color: #dc2626; }
.popular-list li:nth-child(2) .popular-num { background: #ffedd5; color: #ea580c; }
.popular-list li:nth-child(3) .popular-num { background: #fef3c7; color: #ca8a04; }

/* ============ GALLERY ============ */
.gallery-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.gallery-card:hover img { transform: scale(1.08); }
.gallery-card .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    color: var(--white);
    transition: var(--transition);
}
.gallery-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.gallery-card h3 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: .25rem;
}
.gallery-card p {
    font-size: .8rem;
    opacity: .85;
}

/* ============ CONTACT & FORM ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
}
.contact-info-card {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
}
.contact-info-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}
.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-label {
    font-size: .75rem;
    opacity: .8;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
    margin-bottom: .15rem;
}
.contact-value {
    font-weight: 600;
    font-size: .95rem;
}
.contact-value a { color: var(--white); }
.contact-value a:hover { opacity: .85; color: var(--white); }

.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: .4rem;
    font-size: .9rem;
}
.form-control {
    width: 100%;
    padding: .75rem 1rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
    font-size: .95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-800);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,64,175,.12);
}
textarea.form-control { resize: vertical; min-height: 130px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.maps-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--gray-200);
}

/* ============ PPDB CTA ============ */
.ppdb-hero {
    background: linear-gradient(135deg, #1e40af, #0ea5e9, #10b981);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30,64,175,.35);
}
.ppdb-hero::before,
.ppdb-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: .12;
}
.ppdb-hero::before {
    width: 320px; height: 320px;
    background: var(--white);
    top: -100px; left: -100px;
}
.ppdb-hero::after {
    width: 260px; height: 260px;
    background: var(--white);
    bottom: -80px; right: -80px;
}
.ppdb-hero > * { position: relative; }
.ppdb-badge {
    display: inline-block;
    padding: .4rem 1rem;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
}
.ppdb-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 900;
    margin-bottom: .75rem;
    line-height: 1.2;
}
.ppdb-desc { opacity: .95; margin-bottom: 1.5rem; font-size: 1.02rem; max-width: 640px; margin-left: auto; margin-right: auto;}

.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: .5rem;
    bottom: .5rem;
    width: 2px;
    background: var(--gray-200);
}
.timeline-item {
    position: relative;
    padding-bottom: 1.75rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.6rem;
    top: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(30,64,175,.12);
}
.timeline-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: .25rem;
}
.timeline-item p {
    color: var(--gray-600);
    font-size: .92rem;
}

/* ============ EXTRACURRICULAR CARD ============ */
.ekskul-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ekskul-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}
.ekskul-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 18px rgba(30,64,175,.25);
}
.ekskul-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: .5rem;
}
.ekskul-card p { font-size: .88rem; color: var(--gray-600); flex: 1; margin-bottom: .75rem;}
.ekskul-card .ekskul-meta {
    font-size: .78rem;
    color: var(--gray-500);
    padding-top: .75rem;
    border-top: 1px solid var(--gray-100);
}
.ekskul-card .ekskul-meta span { display: block; }

/* ============ AKADEMIK CALENDAR ============ */
.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.calendar-table thead { background: var(--gradient-primary); color: var(--white); }
.calendar-table th, .calendar-table td {
    padding: .85rem 1rem;
    text-align: left;
    font-size: .9rem;
    border-bottom: 1px solid var(--gray-100);
}
.calendar-table th { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em;}
.calendar-table tbody tr:last-child td { border-bottom: none; }
.calendar-table tbody tr:hover { background: var(--gray-50); }
.cal-cat {
    display: inline-block;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}
.cal-libur { background: #fee2e2; color: #dc2626; }
.cal-ujian { background: #e0e7ff; color: #4338ca; }
.cal-kegiatan { background: #d1fae5; color: #047857; }
.cal-rapat { background: #fef3c7; color: #b45309; }

/* ============ CURRICULUM LIST ============ */
.curriculum-group {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--primary);
}
.curriculum-group h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.curriculum-list {
    list-style: none;
    columns: 2;
    column-gap: 1rem;
}
.curriculum-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem .75rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: .5rem;
    break-inside: avoid;
    font-size: .9rem;
}
.curriculum-list li .hours {
    background: var(--primary);
    color: var(--white);
    padding: .12rem .5rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    justify-content: center;
    gap: .35rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    list-style: none;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .75rem;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 600;
    font-size: .9rem;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.pagination a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.pagination .active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.pagination .disabled {
    opacity: .5;
    pointer-events: none;
}

/* ============ SHORTCUT (FITUR CEPAT) ============ */
.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.shortcut-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    cursor: pointer;
    color: inherit;
    display: block;
}
.shortcut-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
    color: inherit;
}
.shortcut-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto .75rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: var(--transition);
}
.shortcut-card:nth-child(2) .shortcut-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
.shortcut-card:nth-child(3) .shortcut-icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #047857; }
.shortcut-card:nth-child(4) .shortcut-icon { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #be185d; }
.shortcut-card:hover .shortcut-icon { transform: scale(1.08) rotate(-3deg); }
.shortcut-card h4 {
    font-weight: 700;
    color: var(--gray-900);
    font-size: .95rem;
    margin-bottom: .2rem;
}
.shortcut-card p { font-size: .78rem; color: var(--gray-500); }

/* ============ ALERT / FLASH ============ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-weight: 500;
    border: 1px solid transparent;
    font-size: .92rem;
}
.alert-success { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.alert-error   { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.alert-info    { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.alert-warning { background: #fef3c7; color: #92400e; border-color: #fcd34d; }

/* ============ FOOTER ============ */
.footer {
    background: var(--gray-900);
    color: rgba(255,255,255,.85);
    padding-top: 4rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}
.footer-brand .logo-lg {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}
.footer-brand .logo-lg .logo-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.4rem;
    box-shadow: var(--shadow-md);
}
.footer-brand .logo-lg h3 {
    color: var(--white);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.3;
}
.footer-brand .logo-lg span {
    font-size: .75rem;
    opacity: .75;
}
.footer-about {
    font-size: .88rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    opacity: .8;
}
.footer-social {
    display: flex;
    gap: .5rem;
}
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    color: var(--white);
}
.footer-col h4 {
    color: var(--white);
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: .5rem;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .55rem; }
.footer-col li a {
    color: rgba(255,255,255,.75);
    font-size: .88rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.footer-col li a:hover {
    color: var(--white);
    padding-left: 6px;
}
.footer-contact-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: .85rem;
    font-size: .86rem;
    opacity: .85;
}
.footer-contact-item .fc-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    flex-shrink: 0;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.25rem 0;
    text-align: center;
    font-size: .85rem;
    opacity: .75;
}

/* ============ SCROLL ANIMATIONS (Reveal on Scroll) ============ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ============ STRUCTURE ORG TREE ============ */
.org-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 1rem;
}
.org-node {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    min-width: 220px;
    position: relative;
    border: 2px solid var(--primary);
}
.org-node.root {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-dark);
}
.org-node .pos {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: .25rem;
}
.org-node .name {
    font-size: .82rem;
    opacity: .85;
}
.org-level {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}
.org-level::before {
    content: '';
    position: absolute;
    top: -1.25rem;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--gray-300);
}
.org-level .org-node::before {
    content: '';
    position: absolute;
    top: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 1.25rem;
    background: var(--gray-300);
}

/* ============ BOTTOM NAVIGATION (ANDROID-STYLE MOBILE) ============ */
.bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1010;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-top: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 -10px 30px -12px rgba(2,6,23,.18);
    padding: 0 .25rem env(safe-area-inset-bottom);
    padding-bottom: calc(.35rem + env(safe-area-inset-bottom));
}
.bn-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .55rem .25rem .35rem;
    color: var(--gray-500);
    text-decoration: none;
    position: relative;
    transition: color .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1);
    font-weight: 600;
    gap: 2px;
}
.bottom-nav {
    display: none;
}
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
    }
    body {
        padding-bottom: 72px;
    }
    body.has-bottom-nav { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .back-to-top {
        bottom: calc(86px + env(safe-area-inset-bottom));
    }
}
.bn-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    background: transparent;
    transition: all .28s cubic-bezier(.34,1.56,.64,1);
    color: inherit;
    position: relative;
}
.bn-label {
    font-size: .67rem;
    line-height: 1;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-weight: 700;
}
.bn-item:hover { color: var(--primary); }
.bn-item:active { transform: scale(.96); }
.bn-item.active { color: var(--primary); }
.bn-item.active .bn-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 10px 20px -8px rgba(99,102,241,.65);
}
.bn-item.active::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--primary);
    opacity: .85;
}
.bn-item.active .bn-label {
    color: var(--primary);
    font-weight: 800;
}
.bn-icon.bn-ppdb {
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(239,68,68,.55);
}
.bn-item.active .bn-icon.bn-ppdb {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 10px 20px -8px rgba(16,185,129,.65);
    transform: translateY(-6px) scale(1.08);
}

/* ============ RESPONSIVE (MOBILE-FIRST) ============ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card::after { display: none; }
    .stat-card { border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 1rem; }
    .shortcut-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .content-sidebar-layout { grid-template-columns: 1fr 280px; gap: 1.25rem; }
}
@media (max-width: 900px) {
    .content-sidebar-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .content-sidebar-layout .sidebar {
        order: 2;
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .content-sidebar-layout .sidebar .ads-slot:first-child {
        grid-column: 1 / -1;
    }
}
@media (max-width: 768px) {
    .nav-menu, .nav-cta { display: none; }
    .hamburger { display: flex; }
    .section { padding: 3rem 0; }
    .section-title { margin-bottom: 2rem; }
    .section-title h2 { font-size: 1.5rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 1rem; gap: .75rem; border-radius: var(--radius-lg);}
    .stat-icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .stat-num { font-size: 1.6rem; }
    .stat-label { font-size: .78rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .kepsek-card { grid-template-columns: 1fr; text-align: center; }
    .kepsek-photo { width: 160px; height: 190px; margin: 0 auto; }
    .curriculum-list { columns: 1; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-content { padding: 7rem 0 3rem; }
    .hero-title { font-size: 2rem; }
    .ppdb-hero { padding: 2rem 1.25rem; }
    .shortcut-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .shortcut-card { padding: 1.1rem .6rem; }
    .shortcut-icon { width: 52px; height: 52px; font-size: 1.4rem; border-radius: var(--radius-lg); }
    .shortcut-card h4 { font-size: .85rem; }
    .shortcut-card p { font-size: .7rem; }
    .page-header { padding: 6.5rem 0 3.5rem; }
    .profile-hero { padding: 1.25rem; border-radius: var(--radius-lg);}
    .org-level::before { left: 5%; right: 5%; }
    .vision-mission { padding: 1.25rem; }
    .news-detail-body { padding: 1.25rem; }
    .calendar-table { display: block; overflow-x: auto; }
    .ads-slot { min-height: 180px; }
    .content-sidebar-layout .sidebar {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-shape svg, .page-shape svg { height: 35px; }
    .btn { padding: .65rem 1.15rem; font-size: .88rem; }
}

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(30,64,175,.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-5px); }
