/* =========================
   Sekolah Kristen Galilea
   STYLE SHEET — FINAL (brand group + centered nav)
   ========================= */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: Georgia, "Times New Roman", serif; }

/* Stabilkan layout saat scrollbar muncul/ilang */
html { scrollbar-gutter: stable both-edges; }

:root{
  --h-header-desktop: 90px;
  --h-header-mobile: 70px;
  --h-footer: 44px;
  --brand-blue: #1e3a8a;
  --hover-blue: #4776f5;
  --text: #222;
}

/* Body */
body{
  background: url('assets/images/bg.jpg') center/cover no-repeat fixed;
  color: var(--text);
  line-height: 1.6;
  padding-top: var(--h-header-desktop);
  padding-bottom: var(--h-footer);
  min-height: 200vh;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 40px;
  padding-top: calc(10px + env(safe-area-inset-top));
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* Brand kiri */
header .brand {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo { width: 60px; height: auto; flex-shrink: 0; }

h1 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-blue);
  letter-spacing: 1.5px;
  line-height: 1.25;
  white-space: nowrap;
}
.kota { font-size: 1rem; font-weight: 600; color: var(--brand-blue); }

/* NAV tengah */
nav { grid-column: 2; justify-self: center; }
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
nav a {
  text-decoration: none;
  color: var(--brand-blue);
  font-weight: 600;
  padding: 8px 10px;
  transition: color .25s ease;
}
nav a:hover { color: var(--hover-blue); }

/* Kolom kanan dummy */
header::after { content:""; grid-column: 3; }

/* HERO */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.hero-img {
  width: 100%;
  max-width: 700px;
  height: auto;
  border: solid;
  outline: 2px solid #000;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* FOOTER fixed */
footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--h-footer);
  background: var(--hover-blue);
  color: #000;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  font-size: .9rem;
  box-shadow: 0 -2px 8px rgba(0,0,0,.1);
  z-index: 1000;
}

/* Utilities */
.img-fluid { max-width: 100%; height: auto; display: block; }

/* Responsive */
@media (max-width: 992px){
  body{ padding-top: var(--h-header-mobile); }
  .logo{ width: 50px; }
  nav ul{ gap: 14px; }
}
@media (max-width: 768px){
  body{ background-attachment: scroll; }
  nav ul{ flex-wrap: nowrap; overflow-x: auto; }
}

/* Fokus & Active nav */
nav a:focus-visible{ outline: 2px solid var(--hover-blue); outline-offset: 2px; }
nav a.active, nav a[aria-current="page"]{ color: var(--hover-blue); position: relative; }
nav a.active::after, nav a[aria-current="page"]::after{
  content:""; position:absolute; left:10px; right:10px; bottom:2px; height:2px;
  border-radius: 999px; background: currentColor; opacity:.9;
}

/* ===== PROFIL PAGE ===== */
.profil-container {
  max-width: 1000px;
  margin: 50px auto 80px;
  padding: 0 20px;
  color: #222;
}
.profil-header { text-align: center; margin-bottom: 40px; }
.profil-header h2 { color:#1e3a8a; font-size:2rem; margin-bottom:10px; }
.profil-header p { font-size:1.1rem; color:#555; }
.profil-container h3 { color:#1e3a8a; margin:30px 0 10px; }
.profil-container p, .profil-container ul { font-size:1rem; line-height:1.6; margin-bottom:20px; }
.profil-container ul { padding-left:20px; }

/* Grid khusus profil */
.profil-container .grid-fasilitas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 15px;
  margin-top: 15px;
}
.profil-container .grid-fasilitas div {
  background:#eef2ff;
  color:#1e3a8a;
  text-align:center;
  padding:12px;
  border-radius:8px;
  font-weight:600;
  box-shadow:0 1px 3px rgba(0,0,0,.05);
}

/* Profil responsive padding fix */
@media (max-width: 768px){
  .profil-container { margin-top:110px; }
}

/* ===== PROGRAM PAGE ===== */
.program {
  max-width: 1000px;
  margin: 60px auto 80px;
  padding: 0 20px;
  color: var(--text);
}

.program .program-hero {
  text-align: center;
  margin-bottom: 28px;
}
.program .program-hero h2 {
  color: var(--brand-blue);
  font-size: 1.9rem;
  margin-bottom: 8px;
}
.program .program-hero p {
  color: #555;
  font-size: 1.02rem;
}

.program section {
  margin-top: 24px;
}
.program h3 {
  color: var(--brand-blue);
  margin: 12px 0 8px;
  scroll-margin-top: calc(var(--h-header-desktop) + 12px);
}

/* Kartu program (jenjang & unggulan) */
.program .grid-program {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.program .card-program {
  background: #f8faff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.program .card-program h4 {
  margin-bottom: 8px;
  color: var(--brand-blue);
}
.program .card-program p {
  margin-top: 4px;
  color: #333;
}

/* Fasilitas (Ekstrakurikuler) */
.program .grid-fasilitas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}
.program .grid-fasilitas div {
  background: #eef2ff;
  color: var(--brand-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px;
  min-height: 10px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}
.program .grid-fasilitas div:hover {
  background: #dbe3ff;
  transform: translateY(-2px);
}

/* Kegiatan Tahunan */
.program .kegiatan-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.program .kegiatan-item {
  background: #f8faff;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  padding: 12px;
  font-weight: 600;
  color: var(--brand-blue);
  text-align: center;
}

/* Call to Action (CTA) */
.program .cta {
  text-align: center;
  margin-top: 24px;
}
.program .btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
  transition: transform 0.06s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}
.program .btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* Responsive */
@media (max-width: 992px){
  .program h3 { scroll-margin-top: calc(var(--h-header-mobile) + 12px); }
}
@media (max-width: 768px){
  .program { margin-top: 90px; }
}