/* ====== Global Base ====== */
:root{
  --bg:#f6f9fc;
  --surface:#ffffff;
  --ink:#1f2a44;
  --muted:#6b7a90;
  --brand:#2f76ff;
  --brand-600:#1e63ec;
  --line:#e7eef6;
  --shadow:0 8px 22px rgba(0,0,0,.06);
  --radius:14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

img{ max-width:100%; display:block; }
a{ color:var(--brand); text-decoration:none; }
a:hover{ color:var(--brand-600); }
.container{ max-width:1200px; margin:0 auto; padding:0 16px; }

/* Skip link (aksesibilitas) */
.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  position:fixed; left:16px; top:16px; width:auto; height:auto; padding:10px 12px;
  background:var(--brand); color:#fff; border-radius:10px; z-index:10000;
}

/* ====== Top Bar ====== */
.top-bar{
  background:#0b1b3a; color:#cfe0ff;
  border-bottom:1px solid #0a1731;
  font-size:13px;
}
.top-bar .top-bar-left,
.top-bar .top-bar-right{
  display:flex; align-items:center; gap:14px;
}
.top-bar .top-bar-left{ padding:8px 16px; }
.top-bar .top-bar-right{ margin-left:auto; padding:8px 16px; }

#currentDateDisplay{ white-space:nowrap; opacity:.9; }

/* News ticker sederhana */
.news-ticker{ overflow:hidden; max-width:620px; }
.ticker-runner{ display:flex; gap:48px; white-space:nowrap; animation:ticker 28s linear infinite; }
@keyframes ticker{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}

/* Search form di top bar */
#searchform{ display:flex; align-items:center; gap:8px; }
#searchform input[type="text"]{
  padding:8px 10px; border-radius:8px; border:1px solid #163064; background:#0f234a; color:#eaf1ff;
}
#searchform select{
  padding:8px 10px; border-radius:8px; border:1px solid #163064; background:#0f234a; color:#eaf1ff;
}
#searchform button{
  height:36px; width:36px; border-radius:8px; border:0; background:#1d4ed8; color:#fff; cursor:pointer;
}
#searchform button:hover{ background:#1a43bf; }

/* ====== Header ====== */
header{ background:var(--surface); box-shadow:var(--shadow); }
.header-container{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 0;
}
.header-left{ display:flex; align-items:center; gap:14px; }
.logo{ width:60px; height:60px; object-fit:contain; }
.school-info h1{ font-size:22px; margin:0 0 2px; }
.school-info .address{ margin:0; color:var(--muted); font-size:13px; }
.header-right .contact-info{ text-align:right; color:var(--ink); }
.header-right .contact-info p{ margin:0; font-size:14px; }
.header-right i{ color:#2563eb; }

/* ====== Nav ====== */
nav{ background:#0b1b3a; position:sticky; top:0; z-index:600; }
.nav-container{ }
.main-nav{
  list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:4px;
}
.main-nav > li { position:relative; }
.main-nav > li > a{
  display:block; padding:14px 16px; color:#e3ecff; font-weight:600;
}
.main-nav > li > a:hover{ background:#0f234a; }
.main-nav > li.active > a{ background:#153972; }

/* Dropdown */
.has-dropdown > ul{
  position:absolute; left:0; top:100%;
  list-style:none; margin:0; padding:6px;
  background:#0f234a; border:1px solid #122a58; min-width:220px;
  border-radius:12px; box-shadow:var(--shadow); display:none; z-index:700;
}
.has-dropdown:hover > ul{ display:block; }
.has-dropdown > ul li a{
  display:block; padding:10px 12px; color:#dbe8ff; border-radius:8px;
}
.has-dropdown > ul li a:hover{ background:#143061; }

/* ====== Footer ====== */
footer{ background:#0b1b3a; color:#d7e6ff; margin-top:40px; }
.footer-container{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px; padding:26px 0;
}
.footer-column h3{ margin:0 0 10px; color:#fff; }
.footer-column p{ margin:0 0 8px; color:#c6d7ff; }
.footer-column ul{ list-style:none; padding:0; margin:0; }
.footer-column li{ margin:8px 0; }
.footer-column a{ color:#cfe0ff; }
.footer-column a:hover{ color:#fff; text-decoration:underline; }
.footer-bottom{ border-top:1px solid #0a1731; text-align:center; padding:12px 0; color:#aac3ff; }

/* ====== Utilities ====== */
.section-title{
  font-size:24px; margin:22px 0 12px; font-weight:700; color:var(--ink);
}

/* ====== Responsive ====== */
@media (max-width: 900px){
  .header-right{ display:none; }
  .ticker-runner{ animation-duration: 18s; }
}
@media (max-width: 720px){
  .main-nav{ gap:0; }
  .main-nav > li { flex:1 1 50%; }
  .main-nav > li > a{ padding:12px; text-align:center; }
  .has-dropdown > ul{ position:static; border:0; box-shadow:none; display:block; background:#0b1b3a; padding:0 10px 10px; }
  .has-dropdown > ul li a{ padding:8px 10px; }
}
