/* ══════════════════════════════════════════════════
   VIDYARTHI MITRA — NEWS PAGE STYLES
   news.css
══════════════════════════════════════════════════ */

/* ── Variables & Reset ─────────────────────────── */
:root {
  --orange:    #ff6600;
  --orange-lt: #ff8c40;
  --navy:      #002d52;
  --ink:       #111827;
  --ink2:      #374151;
  --muted:     #6b7280;
  --pale:      #f3f4f6;
  --border:    #e5e7eb;
  --paper:     #fefefe;
  --red:       #dc2626;
  --green:     #f97316;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', 'sans-serif';
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* ══════════════════════════════════════════════════
   BREAKING NEWS TICKER
══════════════════════════════════════════════════ */
.ticker-bar {
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
}

.ticker-label {
  background: #b91c1c;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ticker-label i { animation: blink 1.2s infinite; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-track-wrap::before,
.ticker-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  z-index: 2;
}
.ticker-track-wrap::before { left: 0;  background: linear-gradient(to right, var(--red), transparent); }
.ticker-track-wrap::after  { right: 0; background: linear-gradient(to left,  var(--red), transparent); }

.ticker-track {
  display: flex;
  gap: 60px;
  animation: tickerScroll 35s linear infinite;
  width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.3px;
  cursor: pointer;
}
.ticker-item::before {
  content: '●';
  margin-right: 10px;
  font-size: 8px;
  opacity: 0.7;
}

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

/* ══════════════════════════════════════════════════
   MASTHEAD
══════════════════════════════════════════════════ */
.masthead {
  background: var(--navy);
  padding: 28px 0 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.masthead-inner {
  max-width: 1280px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.masthead-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.masthead-logo span { color: var(--orange); }

.masthead-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.masthead-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.masthead-date {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-left: auto;
  white-space: nowrap;
}

.masthead-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 8px 14px;
  gap: 10px;
  transition: all 0.25s;
  min-width: 220px;
}
.masthead-search:focus-within {
  background: rgba(255,255,255,0.16);
  border-color: var(--orange);
}
.masthead-search input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  outline: none;
  width: 100%;
}
.masthead-search input::placeholder { color: rgba(255,255,255,0.4); }
.masthead-search i { color: rgba(255,255,255,0.5); font-size: 13px; }

/* Category Nav */
.cat-nav {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 18px;
}
.cat-nav-inner {
  max-width: 1280px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-btn {
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.cat-btn:hover { color: #fff; }
.cat-btn.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ══════════════════════════════════════════════════
   PAGE LAYOUT
══════════════════════════════════════════════════ */
.page-wrap {
  max-width: 1280px;
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* ══════════════════════════════════════════════════
   HERO FEATURE STORY
══════════════════════════════════════════════════ */
.hero-story {
  background: linear-gradient(160deg, var(--navy) 0%, #004080 100%);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-story:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.hero-story-visual {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255,102,0,0.25) 0%, transparent 60%),
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.03) 21px),
    linear-gradient(160deg, #002d52, #004a80);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  position: relative;
}
.hero-story-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 70%, #004080);
}

.hero-story-content {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  width: fit-content;
}

.hero-story-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero-story-content p {
  font-family: 'Source Serif 4', serif;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}
.hero-meta span { display: flex; align-items: center; gap: 5px; }

.btn-read-hero {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 20px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: fit-content;
}
.btn-read-hero:hover { background: var(--orange-lt); }

/* ══════════════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════════════ */
.sec-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.sec-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.sec-line { flex: 1; height: 1px; background: var(--border); }
.sec-count {
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
}

/* ══════════════════════════════════════════════════
   NEWS GRID & CARDS
══════════════════════════════════════════════════ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  animation: fadeUp 0.4s ease both;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.news-card.hidden { display: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Color stripe */
.card-stripe          { height: 4px; background: var(--orange); }
.card-stripe.exams    { background: #7c3aed; }
.card-stripe.results  { background: var(--green); }
.card-stripe.govt     { background: #0369a1; }
.card-stripe.scholar  { background: #d97706; }
.card-stripe.admission{ background: var(--orange); }

/* Thumbnail */
.card-thumb {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.card-thumb.bg-exam      { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.card-thumb.bg-result    { background: linear-gradient(135deg, #fff7ed, #fed7aa); }
.card-thumb.bg-govt      { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.card-thumb.bg-scholar   { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.card-thumb.bg-admission { background: linear-gradient(135deg, #ffe4d6, #ffc8a8); }

.card-thumb-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.card-thumb-badge.exams    { background: #7c3aed; color: #fff; }
.card-thumb-badge.results  { background: var(--green); color: #fff; }
.card-thumb-badge.govt     { background: #0369a1; color: #fff; }
.card-thumb-badge.scholar  { background: #d97706; color: #fff; }
.card-thumb-badge.admission{ background: var(--orange); color: #fff; }

.card-hot {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: hotPulse 2s infinite;
}
@keyframes hotPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.card-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-headline {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  font-family: 'Source Serif 4', serif;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 10px;
  border-top: 1px solid var(--border);
}

.card-meta-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}
.card-time {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
  white-space: nowrap;
}
.card-read {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}

.card-actions { display: flex; gap: 6px; }

.btn-action {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  transition: all 0.2s;
}
.btn-action:hover     { border-color: var(--orange); color: var(--orange); }
.btn-action.bookmarked{ border-color: var(--orange); color: var(--orange); background: #fff5ee; }

.btn-read-more {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0 12px;
  height: 30px;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.btn-read-more:hover { background: #e55a00; }

/* ══════════════════════════════════════════════════
   LOAD MORE
══════════════════════════════════════════════════ */
.load-more-wrap {
  text-align: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.btn-load-more {
  padding: 12px 36px;
  border: 2px solid var(--orange);
  background: transparent;
  color: var(--orange);
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-load-more:hover { background: var(--orange); color: #fff; }

/* ══════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-title i { color: var(--orange); font-size: 14px; }

/* Tag Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  padding: 5px 13px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--pale);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.tag-pill:hover     { background: var(--orange); border-color: var(--orange); color: #fff; }
.tag-pill.hot       { border-color: var(--red); color: var(--red); background: #fff5f5; }
.tag-pill.hot:hover { background: var(--red); color: #fff; }

/* Most Read List */
.story-list { display: flex; flex-direction: column; gap: 0; }
.story-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.2s;
}
.story-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.story-list-item:hover { opacity: 0.75; }

.story-num {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
}
.story-info h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-info small { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }

/* Features Widget */
.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--pale);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
}
.feature-icon {
  width: 34px;
  height: 34px;
  background: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}

/* Newsletter Form */
.nl-form { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.nl-form p-desc { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.6; }
.nl-form input {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.nl-form input:focus { border-color: var(--orange); }
.nl-form button {
  padding: 11px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.nl-form button:hover { background: #e55a00; }

/* ══════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════ */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  display: none;
}
.empty-state.show   { display: block; }
.empty-state i      { font-size: 52px; color: var(--border); margin-bottom: 16px; display: block; }
.empty-state h4     { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.empty-state p      { font-size: 14px; color: var(--muted); }

/* ══════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════ */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(5px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-bg.open { display: flex; }

.modal {
  background: #fff;
  border-radius: 18px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-head {
  padding: 28px 28px 0;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close-btn:hover { border-color: var(--red); color: var(--red); }

.modal-cat-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--orange);
  color: #fff;
  display: inline-block;
  margin-bottom: 14px;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 10px;
}

.modal-meta          { font-size: 12px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.modal-meta span     { display: flex; align-items: center; gap: 5px; }
.modal-divider       { height: 1px; background: var(--border); margin: 0 28px; }

.modal-body {
  padding: 24px 28px 28px;
  font-family: 'Source Serif 4', serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink2);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.modal-btn {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  transition: all 0.2s;
}
.modal-btn.primary            { background: var(--orange); color: #fff; }
.modal-btn.primary:hover      { background: #e55a00; }
.modal-btn.secondary          { background: transparent; border: 1.5px solid var(--border); color: var(--ink); }
.modal-btn.secondary:hover    { border-color: var(--orange); color: var(--orange); }

/* ══════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar   { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
  .news-grid              { grid-template-columns: repeat(2, 1fr); }
  .hero-story             { grid-template-columns: 1fr; min-height: auto; }
  .hero-story-visual      { height: 140px; }
  .masthead-inner         { gap: 12px; }
  .masthead-search        { min-width: 160px; }
  .sidebar                { grid-template-columns: 1fr; }

  .card-body              { padding: 14px 14px 12px; }
  .card-footer {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 8px;
  }
  .card-meta-info         { min-width: 116px; }
  .card-actions           { margin-left: auto; }
  .btn-read-more {
    margin-left: auto;
    height: 32px;
    padding: 0 14px;
  }
}

@media (max-width: 520px) {
  .news-grid     { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column; }

  .card-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 8px;
  }
  .card-actions { margin-left: 0; justify-self: end; }
  .card-time,
  .card-read { white-space: normal; }
  .btn-read-more {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
}

/* ══════════════════════════════════════════════════
   GEN-Z DARK THEME OVERRIDES (NEWS PAGE)
══════════════════════════════════════════════════ */
:root {
  --primary: #ff6600 !important;
  --primary-dark: #e05500 !important;
  --text: #ffffff !important;
  --muted-text: #94a3b8 !important;
  --bg-main: #050a15 !important;
  --bg-card: rgba(13, 22, 39, 0.65) !important;
  
  /* Override original variables for easy theming */
  --orange: var(--primary) !important;
  --orange-lt: var(--primary-dark) !important;
  --navy: var(--bg-main) !important;
  --ink: #fff !important;
  --ink2: #cbd5e1 !important;
  --muted: #94a3b8 !important;
  --pale: rgba(255,255,255,0.05) !important;
  --border: rgba(255,255,255,0.06) !important;
  --paper: var(--bg-main) !important;
}

body {
  background: var(--bg-main) !important;
  color: var(--text) !important;
  font-family: 'Inter', sans-serif !important;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* MASTHEAD */
.masthead {
  background: radial-gradient(circle at top right, rgba(255,102,0, 0.1), transparent 40%),
              radial-gradient(circle at bottom left, rgba(255, 102, 0, 0.05), transparent 40%),
              #0a1128 !important;
  border-bottom: 1px solid var(--border) !important;
}
.masthead-logo span { color: var(--primary) !important; }
.masthead-title { font-family: 'Poppins', sans-serif !important; }

.masthead-search {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
.masthead-search:focus-within {
  border-color: var(--primary) !important;
  box-shadow: 0 0 15px rgba(255,102,0, 0.2) !important;
}

.cat-btn.active {
  color: var(--primary) !important;
  border-bottom-color: var(--primary) !important;
}
.cat-btn:hover { color: #fff !important; }

/* HERO STORY */
.hero-story {
  background: var(--bg-card) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}
.hero-story-visual {
  background: radial-gradient(circle at center, rgba(255,102,0, 0.15) 0%, transparent 70%), #0a1128 !important;
}
.hero-story-visual::after {
  background: linear-gradient(to right, transparent 50%, var(--bg-card)) !important;
}
.hero-story-content h2 { font-family: 'Poppins', sans-serif !important; color: #fff !important; }
.story-category { background: var(--primary) !important; color: #050a15 !important; }

/* CARDS */
.news-card {
  background: var(--bg-card) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255,102,0, 0.15) !important;
  border-color: rgba(255,102,0, 0.3) !important;
}
.card-headline { color: #fff !important; font-family: 'Poppins', sans-serif !important; }
.card-excerpt { color: var(--muted-text) !important; }

.card-stripe.admission, .card-thumb-badge.admission { background: var(--primary) !important; color: #050a15 !important; }

/* SIDEBAR WIDGETS */
.sidebar-widget {
  background: var(--bg-card) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}
.widget-title { color: #fff !important; font-family: 'Poppins', sans-serif !important; }
.story-info h5 { color: #fff !important; }
.story-num { color: rgba(255,255,255,0.1) !important; }

.feature-item { background: rgba(255,255,255,0.05) !important; color: #fff !important; }
.feature-icon { background: var(--primary) !important; color: #050a15 !important; }

.nl-form input {
  background: rgba(255,255,255,0.05) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.1) !important;
}
.nl-form input:focus { border-color: var(--primary) !important; box-shadow: 0 0 15px rgba(255,102,0, 0.2) !important; }
.nl-form button { background: var(--primary) !important; color: #050a15 !important; }
.nl-form button:hover { background: var(--primary-dark) !important; box-shadow: 0 5px 15px rgba(255,102,0, 0.2) !important; }

/* MODAL */
.modal {
  background: var(--bg-card) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--border) !important;
}
.modal-title { color: #fff !important; }
.modal-body { color: var(--muted-text) !important; }
.modal-cat-badge { background: var(--primary) !important; color: #050a15 !important; }

.modal-btn.primary { background: var(--primary) !important; color: #050a15 !important; }
.modal-btn.secondary { border-color: rgba(255,255,255,0.2) !important; color: #fff !important; }
.modal-btn.secondary:hover { border-color: var(--primary) !important; color: var(--primary) !important; }

/* BUTTONS / ELEMENTS */
.btn-read-hero, .btn-load-more { background: var(--primary) !important; color: #050a15 !important; border: none !important; }
.btn-read-hero:hover, .btn-load-more:hover { box-shadow: 0 5px 15px rgba(255,102,0, 0.3) !important; transform: translateY(-2px); }
.sec-count { background: var(--primary) !important; color: #050a15 !important; }

/* TICKER */
.ticker-bar { background: rgba(5, 10, 21, 0.9) !important; border-bottom: 1px solid var(--border) !important; }
.ticker-label { background: var(--primary) !important; color: #050a15 !important; }
.ticker-track-wrap::before { background: linear-gradient(to right, rgba(5,10,21,1), transparent) !important; }
.ticker-track-wrap::after { background: linear-gradient(to left, rgba(5,10,21,1), transparent) !important; }
.ticker-item { color: #fff !important; }

/* ── LIGHT MODE OVERRIDES ────────────────────────────────────────── */
body.light-mode {
  --bg-main: #f8fafc !important;
  --bg-card: rgba(255, 255, 255, 0.8) !important;
  --text: #1e293b !important;
  --muted-text: #475569 !important;
  --border: #e2e8f0 !important;
  --ink: #0f172a !important;
  background: var(--bg-main) !important;
}

body.light-mode .masthead {
  background: radial-gradient(circle at top right, rgba(255,102,0, 0.2), transparent 40%),
              radial-gradient(circle at bottom left, rgba(255, 102, 0, 0.1), transparent 40%),
              #ffffff !important;
  border-bottom: 2px solid var(--primary) !important;
}
body.light-mode .masthead-logo, body.light-mode .masthead-title { color: #0f172a !important; }
body.light-mode .masthead-date { color: #475569 !important; }
body.light-mode .masthead-divider { background: #cbd5e1 !important; }

body.light-mode .masthead-search { background: #f1f5f9 !important; border-color: #cbd5e1 !important; }
body.light-mode .masthead-search input { color: #0f172a !important; }
body.light-mode .masthead-search input::placeholder { color: #64748b !important; }
body.light-mode .masthead-search i { color: #475569 !important; }

body.light-mode .cat-nav { border-top-color: #e2e8f0 !important; }
body.light-mode .cat-btn { color: #475569 !important; }
body.light-mode .cat-btn.active { color: #c2410c !important; border-bottom-color: var(--primary) !important; }
body.light-mode .cat-btn:hover { color: #0f172a !important; }

body.light-mode .hero-story, body.light-mode .news-card, body.light-mode .sidebar-widget, body.light-mode .modal {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04) !important;
}

body.light-mode .hero-story-visual {
  background: radial-gradient(circle at center, rgba(255,102,0, 0.2) 0%, transparent 70%), #f8fafc !important;
}
body.light-mode .hero-story-visual::after { background: linear-gradient(to right, transparent 50%, rgba(255,255,255,0.8)) !important; }
body.light-mode .hero-story-content h2, body.light-mode .card-headline, body.light-mode .widget-title, body.light-mode .story-info h5, body.light-mode .modal-title { color: #0f172a !important; }
body.light-mode .hero-story-content p, body.light-mode .card-excerpt, body.light-mode .story-info small, body.light-mode .modal-body { color: #475569 !important; }

body.light-mode .sec-header h3 { color: #0f172a !important; }

body.light-mode .feature-item { background: #f1f5f9 !important; color: #0f172a !important; }
body.light-mode .feature-icon { background: var(--primary) !important; color: #0f172a !important; }

body.light-mode .nl-form input { background: #ffffff !important; color: #0f172a !important; border-color: #cbd5e1 !important; }
body.light-mode .nl-form input:focus { border-color: var(--primary) !important; }

body.light-mode .modal-cat-badge, body.light-mode .story-category, body.light-mode .btn-read-hero, body.light-mode .btn-load-more, body.light-mode .sec-count, body.light-mode .modal-btn.primary, body.light-mode .ticker-label, body.light-mode .nl-form button {
  background: var(--primary) !important;
  color: #0f172a !important;
}

body.light-mode .modal-btn.secondary { border-color: #cbd5e1 !important; color: #0f172a !important; }
body.light-mode .modal-btn.secondary:hover { border-color: var(--primary) !important; color: #c2410c !important; }

body.light-mode .btn-action { border-color: #cbd5e1 !important; color: #475569 !important; }
body.light-mode .btn-action:hover { border-color: var(--primary) !important; color: #c2410c !important; }

body.light-mode .tag-pill { background: #f1f5f9 !important; border-color: #cbd5e1 !important; color: #475569 !important; }
body.light-mode .tag-pill:hover { background: var(--primary) !important; border-color: var(--primary) !important; color: #0f172a !important; }

body.light-mode .ticker-bar { background: #ffffff !important; border-bottom: 1px solid #e2e8f0 !important; }
body.light-mode .ticker-track-wrap::before { background: linear-gradient(to right, #ffffff, transparent) !important; }
body.light-mode .ticker-track-wrap::after { background: linear-gradient(to left, #ffffff, transparent) !important; }
body.light-mode .ticker-item { color: #0f172a !important; }
body.light-mode .ticker-label { color: #0f172a !important; }
