/* ==========================================================================
   NET English Literature — Master Stylesheet
   White / Light Theme  ·  Mobile-First  ·  Orange · Yellow · Green · Black
   ========================================================================== */

:root {
  /* --- Backgrounds --- */
  --bg-main:    #ffffff;
  --bg-surface: #f8f9fa;
  --bg-card:    #ffffff;
  --bg-accent:  #fff7ed;   /* light orange tint */

  /* --- Borders --- */
  --border-subtle:    rgba(0, 0, 0, 0.08);
  --border-medium:    rgba(0, 0, 0, 0.15);
  --border-highlight: rgba(249, 115, 22, 0.4);

  /* --- Text --- */
  --text-primary:   #111111;
  --text-secondary: #555555;
  --text-muted:     #888888;
  --text-inverse:   #ffffff;

  /* --- Brand Palette --- */
  --orange:       #f97316;
  --orange-dark:  #ea580c;
  --orange-light: #fdba74;
  --yellow:       #eab308;
  --yellow-dark:  #ca8a04;
  --yellow-light: #fde68a;
  --green:        #16a34a;
  --green-dark:   #15803d;
  --green-light:  #bbf7d0;
  --black:        #111111;
  --white:        #ffffff;

  /* --- Legacy aliases (kept for internal use) --- */
  --accent-cyan:         var(--orange);
  --accent-cyan-hover:   var(--orange-dark);
  --accent-purple:       var(--yellow-dark);
  --accent-purple-hover: var(--yellow);
  --accent-emerald:      var(--green);
  --accent-amber:        var(--yellow);

  /* --- Typography --- */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Georgia", "Cambria", "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* --- Shape --- */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  /* --- Shadows (light-mode) --- */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.12);

  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -----------------------------------------------------------------------
   Reset & Base
   ----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--orange-dark); }

/* -----------------------------------------------------------------------
   Layout
   ----------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* -----------------------------------------------------------------------
   Navigation — sticky white bar with orange accents
   ----------------------------------------------------------------------- */
.navbar {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(249,115,22,0.10);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--black);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--orange), var(--yellow-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(249,115,22,0.35);
}

.brand-title span { color: var(--orange); }

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* Auth strip (desktop) */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Hamburger button (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--bg-surface); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-bottom: 2px solid var(--orange);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  padding: 0.5rem 0 1rem;
}
.mobile-menu.open { display: flex; }

.mobile-menu a, .mobile-menu button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.mobile-menu a:hover, .mobile-menu button:hover {
  background: var(--bg-accent);
  color: var(--orange);
  border-left-color: var(--orange);
}
.mobile-menu .mobile-sep {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.5rem 1rem;
}

/* -----------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;   /* touch-friendly */
}

/* Primary — orange */
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  border-color: var(--orange-dark);
  box-shadow: 0 4px 14px rgba(249,115,22,0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--orange-dark) 0%, #c2410c 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.40);
}

/* Secondary — outlined orange */
.btn-secondary {
  background: var(--bg-accent);
  border-color: var(--orange);
  color: var(--orange-dark);
}
.btn-secondary:hover {
  background: var(--orange);
  color: #fff;
}

/* Outline — subtle border */
.btn-outline {
  background: transparent;
  border-color: var(--border-medium);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--bg-accent);
}

/* Green CTA */
.btn-green {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  border-color: var(--green-dark);
  box-shadow: 0 4px 14px rgba(22,163,74,0.25);
}
.btn-green:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22,163,74,0.35);
  color: #fff;
}

/* Pro — yellow-to-orange gradient */
.btn-pro {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
  color: #111;
  border-color: var(--yellow-dark);
  box-shadow: 0 4px 14px rgba(234,179,8,0.30);
}
.btn-pro:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(234,179,8,0.45);
  color: #111;
}

/* YouTube — keep red brand */
.btn-youtube {
  background: linear-gradient(135deg, #ff0000 0%, #d90429 100%);
  color: #fff !important;
  font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 22px rgba(255,0,0,0.45), 0 0 0 1px rgba(255,0,0,0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  cursor: pointer;
  min-height: 44px;
}
.btn-youtube:hover {
  background: linear-gradient(135deg, #ff1a1a 0%, #e60026 100%);
  color: #fff !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 35px rgba(255,0,0,0.70), 0 0 22px rgba(255,0,0,0.40);
}
.btn-youtube-lg {
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

/* Nav YouTube pill */
.nav-youtube-btn {
  background: rgba(255,0,0,0.08);
  color: #cc0000 !important;
  border: 1.5px solid rgba(255,0,0,0.35);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 36px;
}
.nav-youtube-btn:hover {
  background: #ff0000;
  color: #fff !important;
  border-color: #ff0000;
  box-shadow: 0 4px 18px rgba(255,0,0,0.50);
}

/* Pulse dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff0000;
  display: inline-block;
  box-shadow: 0 0 6px #ff0000;
  animation: pulseRed 1.8s infinite;
  flex-shrink: 0;
}
@keyframes pulseRed {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255,0,0,0.7); }
  70%  { transform: scale(1.2);  box-shadow: 0 0 0 7px rgba(255,0,0,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255,0,0,0); }
}

/* Sizes */
.btn-sm  { padding: 0.4rem 0.85rem; font-size: 0.82rem; min-height: 36px; border-radius: var(--radius-sm); }
.btn-lg  { padding: 0.8rem 1.75rem; font-size: 1.05rem; }

/* -----------------------------------------------------------------------
   Badges
   ----------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-free   { background: #f3f4f6; color: #555; border: 1px solid #d1d5db; }
.badge-normal { background: rgba(249,115,22,0.12); color: var(--orange-dark); border: 1px solid rgba(249,115,22,0.35); }
.badge-pro    { background: rgba(234,179,8,0.15);  color: var(--yellow-dark); border: 1px solid rgba(234,179,8,0.40); }
.badge-active { background: rgba(22,163,74,0.12);  color: var(--green-dark);  border: 1px solid rgba(22,163,74,0.35); }

/* -----------------------------------------------------------------------
   Flash Messages
   ----------------------------------------------------------------------- */
.messages-container {
  width: 100%;
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 0 1rem;
}
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
}
.alert-success { background: #f0fdf4; border-color: #86efac; color: #15803d; }
.alert-warning { background: #fefce8; border-color: #fde047; color: #92400e; }
.alert-error   { background: #fff1f2; border-color: #fca5a5; color: #dc2626; }
.alert-info    { background: #fff7ed; border-color: var(--orange-light); color: var(--orange-dark); }

/* -----------------------------------------------------------------------
   Forms
   ----------------------------------------------------------------------- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-md);
}
@media (min-width: 600px) {
  .form-card { padding: 2.5rem; }
}

.form-group  { margin-bottom: 1.25rem; }
.form-label  { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.4rem; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}

/* -----------------------------------------------------------------------
   Grid & Cards
   ----------------------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--orange-light);
  box-shadow: var(--shadow-md);
}

/* -----------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------- */
.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  position: relative;
  background: linear-gradient(160deg, #fff7ed 0%, #ffffff 55%, #f0fdf4 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(249,115,22,0.10);
  border: 1px solid rgba(249,115,22,0.30);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--orange-dark);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  color: var(--black);
}

.text-gradient {
  background: linear-gradient(135deg, var(--orange) 0%, var(--yellow-dark) 50%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* -----------------------------------------------------------------------
   YouTube Spotlight (light version)
   ----------------------------------------------------------------------- */
.youtube-spotlight {
  background: linear-gradient(135deg, #fff1f1 0%, #ffffff 50%, #fff1f1 100%);
  border: 2px solid rgba(255,0,0,0.20);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 8px 30px rgba(255,0,0,0.08);
  position: relative;
  overflow: hidden;
}
.youtube-spotlight::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255,0,0,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.youtube-spotlight-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.youtube-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255,0,0,0.10);
  border: 1px solid rgba(255,0,0,0.30);
  color: #cc0000;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

/* -----------------------------------------------------------------------
   Progress Bars
   ----------------------------------------------------------------------- */
.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0.6rem 0;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* -----------------------------------------------------------------------
   Syllabus Accordion
   ----------------------------------------------------------------------- */
.syllabus-unit {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.syllabus-unit-header {
  padding: 1.1rem 1.25rem;
  background: #fffbf5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: background var(--transition);
}
.syllabus-unit-header:hover { background: #fff7ed; }

.syllabus-topic {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.syllabus-topic:last-child { border-bottom: none; }

.lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border-subtle);
  gap: 0.5rem;
}
.lesson-row:last-child { border-bottom: none; }

/* -----------------------------------------------------------------------
   Video Player
   ----------------------------------------------------------------------- */
.video-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.video-responsive iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* -----------------------------------------------------------------------
   Watermark Overlay
   ----------------------------------------------------------------------- */
.watermark-container { position: relative; user-select: none; -webkit-user-select: none; }
.watermark-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 10;
  opacity: 0.10;
  overflow: hidden;
}

/* -----------------------------------------------------------------------
   Mock Test
   ----------------------------------------------------------------------- */
.test-header {
  background: var(--bg-card);
  border-bottom: 2px solid var(--orange-light);
  padding: 1rem 0;
  position: sticky;
  top: 64px;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}
.timer-badge {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--orange-dark);
  background: rgba(249,115,22,0.10);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(249,115,22,0.30);
}

/* -----------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------- */
.footer {
  margin-top: auto;
  background: #111111;
  border-top: 3px solid var(--orange);
  padding: 3rem 0 2rem;
  color: #aaaaaa;
}

.footer .brand { color: #ffffff; }
.footer .brand-title span { color: var(--orange); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange-light);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: #999999; font-size: 0.9rem; }
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #666666;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* -----------------------------------------------------------------------
   Utility helpers
   ----------------------------------------------------------------------- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-green  { color: var(--green); }
.text-yellow { color: var(--yellow-dark); }
.bg-orange-soft { background: var(--bg-accent); }

/* Orange section divider */
.section-divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  border-radius: 2px;
  margin: 0.75rem auto 1.5rem;
}

/* Feature chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* -----------------------------------------------------------------------
   RESPONSIVE — Mobile First
   Breakpoints: 375 (default), 600, 768, 1024, 1200
   ----------------------------------------------------------------------- */

/* Mobile base overrides (≤ 599px) */
@media (max-width: 599px) {
  .container, .container-narrow { padding: 0 0.85rem; }

  /* Navbar */
  .nav-links { display: none; }
  .nav-auth   { display: none; }
  .hamburger  { display: flex; }

  /* Hero */
  .hero { padding: 2.5rem 0 2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 340px; justify-content: center; }

  /* Grids → single column */
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 { grid-template-columns: 1fr; }

  /* YouTube spotlight */
  .youtube-spotlight { padding: 1.75rem 1.25rem; }
  .youtube-spotlight-inner { flex-direction: column; gap: 1.5rem; }
  .youtube-spotlight-inner > div:last-child { width: 100%; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Small tablets (600–767px) */
@media (min-width: 600px) and (max-width: 767px) {
  .grid-cols-3,
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}

/* Tablet (768–1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-cols-4  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}

/* Desktop (≥ 768px) — show real nav, hide hamburger */
@media (min-width: 768px) {
  .hamburger   { display: none; }
  .nav-links   { display: flex; }
  .nav-auth    { display: flex; }
  .mobile-menu { display: none !important; }
  .container, .container-narrow { padding: 0 1.5rem; }
}

/* Large screens */
@media (min-width: 1200px) {
  .grid { gap: 1.75rem; }
}
