﻿:root {
  --bg: #ffffff;
  --page-bg: #f5f7ff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e5e7eb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --accent: #0f172a;
  --card-blue: #2563eb;
  --card-blue-soft: rgba(37, 99, 235, 0.14);
  --card-grad-top: #ffffff;
  --card-grad-bot: #f2f6ff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.10);
  --radius: 16px;
  --nav-h: 64px;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: light; }
body {
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

.topnav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topnav {
  height: var(--nav-h);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.topnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: Outfit, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.topnav-brand img { width: 36px; height: 36px; object-fit: contain; }
.topnav-right { display: flex; align-items: center; gap: 2px; }

.navlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.navlink:hover { background: var(--surface-2); color: var(--text); }
.navlink.is-active { background: var(--surface-2); color: var(--text); }

.btn-nav {
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
}

.btn-nav:hover { background: #111c33; color: #fff; }

.burger {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.burger-lines { display: inline-grid; gap: 4px; }
.burger-lines span { width: 18px; height: 2px; background: var(--text); border-radius: 999px; display: block; }

.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 20px;
  width: min(260px, 92vw);
  padding: 8px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: none;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu.is-open { display: flex; }

.page { padding: 28px 20px 56px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--card-blue);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  opacity: 0.9;
}

@media (min-width: 960px) {
  .hero { grid-template-columns: 1.2fr 0.8fr; align-items: center; padding: 34px; }
}

.hero-kicker { color: var(--muted); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.hero-title {
  font-family: Outfit, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.05;
}
.hero-subtitle { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 64ch; }
.hero-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-title + .hero-subtitle { margin-top: 14px; }
.hero-subtitle + .hero-actions { margin-top: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
  cursor: pointer;
  user-select: none;
}

.btn:hover { transform: scale(1.02); box-shadow: var(--shadow-sm); background: var(--surface-2); }
.btn:active { transform: scale(1); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.btn-primary:hover { background: #111c33; border-color: #111c33; color: #ffffff; }

.btn-outline {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.22);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--surface-2);
  border-color: rgba(15, 23, 42, 0.32);
}

.btn-sm { padding: 9px 12px; border-radius: 11px; font-size: 13px; }

.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-title { font-family: Outfit, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 700; letter-spacing: -0.02em; font-size: 20px; }
.section-desc { color: var(--muted); font-size: 14px; }

.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 860px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card-link { text-decoration: none; color: inherit; display: block; }
.card.card--hover {
  position: relative;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-bottom: 2px solid #185fa5;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-grad-top), var(--card-grad-bot));
  overflow: hidden;
  padding: 22px 22px 18px;
  min-height: 220px;
  box-shadow: var(--shadow-sm);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  display: flex;
}
.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--card-blue);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  opacity: 0.9;
}
.card.card--hover::after { display: none; }
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-top-color: #d1d5db;
  border-left-color: #d1d5db;
  border-right-color: #d1d5db;
}
.card:focus-within { border-color: rgba(15, 23, 42, 0.45); box-shadow: var(--shadow-md); }

.card-head { display: flex; align-items: center; gap: 18px; padding-bottom: 6px; }

.prog-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(37, 99, 235, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.prog-badge img { width: 34px; height: 34px; object-fit: contain; display: block; }
.card-body { display: flex; flex-direction: column; width: 100%; gap: 14px; }
.card-title { font-family: Outfit, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 700; letter-spacing: -0.02em; font-size: 18px; line-height: 1.25; color: var(--card-blue); }
.card-subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12px; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-weight: 600; }
.card.card--hover .chip { background: rgba(37, 99, 235, 0.06); border-color: rgba(37, 99, 235, 0.14); }

.card-actions {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.card.card--hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--accent);
  border-left-color: var(--accent);
  border-right-color: var(--accent);
}

.notice {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 14px 16px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.quick-list { display: grid; gap: 8px; }
.quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.quick-link:hover { background: var(--surface-2); }
.quick-link .qmuted { color: var(--muted); font-weight: 600; }
.quick-link .qarrow { color: var(--muted); }

.detail { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); padding: 22px; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.detail-title {
  font-family: Outfit, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.12;
}
.detail p { color: var(--muted); line-height: 1.75; margin-top: 10px; }
.detail h2 { margin-top: 18px; font-size: 16px; letter-spacing: -0.01em; }
.detail ul { margin-top: 10px; padding-left: 18px; color: var(--muted); line-height: 1.75; }
.actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }

.program-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.program-intro { grid-area: intro; }
.program-media { grid-area: media; }
.program-below { grid-area: below; }

/* Mobile: stack sections */
.program-layout { grid-template-areas: "intro" "media" "below"; }

/* Desktop: two columns on top (intro + media), full-width below */
@media (min-width: 900px) {
  .program-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    grid-template-areas:
      "intro media"
      "below below";
  }

  /* Shrink the preview box on desktop without changing its visual style. */
  .program-media { max-width: 50%; width: min(280px, 100%); justify-self: end; }
  .logo-frame { height: 210px; }
}

.program-title {
  position: relative;
  padding-left: 18px;
  margin-top: 2px;
  font-family: Outfit, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
}

.program-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 5px;
  border-radius: 999px;
  background: #14b8a6;
}

.checklist { list-style: none; padding-left: 0; margin-top: 14px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 26px; color: var(--muted); }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #14b8a6;
  font-weight: 700;
}

.program-media {
  border-radius: 20px;
  background: radial-gradient(60% 60% at 70% 30%, rgba(20, 184, 166, 0.12), rgba(255,255,255,0)),
              linear-gradient(180deg, rgba(248,250,252,1), rgba(255,255,255,1));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0;
}

.logo-frame {
  margin-top: 0;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #eef2f7;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.logo-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.14));
}

.detail-headline {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
  font-weight: 600;
}

.form { margin-top: 12px; display: grid; gap: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
input, textarea { width: 100%; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 12px 12px; font: inherit; outline: none; }
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus { border-color: #cbd5e1; box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06); }
.status { margin-top: 6px; color: var(--muted); min-height: 1.2em; font-size: 13px; }
.muted { color: var(--muted); line-height: 1.7; }

.admin-tabs { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.admin-pane { margin-top: 14px; }
.admin-list { display: grid; gap: 12px; }
.admin-programs { display: grid; gap: 12px; }
.admin-section { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--surface); margin-top: 14px; }

.admin-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.admin-title { font-family: Outfit, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 700; letter-spacing: -0.03em; font-size: 30px; }
.admin-sub { margin-top: 6px; color: var(--muted); line-height: 1.7; }
.admin-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; font-weight: 600; color: var(--text); }
.admin-bar { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.segmented { display: inline-flex; padding: 4px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; gap: 4px; }
.seg-btn { border: 0; background: transparent; padding: 10px 14px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); }
.seg-btn:hover { background: var(--surface-2); color: var(--text); }
.seg-btn.is-active { background: var(--accent); color: #fff; }

.prog-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: var(--surface); margin-top: 12px; }
.prog-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.prog-item-title { font-family: Outfit, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 700; letter-spacing: -0.02em; }
.prog-item-meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.prog-item-body { margin-top: 12px; display: grid; gap: 12px; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.help { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.prog-list { display: grid; gap: 8px; margin-top: 10px; }
.prog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
}
.prog-row:hover { background: var(--surface-2); }
.prog-row-title { font-weight: 700; letter-spacing: -0.01em; }
.prog-row-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.prog-row-arrow { color: var(--muted); font-weight: 700; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 100;
}
.modal-backdrop.is-open { display: flex; }
.modal-panel {
  width: min(920px, 96vw);
  max-height: min(84vh, 920px);
  overflow: auto;
  border-radius: 18px;
  background: #f3f6fb;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 16px;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-title { font-family: Outfit, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 700; letter-spacing: -0.02em; font-size: 22px; }
.modal-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.modal-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
@media (min-width: 920px) { .modal-grid { grid-template-columns: 1fr 1fr; } }
.modal-grid .full { grid-column: 1 / -1; }

/* Admin form fields remain white over gray panel backgrounds. */
.admin-section input,
.admin-section textarea,
.admin-section select,
.modal-panel input,
.modal-panel textarea,
.modal-panel select {
  background: #ffffff;
  border-color: #d7dee8;
}

.admin-section input:focus,
.admin-section textarea:focus,
.admin-section select:focus,
.modal-panel input:focus,
.modal-panel textarea:focus,
.modal-panel select:focus {
  background: #ffffff;
}

.msg-card, .msg { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 14px; box-shadow: var(--shadow-sm); }
.msg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.msg-title { font-weight: 700; letter-spacing: -0.01em; }
.msg-meta { color: var(--muted); font-size: 12px; margin-top: 6px; }
.msg-body { margin-top: 10px; color: var(--text); line-height: 1.7; white-space: pre-wrap; }

@media (max-width: 900px) {
  .topnav { padding: 0 14px; }
  .topnav-right { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
}

.site-footer {
  max-width: var(--max);
  margin: 40px auto 60px;
  padding: 24px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer a {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent);
}
