/* ================================================================
   MEDIA PEMBELAJARAN SEJARAH - SMA NEGERI 3 OKU
   Main Stylesheet - Premium Design System
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:ital,wght@0,700;0,800;1,600&display=swap');

/* ================================
   CSS VARIABLES / DESIGN TOKENS
================================ */
:root {
  /* Color Palette - Deep Navy & Gold */
  --primary:       #0a2342;
  --primary-light: #1a3a5c;
  --primary-dark:  #061529;
  --accent:        #c9a227;
  --accent-light:  #e8c252;
  --accent-dark:   #9d7d1a;
  --secondary:     #1e6091;
  --secondary-light: #2d88c1;

  --bg-dark:    #070e1a;
  --bg-card:    #0f1e33;
  --bg-surface: #142236;
  --bg-glass:   rgba(255,255,255,0.06);

  --text-primary:   #f0eeea;
  --text-secondary: #b0b8c8;
  --text-muted:     #6b7a94;

  --border:        rgba(201,162,39,0.2);
  --border-light:  rgba(255,255,255,0.08);

  --success: #22c55e;
  --danger:  #ef4444;
  --warning: #f59e0b;

  /* Gradients */
  --grad-primary:   linear-gradient(135deg, #0a2342 0%, #1e6091 100%);
  --grad-accent:    linear-gradient(135deg, #c9a227 0%, #e8c252 100%);
  --grad-hero:      linear-gradient(160deg, #07111e 0%, #0a2342 40%, #1a4a6b 80%, #0a2342 100%);
  --grad-card:      linear-gradient(145deg, #0f1e33 0%, #142236 100%);
  --grad-glass:     linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  --grad-gold-line: linear-gradient(90deg, transparent, #c9a227, transparent);

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 20px rgba(201,162,39,0.2);
  --shadow-blue: 0 0 30px rgba(30,96,145,0.3);

  /* Typography */
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Playfair Display', serif;

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   RESET & BASE
================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }

/* ================================
   SCROLLBAR
================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ================================
   TYPOGRAPHY
================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.section-title span { color: var(--accent); }

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-label::before, .section-label::after {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--accent);
}

/* ================================
   LAYOUT UTILITIES
================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ================================
   NAVBAR
================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 1.5rem;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(7,14,26,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo {
  width: 44px; height: 44px;
  background: var(--grad-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.brand-subtitle {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.brand-owner {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.dropdown-item:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}
.dropdown-item .item-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.navbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.navbar-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ================================
   BUTTONS
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(201,162,39,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201,162,39,0.45);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.6rem 1rem;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }

/* ================================
   HERO SECTION
================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grad-hero);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.15;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(7,14,26,0.95) 40%, rgba(7,14,26,0.6) 100%);
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
  animation: fade-in-up 0.8s ease both;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fade-in-up 0.8s ease 0.1s both;
}
.hero-title .highlight {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  animation: fade-in-up 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fade-in-up 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  animation: fade-in-up 0.8s ease 0.4s both;
}

.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

.hero-visual {
  position: absolute;
  right: 0; top: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

/* ================================
   PROGRAM CARDS
================================ */
.programs-section { background: var(--bg-dark); }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.program-card {
  position: relative;
  background: var(--grad-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: var(--transition-slow);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-slow);
}
.program-card:hover::before { transform: scaleX(1); }
.program-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-gold);
  transform: translateY(-8px);
}

.card-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.card-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition: var(--transition);
}
.card-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-accent);
  opacity: 0;
  transition: var(--transition);
}
.program-card:hover .card-icon::after { opacity: 0.15; }

.icon-1 { background: rgba(201,162,39,0.15); }
.icon-2 { background: rgba(30,96,145,0.2); }
.icon-3 { background: rgba(34,197,94,0.15); }

.card-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.card-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}
.card-link:hover { gap: 10px; }

/* ================================
   FEATURES / WHY SECTION
================================ */
.features-section { background: var(--bg-surface); }

.features-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.feature-card:hover {
  background: rgba(201,162,39,0.05);
  border-color: rgba(201,162,39,0.3);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================
   TIMELINE SECTION
================================ */
.timeline-section { background: var(--bg-dark); }

.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 28px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  flex-shrink: 0;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-gold);
}

.timeline-content {
  background: var(--grad-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  flex: 1;
  transition: var(--transition);
}
.timeline-content:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-gold);
}

.timeline-era {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.timeline-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================
   MATERI TABS
================================ */
.materi-section { background: var(--bg-surface); }

.tabs-nav {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-bottom: 2.5rem;
  overflow-x: auto;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.tab-btn.active {
  background: var(--grad-accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(201,162,39,0.3);
}
.tab-btn:not(.active):hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.materi-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.materi-card {
  background: var(--grad-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.materi-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-gold);
}

.materi-thumb {
  height: 160px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.materi-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(7,14,26,0.5));
}

.materi-body { padding: 1.25rem; }

.materi-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.materi-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.3;
}
.materi-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.materi-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.775rem;
  color: var(--text-muted);
}
.materi-meta span { display: flex; align-items: center; gap: 4px; }

/* ================================
   QUIZ / INTERACTIVE SECTION
================================ */
.quiz-section {
  background: var(--bg-dark);
}

.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3rem;
  max-width: 700px;
  margin: 0 auto;
}

.quiz-header { text-align: center; margin-bottom: 2rem; }
.quiz-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.quiz-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.quiz-desc { font-size: 0.9rem; color: var(--text-secondary); }

.quiz-question {
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent);
}
.question-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.question-text { font-size: 1rem; font-weight: 600; line-height: 1.5; }

.quiz-options { display: flex; flex-direction: column; gap: 0.75rem; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}
.quiz-option:hover {
  border-color: var(--accent);
  background: rgba(201,162,39,0.05);
}
.quiz-option.selected {
  border-color: var(--secondary-light);
  background: rgba(30,96,145,0.15);
}
.quiz-option.correct {
  border-color: var(--success);
  background: rgba(34,197,94,0.1);
}
.quiz-option.wrong {
  border-color: var(--danger);
  background: rgba(239,68,68,0.1);
}

.option-letter {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.quiz-progress-bar {
  height: 4px;
  background: var(--border-light);
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--grad-accent);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ================================
   VIDEO SECTION
================================ */
.video-section { background: var(--bg-surface); }

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

.video-main {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-player {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  cursor: pointer;
}
.video-player iframe {
  width: 100%; height: 100%;
  border: none;
}
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  transition: var(--transition);
}
.video-play-overlay.hidden { opacity: 0; pointer-events: none; }
.play-btn-large {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 30px rgba(201,162,39,0.5);
  transition: var(--transition);
}
.play-btn-large:hover { transform: scale(1.1); }

.video-info { padding: 1.25rem; }
.video-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.video-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.video-meta { font-size: 0.8rem; color: var(--text-muted); }

.video-list { display: flex; flex-direction: column; gap: 0.75rem; }
.video-item {
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  align-items: center;
}
.video-item:hover, .video-item.active {
  border-color: var(--accent);
  background: rgba(201,162,39,0.05);
}
.video-thumb-mini {
  width: 80px; height: 55px;
  border-radius: 8px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.video-item-info { flex: 1; min-width: 0; }
.video-item-title {
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.video-item-meta { font-size: 0.75rem; color: var(--text-muted); }

/* ================================
   TESTIMONIALS — Infinite Marquee
================================ */
.testi-section {
  background: var(--bg-dark);
  overflow: hidden;
  padding-bottom: 5rem;
}

/* Marquee outer wrapper — full viewport width */
.testi-marquee-wrap {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  /* Fade mask on left & right edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* One row of scrolling cards */
.testi-marquee-row {
  width: 100%;
  overflow: hidden;
}

/* The moving track */
.testi-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
}

/* Left scroll animation — row 1 */
.testi-track--left {
  animation: marquee-left 45s linear infinite;
}

/* Right scroll animation — row 2 (opposite direction) */
.testi-track--right {
  animation: marquee-right 55s linear infinite;
}

/* Pause on hover for readability */
.testi-marquee-wrap:hover .testi-track { animation-play-state: paused; }

@keyframes marquee-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* -50% because we duplicated cards */
}

@keyframes marquee-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .testi-track { animation: none; }
}

/* Individual testimonial card */
.testi-card {
  background: var(--grad-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.75rem;
  width: 340px;
  flex-shrink: 0;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  cursor: default;
}
.testi-card:hover,
.testi-card:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
  outline: none;
}

/* Deprecated grid (keep for fallback, hidden) */
.testi-grid { display: none; }

.testi-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testi-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  flex-shrink: 0;
}
.author-name { font-size: 0.875rem; font-weight: 700; }
.author-role { font-size: 0.75rem; color: var(--text-muted); }


/* ================================
   TESTIMONIAL FORM (PUBLIC SUBMISSION)
================================ */
.testi-form-section { background: var(--bg-surface); }

.testi-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

/* Left info column */
.testi-form-info {}
.testi-form-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.testi-form-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
}
.testi-form-benefits li:last-child { border-bottom: none; }

/* Right card */
.testi-form-card {
  background: var(--grad-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.testi-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-accent);
}
.testi-form-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

/* Input fields */
.testi-field-group { margin-bottom: 1.1rem; }
.testi-field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.testi-field-input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}
.testi-field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}
.testi-field-input.testi-field--error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}
.testi-field-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}
.testi-field-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  text-align: right;
}
.testi-field-error {
  display: none;
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 0.3rem;
}
.testi-stars-select { margin-top: 0.5rem; cursor: pointer; }

/* Star picker (CSS-only radio stars) */
.testi-star-picker {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}
.testi-star-picker input.star-radio { display: none; }
.testi-star-picker label {
  font-size: 1.8rem;
  color: var(--border-light);
  cursor: pointer;
  transition: color 0.15s, transform 0.1s;
  line-height: 1;
}
.testi-star-picker input.star-radio:checked ~ label,
.testi-star-picker label:hover,
.testi-star-picker label:hover ~ label {
  color: var(--accent);
}
.testi-star-picker label:hover { transform: scale(1.15); }

/* Alert */
.testi-alert {
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.testi-alert--error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
}
.testi-alert--success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #86efac;
}

.testi-submit-btn { justify-content: center; margin-top: 0.5rem; }

/* Success state */
.testi-success-state {
  text-align: center;
  padding: 2rem 1rem;
}
.testi-success-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: bounce-in 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.testi-success-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.testi-success-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.testi-success-anim { animation: fade-in-up 0.4s ease both; }

@keyframes bounce-in {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
  .testi-form-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 480px) {
  .testi-form-card { padding: 1.5rem; }
}

.cta-section {
  background: var(--bg-surface);
  padding: 5rem 0;
}
.cta-inner {
  background: var(--grad-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(201,162,39,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}
.cta-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
}
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ================================
   FOOTER
================================ */
.footer {
  background: var(--primary-dark);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; }
.footer-logo {
  width: 40px; height: 40px;
  background: var(--grad-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.footer-name { font-size: 0.9rem; font-weight: 700; }
.footer-slogan { font-size: 0.6rem; color: var(--accent); letter-spacing: 0.05em; }

.footer-about {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.social-links { display: flex; gap: 0.5rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--text-secondary);
}
.social-link:hover {
  background: rgba(201,162,39,0.15);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-link::before {
  content: '›';
  color: var(--accent);
  opacity: 0;
  transition: var(--transition);
}
.footer-link:hover {
  color: var(--accent);
  padding-left: 4px;
}
.footer-link:hover::before { opacity: 1; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.contact-icon { color: var(--accent); font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-copy span { color: var(--accent); }

/* ================================
   BACK TO TOP
================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 500;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  color: var(--primary-dark);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-4px); }

/* ================================
   PAGE HEADERS
================================ */
.page-hero {
  padding: 8rem 0 4rem;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(201,162,39,0.08), transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(30,96,145,0.1), transparent 50%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.page-hero-content .section-label { margin-bottom: 1rem; }
.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}
.page-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ================================
   BREADCRUMB
================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--text-muted); opacity: 0.5; }

/* ================================
   CONTENT SECTIONS - DETAIL PAGES
================================ */
.content-section { background: var(--bg-dark); }

.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

.content-main { min-width: 0; }

.content-sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-title {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.toc-list { display: flex; flex-direction: column; gap: 0.4rem; }
.toc-item {
  font-size: 0.825rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  border-left: 2px solid transparent;
}
.toc-item:hover, .toc-item.active {
  color: var(--accent);
  background: rgba(201,162,39,0.05);
  border-left-color: var(--accent);
}

.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.content-block h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.content-block p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-block h3 {
  font-size: 1.15rem;
  color: var(--accent);
  margin: 1.5rem 0 0.75rem;
}

.content-block ul, .content-block ol {
  margin: 0.75rem 0 1rem 1.5rem;
}
.content-block li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.content-block ul { list-style: disc; }
.content-block ol { list-style: decimal; }

.info-box {
  background: rgba(201,162,39,0.08);
  border: 1px solid rgba(201,162,39,0.25);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.info-box p { margin: 0; color: var(--text-secondary) !important; }

/* ================================
   ACCORDION
================================ */
.accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.accordion-item:hover { border-color: rgba(201,162,39,0.3); }
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.accordion-header:hover { color: var(--accent); }
.accordion-icon {
  font-size: 1.2rem;
  transition: var(--transition);
  color: var(--accent);
  flex-shrink: 0;
}
.accordion-item.open .accordion-icon { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-item.open .accordion-body { max-height: 500px; }
.accordion-content {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

/* ================================
   BADGES
================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.badge-gold { background: rgba(201,162,39,0.15); color: var(--accent); border: 1px solid rgba(201,162,39,0.3); }
.badge-blue { background: rgba(30,96,145,0.2); color: var(--secondary-light); border: 1px solid rgba(30,96,145,0.3); }
.badge-green { background: rgba(34,197,94,0.15); color: var(--success); border: 1px solid rgba(34,197,94,0.25); }

/* ================================
   LOADING STATE
================================ */
.loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--grad-accent);
  z-index: 9999;
  width: 0;
  animation: loading-bar 1.5s ease forwards;
}
@keyframes loading-bar {
  0% { width: 0; }
  50% { width: 70%; }
  100% { width: 100%; opacity: 0; }
}

/* ================================
   ANIMATIONS
================================ */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   RESPONSIVE - TABLET
================================ */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .features-header { grid-template-columns: 1fr; gap: 2rem; }
  .video-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .materi-cards { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================
   RESPONSIVE - MOBILE
================================ */
@media (max-width: 768px) {
  .navbar-menu { display: none; position: fixed; inset: 0; top: 72px; background: rgba(7,14,26,0.98); backdrop-filter: blur(20px); flex-direction: column; padding: 2rem; gap: 0.5rem; z-index: 999; overflow-y: auto; }
  .navbar-menu.open { display: flex; }
  .nav-link { width: 100%; padding: 0.85rem 1rem; font-size: 1rem; }
  .nav-dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; border: none; background: var(--bg-glass); margin-top: 0.5rem; }
  .navbar-toggle { display: flex; }
  .navbar-actions .btn { display: none; }

  .hero-stats { gap: 1.5rem; }
  .hero-visual { display: none; }

  .programs-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .materi-cards { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cta-inner { padding: 2.5rem 1.5rem; }
  .hero-actions { flex-direction: column; }
  .tabs-nav { gap: 0.25rem; }

  .section { padding: 3.5rem 0; }
  .section-lg { padding: 5rem 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .stat-number { font-size: 1.5rem; }
  /* Narrower cards on very small screens */
  .testi-card { width: 280px; }
}

/* Tablet: slightly smaller cards */
@media (max-width: 768px) {
  .testi-card { width: 300px; }
  .testi-marquee-wrap {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
    mask-image:         linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  }
}

/* ================================
   PRINT
================================ */
@media print {
  .navbar, .footer, .back-to-top, .hero-particles { display: none; }
  body { background: white; color: black; }
}
