/* ====== Design Tokens ====== */
:root {
  --bg: #0b0c10;
  --panel: rgba(22, 24, 29, 0.7);
  --text: #e8eaf0;
  --muted: #a6adbb;
  --brand: #7c5cff;
  --brand-2: #19c5b8;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 14px;
  --backdrop: blur(12px);
  --container: 1100px;
}

@media (prefers-color-scheme: light) {
  :root { --bg:#f4f6fb; --panel: rgba(255,255,255,0.7); --text:#0c0f14; --muted:#4b5563; --border: rgba(0,0,0,0.08); }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, rgba(124,92,255,0.25), transparent 40%),
              radial-gradient(900px 700px at -10% 20%, rgba(25,197,184,0.2), transparent 45%),
              var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
}

html {
  scrollbar-gutter: stable;
}

a {
  color: var(--brand); /* your purple brand color */
  text-decoration: none; /* remove underline */
  font-weight: 500;
  transition: color 0.2s ease, border-bottom 0.2s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--brand-2); /* your turquoise brand color */
  border-bottom: 1px solid var(--brand-2); /* subtle hover underline */
}

a:visited {
  color: var(--brand); /* keep same color after visit */
}

/* ====== Layout Helpers ====== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ====== Header / Navbar ====== */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: var(--backdrop);
  background: linear-gradient(180deg, rgba(10,11,16,.85), rgba(10,11,16,.6));
  border-bottom: 1px solid var(--border);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* center the nav group */
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}
.brand {
  justify-self: start;
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: 0.3px;
}
.brand .logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 18px rgba(124,92,255,0.35);
}

/* Centered nav links */
.nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 24px; justify-content: center; align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .15s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
  opacity: 0.92;
}
.nav-links a:hover { border-color: var(--border); opacity: 1; }
.nav-links a.active { background: rgba(124,92,255,0.15); border-color: rgba(124,92,255,0.25); }

/* Right utilities */
.nav-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.btn {
  appearance: none; border: 1px solid var(--border); color: var(--text);
  background: var(--panel);
  padding: 8px 12px; border-radius: 10px; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.18); }

/* ====== Mobile Nav (Hamburger) ====== */
.hamburger { display: none; position: relative; width: 40px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); }
.hamburger span, .hamburger::before, .hamburger::after {
  content: ""; position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text);
  transition: transform .2s ease, opacity .2s ease, top .2s ease, bottom .2s ease; border-radius: 1px;
}
.hamburger span { top: 17px; }
.hamburger::before { top: 10px; }
.hamburger::after { bottom: 10px; }

.mobile-panel {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(12,13,18,0.95); border-bottom: 1px solid var(--border);
  backdrop-filter: var(--backdrop);
}
.mobile-links { list-style: none; margin: 0; padding: 12px; display: grid; gap: 6px; }
.mobile-links a { display: block; padding: 12px; text-decoration: none; color: var(--text); border-radius: 10px; border: 1px solid transparent; }
.mobile-links a:hover { border-color: var(--border); }

/* Toggle state */
.nav.open .mobile-panel { display: block; }
.nav.open .hamburger::before { transform: translateY(7px) rotate(45deg); }
.nav.open .hamburger::after { transform: translateY(-7px) rotate(-45deg); }
.nav.open .hamburger span { opacity: 0; }

/* ====== Main ====== */
main { padding: 40px 0 80px; }

.banner {
  display: block;
  margin: 0 auto;
  width: 100%;        /* take full width of container by default */
  max-width: 500px;   /* never go wider than this */
  height: auto;       /* keep aspect ratio */
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.schedule-table th,
.schedule-table td {
  padding: 10px 14px;
  text-align: left;
}

.schedule-table th {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: bold;
}

.schedule-table tr {
  border-bottom: 1px solid var(--border);
}

.schedule-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.schedule-table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.schedule-table td[colspan="3"] {
  background-color: rgba(124, 92, 255, 0.15);
  font-weight: bold;
  color: var(--text);
}


.hero {
  margin-top: 12px;
  background: linear-gradient(180deg, rgba(124,92,255,0.12), rgba(25,197,184,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.hero h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 40px); letter-spacing: 0.2px; }
.hero p { margin: 0; color: var(--muted); font-size: clamp(14px, 1.8vw, 16px); }

.content-grid {
  margin-top: 22px;
  display: grid; gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}
.card {
  grid-column: span 12;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 120px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

@media (min-width: 720px) {
  .card { grid-column: span 6; }
}
@media (min-width: 1024px) {
  .card { grid-column: span 4; }
}

/* ====== Footer ====== */
footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 26px 0 36px;
  background: rgba(10,11,16,.4);
}
.footer-inner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tiny { font-size: 12px; }

/* ====== Responsive rules ====== */
@media (max-width: 720px) {
  /* Hide desktop links and show hamburger */
  .nav-links { display: none; }
  .hamburger { display: inline-block; }

  /* Move brand to center when links hidden */
  .nav { grid-template-columns: 1fr auto 1fr; }
  .brand { justify-self: center; }
  .nav-right { justify-self: end; }
}


.copy-box {
  background: var(--panel);
  padding: 35px 35px 10px 35px;
  margin: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  display: inline-block;
  min-width: 350px;
}
.copy-box pre {
  margin: 0;
  overflow-x: auto;
}
.copy-box button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--brand);
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: var(--radius);
  cursor: pointer;
}
.copy-box button:hover {
  background: var(--brand-2);
}