/* ============================================================
   NAVA KARNATAKA TV — style.css
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --navy: #0d2144;
  --navy2: #1a3a6e;
  --saffron: #FF9933;
  --saffron2: #e07a00;
  --white: #ffffff;
  --light: #f4f6fb;
  --red: #dc2626;
  --green: #16a34a;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
}

/* ===== RESET ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--light);
  color: var(--text);
  min-height: 100vh;
}

/* ============================================================
   SCROLLING TICKER
   ============================================================ */
.ticker-wrap {
  width: 100%;
  background: var(--saffron);
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 200;
  display: flex;
  align-items: stretch;
}

/* "LIVE" badge on left */
.ticker-wrap::before {
  content: '📢 LIVE';
  background: var(--navy);
  color: white;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
}

/* scrolling track */
.ticker-content {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  padding: 9px 0;
}
.ticker-content:hover { animation-play-state: paused; }

/* each news item */
.ticker-item {
  font-size: 13px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
  padding: 0 0 0 48px;
  position: relative;
}
/* vertical divider between items */
.ticker-item::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  height: 14px;
  width: 2px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
}
.ticker-item:first-child::before { display: none; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Img Source Tabs (slider modal) ── */
.img-src-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.img-src-tab {
  flex: 1;
  padding: 9px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: white;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.img-src-tab.active {
  border-color: var(--saffron);
  background: #fff8f0;
  color: var(--saffron);
}
.img-src-tab:hover { border-color: var(--saffron); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: white;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  cursor: pointer;
}
.nav-brand img {
  width: 100px;
  height: 50%;
  border-radius: 8px;
  object-fit: cover;
  background: var(--saffron);
}
.nav-brand-fallback {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--saffron));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.brand-info h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: 1.5px;
}
.brand-info span {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 18px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  color: var(--text);
  border: none;
  background: none;
  border-radius: 6px;
  transition: color 0.2s;
}
.nav-link:hover  { color: var(--saffron); }
.nav-link.active { color: var(--saffron); }
.nav-translate {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: white;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  transition: border-color 0.2s;
}
.nav-translate:hover { border-color: var(--navy); }
.nav-dashboard {
  padding: 11px 22px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.nav-dashboard:hover { background: var(--navy2); }
.nav-logout {
  width: 38px;
  height: 38px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 18px;
  transition: all 0.2s;
}
.nav-logout:hover { border-color: var(--red); color: var(--red); }

/* ============================================================
   PAGE ROUTING
   ============================================================ */
.pub-page        { display: none; }
.pub-page.active { display: block; }
.adm-page        { display: none; }
.adm-page.active { display: block; }

/* Login & Register — display controlled by JS via style.display (set to flex) */

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, var(--navy) 0%, #163060 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1591115765373-5207764f72e7?w=1600&q=80') center/cover no-repeat;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(13,33,68,0.97) 0%,
    rgba(13,33,68,0.5) 50%,
    rgba(13,33,68,0.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 64px 72px;
  max-width: 760px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--saffron);
  color: white;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 84px;
  color: white;
  letter-spacing: 3px;
  line-height: 0.95;
  margin-bottom: 20px;
}
.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-btns { display: flex; gap: 16px; }
.btn-hero-primary {
  padding: 16px 36px;
  background: var(--saffron);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-hero-primary:hover { background: var(--saffron2); transform: translateY(-2px); }
.btn-hero-secondary {
  padding: 16px 36px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-hero-secondary:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* ============================================================
   HOME SECTIONS
   ============================================================ */
.home-section { padding: 64px; }
.home-section.white { background: white; }
.sec-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.sec-title-row h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  color: var(--navy);
  letter-spacing: 2px;
}
.sec-title-row .see-all {
  color: var(--saffron);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}
.sec-title-row .see-all:hover { text-decoration: underline; }
.accent-line {
  width: 48px;
  height: 4px;
  background: var(--saffron);
  border-radius: 2px;
  margin-bottom: 8px;
}

/* ============================================================
   VIDEO CARDS
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.2s;
}
.video-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,0.14); }
.vid-thumb {
  position: relative;
  height: 190px;
  background: linear-gradient(135deg, var(--navy) 0%, #163060 100%);
  overflow: hidden;
}
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vid-cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--saffron);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.vid-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.video-card:hover .vid-play { background: var(--saffron); border-color: var(--saffron); }
.vid-play::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent rgba(255,255,255,0.85);
  margin-left: 4px;
}
.video-card:hover .vid-play::after {
  border-color: transparent transparent transparent white;
}
.vid-info { padding: 16px 18px 20px; }
.vid-info h3 {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
}
.vid-meta { display: flex; justify-content: space-between; align-items: center; }
.vid-meta .cat   { font-size: 12px; color: var(--saffron); font-weight: 700; }
.vid-meta .views { font-size: 12px; color: var(--muted); }

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.news-card {
  background: white;
  border-radius: 12px;
  padding: 24px 24px 20px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
  border-left: 4px solid var(--saffron);
  cursor: pointer;
  transition: all 0.2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.13); }
.news-cat-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--saffron);
  margin-bottom: 10px;
}
.news-card h3 {
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 10px;
}
.news-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.news-card-footer { display: flex; justify-content: space-between; align-items: center; }
.read-more  { color: var(--saffron); font-weight: 700; font-size: 13px; }
.news-date  { font-size: 12px; color: var(--muted); }

/* ============================================================
   PAGE BANNERS (Videos, News, About headers)
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #163060 100%);
  padding: 56px 64px;
}
.page-banner h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 60px;
  color: white;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.page-banner p { font-size: 17px; color: rgba(255,255,255,0.7); }

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-bar {
  padding: 28px 64px 0;
  background: var(--light);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}
.filter-icon { color: var(--muted); margin-right: 4px; }
.filter-tab {
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  background: white;
  color: var(--text);
  transition: all 0.2s;
  margin-bottom: -2px;
}
.filter-tab.active          { background: var(--saffron); border-color: var(--saffron); color: white; }
.filter-tab:hover:not(.active) { border-color: var(--navy); color: var(--navy); }

/* Gallery content area */
.gallery-content {
  padding: 40px 64px 64px;
  background: var(--light);
  min-height: 400px;
}
.no-content-msg {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  font-size: 16px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-body {
  padding: 56px 64px;
  max-width: 900px;
  margin: 0 auto;
}
.about-section { margin-bottom: 48px; }
.about-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  color: var(--navy);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--saffron);
}
.about-section p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 14px;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.pillar-card {
  background: white;
  border-radius: 12px;
  padding: 22px;
  border-left: 4px solid var(--saffron);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.pillar-card .p-icon { font-size: 28px; margin-bottom: 10px; }
.pillar-card h3 { font-weight: 700; font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.pillar-card p  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ============================================================
   FOOTER
   ============================================================ */
.pub-footer {
  background: #0a1628;
  color: white;
  padding: 44px 64px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}
.footer-col h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1.5px;
  color: var(--saffron);
  margin-bottom: 14px;
}
.footer-col p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 7px;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}
.footer-col a:hover { color: var(--saffron); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
#root-login {
  display: none;
  flex-direction: row;
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#root-login .login-left {
  flex: 1;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a1628 0%, #0d2144 60%, #1a3a6e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
#root-login .login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.login-hero-icon {
  width: 96px;
  height: 96px;
  background: var(--saffron);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(255,153,51,0.4);
  position: relative;
  z-index: 1;
}
.login-left h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  color: white;
  letter-spacing: 3px;
  text-align: center;
  line-height: 1.0;
  position: relative;
  z-index: 1;
}
.login-left .l-tag {
  color: var(--saffron);
  font-size: 18px;
  font-weight: 700;
  margin-top: 10px;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}
.login-left .l-desc {
  color: rgba(255,255,255,0.65);
  text-align: center;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.75;
  max-width: 340px;
  position: relative;
  z-index: 1;
}

.login-right {
  width: 480px;
  flex-shrink: 0;
  min-height: 100vh;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 52px;
  overflow-y: auto;
}
.login-form-wrap {
  width: 100%;
  max-width: 380px;
}
.login-form-wrap h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  color: var(--navy);
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.login-form-wrap .sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 36px;
}

/* ============================================================
   REGISTER PAGE
   ============================================================ */
#root-register {
  display: none;
  min-height: 100vh;
  width: 100%;
  background: var(--light);
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.register-box {
  width: 100%;
  max-width: 460px;
  background: white;
  border-radius: 20px;
  padding: 48px 44px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
}
.register-box h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--navy);
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.register-box .sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

/* ============================================================
   SHARED FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Barlow', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }
.btn-primary-full {
  width: 100%;
  padding: 16px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary-full:hover { background: var(--navy2); }
.form-link {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
}
.form-link a {
  color: var(--saffron);
  font-weight: 700;
  cursor: pointer;
}
.form-link a:hover { text-decoration: underline; }
.err-box {
  color: var(--red);
  font-size: 13px;
  margin: 10px 0;
  display: none;
  padding: 10px 14px;
  background: #fee2e2;
  border-radius: 8px;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-wrap { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0a1628 0%, #0d2144 100%);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 200;
}
.sb-brand {
  padding: 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sb-logo {
  /* width: 42px;  */
  height: 42px;
  background: var(--saffron);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.sb-brand-text h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  letter-spacing: 1px;
}
.sb-brand-text span { font-size: 11px; color: rgba(255,255,255,0.45); }
.sb-user {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sb-user .name  { font-weight: 700; font-size: 14px; }
.sb-user .email { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; }
.sb-nav { flex: 1; padding: 14px 10px; }
.sb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 3px;
  transition: all 0.2s;
}
.sb-item:hover  { background: rgba(255,255,255,0.08); color: white; }
.sb-item.active { background: var(--saffron); color: white; }
.sb-item svg    { width: 18px; height: 18px; flex-shrink: 0; }
.sb-footer {
  padding: 14px 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.btn-view-site {
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 0.2s;
}
.btn-view-site:hover { background: rgba(255,255,255,0.18); }
.btn-logout-sb {
  width: 100%;
  padding: 12px;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-logout-sb:hover { background: #b91c1c; }

/* Admin Main */
.admin-main {
  margin-left: 260px;
  flex: 1;
  background: var(--light);
  min-height: 100vh;
}
.admin-content { padding: 36px 40px; }
.adm-section        { display: none; }
.adm-section.active { display: block; }
.adm-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.adm-page-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--navy);
  letter-spacing: 2px;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat-box {
  background: white;
  border-radius: 14px;
  padding: 22px 20px;
  border-left: 4px solid var(--saffron);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-box .slabel { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-box .sval   { font-family: 'Bebas Neue', sans-serif; font-size: 42px; color: var(--navy); letter-spacing: 1px; }
.stat-box svg     { width: 38px; height: 38px; color: var(--saffron); }

/* Data Table */
.tbl-wrap {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}
.tbl-head {
  padding: 18px 24px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}
table.dtbl { width: 100%; border-collapse: collapse; }
table.dtbl th {
  padding: 13px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
  background: var(--light);
  text-transform: uppercase;
}
table.dtbl td {
  padding: 13px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.dtbl tr:last-child td { border-bottom: none; }
table.dtbl tr:hover td      { background: #fafbff; }

/* Badges */
.badge        { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-orange { background: #fff7ed; color: #c2410c; }

/* Action buttons */
.acts     { display: flex; gap: 8px; }
.btn-edit { padding: 7px 14px; background: var(--light); color: var(--navy); border: 1.5px solid var(--border); border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s; }
.btn-edit:hover { border-color: var(--navy); background: white; }
.btn-del  { padding: 7px 14px; background: #fee2e2; color: var(--red); border: none; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s; }
.btn-del:hover  { background: var(--red); color: white; }
.empty-row { padding: 48px 24px; text-align: center; color: var(--muted); font-size: 15px; }

/* Shared Action Buttons */
.btn-saffron {
  padding: 12px 22px;
  background: var(--saffron);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  letter-spacing: 1.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.btn-saffron:hover { background: var(--saffron2); }
.btn-cancel {
  padding: 12px 22px;
  background: white;
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cancel:hover { border-color: var(--navy); }

/* Dashboard 2-col layout */
.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-bg.open { display: flex; }
.modal-box {
  background: white;
  border-radius: 16px;
  width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-hdr {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-hdr h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: var(--navy);
  letter-spacing: 1px;
}
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); }
.modal-bdy   { padding: 28px; }
.modal-ftr   { padding: 18px 28px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: flex-end; }

/* Video Watch Modal */
.vwatch-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.vwatch-bg.open { display: flex; }
.vwatch-inner {
  background: var(--navy);
  border-radius: 16px;
  width: 820px;
  max-width: 96vw;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.vwatch-hdr {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.vwatch-hdr h3     { font-weight: 700; font-size: 16px; color: white; }
.vwatch-close      { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 22px; cursor: pointer; }
.vwatch-embed {
  background: #000;
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  overflow: hidden;
}
.vwatch-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Click-to-play thumbnail */
.yt-thumb-play {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.yt-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.yt-thumb-play:hover .yt-thumb-img { opacity: 0.95; }

/* YouTube play button */
.yt-play-btn {
  position: relative;
  z-index: 2;
  transition: transform 0.15s;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.yt-thumb-play:hover .yt-play-btn { transform: scale(1.08); }
.yt-play-bg   { fill: #ff0000; opacity: 0.92; }
.yt-play-arrow { fill: white; }

/* "Open in YouTube" small link at bottom of thumbnail */
.yt-open-link {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 3;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.5);
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  transition: color 0.2s, background 0.2s;
}
.yt-open-link:hover { color: white; background: rgba(255,0,0,0.7); }

/* No-embed fallback */
.yt-no-embed {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,0.6);
  font-size: 15px;
}
.vwatch-desc       { padding: 14px 24px 22px; }
.vwatch-desc p     { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* News Read Modal */
.nread-inner {
  background: white;
  border-radius: 16px;
  width: 680px;
  max-width: 96vw;
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.nread-cat   { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--saffron); margin-bottom: 10px; }
.nread-title { font-family: 'Bebas Neue', sans-serif; font-size: 40px; color: var(--navy); letter-spacing: 1.5px; line-height: 1.05; margin-bottom: 16px; }
.nread-body  { font-size: 15px; color: var(--text); line-height: 1.85; white-space: pre-wrap; }
.nread-close { margin-top: 28px; padding: 13px 30px; background: var(--navy); color: white; border: none; border-radius: 8px; font-weight: 700; font-size: 15px; cursor: pointer; }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--navy);
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.ok   { border-left: 4px solid var(--green); }
.toast.err  { border-left: 4px solid var(--red); }

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  /* Admin */
  .stats-row   { grid-template-columns: repeat(2, 1fr); }
  .dash-row    { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Login */
  .login-right { width: 420px; padding: 48px 36px; }
  .login-left h1 { font-size: 44px; }

  /* Navbar */
  .nav-links { gap: 2px; }
  .nav-link  { padding: 8px 12px; font-size: 13px; }
}

/* ============================================================
   RESPONSIVE — MOBILE LANDSCAPE / SMALL TABLET (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* ── LOGIN ── */
  #root-login {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  #root-login .login-left {
    min-height: auto;
    padding: 40px 24px;
    flex: none;
  }
  .login-left h1 { font-size: 40px; }
  .login-left .l-desc { font-size: 14px; margin-top: 14px; }
  .login-hero-icon { width: 72px; height: 72px; font-size: 34px; margin-bottom: 20px; }
  .login-right {
    width: 100%;
    min-height: auto;
    flex: 1;
    padding: 40px 28px;
    align-items: flex-start;
  }
  .login-form-wrap { max-width: 100%; }
  .login-form-wrap h2 { font-size: 32px; }

  /* ── REGISTER ── */
  #root-register {
    padding: 40px 20px;
    align-items: flex-start;
    justify-content: center;
  }
  .register-box {
    width: 100%;
    max-width: 480px;
    padding: 36px 28px;
    margin: 0 auto;
  }

  /* ── NAVBAR ── */
  .navbar          { padding: 0 16px; height: 60px; }
  .nav-translate   { display: none; }
  .nav-link        { padding: 7px 10px; font-size: 12px; }
  .nav-dashboard   { padding: 9px 14px; font-size: 12px; margin-left: 6px; }
  .nav-logout      { width: 34px; height: 34px; margin-left: 6px; }
  .brand-info h2   { font-size: 16px; }
  .brand-info span { display: none; }
  .nav-brand-fallback { width: 40px; height: 40px; font-size: 20px; }

  /* ── HERO ── */
  .hero            { min-height: 480px; }
  .hero-content    { padding: 0 24px 48px; }
  .hero-content h1 { font-size: 52px; }
  .hero-content p  { font-size: 16px; }
  .hero-btns       { flex-direction: column; gap: 12px; }
  .btn-hero-primary,
  .btn-hero-secondary { width: 100%; text-align: center; padding: 14px 24px; font-size: 18px; }

  /* ── HOME SECTIONS ── */
  .home-section    { padding: 40px 20px; }

  /* ── PAGE BANNERS ── */
  .page-banner     { padding: 36px 20px; }
  .page-banner h1  { font-size: 40px; }

  /* ── FILTER BAR ── */
  .filter-bar      { padding: 16px 20px 0; gap: 8px; overflow-x: auto; flex-wrap: nowrap; }
  .filter-tab      { white-space: nowrap; flex-shrink: 0; padding: 8px 14px; font-size: 12px; }

  /* ── GALLERY ── */
  .gallery-content { padding: 24px 20px 48px; }

  /* ── GRIDS ── */
  .video-grid      { grid-template-columns: 1fr; }
  .news-grid       { grid-template-columns: 1fr; }

  /* ── ABOUT ── */
  .about-body      { padding: 36px 20px; }
  .pillars-grid    { grid-template-columns: 1fr; }

  /* ── FOOTER ── */
  .pub-footer      { padding: 36px 20px 20px; }
  .footer-grid     { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom   { flex-direction: column; gap: 8px; text-align: center; }

  /* ── ADMIN SIDEBAR ── */
  .admin-sidebar   { width: 200px; }
  .admin-main      { margin-left: 200px; }
  .admin-content   { padding: 20px 16px; }
  .stats-row       { grid-template-columns: 1fr 1fr; }
  .adm-page-header h2 { font-size: 28px; }

  /* ── MODALS ── */
  .modal-box       { width: 95vw; }
  .nread-inner     { padding: 28px 20px; }
  .nread-title     { font-size: 30px; }
  .vwatch-inner    { width: 98vw; }
}

/* ============================================================
   RESPONSIVE — MOBILE PORTRAIT (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  /* ── LOGIN ── */
  .login-left h1   { font-size: 34px; }
  .login-left .l-tag { font-size: 15px; }
  .login-right     { padding: 32px 20px; }
  .login-form-wrap h2 { font-size: 28px; }

  /* ── REGISTER ── */
  .register-box    { padding: 28px 20px; }

  /* ── HERO ── */
  .hero            { min-height: 420px; }
  .hero-content h1 { font-size: 40px; }
  .hero-badge      { font-size: 10px; letter-spacing: 1px; }

  /* ── NAVBAR ── */
  .nav-link        { padding: 6px 8px; font-size: 11px; }
  .nav-dashboard   { padding: 8px 10px; font-size: 11px; }

  /* ── ADMIN ── */
  .admin-sidebar   { width: 56px; overflow: hidden; }
  .admin-main      { margin-left: 56px; }
  .sb-brand-text,
  .sb-user,
  .sb-item span:not(svg),
  .btn-view-site   { display: none; }
  .sb-item         { justify-content: center; padding: 14px; }
  .btn-logout-sb   { padding: 12px; font-size: 0; }
  .btn-logout-sb svg { display: block; }
  .stats-row       { grid-template-columns: 1fr; }
  .dash-row        { grid-template-columns: 1fr; }

  /* ── SECTION TITLES ── */
  .sec-title-row h2 { font-size: 30px; }
  .adm-page-header  { flex-direction: column; align-items: flex-start; gap: 12px; }
}


/* ============================================================
   NAV LOGO — actual image
   ============================================================ */
.nav-logo {
  width: 54px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}

/* ============================================================
   HAMBURGER BUTTON (public nav — hidden on desktop)
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  margin-left: 10px;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.hamburger:hover { border-color: var(--saffron); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}
.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); }

/* ============================================================
   PUBLIC MOBILE SIDEBAR (slide-in drawer)
   ============================================================ */
.mob-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 299;
  opacity: 0;
  transition: opacity 0.3s;
}
.mob-nav-overlay.open {
  display: block;
  opacity: 1;
}
.mob-nav-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--navy);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.3);
  overflow-y: auto;
}
.mob-nav-sidebar.open { right: 0; }

.mob-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mob-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mob-nav-brand img {
  width: 44px;
  height: 30px;
  object-fit: cover;
  border-radius: 5px;
}
.mob-nav-brand span {
  font-family: "Bebas Neue", sans-serif;
  font-size: 15px;
  color: white;
  letter-spacing: 1px;
}
.mob-nav-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.mob-nav-close:hover { color: white; }

.mob-nav-links {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mob-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 10px;
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: all 0.2s;
}
.mob-nav-link:hover,
.mob-nav-link.active { background: var(--saffron); color: white; }

.mob-nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 10px 12px;
}

.mob-nav-footer {
  padding: 16px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mob-btn-dashboard {
  width: 100%;
  padding: 13px;
  background: var(--saffron);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 17px;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background 0.2s;
}
.mob-btn-dashboard:hover { background: var(--saffron2); }
.mob-btn-logout {
  width: 100%;
  padding: 13px;
  background: rgba(220,38,38,0.15);
  color: #fca5a5;
  border: 1.5px solid rgba(220,38,38,0.3);
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mob-btn-logout:hover { background: #dc2626; color: white; border-color: #dc2626; }

/* ============================================================
   ADMIN MOBILE SIDEBAR TOGGLE
   ============================================================ */
.admin-mob-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 400;
  width: 42px;
  height: 42px;
  background: var(--navy);
  border: none;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.admin-mob-toggle span {
  display: block;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}
.admin-mob-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.admin-mob-toggle.open span:nth-child(2) { opacity: 0; }
.admin-mob-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.admin-mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 199;
}
.admin-mob-overlay.open { display: block; }

/* ============================================================
   FOOTER — NEW DESIGN (matches screenshot)
   ============================================================ */
.pub-footer-new {
  background: #0d2144;
  color: white;
}

/* ---- Mission Banner ---- */
.footer-mission {
  background: #0d2144;
  text-align: center;
  padding: 60px 64px 48px;
  border-bottom: 2px solid rgba(255,153,51,0.35);
}
.footer-mission h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 52px;
  color: white;
  letter-spacing: 4px;
  margin-bottom: 16px;
}
.footer-mission > p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  max-width: 700px;
  margin: 0 auto 48px;
}
.mission-pillars {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pillar-title {
  font-family: "Barlow", sans-serif;
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  color: var(--saffron);
  letter-spacing: 0.5px;
}
.pillar-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ---- Main Footer Grid ---- */
.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1.2fr 1.2fr;
  gap: 40px;
  padding: 44px 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-logo {
  width: 52px;
  height: 35px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}
.footer-brand-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 16px;
  letter-spacing: 1.5px;
  color: white;
  line-height: 1.2;
}
.footer-brand-tag {
  font-size: 12px;
  color: var(--saffron);
  font-weight: 600;
  margin-top: 2px;
}
.footer-brand-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
}
.footer-links-col h4 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--saffron);
  margin-bottom: 16px;
}
.footer-links-col a,
.footer-links-col span {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s;
}
.footer-links-col a:hover { color: var(--saffron); }
.footer-bottom-new {
  padding: 18px 64px;
  text-align: center;
}
.footer-bottom-new p {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .stats-row        { grid-template-columns: repeat(2,1fr); }
  .dash-row         { grid-template-columns: 1fr; }
  .mission-pillars  { grid-template-columns: repeat(2,1fr); }
  .footer-main      { grid-template-columns: 1fr 1fr; gap: 28px; padding: 36px 40px; }
  .footer-mission   { padding: 48px 40px 40px; }
}

/* ============================================================
   RESPONSIVE — TABLET + MOBILE  (max 900px)
   Hamburger kicks in, nav links hide, mobile sidebar appears
   ============================================================ */
@media (max-width: 900px) {

  /* ── PUBLIC NAVBAR ── */
  .navbar          { padding: 0 16px; height: 64px; }
  .nav-links       { display: none !important; }        /* hide desktop links */
  .hamburger       { display: flex; }                   /* show hamburger */
  .brand-info h2   { font-size: 17px; letter-spacing: 1px; }
  .brand-info span { font-size: 11px; }
  .nav-logo        { width: 44px; height: 30px; }

  /* ── ADMIN SIDEBAR & TOGGLE ── */
  .admin-mob-toggle { display: flex; }
  .admin-sidebar    {
    position: fixed;
    top: 0; left: -280px;
    width: 260px;
    height: 100vh;
    z-index: 200;
    transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  .admin-sidebar.mob-open { left: 0; }
  .admin-main       { margin-left: 0; padding-top: 70px; }
  .admin-content    { padding: 20px 16px; }

  /* ── HERO ── */
  .hero            { min-height: 440px; }
  .hero-content    { padding: 0 28px 52px; }
  .hero-content h1 { font-size: 58px; }

  /* ── HOME SECTIONS ── */
  .home-section    { padding: 44px 28px; }

  /* ── GRIDS ── */
  .video-grid      { grid-template-columns: repeat(2,1fr); gap: 18px; }
  .news-grid       { grid-template-columns: repeat(2,1fr); gap: 18px; }

  /* ── PAGE BANNER ── */
  .page-banner     { padding: 40px 28px; }
  .page-banner h1  { font-size: 46px; }

  /* ── FILTER BAR ── */
  .filter-bar      { padding: 16px 20px 0; gap: 8px; overflow-x: auto; flex-wrap: nowrap; }
  .filter-tab      { white-space: nowrap; flex-shrink: 0; padding: 8px 14px; font-size: 12px; }

  /* ── GALLERY ── */
  .gallery-content { padding: 28px 20px 48px; }

  /* ── FOOTER ── */
  .footer-mission  { padding: 40px 28px; }
  .footer-mission h2 { font-size: 40px; }
  .footer-main     { grid-template-columns: 1fr 1fr; padding: 32px 28px; gap: 24px; }
  .footer-bottom-new { padding: 16px 28px; }

  /* ── ABOUT ── */
  .about-body      { padding: 36px 28px; }
  .pillars-grid    { grid-template-columns: repeat(2,1fr); }

  /* ── LOGIN ── */
  .login-left      { display: none; }
  .login-right     { width: 100%; padding: 48px 40px; }

  /* ── ADMIN STATS ── */
  .stats-row       { grid-template-columns: repeat(2,1fr); }
  .adm-page-header h2 { font-size: 28px; }
}

/* ============================================================
   RESPONSIVE — MOBILE PORTRAIT (max 600px)
   ============================================================ */
@media (max-width: 600px) {

  /* ── NAVBAR ── */
  .navbar          { padding: 0 14px; height: 60px; }
  .brand-info h2   { font-size: 15px; }
  .brand-info span { display: none; }
  .nav-logo        { width: 38px; height: 26px; }

  /* ── HERO ── */
  .hero            { min-height: 400px; }
  .hero-content    { padding: 0 20px 44px; }
  .hero-content h1 { font-size: 44px; }
  .hero-content p  { font-size: 15px; }
  .hero-badge      { font-size: 10px; letter-spacing: 1.2px; }
  .hero-btns       { flex-direction: column; gap: 10px; }
  .btn-hero-primary,
  .btn-hero-secondary { width: 100%; text-align: center; padding: 14px; font-size: 17px; }

  /* ── HOME SECTIONS ── */
  .home-section    { padding: 36px 16px; }
  .sec-title-row h2 { font-size: 28px; }

  /* ── GRIDS ── */
  .video-grid      { grid-template-columns: 1fr; gap: 16px; }
  .news-grid       { grid-template-columns: 1fr; gap: 16px; }

  /* ── PAGE BANNER ── */
  .page-banner     { padding: 32px 16px; }
  .page-banner h1  { font-size: 36px; }
  .page-banner p   { font-size: 14px; }

  /* ── FILTER BAR ── */
  .filter-bar      { padding: 12px 16px 0; }
  .filter-tab      { padding: 7px 12px; font-size: 11px; }

  /* ── GALLERY ── */
  .gallery-content { padding: 20px 16px 40px; }

  /* ── ABOUT ── */
  .about-body      { padding: 28px 16px; }
  .pillars-grid    { grid-template-columns: 1fr; }

  /* ── FOOTER ── */
  .footer-mission  { padding: 36px 16px; }
  .footer-mission h2 { font-size: 32px; letter-spacing: 2px; }
  .footer-mission > p { font-size: 14px; margin-bottom: 28px; }
  .mission-pillars { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .pillar-title    { font-size: 20px; }
  .footer-main     { grid-template-columns: 1fr; padding: 28px 16px; gap: 24px; }
  .footer-bottom-new { padding: 14px 16px; }
  .footer-bottom-new p { font-size: 12px; }

  /* ── MODALS ── */
  .modal-box       { width: 96vw; max-height: 90vh; }
  .modal-bdy       { padding: 20px; }
  .modal-ftr       { padding: 14px 20px; }
  .nread-inner     { padding: 24px 16px; }
  .nread-title     { font-size: 26px; }
  .vwatch-inner    { width: 98vw; }

  /* ── LOGIN ── */
  .login-right     { padding: 36px 20px; }
  .login-form-wrap h2 { font-size: 28px; }

  /* ── REGISTER ── */
  #root-register   { padding: 24px 16px; }

  /* ── ADMIN ── */
  .admin-content   { padding: 16px 12px; }
  .stats-row       { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-box        { padding: 16px 14px; }
  .stat-box .sval  { font-size: 34px; }
  .adm-page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .adm-page-header h2 { font-size: 26px; }
  table.dtbl th,
  table.dtbl td    { padding: 10px 12px; font-size: 13px; }
  .btn-edit, .btn-del { padding: 6px 10px; font-size: 12px; }

  /* ── MOB SIDEBAR ── */
  .mob-nav-sidebar { width: 260px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 380px)
   ============================================================ */
@media (max-width: 380px) {
  .hero-content h1 { font-size: 36px; }
  .stats-row       { grid-template-columns: 1fr; }
  .mission-pillars { grid-template-columns: 1fr; }
  .mob-nav-sidebar { width: 240px; }
  .admin-sidebar   { width: 240px; }
}

/* ============================================================
   HERO IMAGE SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background: var(--navy);
}

/* Each slide */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: flex-end;
}
.slide.active { opacity: 1; z-index: 1; }

/* Dark overlay on each slide */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,33,68,0.96) 0%,
    rgba(13,33,68,0.65) 40%,
    rgba(13,33,68,0.28) 75%,
    rgba(13,33,68,0.10) 100%
  );
}

/* Slide text content */
.slide-content {
  position: relative;
  z-index: 2;
  padding: 0 64px 80px;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Slide heading — always white, clear and bold */
.slide-content h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 72px;
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
  margin: 10px 0 16px;
  letter-spacing: 2px;
}

/* Badge */
.slide-content .hero-badge {
  margin-bottom: 0;
}

/* Description */
.slide-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 560px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Buttons row — only shown when slide has text content */
.slide-content .hero-btns {
  margin-top: 4px;
}

/* Prev / Next arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.35);
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: var(--saffron); border-color: var(--saffron); }
.slider-prev { left: 24px; }
.slider-next { right: 24px; }

/* Dot indicators */
.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s;
}
.slider-dot.active {
  background: var(--saffron);
  transform: scale(1.3);
}

/* ============================================================
   ADMIN — SLIDER MANAGEMENT CARDS
   ============================================================ */
.slider-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.slide-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
  border: 2px solid var(--border);
  transition: box-shadow 0.2s;
}
.slide-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.13); }
.slide-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  display: block;
}
.slide-card-img-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.slide-card-body {
  padding: 14px 16px;
}
.slide-card-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.4;
}
.slide-card-desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.slide-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.slide-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.slide-status.on  { background: #dcfce7; color: #16a34a; }
.slide-status.off { background: #fee2e2; color: #dc2626; }
.slide-order {
  font-size: 12px;
  color: var(--muted);
}
.slide-card-actions {
  display: flex;
  gap: 8px;
}

/* Responsive slider */
@media (max-width: 900px) {
  .hero-slider    { height: 480px; }
  .slide-content  { padding: 0 28px 52px; }
  .slider-arrow   { width: 42px; height: 42px; font-size: 24px; }
  .slider-prev    { left: 12px; }
  .slider-next    { right: 12px; }
}
@media (max-width: 600px) {
  .hero-slider    { height: 400px; }
  .slide-content  { padding: 0 16px 40px; max-width: 100%; }
  .slider-arrow   { width: 36px; height: 36px; font-size: 20px; }
  .slider-prev    { left: 8px; }
  .slider-next    { right: 8px; }
  .slider-cards-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   IMAGE UPLOAD ZONE (slider modal)
   ============================================================ */
.img-upload-zone {
  width: 100%;
  height: 180px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.img-upload-zone:hover {
  border-color: var(--saffron);
  background: #fff8f0;
}
.img-upload-zone.dragover {
  border-color: var(--saffron);
  background: #fff3e0;
}
.upload-icon  { font-size: 36px; margin-bottom: 8px; }
.upload-text  { font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.upload-hint  { font-size: 12px; color: var(--muted); }
#sm-upload-placeholder { text-align: center; }

/* ============================================================
   YOUTUBE EMBED + FALLBACK (Error 153 — embedding disabled)
   ============================================================ */
.yt-embed-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}
.yt-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
}
.yt-fb-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
  position: absolute;
  inset: 0;
}
.yt-fb-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 20px;
  padding: 24px;
}
.yt-fb-msg {
  color: white;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.yt-fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ff0000;
  color: white;
  font-family: "Bebas Neue", sans-serif;
  font-size: 18px;
  letter-spacing: 1.5px;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(255,0,0,0.4);
}
.yt-fb-btn:hover {
  background: #cc0000;
  transform: translateY(-2px);
}
