/* ==========================================================================
   PORTAL INTERNAL UKM PAGUYUBAN TEATER "Q" UIN SUNAN AMPEL SURABAYA
   Stylesheet Utama (CSS) - Terstruktur & Bebas Duplikasi
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES & THEME BASE
   -------------------------------------------------------------------------- */
:root {
  --biru: #1e3a8a;
  --biru-muda: #3b82f6;
  --putih: #ffffff;
  --merah: #dc2626;
  --hitam: #020617;
  --abu: #e5e7eb;
  --abu-soft: #9ca3af;
  --bg-card: rgba(15, 23, 42, 0.96);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.6);
  --radius-xl: 18px;
  --transition-base: all 0.25s ease;

  /* Global Typography Colors (Dark Mode Default) */
  --text-main: #e5e7eb;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
}

body.light-mode {
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  background: #f8fafc;
  color: #1e293b;
}

/* --------------------------------------------------------------------------
   2. GENERAL RESETS & BODY
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--putih);
  background: url("https://assets.promediateknologi.id/crop/0x0:0x0/750x500/webp/photo/2023/02/18/IG-udinfathoni-FotoJet-1799928470.jpg")
    center / cover fixed no-repeat;
  min-height: 100vh;
}

.overlay {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.75), rgba(2, 6, 23, 0.98));
  backdrop-filter: blur(6px);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

h1, h2, h3, h4 { color: var(--text-main); }
p, li, span, div { color: var(--text-body); }
small, .meta, .location, .stock, .badge-text { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.97), rgba(2, 6, 23, 0.65));
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1 1 auto;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(248, 250, 252, 0.9);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  background: #020617;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.nav-title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nav-title h1 {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: none;
  color: #9ca3af;
}

.nav-title span {
  font-size: 1.1rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1 1 auto;
}

.nav-menu a {
  text-decoration: none;
  color: #cbd5e1;
  position: relative;
  padding-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition-base);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--biru-muda), var(--merah));
  transition: width 0.25s ease;
}

.nav-menu a:hover { color: var(--putih); }
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }

.nav-cta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

/* Nav Toggle & Theme Button */
.btn-theme-mobile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 100;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.95);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 102;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-lines {
  width: 20px;
  height: 14px;
  position: relative;
}

.nav-toggle-lines span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
  transition: var(--transition-base);
}

.nav-toggle-lines span:nth-child(1) { top: 0; }
.nav-toggle-lines span:nth-child(2) { top: 6px; }
.nav-toggle-lines span:nth-child(3) { top: 12px; }

body.nav-open .nav-toggle-lines span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.nav-open .nav-toggle-lines span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle-lines span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   4. BUTTONS & CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--biru-muda), var(--biru));
  color: var(--putih);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.9);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
}

.btn-outline:hover {
  border-color: var(--biru-muda);
  background: rgba(30, 64, 175, 0.9);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
}

.btn-submit-saran {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #ffffff;
  font-size: 0.95rem;
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.45);
  border: none;
  cursor: pointer;
}

.btn-submit-saran i {
  color: #ffffff;
  transition: transform 0.25s ease;
}

.btn-submit-saran:hover {
  background: linear-gradient(135deg, #6d28d9, #4338ca);
  box-shadow: 0 18px 44px rgba(124, 58, 237, 0.6);
  transform: translateY(-1px);
}

.btn-submit-saran:hover i {
  transform: translateY(-2px) translateX(2px);
}

.input-field {
  width: 100%;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.86rem;
}

.input-field::placeholder { color: #9ca3af; }

.search-input {
  width: 100%;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.86rem;
}

.search-input::placeholder { color: #6b7280; }

@media (min-width: 769px) {
  .search-input {
    width: 450px !important;
    max-width: 100%;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }
}

/* --------------------------------------------------------------------------
   5. QUICK MENU GRID (FRAME & ICONS)
   -------------------------------------------------------------------------- */
.quick-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  margin: 1.5rem 0.5rem 2rem 0.5rem;
  padding: 1.75rem 0.75rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.quick-menu-item {
  background: none;
  border: none;
  padding: 0;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quick-menu-item:active .icon-box,
.quick-menu-item:hover .icon-box {
  transform: scale(0.92);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.icon-box i {
  font-size: 1.5rem;
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.quick-menu-item .label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

/* Gradients */
.bg-blue-grad   { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.bg-yellow-grad { background: linear-gradient(135deg, #facc15, #ca8a04); }
.bg-purple-grad { background: linear-gradient(135deg, #c084fc, #9333ea); }
.bg-green-grad  { background: linear-gradient(135deg, #4ade80, #16a34a); }
.bg-red-grad    { background: linear-gradient(135deg, #f87171, #dc2626); }
.bg-cyan-grad   { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.bg-indigo-grad { background: linear-gradient(135deg, #6366f1, #4338ca); }
.bg-slate-grad  { background: linear-gradient(135deg, #64748b, #334155); }
.bg-orange-grad { background: linear-gradient(135deg, #fb923c, #ea580c); }
.bg-pink-grad   { background: linear-gradient(135deg, #ec4899, #be185d); }
.bg-teal-grad   { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.bg-rose-grad   { background: linear-gradient(135deg, #f43f5e, #be123c); }

@media (min-width: 768px) {
  .quick-menu {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin: 1.75rem 0 2rem 0;
  }
  .icon-box {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }
  .icon-box i { font-size: 1.8rem; }
  .quick-menu-item .label { font-size: 0.8rem; }
}

/* --------------------------------------------------------------------------
   6. HERO & BANNER BERANDA
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
}

.hero-main {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.9em;
  color: #e5e7eb;
  opacity: 0.9;
}

.hero-subline {
  font-size: 1.1em;
  font-weight: 800;
  background: linear-gradient(135deg, #bfdbfe, #fee2e2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.95rem;
  max-width: 34rem;
  color: #e5e7eb;
  line-height: 1.5;
}

.hero-subtitle-soft { opacity: 0.9; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.75rem;
  color: #e5e7eb;
  width: fit-content;
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e, #15803d);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
}

.hero-right { position: relative; }

.hero-image-card {
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.9), rgba(2, 6, 23, 0.98));
  border-radius: 22px;
  padding: 0.5rem 0.5rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  animation: floatCard 10s ease-in-out infinite;
}

.hero-image {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.7);
  max-height: 260px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  cursor: pointer;
}

.hero-image-caption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(8px); }
  50% { transform: translateY(-4px); }
}

@media (min-width: 1024px) {
  .page[data-page="beranda"] .hero {
    background: var(--bg-card);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: var(--shadow-soft);
    padding: 1.4rem 1.6rem;
    margin-top: 1rem;
    margin-bottom: 1.8rem;
  }
  .page[data-page="beranda"] .hero-left {
    padding-right: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   7. SECTIONS & GENERAL CARDS
   -------------------------------------------------------------------------- */
.section {
  margin-top: 2.0rem;
  padding: 1.4rem 1.3rem 1.6rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-tag {
  font-size: 0.75rem;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.7);
  color: #bfdbfe;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-counter {
  font-size: 0.78rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  white-space: nowrap;
  opacity: 0.9;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  font-size: 0.86rem;
}

.card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.8);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar,
.login-logo-circle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 9999px;
  overflow: hidden;
  border: 2px solid rgba(59, 130, 246, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  background: #020617;
}

.avatar img,
.login-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-title {
  font-weight: 600;
  font-size: 0.96rem;
}

.card-sub {
  font-size: 0.8rem;
  color: #9ca3af;
}

.card-footer {
  margin-top: 0.25rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: #9ca3af;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   8. MARKETPLACE STYLING
   -------------------------------------------------------------------------- */
[data-page="marketplace"] .grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.8rem;
}

.market-card {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.28);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.market-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.market-card-body {
  padding: 0.6rem;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.market-card-title {
  font-weight: 500;
  line-height: 1.25rem;
  height: 2.5rem;
  overflow: hidden;
}

.market-card-price {
  font-weight: 700;
  color: #ff6a00;
  margin-top: 0.3rem;
  margin-bottom: 0.4rem;
}

.market-card-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

.btn-chat {
  font-size: 0.75rem;
  padding: 0.28rem 0.6rem;
  background: #0ea5e9;
  border-radius: 6px;
  color: white;
  text-decoration: none;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.78rem;
}

.status-active {
  background: rgba(22, 163, 74, 0.18);
  border-color: rgba(22, 163, 74, 0.9);
  color: #bbf7d0;
}

.status-nonactive {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.9);
  color: #e5e7eb;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.78rem;
  gap: 0.25rem;
}

.pill-dot-available,
.pill-dot-unavailable {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}
.pill-dot-available { background: #22c55e; }
.pill-dot-unavailable { background: #ef4444; }

/* --------------------------------------------------------------------------
   9. GALERI & NEWS
   -------------------------------------------------------------------------- */
.gallery-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 0.35rem;
  max-height: 170px;
  object-fit: cover;
  cursor: pointer;
  background: #020617;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.news-card {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.news-image-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #020617;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image { transform: scale(1.03); }

.news-date-badge {
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(248, 250, 252, 0.6);
}

.news-body { padding: 0.8rem 0.85rem 0.85rem; }

.news-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.news-place {
  font-size: 0.78rem;
  color: #bfdbfe;
  margin-bottom: 0.4rem;
}

.news-place span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
}

.news-desc {
  font-size: 0.84rem;
  color: #e5e7eb;
}

/* --------------------------------------------------------------------------
   10. YOUTUBE GRID (TEATER Q TV)
   -------------------------------------------------------------------------- */
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.yt-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.yt-card:hover { transform: translateY(-5px); }

.yt-thumbnail-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.yt-thumbnail-wrapper img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.yt-thumbnail-wrapper:hover img { opacity: 1; }

.yt-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  background: rgba(220, 38, 38, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
  z-index: 2;
  transition: transform 0.2s;
}

.yt-thumbnail-wrapper:hover .yt-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
}

.yt-thumbnail-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10;
}

.yt-info { padding: 1rem; }

.yt-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  line-height: 1.4;
  color: var(--text-main);
}

.yt-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   11. PRESTASI & TIMELINE
   -------------------------------------------------------------------------- */
.prestasi-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.86rem;
}

.prestasi-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148,163,184,0.2);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.prestasi-number {
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #ffffff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.prestasi-text {
  color: #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.5;
}

.timeline-item {
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(55, 65, 81, 0.8);
}

/* --------------------------------------------------------------------------
   12. LIGHTBOX & TOAST
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  max-width: 95vw;
}

.lightbox-inner img {
  background-color: #fff;
  border: 4px solid #ffffff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-width: 88vw;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .lightbox-inner img {
    max-width: 450px;
    max-height: 85vh;
  }
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #dc2626;
  color: #ffffff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 10001;
}

.lightbox-caption {
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 50px;
  padding: 8px 20px;
  margin-top: 15px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.85rem;
  text-align: center;
  max-width: 80vw;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #064e3b;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 99px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255,255,255,0.2);
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  background: #7f1d1d;
  border-color: rgba(255,100,100,0.3);
}

/* --------------------------------------------------------------------------
   13. FOOTER & BOTTOM NAVIGATION
   -------------------------------------------------------------------------- */
footer {
  background-color: #0f172a;
  border-top: 1px solid #1f2937;
  padding: 2rem 0 3.5rem;
  margin-top: 2rem;
  position: relative;
  z-index: 10;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid rgba(51, 65, 85, 0.9);
  display: none;
  justify-content: center;
}

.bottom-nav-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  padding: 0.45rem 0.5rem 0.6rem;
  width: 100%;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  flex: 1;
  font-size: 0.85rem;
  color: #e5e7eb;
  cursor: pointer;
  padding: 0.45rem 0.4rem;
  border-radius: 999px;
  transition: var(--transition-base);
  text-align: center;
}

.bottom-nav-item span.icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--putih);
  background: rgba(30, 64, 175, 0.7);
}

.bottom-nav-item.active span.icon {
  border-color: #f97316;
}

/* --------------------------------------------------------------------------
   14. LIGHT MODE CONSOLIDATED RULES
   -------------------------------------------------------------------------- */
body.light-mode .overlay { background: none; }

body.light-mode [class*="bg-slate"],
body.light-mode .card,
body.light-mode .section,
body.light-mode .hero-image-card,
body.light-mode .news-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

body.light-mode h1, body.light-mode h2, body.light-mode h3, body.light-mode h4,
body.light-mode p, body.light-mode span, body.light-mode li, body.light-mode label {
  color: #334155 !important;
}

body.light-mode .text-white,
body.light-mode .text-slate-100,
body.light-mode .text-slate-200,
body.light-mode .text-slate-300,
body.light-mode .text-slate-400,
body.light-mode .text-slate-500 {
  color: #475569 !important;
}

body.light-mode .badge,
body.light-mode .section-tag,
body.light-mode .news-date-badge {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

body.light-mode header,
body.light-mode footer,
body.light-mode .bottom-nav {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: #e2e8f0 !important;
}

body.light-mode .nav-menu a {
  color: #334155 !important;
  font-weight: 600 !important;
}
body.light-mode .nav-menu a:hover,
body.light-mode .nav-menu a.active {
  color: #2563eb !important;
}

body.light-mode .btn-outline {
  color: #334155 !important;
  border-color: #cbd5e1 !important;
  background: transparent !important;
}
body.light-mode .btn-outline:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

body.light-mode .nav-title h1 { color: #64748b !important; }
body.light-mode .nav-title span { color: #0f172a !important; }

body.light-mode .btn-theme-mobile {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

body.light-mode .input-field,
body.light-mode .search-input {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.light-mode .prestasi-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
body.light-mode .prestasi-text { color: #334155 !important; }

body.light-mode .status-active {
  background-color: #dcfce7 !important;
  color: #166534 !important;
  border-color: #86efac !important;
}

body.light-mode .status-nonactive {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #fca5a5 !important;
}

body.light-mode .pill {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

body.light-mode .news-place span {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

body.light-mode .yt-card { background: #ffffff; border-color: #e2e8f0; }
body.light-mode .yt-title { color: #1e293b !important; }
body.light-mode .yt-desc { color: #64748b !important; }

body.light-mode .toast,
body.light-mode .toast span,
body.light-mode .toast p {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  body {
    background-attachment: scroll;
    font-size: 16px;
  }
  .overlay, header { backdrop-filter: none; }
  .container {
    padding-top: 1.25rem;
    padding-bottom: 6rem;
  }
  .quick-menu {
    margin: 1rem 0.25rem 1.75rem 0.25rem;
  }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .bottom-nav { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    right: 1.25rem;
    top: 62px;
    flex-direction: column;
    gap: 0.6rem;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 0.7rem 0.9rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    z-index: 50;
    min-width: 190px;
  }
  body.nav-open .nav-menu { display: flex; }

  body.light-mode .nav-menu {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
  }
  body.light-mode .nav-menu a {
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9;
  }
  body.light-mode .nav-toggle {
    background: transparent !important;
    border-color: #cbd5e1 !important;
  }
  body.light-mode .nav-toggle-lines span {
    background: #334155 !important;
  }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-right { order: -1; }
}

@media (max-width: 768px) {
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .table-toolbar .search-input { width: 100%; }
}
