*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1E3A8A;
  --primary-light: #3B82F6;
  --primary-dark: #1e2d6b;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --text: #1E293B;
  --text-muted: #64748B;
  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --white: #ffffff;
  --border: #E2E8F0;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* HEADER */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--white); box-shadow: var(--shadow); transition: var(--transition); }
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 1rem; }
.header-brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.header-logo-img, .header-logo { height: 48px; width: auto; }
.header-logo-placeholder { font-size: 2rem; }
.header-brand-text { display: flex; flex-direction: column; }
.header-school-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .9rem; color: var(--primary); line-height: 1.2; }
.header-tagline { font-size: .7rem; color: var(--text-muted); display: none; }
@media(min-width: 768px) { .header-tagline { display: block; } }

/* NAV */
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-link { padding: .5rem .75rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500; color: var(--text); transition: var(--transition); white-space: nowrap; }
.nav-link:hover { color: var(--primary); background: var(--bg-alt); }
.nav-dropdown { position: relative; }
.nav-arrow { font-size: .65rem; }
.nav-dropdown-btn { background: none; border: none; cursor: pointer; font-family: inherit; font-size: inherit; text-align: left; }
.dropdown-menu { display: none; position: absolute; top: calc(100% + .5rem); left: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); min-width: 200px; padding: .5rem 0; z-index: 100; }
.dropdown-menu.open { display: block; }
.dropdown-menu li a { display: block; padding: .625rem 1rem; font-size: .875rem; color: var(--text); transition: var(--transition); }
.dropdown-menu li a:hover { background: var(--bg-alt); color: var(--primary); }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media(max-width: 900px) {
  .hamburger { display: flex; }
  .nav { position: fixed; top: 70px; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: translateY(-110%); transition: transform .3s ease; z-index: 999; max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; padding: 1rem; gap: 0; }
  .nav-link { padding: .75rem 1rem; }
  .nav-dropdown-btn { padding: .75rem 1rem; width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: inherit; font-size: .875rem; font-weight: 500; color: var(--text); border-radius: var(--radius-sm); }
  .nav-dropdown-btn:hover { color: var(--primary); background: var(--bg-alt); }
  .dropdown-menu { display: none; position: static; box-shadow: none; border: none; background: var(--bg-alt); border-radius: var(--radius-sm); margin-top: .25rem; padding-left: 1rem; }
  .dropdown-menu.open { display: block; }
}

/* HERO SLIDER */
.hero { margin-top: 70px; }
.slider { position: relative; height: 520px; overflow: hidden; background: var(--primary-dark); }
@media(max-width: 768px) { .slider { height: 320px; } }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .7s ease; }
.slide.active { opacity: 1; }
.slide-default { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.65) 0%, rgba(0,0,0,.3) 100%); }
.slide-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; color: var(--white); max-width: 650px; }
.slide-title { font-family: 'Poppins', sans-serif; font-size: clamp(1.5rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; margin-bottom: .75rem; }
.slide-sub { font-size: clamp(.875rem, 2vw, 1.125rem); opacity: .9; margin-bottom: 1.5rem; }
.slider-prev, .slider-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,.2); border: none; color: white; font-size: 2rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,.4); }
.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }
.slider-dots { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 10; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: var(--transition); }
.dot.active { background: var(--white); transform: scale(1.2); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .625rem 1.5rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: var(--transition); white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-white:hover { background: var(--bg-alt); }
.btn-sm { padding: .375rem .875rem; font-size: .8rem; }
.btn-lg { padding: .875rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* STATS */
.stats-section { background: var(--primary); padding: 2.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
@media(max-width: 1000px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { text-align: center; color: var(--white); }
.stat-icon { font-size: 2rem; margin-bottom: .5rem; }
.stat-num { font-family: 'Poppins', sans-serif; font-size: 2.5rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .875rem; opacity: .85; margin-top: .25rem; }

/* ANNOUNCEMENT BAR */
.announcement-bar { background: var(--accent); padding: .75rem 0; }
.announcement-bar .container { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.announcement-label { font-weight: 700; font-size: .875rem; white-space: nowrap; color: var(--text); }
.announcement-ticker { flex: 1; overflow: hidden; }
.ticker-item { font-size: .875rem; color: var(--text); }
.ticker-item + .ticker-item::before { content: ' | '; opacity: .5; }
.announcement-link { font-size: .8rem; font-weight: 600; color: var(--text); white-space: nowrap; text-decoration: underline; }

/* SECTION */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.section-title { font-family: 'Poppins', sans-serif; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--primary); }
.section-title-left { font-family: 'Poppins', sans-serif; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--primary); margin-bottom: .5rem; }
.section-link { font-size: .875rem; font-weight: 600; color: var(--primary); }
.section-link:hover { text-decoration: underline; }
.section-badge { display: inline-block; background: var(--accent); color: var(--text); font-size: .75rem; font-weight: 700; padding: .25rem .75rem; border-radius: 999px; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .05em; }

/* NEWS GRID */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media(max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card-img-wrap { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; }
.news-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card-img { transform: scale(1.05); }
.news-card-img-placeholder { width: 100%; height: 100%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.news-category { position: absolute; top: .75rem; left: .75rem; background: var(--primary); color: var(--white); font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; text-transform: uppercase; }
.news-card-body { padding: 1rem 1.25rem 1.25rem; }
.news-date { font-size: .75rem; color: var(--text-muted); }
.news-title { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 600; margin: .5rem 0; line-height: 1.4; }
.news-title a:hover { color: var(--primary); }
.news-excerpt { font-size: .875rem; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ABOUT GRID */
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: center; }
@media(max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }
.kepsek-photo { width: 100%; max-width: 320px; border-radius: var(--radius); box-shadow: var(--shadow-lg); margin: 0 auto; }
.kepsek-placeholder { width: 200px; height: 200px; background: var(--bg-alt); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 4rem; margin: 0 auto; }
.about-name { font-weight: 700; font-size: 1.1rem; color: var(--primary); margin-bottom: .75rem; }
.about-text { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; }

/* EKSKUL */
.ekskul-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media(max-width: 900px) { .ekskul-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 600px) { .ekskul-grid { grid-template-columns: 1fr; } }
.ekskul-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.ekskul-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ekskul-img { width: 100%; height: 180px; object-fit: cover; }
.ekskul-img-placeholder { height: 180px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.ekskul-body { padding: 1rem; }
.ekskul-name { font-weight: 700; font-size: .95rem; margin-bottom: .25rem; }
.ekskul-pembina { font-size: .8rem; color: var(--text-muted); }

.ekskul-grid-full { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media(max-width: 768px) { .ekskul-grid-full { grid-template-columns: 1fr; } }
.ekskul-card-full { display: flex; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ekskul-img-full { width: 200px; height: 160px; object-fit: cover; flex-shrink: 0; }
.ekskul-img-placeholder-full { width: 200px; height: 160px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: 3rem; flex-shrink: 0; }
.ekskul-body-full { padding: 1.25rem; }
.ekskul-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.ekskul-name-full { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.1rem; }
.ekskul-singkatan { background: var(--primary); color: white; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.ekskul-meta { font-size: .875rem; color: var(--text-muted); margin-bottom: .25rem; }
.ekskul-desc { font-size: .875rem; color: var(--text-muted); margin-top: .5rem; }
@media(max-width: 600px) { .ekskul-card-full { flex-direction: column; } .ekskul-img-full, .ekskul-img-placeholder-full { width: 100%; } }

/* JURUSAN */
.jurusan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media(max-width: 900px) { .jurusan-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 600px) { .jurusan-grid { grid-template-columns: 1fr; } }
.jurusan-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.jurusan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.jurusan-img { width: 100%; height: 180px; object-fit: cover; }
.jurusan-img-placeholder { height: 180px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.jurusan-body { padding: 1rem; }
.jurusan-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.jurusan-singkatan { display: inline-block; background: var(--primary); color: var(--white); font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.jurusan-desc { font-size: .82rem; color: var(--text-muted); margin-top: .6rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.jurusan-grid-full { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media(max-width: 768px) { .jurusan-grid-full { grid-template-columns: 1fr; } }
.jurusan-card-full { display: flex; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.jurusan-img-full { width: 200px; height: 160px; object-fit: cover; flex-shrink: 0; }
.jurusan-img-placeholder-full { width: 200px; height: 160px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: 3rem; flex-shrink: 0; }
.jurusan-body-full { padding: 1.25rem; }
.jurusan-header-full { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; flex-wrap: wrap; }
.jurusan-name-full { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.jurusan-desc-full { font-size: .9rem; color: var(--text-muted); }
@media(max-width: 600px) { .jurusan-card-full { flex-direction: column; } .jurusan-img-full, .jurusan-img-placeholder-full { width: 100%; height: 190px; } }

/* GALERI */
.galeri-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
@media(max-width: 900px) { .galeri-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width: 600px) { .galeri-grid { grid-template-columns: repeat(2, 1fr); } }
.galeri-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); }
.galeri-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.galeri-item:hover .galeri-img { transform: scale(1.08); }
.galeri-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: white; font-size: .75rem; padding: 1.5rem .5rem .5rem; }

.galeri-grid-full { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media(max-width: 900px) { .galeri-grid-full { grid-template-columns: repeat(3, 1fr); } }
@media(max-width: 600px) { .galeri-grid-full { grid-template-columns: repeat(2, 1fr); } }
.galeri-item-full { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); cursor: pointer; }
.galeri-img-full { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.galeri-item-full:hover .galeri-img-full { transform: scale(1.08); }
.galeri-caption-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: white; font-size: .75rem; padding: 1.5rem .5rem .5rem; opacity: 0; transition: var(--transition); }
.galeri-item-full:hover .galeri-caption-overlay { opacity: 1; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 9999; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-img { max-width: 100%; max-height: 85vh; border-radius: var(--radius-sm); }
.lightbox-close { position: absolute; top: -2.5rem; right: 0; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: .5rem; }
.lightbox-caption { color: white; text-align: center; margin-top: .75rem; font-size: .875rem; }

/* GTK */
.tabs { display: flex; gap: .5rem; margin-bottom: 2rem; border-bottom: 2px solid var(--border); padding-bottom: 0; }
.tab-btn { background: none; border: none; padding: .75rem 1.5rem; font-size: .9rem; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.gtk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media(max-width: 900px) { .gtk-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width: 600px) { .gtk-grid { grid-template-columns: repeat(2, 1fr); } }
.gtk-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; transition: var(--transition); }
.gtk-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gtk-img-wrap { aspect-ratio: 1; overflow: hidden; }
.gtk-img { width: 100%; height: 100%; object-fit: cover; }
.gtk-img-placeholder { width: 100%; aspect-ratio: 1; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.gtk-body { padding: 1rem; }
.gtk-name { font-weight: 700; font-size: .9rem; margin-bottom: .25rem; }
.gtk-nip { font-size: .75rem; color: var(--text-muted); margin-bottom: .25rem; }
.gtk-badge { display: inline-block; background: var(--primary); color: white; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; margin-bottom: .25rem; }
.gtk-mapel { font-size: .8rem; color: var(--text-muted); }
.gtk-edu { font-size: .8rem; color: var(--text-muted); }

/* PAGE HERO */
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; padding: 5rem 0 3rem; margin-top: 70px; }
.page-hero-title { font-family: 'Poppins', sans-serif; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: .5rem; }
.breadcrumb { font-size: .875rem; opacity: .8; }
.breadcrumb a { opacity: .8; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }

/* ARTICLE */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; }
@media(max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }
.article-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.news-views { font-size: .75rem; color: var(--text-muted); }
.article-cover { width: 100%; border-radius: var(--radius); margin-bottom: 1.5rem; max-height: 480px; object-fit: cover; }
.article-content { font-size: 1rem; line-height: 1.85; color: var(--text); }
.article-content h1, .article-content h2, .article-content h3 { font-family: 'Poppins', sans-serif; color: var(--primary); margin: 1.5rem 0 .75rem; }
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol { margin: 1rem 0 1rem 1.5rem; }
.article-content img { border-radius: var(--radius-sm); margin: 1rem 0; }
.article-share { display: flex; align-items: center; gap: .75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.share-btn { padding: .4rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.share-wa { background: #25D366; color: white; }
.share-fb { background: #1877F2; color: white; }
.article-sidebar { }
.sidebar-widget-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem; color: var(--primary); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--primary); }
.sidebar-news-item { display: flex; gap: .75rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.sidebar-news-img { width: 80px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.sidebar-news-title { font-size: .85rem; font-weight: 600; color: var(--text); display: block; line-height: 1.4; margin-bottom: .25rem; }
.sidebar-news-title:hover { color: var(--primary); }

/* KONTAK */
.kontak-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 3rem; align-items: start; }
@media(max-width: 768px) { .kontak-grid { grid-template-columns: 1fr; gap: 2rem; } }
.kontak-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--primary); margin-bottom: 1.5rem; }
.kontak-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.kontak-icon { width: 44px; height: 44px; border-radius: 12px; background: #EFF6FF; border: 1px solid #DBEAFE; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: .1rem; box-shadow: 0 2px 8px rgba(37,99,235,0.08); }
.kontak-icon .ic { width: 1.35rem; height: 1.35rem; filter: invert(24%) sepia(90%) saturate(2500%) hue-rotate(215deg) brightness(95%) contrast(100%); }
.kontak-item strong { display: block; font-weight: 600; margin-bottom: .25rem; }
.kontak-item p { font-size: .875rem; color: var(--text-muted); }
.kontak-item a:hover { color: var(--primary); text-decoration: underline; }
.kontak-social { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.kontak-map { margin-top: 1.5rem; }
.kontak-map iframe { display: block; width: 100%; height: 250px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.kontak-form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.kontak-form-wrap .kontak-title { margin-top: 0; margin-bottom: .35rem; }
.kontak-form-intro { color: var(--text-muted); font-size: .875rem; margin-bottom: 1.25rem; }
.kontak-form { display: flex; flex-direction: column; gap: 1rem; }
.kontak-form .form-group { display: flex; flex-direction: column; gap: .4rem; width: 100%; }
.kontak-form .form-label { font-size: .82rem; font-weight: 600; color: var(--text); }
.kontak-form .form-control { display: block; width: 100%; min-height: 44px; padding: .7rem .85rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); font: inherit; font-size: .9rem; color: var(--text); transition: border-color .2s ease, box-shadow .2s ease; }
.kontak-form .form-control::placeholder { color: #94A3B8; }
.kontak-form .form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,138,.12); }
.kontak-form textarea.form-control { resize: vertical; min-height: 135px; }
.kontak-form .btn { margin-top: .25rem; min-height: 44px; justify-content: center; }
.contact-alert { padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .875rem; margin-bottom: 1rem; }
.contact-alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.contact-alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.hp-field { display: none !important; position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.form-note { font-size: .8rem; color: var(--text-muted); padding: .75rem; background: var(--bg-alt); border-radius: var(--radius-sm); margin: 0; }
@media(max-width: 480px) { .kontak-form-wrap { padding: 1.1rem; } }

/* PENGUMUMAN */
.pengumuman-list { display: flex; flex-direction: column; gap: 1.5rem; }
.pengumuman-item { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border-left: 4px solid var(--accent); }
.pengumuman-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.pengumuman-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem; }
.pengumuman-date { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
.pengumuman-body { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

/* CONTENT BOX */
.content-box { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }
.content-box h1, .content-box h2, .content-box h3 { font-family: 'Poppins', sans-serif; color: var(--primary); margin: 1.5rem 0 .75rem; }
.content-box h1:first-child, .content-box h2:first-child { margin-top: 0; }
.content-box p { margin-bottom: 1rem; line-height: 1.8; color: var(--text-muted); }
.content-box ul, .content-box ol { margin: 1rem 0 1rem 1.5rem; color: var(--text-muted); }
.content-box li { margin-bottom: .5rem; line-height: 1.7; }
.content-narrow { max-width: 800px; margin: 0 auto; }

/* FILTER */
.filter-bar { margin-bottom: 2rem; }
.filter-form { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.filter-input { padding: .5rem .875rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .875rem; background: var(--white); flex: 1; min-width: 180px; }
.filter-select { padding: .5rem .875rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .875rem; background: var(--white); }
.filter-chip { padding: .4rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--bg-alt); color: var(--text-muted); transition: var(--transition); border: 2px solid transparent; }
.filter-chip.active, .filter-chip:hover { background: var(--primary); color: white; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.page-btn { padding: .5rem .875rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .875rem; color: var(--text); background: var(--white); transition: var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-dots { padding: .5rem .25rem; color: var(--text-muted); }

/* SOCIAL LINK */
.social-link { display: inline-block; padding: .3rem .8rem; background: var(--bg-alt); border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--text); transition: var(--transition); margin-right: .25rem; }
.social-link:hover { background: var(--primary); color: white; }

/* FOOTER */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.85); padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; }
@media(max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-title { font-family: 'Poppins', sans-serif; font-weight: 700; color: white; margin-bottom: 1rem; font-size: 1rem; }
.footer-text { font-size: .875rem; line-height: 1.7; opacity: .8; margin-bottom: .5rem; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: .875rem; opacity: .8; transition: var(--transition); }
.footer-links a:hover { opacity: 1; color: var(--accent); }
.footer-address { font-style: normal; font-size: .875rem; line-height: 1.8; opacity: .9; }
.footer-address p { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.footer-address .ic,
.footer .ic-meta,
.footer .ic { filter: brightness(0) invert(1) !important; opacity: 1 !important; width: 1.15rem; height: 1.15rem; vertical-align: middle; flex-shrink: 0; }
.footer-address a { color: white; text-decoration: none; opacity: .85; }
.footer-address a:hover { color: var(--accent); opacity: 1; }
.footer-social { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding: 1.25rem 0; text-align: center; font-size: .8rem; opacity: .6; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }

/* ANIMATIONS */
[data-aos] { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
[data-aos].visible { opacity: 1; transform: translateY(0); }

/* MOBILE RESPONSIVE */
html { overflow-x: hidden; scroll-padding-top: 70px; }
body { overflow-x: hidden; }
img, iframe, video, canvas, svg { max-width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }
button, .btn, .nav-link, .page-btn, .filter-chip { touch-action: manipulation; }

@media(max-width: 900px) {
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ''; position: fixed; inset: 70px 0 0; background: rgba(15, 23, 42, .35); z-index: 998; }
  .nav { z-index: 1001; }
  .nav-link, .nav-dropdown-btn, .dropdown-menu li a { min-height: 44px; }
  .nav-link, .nav-dropdown-btn { display: flex; align-items: center; }
  .nav-dropdown-btn { justify-content: space-between; }
  .dropdown-menu li a { display: flex; align-items: center; }
}

@media(max-width: 768px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .header-inner { height: 64px; gap: .5rem; }
  .header-brand { min-width: 0; flex: 1; gap: .5rem; }
  .header-logo-img, .header-logo { max-width: 44px; height: 40px; }
  .header-logo-placeholder { font-size: 1.6rem; }
  .header-brand-text { min-width: 0; }
  .header-school-name { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hamburger { padding: .6rem; flex-shrink: 0; }
  .nav { top: 64px; max-height: calc(100vh - 64px); }
  body.nav-open::after { inset: 64px 0 0; }
  .hero { margin-top: 64px; }
  .slider { height: clamp(240px, 65vw, 320px); }
  .slide-content { max-width: 100%; padding: 1.25rem; }
  .slide-title { font-size: clamp(1.35rem, 7vw, 2rem); }
  .slide-sub { font-size: .9rem; margin-bottom: 1rem; }
  .slider-prev, .slider-next { width: 40px; height: 40px; font-size: 1.5rem; }
  .slider-prev { left: .5rem; }
  .slider-next { right: .5rem; }
  .section { padding: 2.75rem 0; }
  .section-header { align-items: flex-start; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
  .page-hero { margin-top: 64px; padding: 3.5rem 0 2.25rem; }
  .page-hero-title { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .article-content { font-size: .95rem; line-height: 1.75; overflow-wrap: anywhere; }
  .article-content img, .article-content iframe, .article-content video { max-width: 100%; height: auto; }
  .article-content pre { max-width: 100%; overflow-x: auto; }
  .article-content table { display: block; max-width: 100%; overflow-x: auto; }
  .article-share .share-btn { flex: 1 1 auto; text-align: center; }
  .announcement-bar .container { align-items: flex-start; gap: .5rem; }
  .announcement-link { margin-left: auto; }
  .footer { padding-top: 2rem; }
  .footer-bottom { margin-top: 1.75rem; }
  .filter-form { width: 100%; }
  .filter-input, .filter-select { width: 100%; min-width: 0; }
  .content-box { padding: 1.35rem; }
}

@media(max-width: 480px) {
  .container { padding-left: .875rem; padding-right: .875rem; }
  .header-school-name { max-width: 58vw; }
  .stats-grid { gap: .75rem; }
  .stat-card { padding: .5rem .25rem; }
  .stat-icon { font-size: 1.6rem; }
  .stat-num { font-size: 2rem; }
  .stat-label { font-size: .75rem; }
  .news-card-body { padding: .85rem; }
  .ekskul-body, .gtk-body { padding: .85rem; }
  .btn { white-space: normal; text-align: center; }
  .btn-block { width: 100%; }
  .social-link { margin-bottom: .35rem; }
  .footer-grid { gap: 1.25rem; }
  .content-box { padding: 1.1rem; }
  .lightbox-inner { max-width: 94vw; }
  .lightbox-close { top: -2.25rem; }
}