/* ==========================================================================
   SMKN 3 Surakarta — design system
   Palet diturunkan dari tema resmi sekolah: navy #06194d + gold #ffc844
   ========================================================================== */
:root {
  --navy: #06194d;
  --navy-2: #08265f;
  --navy-3: #0d3576;
  --navy-deep: #020d2d;
  --gold: #ffc844;
  --gold-2: #ffda72;
  --gold-3: #ffe9a8;
  --paper: #f4f8ff;
  --white: #ffffff;
  --ink: #10224b;
  --muted: #5d6b85;
  --line: #dbe4f3;
  --line-soft: #eaf0fb;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 14px rgba(6, 25, 77, 0.06);
  --shadow: 0 14px 38px rgba(6, 25, 77, 0.1);
  --shadow-lg: 0 28px 70px rgba(6, 25, 77, 0.18);
  --container: 1200px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.container { width: min(var(--container), 92%); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- topbar + header ---------- */
.topbar {
  background: var(--navy-deep);
  color: #cfe0ff;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.topbar .container {
  min-height: 36px; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; padding-block: 6px;
}
.topbar a { color: #dce9ff; }
.topbar a:hover { color: var(--gold-2); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar i { font-style: normal; color: var(--gold); margin-right: 5px; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(3, 19, 61, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 26px rgba(0, 20, 60, 0.18);
}
.navwrap { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand img { width: 46px; height: 54px; object-fit: contain; }
.brand b { display: block; font-size: 18px; font-weight: 900; line-height: 1.1; letter-spacing: -0.01em; }
.brand small { display: block; color: var(--gold-2); font-size: 9.5px; letter-spacing: 1.8px; font-weight: 700; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav > .has-drop > button {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  color: #e7efff; font-size: 12.5px; font-weight: 700; letter-spacing: 0.01em;
  padding: 10px 11px; border-radius: 9px; transition: 0.18s;
}
.nav > a:hover, .nav > .has-drop > button:hover,
.nav > a.active, .nav > .has-drop.active > button { color: var(--gold); background: rgba(255, 255, 255, 0.06); }
.has-drop { position: relative; }
.has-drop > button::after {
  content: ""; width: 5px; height: 5px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: 0.75;
}
.drop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  min-width: 232px; background: #fff; border-radius: 14px; padding: 8px;
  box-shadow: 0 24px 60px rgba(3, 19, 61, 0.25); opacity: 0; visibility: hidden; transition: 0.2s;
  border: 1px solid var(--line-soft);
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop a {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px;
  color: var(--ink); font-size: 12.5px; font-weight: 600;
}
.drop a:hover { background: var(--paper); color: var(--navy); }
.drop a span.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.nav-cta {
  padding: 10px 17px !important; border-radius: 99px;
  background: linear-gradient(135deg, var(--gold-3), var(--gold)) !important;
  color: #16264d !important; font-weight: 800 !important;
  box-shadow: 0 8px 20px rgba(255, 200, 68, 0.32);
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-toggle {
  display: none; background: rgba(255, 255, 255, 0.09); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 10px; padding: 7px 11px; font-size: 18px; cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 99px; border: 1px solid transparent;
  font-size: 13px; font-weight: 800; cursor: pointer; transition: 0.2s; letter-spacing: 0.01em;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-3), var(--gold)); color: #16264d; box-shadow: 0 10px 26px rgba(255, 200, 68, 0.3); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255, 200, 68, 0.4); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); }
.btn-sm { padding: 8px 15px; font-size: 12px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(640px, 78vh); background: var(--navy-deep); overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0.9s;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 78% 18%, rgba(255, 200, 68, 0.16), transparent 62%),
    radial-gradient(760px 520px at 12% 92%, rgba(33, 118, 255, 0.22), transparent 60%),
    linear-gradient(120deg, #020d2d 0%, #06194d 46%, #0a2a63 100%);
}
.hero-slide::after {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 72%);
}
.hero-inner { position: relative; z-index: 2; color: #fff; padding: 74px 0 96px; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px; border-radius: 99px;
  border: 1px solid rgba(255, 218, 114, 0.45); background: rgba(3, 26, 84, 0.65);
  color: var(--gold-2); font-size: 10px; font-weight: 900; letter-spacing: 2.2px; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 200, 68, 0.18); }
.hero h1 {
  font-size: clamp(36px, 5.4vw, 66px); font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.035em; margin: 22px 0 16px; text-shadow: 0 18px 40px rgba(0, 10, 35, 0.45);
}
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero p { font-size: 16.5px; color: #d5e3ff; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; z-index: 3; }
.hero-dots button {
  width: 30px; height: 4px; border-radius: 99px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.32); transition: 0.25s;
}
.hero-dots button.active { background: var(--gold); width: 46px; }
.hero-badge {
  position: absolute; right: max(4%, calc((100% - var(--container)) / 2)); bottom: 46px; z-index: 3;
  display: flex; gap: 22px; padding: 18px 22px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px); color: #fff;
}
.hero-badge div b { display: block; font-size: 22px; font-weight: 900; color: var(--gold-2); line-height: 1.1; }
.hero-badge div span { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: #c9d9f7; }

/* running text */
.ticker { background: var(--gold); color: #17264c; overflow: hidden; }
.ticker .container { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.ticker-label {
  flex: none; background: var(--navy); color: var(--gold-2); font-size: 10px; font-weight: 900;
  letter-spacing: 1.4px; padding: 5px 11px; border-radius: 99px; text-transform: uppercase;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-track div {
  display: inline-block; white-space: nowrap; font-size: 12.5px; font-weight: 700;
  animation: marquee 34s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section.tight { padding: 52px 0; }
.section.alt { background: #fff; }
.section.dark { background: linear-gradient(140deg, #041335, #08265f 60%, #0a2f6d); color: #e8f0ff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 38px; flex-wrap: wrap; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 900;
  letter-spacing: 2.2px; text-transform: uppercase; color: #9a6b00; margin-bottom: 12px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.section.dark .kicker { color: var(--gold-2); }
.section-title { font-size: clamp(26px, 3.3vw, 40px); font-weight: 900; letter-spacing: -0.03em; }
.section-sub { color: var(--muted); max-width: 620px; margin: 10px 0 0; font-size: 14.5px; }
.section.dark .section-sub { color: #b9cdf0; }
.link-more {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800;
  color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 2px; white-space: nowrap;
}
.section.dark .link-more { color: var(--gold-2); }
.link-more:hover { gap: 11px; }

/* ---------- cards ---------- */
.card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdcf2; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); transition: 0.25s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-2); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-tag {
  position: absolute; left: 12px; top: 12px; background: var(--gold); color: #17264c;
  font-size: 9.5px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 5px 10px; border-radius: 99px;
}
.news-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 10.5px; font-weight: 800; letter-spacing: 1.1px; color: #8a97ae; text-transform: uppercase; }
.news-body h3 { font-size: 16.5px; margin: 9px 0 8px; font-weight: 800; letter-spacing: -0.02em; }
.news-body h3 a:hover { color: var(--navy-3); }
.news-body p { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.news-body .link-more { margin-top: auto; font-size: 11.5px; }

.feature-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.feature-main { position: relative; border-radius: 20px; overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; color: #fff; }
.feature-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 13, 45, 0.94) 8%, rgba(2, 13, 45, 0.25) 62%, transparent); }
.feature-main-body { position: relative; z-index: 2; padding: 26px; }
.feature-main-body h3 { font-size: clamp(20px, 2.2vw, 27px); margin: 10px 0; font-weight: 900; }
.feature-main-body p { font-size: 13.5px; color: #d8e5fb; margin: 0; }
.feature-list { display: grid; gap: 12px; }
.feature-item { display: flex; gap: 13px; background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 13px; transition: 0.2s; }
.feature-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.feature-item img { width: 82px; height: 68px; border-radius: 10px; object-fit: cover; flex: none; }
.feature-item h4 { font-size: 13.5px; font-weight: 800; margin: 0 0 4px; line-height: 1.35; }
.feature-item span { font-size: 10.5px; color: #8a97ae; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }

/* quick links */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-item {
  display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line-soft); font-size: 13px; font-weight: 700; transition: 0.2s;
}
.quick-item:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.quick-item .ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #eef4ff, #dbe8ff); color: var(--navy-3); font-size: 16px;
}
.quick-item small { display: block; font-weight: 600; color: var(--muted); font-size: 11px; }

/* stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.stats-strip div { background: #fff; padding: 24px 18px; text-align: center; }
.stats-strip b { display: block; font-size: 30px; font-weight: 900; color: var(--navy); letter-spacing: -0.03em; }
.stats-strip span { font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 800; }

/* program cards */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program-card { position: relative; border-radius: 18px; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.program-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: 0.6s; }
.program-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(3, 16, 48, 0.95), rgba(3, 16, 48, 0.15)); }
.program-card:hover img { transform: scale(1.07); }
.program-body { padding: 22px; }
.program-body .tag { font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-2); font-weight: 900; }
.program-body h3 { font-size: 18px; margin: 8px 0; font-weight: 850; }
.program-body p { font-size: 12.5px; color: #cfdcf5; margin: 0; }

/* facility / info cards */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.info-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 22px; transition: 0.22s; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-card .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: var(--gold-2); font-size: 19px;
}
.info-card h3 { font-size: 14.5px; font-weight: 800; margin-bottom: 6px; }
.info-card p { font-size: 12.5px; color: var(--muted); margin: 0; }
.info-card .count { display: inline-block; margin-top: 12px; font-size: 10.5px; font-weight: 900; letter-spacing: 1px; color: #9a6b00; background: #fff8e4; padding: 4px 9px; border-radius: 99px; }

/* staff */
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.staff-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 18px; text-align: center; transition: 0.22s; }
.staff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.staff-card img { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 12px; object-fit: cover; border: 3px solid #eef4ff; }
.staff-card h3 { font-size: 13.5px; font-weight: 800; }
.staff-card .role { font-size: 11px; color: #8a97ae; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-top: 4px; }
.staff-card .subject { font-size: 12px; color: var(--navy-3); margin-top: 7px; font-weight: 700; }

/* principal */
.principal { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: center; }
.principal-photo { position: relative; border-radius: 22px; overflow: hidden; background: linear-gradient(150deg, #0a2a63, #06194d); padding: 26px; }
.principal-photo img { border-radius: 16px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.principal-quote { font-size: 17px; line-height: 1.75; color: #dbe7ff; font-style: italic; margin-bottom: 22px; }
.principal-name b { display: block; font-size: 15px; color: #fff; }
.principal-name span { font-size: 11.5px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--gold-2); font-weight: 800; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: var(--navy); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0; padding: 30px 14px 12px; color: #fff; font-size: 11.5px; font-weight: 700;
  background: linear-gradient(to top, rgba(2, 13, 45, 0.92), transparent);
  opacity: 0; transform: translateY(6px); transition: 0.25s;
}
.gallery-item:hover figcaption { opacity: 1; transform: none; }

/* partners */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.partner-item {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px 16px;
  display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 750; transition: 0.2s;
}
.partner-item:hover { border-color: var(--gold); }
.partner-logo {
  width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--paper); color: var(--navy-3); font-weight: 900; font-size: 13px; border: 1px solid var(--line);
}
.partner-item small { display: block; color: var(--muted); font-weight: 600; font-size: 10.5px; }

/* agenda list */
.agenda-list { display: grid; gap: 12px; }
.agenda-item { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 16px; transition: 0.2s; }
.agenda-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.agenda-date {
  flex: none; width: 62px; text-align: center; background: var(--navy); color: #fff; border-radius: 11px; padding: 9px 0;
}
.agenda-date b { display: block; font-size: 20px; line-height: 1; font-weight: 900; color: var(--gold-2); }
.agenda-date span { font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #b9cdf0; }
.agenda-body h4 { font-size: 14px; font-weight: 800; margin: 0 0 3px; }
.agenda-body p { font-size: 12px; color: var(--muted); margin: 0; }

/* CTA band */
.cta-band {
  position: relative; border-radius: 22px; overflow: hidden; padding: 46px;
  background: linear-gradient(125deg, #06194d, #0b3479 55%, #0a2a63);
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 68, 0.32), transparent 66%);
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; margin-bottom: 8px; position: relative; }
.cta-band p { color: #c7d8f6; margin: 0; font-size: 14px; position: relative; }

/* page hero */
.page-hero {
  background: linear-gradient(120deg, #03143c, #08265f 55%, #0b3479);
  color: #fff; padding: 54px 0 58px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.28;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 80% 40%, #000, transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .crumb { font-size: 11.5px; color: #a9c2ea; margin-bottom: 12px; font-weight: 600; }
.page-hero .crumb a:hover { color: var(--gold-2); }
.page-hero h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; }
.page-hero p { color: #c3d5f3; margin: 12px 0 0; max-width: 640px; font-size: 14.5px; }

/* generic layout helpers */
.split-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.prose { font-size: 14.5px; color: #26365a; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { font-size: 22px; margin: 26px 0 12px; }
.prose h3 { font-size: 17px; margin: 22px 0 10px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.sidebar { display: grid; gap: 16px; }
.side-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 22px; }
.side-card h3 { font-size: 14px; font-weight: 850; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.side-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.side-card li a { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 650; color: #33456a; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.side-card li:last-child a { border-bottom: 0; }
.side-card li a:hover { color: var(--navy); }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  padding: 8px 15px; border-radius: 99px; border: 1px solid var(--line); background: #fff;
  font-size: 12px; font-weight: 750; color: #46587e; cursor: pointer; transition: 0.18s;
}
.chip:hover { border-color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.pagination { display: flex; gap: 7px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pagination button {
  min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.pagination button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; color: #40527a; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 13.5px; transition: 0.18s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(13, 53, 118, 0.1);
}
.form-note { font-size: 11.5px; color: var(--muted); }
.form-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-sm); }

.alert { padding: 12px 15px; border-radius: 11px; font-size: 13px; font-weight: 650; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert.ok { background: #e8f8ee; color: #10783a; border: 1px solid #b9e8cb; }
.alert.err { background: #fdecec; color: #a51f1f; border: 1px solid #f6c9c9; }

/* footer */
.site-footer { background: #03102f; color: #b8c9e6; padding: 58px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 40px; }
.footer-brand { display: flex; gap: 12px; align-items: center; color: #fff; margin-bottom: 14px; }
.footer-brand img { width: 44px; height: 50px; }
.footer-brand b { font-size: 16px; display: block; line-height: 1.2; }
.footer-brand small { color: var(--gold-2); font-size: 9.5px; letter-spacing: 1.7px; }
.site-footer p { font-size: 12.5px; line-height: 1.75; color: #93a8cc; }
.site-footer h4 { color: #fff; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer li a { font-size: 12.5px; color: #a9bcdd; }
.site-footer li a:hover { color: var(--gold-2); }
.footer-contact li { display: flex; gap: 9px; font-size: 12.5px; color: #a9bcdd; }
.footer-contact i { color: var(--gold); font-style: normal; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0; display: flex;
  justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: #7f96bd;
}
.socials { display: flex; gap: 8px; }
.socials a {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); color: #cfdcf3; font-size: 12px;
}
.socials a:hover { background: var(--gold); color: #16264d; border-color: var(--gold); }

/* whatsapp float */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff; padding: 11px 17px 11px 13px; border-radius: 99px;
  font-size: 12.5px; font-weight: 800; box-shadow: 0 14px 32px rgba(37, 211, 102, 0.4); transition: 0.22s;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 20px; height: 20px; }

/* toast */
.toast-wrap { position: fixed; right: 18px; top: 96px; z-index: 200; display: grid; gap: 9px; }
.toast {
  background: #fff; border-left: 4px solid var(--navy); border-radius: 10px; padding: 12px 16px;
  box-shadow: var(--shadow); font-size: 12.5px; font-weight: 650; min-width: 240px;
  animation: toastIn 0.3s ease;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- auth / login ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.auth-visual {
  position: relative; padding: 54px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(700px 420px at 80% 12%, rgba(255, 200, 68, 0.18), transparent 60%),
    linear-gradient(150deg, #020d2d, #06194d 50%, #0b3479);
  overflow: hidden;
}
.auth-visual::after {
  content: ""; position: absolute; inset: 0; opacity: 0.3;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 60% 40%, #000, transparent 72%);
}
.auth-visual > * { position: relative; z-index: 2; }
.auth-visual h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; margin-bottom: 14px; }
.auth-visual h2 em { font-style: normal; color: var(--gold-2); }
.auth-visual p { color: #c2d4f2; max-width: 430px; font-size: 14px; }
.auth-points { display: grid; gap: 14px; margin-top: 28px; }
.auth-point { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; color: #d6e4fb; }
.auth-point span.n {
  width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: rgba(255, 200, 68, 0.16); color: var(--gold-2); font-weight: 900; font-size: 11px;
  border: 1px solid rgba(255, 200, 68, 0.3);
}
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; }
.auth-card > p { color: var(--muted); font-size: 13.5px; margin: 8px 0 26px; }
.role-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; background: var(--paper); padding: 5px; border-radius: 12px; margin-bottom: 22px; }
.role-tabs button {
  padding: 9px 6px; border-radius: 9px; border: 0; background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 800; color: #5b6c8d; transition: 0.18s;
}
.role-tabs button.active { background: #fff; color: var(--navy); box-shadow: 0 3px 10px rgba(6, 25, 77, 0.1); }
.auth-extra { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin: 14px 0 20px; color: var(--muted); }
.auth-extra label { display: flex; align-items: center; gap: 7px; }
.demo-box { margin-top: 22px; border: 1px dashed #c9d8ef; background: #f7faff; border-radius: 12px; padding: 14px; font-size: 11.5px; color: #41557d; }
.demo-box b { display: block; font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: #7b8cab; margin-bottom: 8px; }
.demo-box code { background: #fff; border: 1px solid #dbe6f7; border-radius: 6px; padding: 2px 6px; font-size: 11px; color: var(--navy); }

/* ---------- dashboard (portal) ---------- */
.dash { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: var(--paper); }
.dash-side {
  background: linear-gradient(175deg, #041335, #06194d 60%, #08265f); color: #cfdcf3;
  padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.dash-brand { display: flex; gap: 10px; align-items: center; color: #fff; padding: 0 6px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 18px; }
.dash-brand img { width: 34px; height: 40px; }
.dash-brand b { font-size: 13px; display: block; line-height: 1.25; }
.dash-brand small { font-size: 9px; letter-spacing: 1.4px; color: var(--gold-2); }
.dash-nav { display: grid; gap: 4px; }
.dash-nav a, .dash-nav button {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; border: 0;
  background: none; color: #b8cae8; font-size: 12.5px; font-weight: 700; cursor: pointer; text-align: left; width: 100%;
}
.dash-nav a:hover, .dash-nav button:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.dash-nav .active { background: rgba(255, 200, 68, 0.14); color: var(--gold-2); }
.dash-nav .ico { width: 18px; text-align: center; font-size: 13px; }
.dash-main { padding: 0 0 40px; min-width: 0; }
.dash-top {
  background: #fff; border-bottom: 1px solid var(--line); padding: 14px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 20;
}
.dash-top h1 { font-size: 17px; font-weight: 850; }
.dash-top small { color: var(--muted); font-size: 11.5px; }
.dash-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.dash-body { padding: 24px 26px; display: grid; gap: 20px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 16px 18px; }
.kpi span { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.kpi b { display: block; font-size: 25px; font-weight: 900; color: var(--navy); margin-top: 6px; letter-spacing: -0.02em; }
.kpi small { font-size: 11px; color: #7e8daa; }
.panel { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; }
.panel-head { padding: 15px 18px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h3 { font-size: 13.5px; font-weight: 850; }
.panel-head small { font-size: 11px; color: var(--muted); }
.panel-body { padding: 16px 18px; }
.panel-body.flush { padding: 0; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.tbl th {
  text-align: left; padding: 10px 14px; background: #f8fbff; color: #5b6c8d;
  font-size: 10.5px; letter-spacing: 0.8px; text-transform: uppercase; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: #fbfdff; }
.table-scroll { overflow-x: auto; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px;
  font-size: 10px; font-weight: 850; letter-spacing: 0.4px; text-transform: uppercase;
}
.badge.green { background: #e8f8ee; color: #10783a; }
.badge.gold { background: #fff6df; color: #96650a; }
.badge.red { background: #fdecec; color: #a51f1f; }
.badge.blue { background: #eaf2ff; color: #1a4b9c; }
.badge.gray { background: #eef2f9; color: #5b6c8d; }

.progress { height: 7px; border-radius: 99px; background: #eef3fb; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-3), #2f7cf6); border-radius: 99px; }

.tabs-inline { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs-inline button {
  padding: 7px 13px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  font-size: 11.5px; font-weight: 750; cursor: pointer; color: #4a5d82;
}
.tabs-inline button.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: #04163f; padding: 14px; gap: 4px; align-items: stretch; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-height: 78vh; overflow-y: auto;
  }
  .nav.open > a, .nav.open > .has-drop > button { justify-content: space-between; padding: 12px; font-size: 13px; }
  .nav.open .drop { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; background: rgba(255, 255, 255, 0.05); min-width: 0; margin: 4px 0 8px; }
  .nav.open .drop a { color: #d6e4fb; font-size: 12px; }
  .nav.open .drop a:hover { background: rgba(255, 255, 255, 0.08); color: var(--gold-2); }
  .news-grid, .program-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid, .quick-grid, .gallery-grid, .partner-grid, .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-split, .split-2, .principal { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; height: auto; display: none; }
  .dash-side.open { display: block; }
  .hero-badge { display: none; }
}
@media (max-width: 700px) {
  .section { padding: 52px 0; }
  .news-grid, .program-grid, .info-grid, .quick-grid, .gallery-grid, .partner-grid, .staff-grid, .stats-strip, .form-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 560px; }
  .hero h1 { font-size: 32px; }
  .topbar-left span:nth-child(2) { display: none; }
  .cta-band { padding: 28px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .dash-body { padding: 16px; }
  .dash-top { padding: 12px 16px; }
  .page-hero { padding: 38px 0 42px; }
}
