/* ============================================================
   TEMA: MAROON PREMIUM & EMAS
   ============================================================ */
:root {
  --maroon: #800020;
  --maroon-dark: #4a0012;
  --maroon-deep: #3d000f;
  --maroon-light: #fdf3f5;
  --gold: #c9a227;
  --gold-light: #e8c766;
  --gold-dark: #a8861b;
  --cream: #faf8f5;
  --text: #2b2b2b;
  --text-light: #6d6d6d;
  --white: #fff;
  --shadow: 0 4px 24px rgba(61, 0, 15, .10);
  --shadow-lg: 0 12px 40px rgba(61, 0, 15, .18);
  --radius: 14px;
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Prevent horizontal scroll on mobile */
html, body { max-width: 100vw; }
img, video, iframe { max-width: 100%; height: auto; }
button, input, textarea, select { font-size: 16px; } /* Prevent iOS zoom on focus */

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

::selection { background: var(--maroon); color: var(--white); }

/* ============================================================
   ANIMASI
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-100%); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-100%); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, .45); }
  50%      { box-shadow: 0 0 0 14px rgba(201, 162, 39, 0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* Scroll reveal — gaya asal sebelum elemen muncul */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: fadeInDown .6s ease both;
}

.topbar {
  background: linear-gradient(90deg, var(--maroon-deep), var(--maroon-dark));
  color: #e8c9d1;
  font-size: .82rem;
  padding: 7px 0;
  letter-spacing: .3px;
}
.topbar .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand .logo {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--gold-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem;
  flex-shrink: 0;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 14px rgba(128, 0, 32, .35);
  transition: transform .35s ease;
}
.brand:hover .logo { transform: rotate(-8deg) scale(1.06); }
.brand h1 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--maroon);
  line-height: 1.2;
  letter-spacing: .3px;
}
.brand small { color: var(--gold-dark); font-size: .76rem; font-style: italic; letter-spacing: .5px; }

nav ul { display: flex; gap: 6px; list-style: none; align-items: center; }
nav a {
  padding: 9px 16px;
  border-radius: 30px;
  font-weight: 500;
  font-size: .93rem;
  position: relative;
  transition: color .25s;
}
nav a::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
nav a:hover { color: var(--maroon); }
nav a:hover::after { transform: scaleX(1); }
nav a.active {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(128, 0, 32, .3);
}
nav a.active::after { display: none; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--maroon);
  padding: 8px;
  border-radius: 8px;
  transition: background .25s;
  order: -1; /* Pindah ke kiri */
  margin-right: 12px;
}
.menu-toggle:hover, .menu-toggle:active { background: var(--maroon-light); }

/* Logo sekolah yang dimuat naik */
.logo-img {
  width: 50px; height: 50px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 14px rgba(128, 0, 32, .35);
  flex-shrink: 0;
  padding: 3px;
  transition: transform .35s ease;
}
.brand:hover .logo-img { transform: rotate(-8deg) scale(1.06); }

/* ============================================================
   SLIDESHOW GALERI
   ============================================================ */
.slideshow-wrap { padding-top: 0; }
.slideshow {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  outline: 2px solid var(--gold);
  aspect-ratio: 16/8;
  background: var(--maroon-deep);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .9s ease, transform 1.4s ease;
  pointer-events: none;
}
.slide.active { opacity: 1; transform: scale(1); pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(61, 0, 15, .88));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 44px 26px 18px;
  text-align: center;
  letter-spacing: .4px;
}
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(201, 162, 39, .7);
  background: rgba(61, 0, 15, .55);
  color: var(--gold-light);
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 5;
  transition: all .28s ease;
  display: flex; align-items: center; justify-content: center;
}
.slide-nav:hover { background: var(--gold); color: var(--maroon-deep); transform: translateY(-50%) scale(1.1); }
.slide-nav.prev { left: 16px; }
.slide-nav.next { right: 16px; }
.slide-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.slide-dots .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.25);
  cursor: pointer;
  padding: 0;
  transition: all .3s ease;
}
.slide-dots .dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(201, 162, 39, .8);
}
@media (max-width: 640px) {
  .slideshow { aspect-ratio: 4/3; }
  .slide-nav { width: 38px; height: 38px; font-size: .95rem; }
}

/* ============================================================
   HERO SLIDESHOW PENUH
   ============================================================ */
.hero { min-height: 88vh; display: flex; align-items: center; }
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease, transform 6s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61,0,15,.88) 0%, rgba(128,0,32,.78) 60%, rgba(74,0,18,.85) 100%);
}
.hero .hero-content { position: relative; z-index: 2; }
.hero-dots {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 3;
}
.hero-dots .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.2);
  cursor: pointer;
  padding: 0;
  transition: all .3s ease;
}
.hero-dots .dot.active { background: var(--gold); border-color: var(--gold); transform: scale(1.3); box-shadow: 0 0 12px rgba(201,162,39,.8); }
.hero .scroll-hint {
  position: absolute;
  bottom: 96px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,.75);
  font-size: 1.5rem;
  animation: floatY 2.2s ease-in-out infinite;
  cursor: pointer;
}

/* ============================================================
   BAR STATISTIK BERANIMASI
   ============================================================ */
.stats-section {
  position: relative;
  background:
    radial-gradient(ellipse at 15% 25%, rgba(201,162,39,.15), transparent 55%),
    linear-gradient(135deg, var(--maroon-deep), var(--maroon-dark) 60%, var(--maroon));
  color: var(--white);
  padding: 70px 0;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.045) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-item {
  position: relative;
  padding: 34px 20px 30px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(201, 162, 39, .22);
  border-radius: 14px;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 3px;
  background: var(--gold);
  border-radius: 0 0 4px 4px;
  transition: width .4s ease;
}
.stat-item:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, .55);
  background: rgba(255, 255, 255, .08);
}
.stat-item:hover::before { width: 76px; }
.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-item .stat-number .plus {
  font-size: 1.7rem;
  color: var(--gold);
  margin-left: 2px;
}
.stat-item .stat-divider {
  width: 34px; height: 1.5px;
  background: rgba(201, 162, 39, .6);
  margin: 14px auto;
}
.stat-item .stat-label {
  font-size: .8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #d9b8c1;
  font-weight: 500;
}

/* ============================================================
   BUTANG KEMBALI KE ATAS
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--gold-light);
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: all .35s ease;
  box-shadow: 0 8px 22px rgba(61,0,15,.4);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: var(--maroon-deep); transform: translateY(-4px); }

/* ============================================================
   PETA LOKASI (FOOTER)
   ============================================================ */
.map-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(201, 162, 39, .4);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  height: 190px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link {
  display: inline-block;
  margin-top: 10px;
  font-size: .85rem;
  color: var(--gold-light);
  border-bottom: 1px dashed rgba(201,162,39,.5);
  transition: color .25s;
}
.map-link:hover { color: var(--white); }

/* ============================================================
   HALAMAN PENCAPAIAN
   ============================================================ */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  width: calc(50% - 34px);
  margin-bottom: 34px;
}
.timeline-item:nth-child(odd) { margin-left: auto; }
.timeline-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
  border-top: 3px solid var(--gold);
  transition: transform .3s ease, box-shadow .3s ease;
}
.timeline-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.timeline-dot {
  position: absolute;
  top: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  border: 3px solid var(--gold);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(128,0,32,.35);
}
.timeline-item:nth-child(odd) .timeline-dot { left: -57px; }
.timeline-item:nth-child(even) .timeline-dot { right: -57px; }
.timeline-year {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--maroon-deep);
  font-weight: 700;
  font-size: .78rem;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.timeline-card h3 { font-family: var(--font-display); color: var(--maroon); font-size: 1.12rem; margin-bottom: 8px; }
.timeline-card p { color: var(--text-light); font-size: .92rem; }
.timeline-cat {
  display: inline-block;
  margin-top: 12px;
  background: var(--maroon-light);
  color: var(--maroon);
  font-size: .74rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 14px;
}
@media (max-width: 720px) {
  .timeline::before { left: 22px; }
  .timeline-item { width: 100%; padding-left: 62px; }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot { left: 0; right: auto; }
}

/* ============================================================
   UCAPAN GURU BESAR
   ============================================================ */
.hm-section {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(201,162,39,.08), transparent 55%),
    var(--white);
}
.hm-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
}
.hm-photo-wrap {
  position: relative;
  justify-self: center;
}
.hm-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px dashed rgba(201, 162, 39, .55);
  animation: spinSlow 24s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.hm-photo {
  width: 250px; height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white);
  box-shadow: 0 14px 40px rgba(61, 0, 15, .22);
}
.hm-photo-initial {
  width: 250px; height: 250px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 4.5rem; font-weight: 700;
  border: 5px solid var(--white);
  box-shadow: 0 14px 40px rgba(61, 0, 15, .22);
}
.hm-content .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  line-height: .6;
  display: block;
  margin-bottom: 14px;
}
.hm-content .hm-message {
  font-size: 1.08rem;
  font-style: italic;
  color: #4a4a4a;
  line-height: 1.85;
  margin-bottom: 22px;
}
.hm-content .hm-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--maroon);
  font-weight: 700;
}
.hm-content .hm-title {
  color: var(--gold-dark);
  font-size: .85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}
@media (max-width: 760px) {
  .hm-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hm-photo, .hm-photo-initial { width: 200px; height: 200px; }
}

/* ============================================================
   KALENDAR / TARIKH PENTING
   ============================================================ */
.event-list { display: flex; flex-direction: column; gap: 18px; max-width: 820px; margin: 0 auto; }
.event-item {
  display: flex;
  gap: 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  align-items: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.event-item:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.event-date-box {
  flex-shrink: 0;
  width: 78px;
  text-align: center;
  background: linear-gradient(160deg, var(--maroon), var(--maroon-dark));
  color: var(--white);
  border-radius: 12px;
  padding: 12px 6px;
  border-bottom: 3px solid var(--gold);
}
.event-date-box .day { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.event-date-box .month { font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-light); }
.event-info { flex: 1; min-width: 0; }
.event-info h3 { font-family: var(--font-display); color: var(--maroon); font-size: 1.1rem; margin-bottom: 4px; }
.event-info p { color: var(--text-light); font-size: .9rem; }
.event-cat {
  display: inline-block;
  background: var(--maroon-light);
  color: var(--maroon);
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 14px;
  margin-top: 8px;
}
.event-badge-past { opacity: .55; }

/* ============================================================
   DOKUMEN / MUAT TURUN
   ============================================================ */
.doc-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.doc-item:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.doc-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .5px;
  border-bottom: 3px solid var(--gold);
}
.doc-info { flex: 1; min-width: 0; }
.doc-info h3 { font-family: var(--font-display); color: var(--maroon); font-size: 1.02rem; margin-bottom: 2px; }
.doc-info p { color: var(--text-light); font-size: .86rem; }
.doc-download {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--maroon-deep);
  font-weight: 600;
  font-size: .85rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.doc-download:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,162,39,.45); }

/* ============================================================
   KAD BERITA BERGAMBAR
   ============================================================ */
.news-featured {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  background: var(--maroon-deep);
}
.news-featured img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.news-featured:hover img { transform: scale(1.04); }
.news-featured .overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 90px 38px 32px;
  background: linear-gradient(transparent, rgba(26, 0, 8, .88) 55%);
  color: var(--white);
}
.news-featured .featured-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--maroon-deep);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.news-featured h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 8px;
}
.news-featured .date { color: var(--gold-light); font-size: .85rem; font-weight: 600; }
.news-featured p { opacity: .85; font-size: .95rem; margin-top: 8px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.news-card .thumb {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
}
.news-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-card:hover .thumb img { transform: scale(1.07); }
.news-card .thumb .no-img {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(232, 199, 102, .4);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
}
.news-card .thumb .date-chip {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(26, 0, 8, .72);
  backdrop-filter: blur(4px);
  color: var(--gold-light);
  font-size: .74rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 20px;
  z-index: 2;
}
.news-card .news-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.news-card h3 {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.08rem;
  line-height: 1.4;
  margin-bottom: 8px;
}
.news-card p { color: var(--text-light); font-size: .89rem; flex: 1; }
.news-card .read-more {
  margin-top: 14px;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .25s ease;
}
.news-card:hover .read-more { gap: 12px; }

/* Halaman baca berita penuh */
.article-wrap { max-width: 780px; margin: 0 auto; }
.article-hero {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 34px;
  max-height: 420px;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-meta {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .5px;
  margin-bottom: 12px;
}
.article-title {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 2.1rem;
  line-height: 1.3;
  margin-bottom: 24px;
}
.article-body {
  font-size: 1.03rem;
  line-height: 1.9;
  color: #3d3d3d;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  border-top: 3px solid var(--gold);
}
.article-body p { margin-bottom: 16px; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--maroon);
  font-weight: 600;
  font-size: .9rem;
  transition: gap .25s ease;
}
.article-back:hover { gap: 14px; color: var(--gold-dark); }
@media (max-width: 640px) {
  .news-featured { min-height: 300px; }
  .news-featured h3 { font-size: 1.3rem; }
  .article-title { font-size: 1.55rem; }
  .article-body { padding: 26px 22px; }
}

/* ============================================================
   BAR HEBAHAN PENTING
   ============================================================ */
.notice-bar {
  position: relative;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold), var(--gold-dark));
  background-size: 300% auto;
  animation: shimmer 4s linear infinite;
  color: var(--maroon-deep);
  font-size: .88rem;
  font-weight: 600;
  padding: 9px 44px 9px 20px;
  text-align: center;
  z-index: 101;
}
.notice-bar a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  margin-left: 8px;
}
.notice-bar a:hover { color: #000; }
.notice-bar .notice-close {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: rgba(61, 0, 15, .15);
  border: none;
  border-radius: 50%;
  width: 24px; height: 24px;
  cursor: pointer;
  font-size: .85rem;
  color: var(--maroon-deep);
  line-height: 1;
  transition: background .25s;
}
.notice-bar .notice-close:hover { background: rgba(61, 0, 15, .3); }

/* ============================================================
   STATISTIK PELAWAT (PANEL ADMIN)
   ============================================================ */
.visitor-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.visitor-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  text-align: center;
  border-top: 3px solid var(--gold);
}
.visitor-card .v-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--maroon);
}
.visitor-card .v-label { font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-light); margin-top: 4px; }

.visit-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  padding: 10px 4px 0;
}
.visit-chart .bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}
.visit-chart .bar {
  width: 100%;
  max-width: 52px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border-radius: 8px 8px 0 0;
  min-height: 4px;
  transition: height .8s cubic-bezier(.22,.61,.36,1);
  position: relative;
}
.visit-chart .bar:hover { background: linear-gradient(180deg, var(--maroon), var(--maroon-dark)); }
.visit-chart .bar .bar-val {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  font-size: .75rem;
  font-weight: 700;
  color: var(--maroon);
}
.visit-chart .bar-day { font-size: .72rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; }

/* ============================================================
   IKON MEDIA SOSIAL
   ============================================================ */
.social-links { display: flex; gap: 11px; margin-top: 16px; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 162, 39, .5);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  transition: all .3s ease;
}
.social-links a:hover {
  background: var(--gold);
  color: var(--maroon-deep);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(201, 162, 39, .4);
}
.social-links svg { width: 17px; height: 17px; fill: currentColor; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(201, 162, 39, .18), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(232, 199, 102, .12), transparent 50%),
    linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon-dark) 45%, var(--maroon) 100%);
  color: var(--white);
  padding: 110px 24px 130px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.05) 1.5px, transparent 1.5px);
  background-size: 34px 34px;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero .badge-hero {
  display: inline-block;
  padding: 8px 22px;
  border: 1px solid rgba(201, 162, 39, .6);
  border-radius: 30px;
  color: var(--gold-light);
  font-size: .8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 26px;
  animation: fadeIn .9s ease both;
}
.hero h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  animation: fadeInUp .9s .15s ease both;
}
.hero h2 .gold {
  background: linear-gradient(120deg, var(--gold-light), var(--gold), var(--gold-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3.5s linear infinite;
}
.hero p {
  font-size: 1.15rem;
  opacity: .88;
  max-width: 620px;
  margin: 0 auto 36px;
  font-style: italic;
  animation: fadeInUp .9s .3s ease both;
}
.hero .hero-btns { animation: fadeInUp .9s .45s ease both; }
.hero .btn { margin: 0 7px; }

.hero .wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  width: 100%;
  display: block;
}

/* ============================================================
   BUTANG
   ============================================================ */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 40px;
  font-weight: 600;
  font-size: .93rem;
  letter-spacing: .4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--maroon-deep);
  box-shadow: 0 6px 20px rgba(201, 162, 39, .4);
  animation: pulseGlow 2.6s ease infinite;
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(201, 162, 39, .55);
  animation: none;
}
.btn-outline {
  border-color: rgba(255,255,255,.55);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--maroon);
  transform: translateY(-3px);
}
.btn-maroon {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--white);
  border: none;
  box-shadow: 0 6px 18px rgba(128, 0, 32, .35);
}
.btn-maroon:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(128, 0, 32, .45);
}
.btn-green { /* alias lama kekalkan supaya borang tak rosak */
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--white);
  border: none;
  box-shadow: 0 6px 18px rgba(128, 0, 32, .35);
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(128, 0, 32, .45); }
.btn-primary { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--maroon-deep); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(201,162,39,.5); }

/* ============================================================
   SEKSYEN
   ============================================================ */
section { padding: 76px 0; }

.section-title { text-align: center; margin-bottom: 48px; }
.section-title .subtitle {
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .76rem;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.section-title h2 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--maroon);
  margin-bottom: 12px;
}
.section-title .line {
  width: 74px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 12px;
  border-radius: 2px;
}
.section-title p { color: var(--text-light); }

/* ============================================================
   KAD
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-top: 3px solid var(--gold);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.card-body { padding: 22px; }
.card h3 { font-family: var(--font-display); color: var(--maroon); font-size: 1.12rem; margin-bottom: 6px; }
.card .meta { color: var(--text-light); font-size: .86rem; }

/* ============================================================
   VISI MISI
   ============================================================ */
.vm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.vm-box {
  position: relative;
  background: var(--white);
  padding: 34px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.vm-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--maroon), var(--gold));
}
.vm-box:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.vm-box .vm-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(128,0,32,.3);
  transition: transform .35s ease;
}
.vm-box:hover .vm-icon { transform: scale(1.1) rotate(-6deg); }
.vm-box h3 { font-family: var(--font-display); color: var(--maroon); font-size: 1.25rem; margin-bottom: 10px; }
.vm-box p { color: var(--text-light); }

/* ============================================================
   GURU
   ============================================================ */
.teacher-photo {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: var(--maroon-light);
  transition: transform .5s ease;
}
.card:hover .teacher-photo { transform: scale(1.06); }
.teacher-avatar {
  width: 100%;
  height: 230px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
}
.card .teacher-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 14px;
  background: var(--maroon-light);
  color: var(--maroon);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
}

/* ============================================================
   GALERI
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  aspect-ratio: 4/3;
  background: #e9e2e4;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: var(--radius);
  transition: border-color .35s ease;
  pointer-events: none;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { border-color: rgba(201, 162, 39, .75); }
.gallery-item .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(61, 0, 15, .85));
  color: var(--white);
  padding: 28px 16px 12px;
  font-size: .9rem;
  transform: translateY(8px);
  opacity: .9;
  transition: transform .35s ease, opacity .35s ease;
}
.gallery-item:hover .caption { transform: translateY(0); opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 0, 8, .92);
  backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; animation: fadeIn .3s ease; }
.lightbox img {
  max-width: 90%; max-height: 85vh;
  border-radius: 10px;
  border: 3px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: scaleIn .35s ease;
}
.lightbox .close {
  position: absolute;
  top: 18px; right: 30px;
  color: var(--gold-light);
  font-size: 2.4rem;
  cursor: pointer;
  transition: transform .25s ease;
}
.lightbox .close:hover { transform: rotate(90deg); }

/* ============================================================
   PENGUMUMAN
   ============================================================ */
.announcement-list { display: flex; flex-direction: column; gap: 20px; max-width: 820px; margin: 0 auto; }
.announcement-item {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  border-left: 5px solid var(--gold);
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.announcement-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--maroon));
}
.announcement-item:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.announcement-item .date {
  color: var(--gold-dark);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 8px;
  display: inline-block;
}
.announcement-item h3 { font-family: var(--font-display); color: var(--maroon); font-size: 1.18rem; margin-bottom: 8px; }
.announcement-item p { color: var(--text-light); font-size: .95rem; }

/* ============================================================
   BORANG / HUBUNGI
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 34px; align-items: start; }
.contact-info-box {
  position: relative;
  background: linear-gradient(160deg, var(--maroon) 0%, var(--maroon-dark) 70%, var(--maroon-deep) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-info-box::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.25), transparent 70%);
}
.contact-info-box h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 22px;
  color: var(--gold-light);
}
.contact-info-box p { margin-bottom: 16px; display: flex; gap: 12px; opacity: .94; font-size: .95rem; }
.contact-info-box .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(201, 162, 39, .18);
  border: 1px solid rgba(201, 162, 39, .4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

form .form-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .9rem; color: var(--maroon-dark); }
input[type="text"], input[type="email"], input[type="password"], input[type="date"],
input[type="file"], textarea, select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e3d8da;
  border-radius: 10px;
  font-size: .94rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color .25s, box-shadow .25s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 4px rgba(128, 0, 32, .1);
}
textarea { resize: vertical; min-height: 140px; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  border-top: 3px solid var(--gold);
}

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: .92rem; animation: fadeInUp .4s ease; }
.alert-success { background: #f0f9f1; color: #1b5e20; border: 1px solid #a5d6a7; border-left: 4px solid #2e7d32; }
.alert-error { background: #fdf0f2; color: #8e0022; border: 1px solid #f3c1cd; border-left: 4px solid var(--maroon); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  position: relative;
  background: linear-gradient(160deg, var(--maroon-deep), #2a0009);
  color: #d9b8c1;
  padding: 60px 0 0;
  margin-top: 50px;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 34px; padding-bottom: 38px; }
footer h4 {
  font-family: var(--font-display);
  color: var(--gold-light);
  margin-bottom: 16px;
  font-size: 1.08rem;
  letter-spacing: .4px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 9px; font-size: .92rem; }
footer a { transition: color .25s, padding-left .25s; }
footer a:hover { color: var(--gold-light); padding-left: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(201, 162, 39, .18);
  padding: 18px 0;
  text-align: center;
  font-size: .84rem;
  color: #a87f8c;
}

/* ============================================================
   UTILITI
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 54px 20px;
  color: var(--text-light);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  grid-column: 1 / -1;
}
.text-center { text-align: center; }

/* ============================================================
   RESPONSIVE - TABLET & MOBILE
   ============================================================ */
@media (max-width: 992px) {
  .hero { padding: 80px 20px 110px; }
  .hero h2 { font-size: 2.3rem; }
  .section-title h2 { font-size: 1.75rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item { padding: 26px 16px 22px; }
  .stat-item .stat-number { font-size: 2.4rem; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; order: -1; }
  .navbar { flex-direction: row; }
  .brand { order: 0; }
  nav { order: 2; margin-left: auto; position: static; }

  /* Menu muncul dari kiri - mobile friendly */
  nav ul {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--maroon-deep), var(--maroon-dark));
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 0 30px;
    box-shadow: 4px 0 20px rgba(0,0,0,.3);
    gap: 0;
    z-index: 99;
    overflow-y: auto;
  }
  nav ul.open { display: flex; animation: slideInLeft .3s ease; }

  /* Menu items di sidebar kiri */
  nav ul li { width: 100%; }
  nav a {
    display: block;
    padding: 16px 24px;
    color: rgba(255,255,255,.9);
    border-radius: 0;
    border-left: 4px solid transparent;
    font-size: 1rem;
    transition: all .25s;
  }
  nav a:hover {
    background: rgba(201,162,39,.15);
    color: var(--gold-light);
    border-left-color: var(--gold);
  }
  nav a.active {
    background: rgba(201,162,39,.2);
    color: var(--gold-light);
    border-left-color: var(--gold);
  }
  nav a::after { display: none; }

  /* Overlay gelap bila menu terbuka */
  nav ul.open::before {
    content: '';
    position: fixed;
    top: 0; left: 280px; right: 0; bottom: 0;
    background: rgba(0,0,0,.5);
    z-index: -1;
  }

  /* Butang tutup di dalam menu */
  nav ul::after {
    content: '✕';
    position: absolute;
    top: 20px; right: 20px;
    color: var(--gold-light);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
  }

  .hero { min-height: 70vh; padding: 60px 20px 90px; }
  .hero h2 { font-size: 1.9rem; }
  .hero p { font-size: 1rem; }
  .hero .btn { padding: 12px 24px; font-size: .88rem; margin: 4px; }
  .hero-dots { bottom: 70px; }
  .hero .scroll-hint { bottom: 80px; font-size: 1.3rem; }

  .hero { min-height: 70vh; padding: 60px 20px 90px; }
  .hero h2 { font-size: 1.9rem; }
  .hero p { font-size: 1rem; }
  .hero .btn { padding: 12px 24px; font-size: .88rem; margin: 4px; }
  .hero-dots { bottom: 70px; }
  .hero .scroll-hint { bottom: 80px; font-size: 1.3rem; }

  .section-title h2 { font-size: 1.55rem; }
  .section-title .subtitle { font-size: .72rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-item { padding: 22px 14px 20px; }
  .stat-item .stat-number { font-size: 2rem; }
  .stat-item .stat-label { font-size: .72rem; }

  .vm-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-card { padding: 26px 22px; }

  .timeline-item { width: 100%; padding-left: 58px; }
  .timeline::before { left: 20px; }

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

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { font-size: .78rem; }

  .event-item { flex-direction: column; text-align: center; gap: 16px; }
  .doc-item { flex-wrap: wrap; }

  section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 50px 16px 80px; min-height: 65vh; }
  .hero h2 { font-size: 1.6rem; }
  .badge-hero { font-size: .7rem; padding: 6px 16px; }

  .brand h1 { font-size: 1rem; }
  .brand small { font-size: .7rem; }
  .brand .logo, .logo-img { width: 42px; height: 42px; font-size: .95rem; }

  .topbar { font-size: .72rem; }
  .topbar .container { flex-direction: column; gap: 2px; text-align: center; }

  .section-title h2 { font-size: 1.35rem; }
  section { padding: 48px 0; }

  .stats-grid { gap: 12px; }
  .stat-item .stat-number { font-size: 1.7rem; }

  .gallery-grid { grid-template-columns: 1fr; }
  .news-featured { min-height: 260px; }
  .news-featured h3 { font-size: 1.15rem; }
  .news-featured .overlay { padding: 70px 22px 24px; }

  .hm-grid { grid-template-columns: 1fr; gap: 24px; }
  .hm-photo, .hm-photo-initial { width: 170px; height: 170px; }
  .hm-photo-initial { font-size: 3.2rem; }

  .article-title { font-size: 1.3rem; }
  .article-body { padding: 22px 18px; font-size: .95rem; }

  .btn { padding: 11px 22px; font-size: .85rem; }

  .slide-nav { width: 34px; height: 34px; font-size: .85rem; }
  .slide-nav.prev { left: 8px; }
  .slide-nav.next { right: 8px; }
}
