:root {
  --orange: #f07f1a;
  --orange-dark: #d96f10;
  --orange-glow: rgba(240,127,26,0.16);
  --teal: #17a2ae;
  --teal-dark: #0e7c86;
  --bg: #0d0d10;
  --bg-soft: #131318;
  --surface: #1a1a21;
  --surface-2: #22222a;
  --text: #f2f2f4;
  --muted: #a3a3ae;
  --border: #2c2c35;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.5);
  --whatsapp: #25d366;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Poppins', 'Inter', sans-serif; margin: 0 0 .5em; color: var(--text); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.section { padding: 80px 0; position: relative; }
.section:nth-of-type(even) { background: var(--bg-soft); }

.eyebrow {
  color: var(--orange);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  margin: 0 0 .5em;
}
.eyebrow.center, h2.center { text-align: center; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,16,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.45); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 44px; width: 44px; object-fit: contain; border-radius: 8px; }
.brand-text { font-family: 'Poppins', sans-serif; font-size: 1.05rem; color: var(--text); }
.brand-text strong { color: var(--orange); }

.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav a {
  position: relative;
  font-weight: 500;
  font-size: .95rem;
  color: var(--text);
  transition: color .15s;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.main-nav a:hover { color: var(--orange); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--orange); }
.nav-login {
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
}
.nav-login::after { display: none; }
.nav-login:hover { border-color: var(--orange); color: var(--orange); }
.nav-cta {
  background: var(--orange);
  color: #16130f !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--orange-dark); color: #16130f !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* Hero */
.hero {
  padding: 76px 0 100px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  overflow: hidden;
  isolation: isolate;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
}
.hero-blob {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .28;
}
.hero-blob-1 { width: 340px; height: 340px; background: var(--orange); top: -120px; right: -80px; }
.hero-blob-2 { width: 280px; height: 280px; background: var(--teal); bottom: -100px; left: -60px; opacity: .2; }

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-text { flex: 1.2; }
.hero-logo { flex: 1; display: flex; justify-content: center; }
.hero-logo img {
  max-width: 320px;
  width: 100%;
  border-radius: 16px;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.55));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo img { animation: none; }
}

.hero h1 { font-size: 3rem; line-height: 1.1; margin-bottom: .4em; }
.hero h1 span { color: var(--orange); }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 520px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.hero-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-badges .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.hero-badges .badge:nth-child(2) .dot { background: var(--teal); }
.hero-badges .badge:nth-child(3) .dot { background: var(--white); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0 24px; }
.hero-meta { display: flex; gap: 24px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .icon { color: var(--orange); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .15s, color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #16130f; box-shadow: 0 8px 24px var(--orange-glow); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { border-color: var(--orange); color: var(--orange); background: transparent; }
.btn-outline:hover { background: var(--orange); color: #16130f; }
.btn-whatsapp { background: var(--whatsapp); color: #0c1f13; box-shadow: 0 8px 24px rgba(37,211,102,0.18); }
.btn-whatsapp:hover { background: #1eb257; }
.btn-youtube { background: #ff0033; color: #fff; box-shadow: 0 8px 24px rgba(255,0,51,0.22); }
.btn-youtube:hover { background: #e60030; }
.btn-block { width: 100%; justify-content: center; }

/* Icon badges on cards */
.icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 18px;
}
.icon-badge.orange { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.icon-badge.teal { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); }
.icon-badge.dark { background: linear-gradient(135deg, #3a3a45, #26262e); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #3a3a45; }
.about-card h3 { font-size: 1.1rem; }
.about-card p { color: var(--muted); margin: 0; }

/* Courses */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.course-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #3a3a45; }
.course-badge {
  position: absolute;
  top: -14px;
  left: 32px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #16130f;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: 999px;
}
.course-card h3 { margin-top: 4px; }
.course-card p { color: var(--muted); }
.course-card ul { list-style: none; padding: 0; color: var(--text); margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.course-card li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.course-card li .icon { color: var(--teal); }

/* Schedule */
.schedule-grid { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.schedule-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.schedule-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #3a3a45; }
.schedule-date {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #16130f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}
.schedule-info h3 { margin-bottom: 6px; font-size: 1.1rem; }
.schedule-time { margin: 0 0 4px; color: var(--text); font-size: .95rem; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.schedule-time span { display: inline-flex; align-items: center; gap: 6px; }
.schedule-time .icon { color: var(--teal); }
.schedule-mode { margin: 0; color: var(--muted); font-size: .88rem; }
.schedule-note { text-align: center; margin-top: 28px; color: var(--muted); }
.schedule-note a { color: var(--orange); font-weight: 600; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.gallery-item {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 5 / 8;
  background: #0d0d10;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-lead { color: var(--muted); max-width: 460px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 28px; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list .icon-badge { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 0; flex-shrink: 0; }
.contact-list .contact-text { display: flex; flex-direction: column; gap: 2px; }
.contact-list strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contact-list a:hover { color: var(--orange); }
.payment-card {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.payment-card h3 { margin: 0 0 12px; font-size: 1.15rem; }
.payment-mode { margin: 0 0 16px; }
.pay-badge {
  display: inline-block;
  background: var(--orange-glow);
  color: var(--orange);
  font-weight: 600;
  font-size: .8rem;
  padding: 5px 13px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.payment-details { list-style: none; padding: 0; margin: 0 0 16px; }
.payment-details li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.payment-details li:last-child { border-bottom: none; }
.payment-details span { color: var(--muted); font-size: .85rem; }
.payment-details strong { color: var(--text); font-family: 'Poppins', sans-serif; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.payment-hint { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }

.map-embed {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.map-embed iframe { filter: invert(90%) hue-rotate(180deg) contrast(0.9); display: block; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: .95rem;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #71717c; }
.contact-form select option { background: var(--surface-2); color: var(--text); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.mode-field { border: none; padding: 0; margin: 0; }
.mode-field legend { font-size: .9rem; font-weight: 500; color: var(--text); padding: 0; margin-bottom: 8px; }
.mode-options { display: flex; gap: 10px; }
.mode-option { flex: 1; cursor: pointer; }
.mode-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.mode-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  transition: border-color .15s, color .15s, background .15s;
}
.mode-option span .icon { color: var(--muted); transition: color .15s; }
.mode-option:hover span { border-color: var(--orange); color: var(--text); }
.mode-option input:checked + span {
  border-color: var(--orange);
  background: var(--orange-glow);
  color: var(--orange);
}
.mode-option input:checked + span .icon { color: var(--orange); }
.mode-option input:focus-visible + span { box-shadow: 0 0 0 3px var(--orange-glow); }

.form-help { font-size: .88rem; color: var(--muted); margin: -4px 0 4px; }
.form-note { font-size: .85rem; color: var(--muted); text-align: center; min-height: 1.2em; margin: 0; }

/* Page hero (inner pages) */
.page-hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  overflow: hidden;
  isolation: isolate;
  position: relative;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
}
.page-hero h1 { font-size: 2.6rem; margin-bottom: .3em; }
.page-hero-sub { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* Class Timetable */
.timetable-block { margin-bottom: 48px; }
.block-heading { font-size: 1.6rem; margin-bottom: 4px; }
.block-sub { color: var(--muted); margin: 0 0 24px; max-width: 640px; font-size: .95rem; }
.block-sub.center { text-align: center; margin-left: auto; margin-right: auto; margin-bottom: 40px; }
.timetable-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.timetable-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.timetable-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--orange);
}
.timetable-card:nth-child(2n)::before { background: var(--teal); }
.timetable-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #3a3a45; }
.timetable-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.timetable-head h3 { margin: 0; font-size: 1.15rem; }
.batch-label { margin: -8px 0 14px; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.grade-year {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  color: var(--orange);
  background: var(--orange-glow);
  padding: 4px 12px;
  border-radius: 999px;
}
.timetable-card:nth-child(2n) .grade-year { color: var(--teal); background: rgba(23,162,174,0.14); }
.session-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
.session-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.session-list .day { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); font-size: .95rem; }
.session-list .time { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.session-list .day .icon { color: var(--orange); }
.session-list .time .icon { color: var(--teal); }
.timetable-card:nth-child(2n) .session-list .day .icon { color: var(--teal); }
.timetable-card:nth-child(2n) .session-list .time .icon { color: var(--orange); }
.mode-tag {
  display: inline-flex;
  align-items: center;
  font-size: .76rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}
.timetable-note { margin-top: 26px; color: var(--muted); font-size: .92rem; text-align: center; }
.timetable-note a { color: var(--orange); font-weight: 600; }
@media (max-width: 720px) { .timetable-grid { grid-template-columns: 1fr; } }

/* YouTube Shorts */
.shorts-block { margin-bottom: 44px; }
.shorts-heading { font-size: 1.5rem; margin-bottom: 4px; }
.shorts-sub { color: var(--muted); margin: 0 0 22px; font-size: .95rem; }
.shorts-row { display: flex; flex-wrap: wrap; gap: 18px; }
.short-card { width: 190px; }
.short-facade,
.short-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
  background: #000;
}
.short-facade { padding: 0; cursor: pointer; }
.short-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.short-facade:hover img { transform: scale(1.05); }
.short-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ff0033;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: transform .15s ease;
}
.short-facade:hover .short-play { transform: translate(-50%, -50%) scale(1.08); }
.short-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.short-title { margin: 10px 2px 0; font-size: .9rem; font-weight: 500; color: var(--text); }
@media (max-width: 520px) {
  .short-card { width: calc(50% - 9px); }
}

/* YouTube channel banner */
.channel-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(255,0,51,0.12), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 44px;
  box-shadow: var(--shadow);
}
.channel-banner-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 16px;
  background: #ff0033;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-banner-text { flex: 1; }
.channel-banner-text h2 { font-size: 1.3rem; margin-bottom: .2em; text-align: left; }
.channel-banner-text p { color: var(--muted); margin: 0; font-size: .95rem; }
.channel-banner .btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .channel-banner { flex-direction: column; text-align: center; }
  .channel-banner-text h2 { text-align: center; }
}

/* Resources */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-btn {
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); }
.filter-btn.active { background: var(--orange); border-color: var(--orange); color: #16130f; }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.resource-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #3a3a45; }
.resource-card.hidden { display: none; }

.resource-thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
}
.thumb-orange { background: linear-gradient(135deg, rgba(240,127,26,0.55), rgba(13,13,16,0.9)), var(--surface-2); }
.thumb-teal { background: linear-gradient(135deg, rgba(23,162,174,0.5), rgba(13,13,16,0.9)), var(--surface-2); }
.thumb-dark { background: linear-gradient(135deg, #3a3a45, #17171d); }

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(13,13,16,0.65);
  border: 2px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.play-btn svg { margin-left: 3px; }
.resource-card:hover .play-btn { transform: scale(1.1); background: var(--orange); border-color: var(--orange); color: #16130f; }

.coming-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(13,13,16,0.75);
  border: 1px solid var(--border);
  color: var(--muted);
}

.thumb-preview {
  padding: 0;
  border: none;
  cursor: pointer;
  background: var(--bg);
  overflow: hidden;
}
.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .35s ease;
}
.resource-card:hover .thumb-img { transform: scale(1.04); }
.view-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--orange);
  color: #16130f;
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(760px, 95vw);
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 2.4rem;
  line-height: 1;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
}
.lightbox-close:hover { color: var(--orange); }

.resource-body { padding: 20px 22px 24px; }
.resource-body h3 { font-size: 1.05rem; margin-bottom: .4em; }
.resource-body p { color: var(--muted); margin: 0; font-size: .92rem; }
.resource-tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.tag-video { color: var(--orange); }
.tag-infographic { color: var(--teal); }
.tag-notes { color: var(--muted); }

.resources-cta { text-align: center; margin-top: 56px; }
.resources-cta p { color: var(--muted); margin-bottom: 18px; }
.resources-cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Student Portal */
.portal-main { min-height: calc(100vh - 76px - 120px); padding: 60px 0; }
.portal-login { display: flex; justify-content: center; }
.portal-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 34px;
  box-shadow: var(--shadow-lg);
}
.portal-card h1 { font-size: 1.9rem; margin-bottom: 12px; }
.portal-sub { color: var(--muted); font-size: .95rem; margin: 0 0 24px; }
.portal-login .portal-sub { text-align: center; }
.portal-form { display: flex; flex-direction: column; gap: 16px; }
.portal-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 500; color: var(--text); }
.portal-form input {
  font-family: inherit;
  font-size: .95rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.portal-form input::placeholder { color: #71717c; }
.portal-form input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-glow); }
.form-note.error { color: #ff6b6b; }
.portal-help { margin: 20px 0 0; text-align: center; font-size: .88rem; color: var(--muted); }
.portal-help a { color: var(--orange); font-weight: 600; }

.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.dash-head h1 { font-size: 1.9rem; margin: 4px 0; }
.dash-loading, .dash-empty, .batch-empty { color: var(--muted); }
.dash-empty { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }

.batch-block { margin-bottom: 40px; }
.batch-title {
  font-size: 1.25rem;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.material-list { display: flex; flex-direction: column; gap: 12px; }
.material-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color .15s, transform .15s;
}
.material-item:hover { border-color: #3a3a45; transform: translateY(-2px); }
.material-meta { display: flex; align-items: center; gap: 14px; min-width: 0; }
.material-icon { display: inline-flex; flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; color: #fff; }
.material-icon.pdf { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.material-icon.link { background: #ff0033; }
.material-title { font-weight: 500; color: var(--text); }
.material-btn { padding: 9px 20px; font-size: .88rem; flex-shrink: 0; }
@media (max-width: 520px) {
  .portal-card { padding: 32px 22px; }
  .material-item { flex-direction: column; align-items: flex-start; }
  .material-btn { align-self: stretch; text-align: center; }
}

/* In-page class video player */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.video-frame { position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.6); }
.video-frame:fullscreen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
#yt-player, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.video-controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.vc-btn { background: none; border: none; color: #fff; cursor: pointer; font-size: 1rem; line-height: 1; padding: 4px 6px; }
.vc-btn:hover { color: var(--orange); }
.vc-seek { flex: 1; height: 4px; accent-color: var(--orange); cursor: pointer; }
.vc-time { color: #fff; font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.video-close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 2.4rem;
  line-height: 1;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
}
.video-close:hover { color: var(--orange); }

/* Student registration form */
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.register-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reg-grid label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--text); }
.reg-grid input, .reg-grid textarea {
  font-family: inherit;
  font-size: .95rem;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  resize: vertical;
}
.reg-grid input::placeholder, .reg-grid textarea::placeholder { color: #71717c; }
.reg-grid input:focus, .reg-grid textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-glow); }
.reg-full { grid-column: 1 / -1; }
.reg-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.opt { color: var(--muted); font-weight: 400; font-size: .85em; }
.reg-photo-field { display: flex; flex-direction: column; gap: 8px; }
.reg-photo-label { font-size: .88rem; font-weight: 500; color: var(--text); }
.reg-photo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.reg-photo-row input[type="file"] { color: var(--muted); font-size: .9rem; }
.photo-preview { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
@media (max-width: 640px) { .reg-grid { grid-template-columns: 1fr; } }

/* Admin */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.admin-tab {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-family: inherit; font-size: .95rem; font-weight: 600;
  padding: 12px 18px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.admin-section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.admin-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.admin-card h2 { font-size: 1.15rem; margin-bottom: 18px; }
.admin-card h3 { font-size: .95rem; margin: 0 0 12px; color: var(--muted); }
.admin-form { display: flex; flex-direction: column; gap: 14px; }
.admin-form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 500; }
.admin-form input, .admin-form select {
  font-family: inherit; font-size: .95rem; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text);
}
.admin-form input:focus, .admin-form select:focus, #material-batch:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-glow); }
.batch-picker { border: none; padding: 0; margin: 0; }
.batch-picker legend { font-size: .88rem; font-weight: 500; margin-bottom: 8px; padding: 0; }
.batch-checks { display: flex; flex-direction: column; gap: 8px; }
.batch-checks .check { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 400; cursor: pointer; }
.batch-checks input { width: 16px; height: 16px; accent-color: var(--orange); }
.material-batch-label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 500; margin-bottom: 20px; }
#material-batch { font-family: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); }
.material-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-list { display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.admin-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px;
}
.admin-row strong { display: block; color: var(--text); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .95rem; }
.admin-sub { font-size: .82rem; color: var(--muted); }
.admin-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.admin-tags .tag { font-size: .74rem; font-weight: 600; color: var(--teal); background: rgba(23,162,174,0.14); padding: 3px 10px; border-radius: 999px; }
.btn-danger { border-color: #7a2b2b; color: #ff8f8f; padding: 7px 14px; font-size: .82rem; }
.btn-danger:hover { background: #7a2b2b; color: #fff; }

.admin-section-full { grid-template-columns: 1fr !important; }
.admin-card-full { grid-column: 1 / -1; }
.bulk-label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--text); margin-bottom: 16px; }
#bulk-text {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: .85rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  resize: vertical;
  white-space: pre;
  overflow-x: auto;
}
#bulk-text:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-glow); }
#bulk-text::placeholder { color: #71717c; }
.bulk-results { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.bulk-row { font-size: .84rem; font-family: 'Consolas', 'Courier New', monospace; padding: 4px 8px; border-radius: 6px; }
.bulk-row.good { color: #7bd88f; background: rgba(123,216,143,0.08); }
.bulk-row.bad { color: #ff8f8f; background: rgba(255,143,143,0.08); }
.reg-batch { margin-bottom: 26px; }
.reg-batch h3 { font-size: 1.05rem; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); color: var(--orange); }
.reg-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.reg-item summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.reg-item summary::-webkit-details-marker { display: none; }
.reg-item summary strong { color: var(--text); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .95rem; display: block; }
.reg-name { display: flex; flex-direction: column; }
.reg-photo-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.reg-photo-thumb.placeholder { display: inline-block; }
.reg-item[open] summary { border-bottom: 1px solid var(--border); }
.reg-details { margin: 0; padding: 14px 16px; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; }
.reg-details dt { color: var(--muted); font-size: .82rem; }
.reg-details dd { margin: 0; color: var(--text); font-size: .9rem; }
.reg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.reg-row strong { display: block; color: var(--text); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .95rem; }
.tag-pending { background: rgba(255,107,107,0.14); color: #ff8f8f; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 820px) {
  .admin-section { grid-template-columns: 1fr; }
  .material-forms { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { background: #08080a; color: var(--muted); padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .88rem;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Poppins', sans-serif; color: var(--text); }
.footer-brand img { height: 32px; width: 32px; object-fit: contain; border-radius: 6px; }
.footer-links { display: flex; gap: 20px; }
.site-footer a:hover { color: var(--orange); }

/* Responsive */
/* Collapse the nav to a hamburger earlier (more nav items need more room) */
@media (max-width: 1180px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    display: none;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; }
  .main-nav a::after { display: none; }
  .nav-login { border: none; padding: 10px 0; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 900px) {
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero-actions, .hero-meta, .hero-badges { justify-content: center; }
  .hero-sub { max-width: none; }
  .about-grid, .course-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 56px 0; }
}
