/* ===== MLF NEWS 24 - MASTER STYLESHEET ===== */
:root {
  --red: #C8102E;
  --red-dark: #8B0000;
  --gold: #D4A017;
  --black: #0A0A0A;
  --dark: #111111;
  --dark2: #1A1A1A;
  --dark3: #242424;
  --gray: #888;
  --light-gray: #E8E8E8;
  --white: #FFFFFF;
  --text: #1C1C1C;
  --text-light: #555;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Tiro Devanagari Hindi', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: #F5F0EB;
  color: var(--text);
  overflow-x: hidden;
}

/* ===== BREAKING NEWS BAR ===== */
.breaking-bar {
  background: var(--red);
  color: white;
  display: flex;
  align-items: center;
  height: 36px;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.breaking-label {
  background: var(--black);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-wrap {
  overflow: hidden;
  flex: 1;
}
.ticker {
  display: flex;
  gap: 80px;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
  font-size: 13px;
}
@keyframes ticker {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}
.ticker-item { padding: 0 8px; }
.ticker-item::before { content: '◆ '; color: var(--gold); }

/* ===== HEADER ===== */
.site-header {
  background: var(--black);
  color: white;
  position: sticky;
  top: 36px;
  z-index: 999;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  border-bottom: 1px solid #2a2a2a;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-icon {
  width: 52px;
  height: 52px;
  background: var(--red);
  color: white;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  box-shadow: 3px 3px 0 var(--gold);
}
.logo-main {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: white;
  line-height: 1;
  letter-spacing: -0.5px;
}
.logo-tagline {
  display: block;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-top: 2px;
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #aaa;
}
#liveClock {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold);
}
.epaper-btn, .admin-btn {
  padding: 7px 16px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}
.epaper-btn {
  background: var(--dark3);
  color: white;
  border: 1px solid #444;
}
.epaper-btn:hover { background: #333; }
.admin-btn {
  background: var(--red);
  color: white;
}
.admin-btn:hover { background: var(--red-dark); }

/* ===== NAVIGATION ===== */
.main-nav {
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 0;
  overflow-x: auto;
}
.main-nav a {
  color: #ccc;
  text-decoration: none;
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: white;
  border-bottom-color: var(--red);
}

/* ===== HERO SLIDER ===== */
.hero-section {
  position: relative;
  background: var(--black);
  overflow: hidden;
}
.hero-slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.hero-slide {
  min-width: 100%;
  height: 520px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 60px;
  max-width: 800px;
}
.hero-category {
  display: inline-block;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  margin-bottom: 12px;
  border-radius: 2px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-excerpt {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.hero-meta {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}
.hero-meta .reporter { color: var(--gold); }
.hero-read-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 11px 24px;
  background: var(--red);
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.hero-read-btn:hover { background: var(--red-dark); }

.hero-dots {
  position: absolute;
  bottom: 20px;
  right: 40px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.hero-dot.active {
  background: var(--red);
  width: 24px;
  border-radius: 4px;
}

/* ===== MAIN GRID ===== */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  max-width: 1280px;
  margin: 40px auto;
  padding: 0 40px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title span {
  position: relative;
}
.section-title span::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--red);
  margin-top: 4px;
}

/* ===== STORIES GRID ===== */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.story-card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}
.story-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.story-card.featured .card-img {
  height: 100%;
  min-height: 220px;
}
.card-img {
  width: 100%;
  height: 180px;
  background: var(--dark2);
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 2px;
}
.card-body {
  padding: 16px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text);
}
.story-card.featured .card-title { font-size: 22px; }
.card-excerpt {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 11px;
  color: var(--gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-reporter { color: var(--red); font-weight: 600; }

/* ===== SIDEBAR ===== */
.sidebar-widget {
  background: white;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sidebar-widget h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.trending ol {
  list-style: none;
  counter-reset: trending;
}
.trending ol li {
  counter-increment: trending;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  gap: 12px;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1.4;
}
.trending ol li:hover { color: var(--red); }
.trending ol li::before {
  content: counter(trending);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--light-gray);
  min-width: 24px;
  line-height: 1;
}
.trending ol li:last-child { border-bottom: none; }

.weather-widget {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  color: white;
  min-height: 200px;
}
.weather-widget h3 {
  color: white;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  font-size: 15px;
}
.weather-info { text-align: center; padding: 16px 0 8px; }
.weather-city { font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 8px; letter-spacing: 1px; }
.weather-temp { font-family: var(--font-display); font-size: 64px; font-weight: 900; color: white; line-height: 1; }
.weather-desc { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 8px; text-transform: capitalize; }
.weather-icon { font-size: 48px; margin-bottom: 8px; }
.weather-extra { display: flex; justify-content: center; gap: 20px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.15); }
.weather-extra span { font-size: 12px; color: rgba(255,255,255,0.7); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.weather-extra span strong { color: white; font-size: 14px; }

.ads-widget { min-height: 250px; background: #f0f0f0; display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 13px; border: 2px dashed #ddd; }

/* ===== CATEGORY SECTIONS ===== */
.category-sections {
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 40px;
}
.cat-section {
  margin-bottom: 48px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ===== VIDEO SECTION ===== */
.video-section {
  max-width: 1280px;
  margin: 0 auto 48px;
  padding: 0 40px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.video-card {
  background: var(--dark);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
  color: white;
  display: block;
}
.video-card:hover { transform: translateY(-3px); }
.video-thumb {
  height: 160px;
  background: var(--dark2);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-icon {
  width: 48px; height: 48px;
  background: rgba(200,16,46,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s;
}
.video-card:hover .play-icon { transform: scale(1.15); }
.video-info { padding: 12px; }
.video-title { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.video-meta { font-size: 11px; color: #888; }

.see-all-btn {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid var(--red);
  color: var(--red);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border-radius: 3px;
  transition: all 0.2s;
}
.see-all-btn:hover { background: var(--red); color: white; }

/* ===== AD BANNER ===== */
.ad-banner {
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 40px;
  height: 90px;
  background: #f0f0f0;
  border: 2px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 13px;
  border-radius: 4px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black);
  color: #aaa;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 40px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
}
.footer-col p { font-size: 13px; line-height: 1.7; }
.footer-col h4 { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 1px; margin-bottom: 14px; }
.footer-col a { display: block; color: #888; text-decoration: none; font-size: 13px; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--red); }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a { 
  width: 34px; height: 34px; background: var(--dark2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 12px; font-weight: 700;
}
.social-links a:hover { background: var(--red); color: white; }
.footer-bottom {
  border-top: 1px solid #222;
  text-align: center;
  padding: 18px;
  font-size: 12px;
  color: #555;
}

/* ===== ARTICLE PAGE ===== */
.article-page {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 40px;
}
.article-header { margin-bottom: 28px; }
.article-cat {
  display: inline-block;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.article-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--gray);
  padding: 16px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  margin-bottom: 28px;
}
.article-reporter { color: var(--red); font-weight: 600; }
.article-hero-img {
  width: 100%;
  height: 480px;
  background: var(--dark2);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 32px;
}
.article-body {
  font-size: 18px;
  line-height: 1.85;
  color: #2a2a2a;
}
.article-body p { margin-bottom: 22px; }
.share-bar {
  display: flex;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid #ddd;
  margin-top: 32px;
}
.share-btn {
  padding: 8px 20px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  color: white;
}
.share-fb { background: #1877F2; }
.share-tw { background: #1DA1F2; }
.share-wa { background: #25D366; }

/* ===== CATEGORY PAGE ===== */
.category-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px;
}
.category-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--red);
}
.category-header h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
}
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}
.page-btn {
  width: 38px; height: 38px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.page-btn.active, .page-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

/* ===== VIDEO PAGE ===== */
.video-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px;
}
.video-page-hero {
  background: var(--black);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
  aspect-ratio: 16/6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

/* ===== EPAPER PAGE ===== */
.epaper-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px;
}
.epaper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.epaper-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
}
.epaper-card:hover { transform: translateY(-4px); }
.epaper-thumb {
  height: 260px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}
.epaper-info { padding: 16px; }
.epaper-date { font-size: 12px; color: var(--gray); }
.epaper-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.epaper-download {
  display: block;
  margin-top: 10px;
  padding: 8px;
  background: var(--red);
  color: white;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
  text-decoration: none;
}

/* ===== ADMIN PANEL ===== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #0F0F0F;
  color: white;
}
.admin-sidebar {
  width: 260px;
  background: #141414;
  border-right: 1px solid #222;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.admin-logo {
  padding: 24px;
  border-bottom: 1px solid #222;
}
.admin-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: white;
}
.admin-logo-sub { font-size: 11px; color: var(--red); letter-spacing: 1px; }
.admin-nav {
  padding: 16px 0;
  flex: 1;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  border-left: 3px solid transparent;
  text-decoration: none;
}
.admin-nav-item:hover, .admin-nav-item.active {
  color: white;
  background: rgba(200,16,46,0.1);
  border-left-color: var(--red);
}
.admin-nav-icon { font-size: 18px; min-width: 24px; }
.admin-nav-label { font-weight: 500; }

.admin-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  background: #141414;
  border-bottom: 1px solid #222;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-topbar h1 { font-size: 20px; font-weight: 700; }
.admin-content { padding: 32px; flex: 1; }

/* Admin Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: #1A1A1A;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #262626;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--red); }
.stat-icon { font-size: 28px; margin-bottom: 12px; }
.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: white;
  margin-bottom: 4px;
}
.stat-label { font-size: 13px; color: #666; }
.stat-change { font-size: 12px; color: #4CAF50; margin-top: 4px; }

/* Admin Table */
.admin-table-wrap {
  background: #1A1A1A;
  border-radius: 8px;
  border: 1px solid #262626;
  overflow: hidden;
}
.table-header {
  padding: 20px 24px;
  border-bottom: 1px solid #262626;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.table-header h2 { font-size: 16px; font-weight: 700; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  background: #161616;
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #555;
  text-transform: uppercase;
}
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #1F1F1F;
  font-size: 13px;
  color: #ccc;
}
.admin-table tr:hover td { background: #1F1F1F; }
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.status-published { background: rgba(76,175,80,0.15); color: #4CAF50; }
.status-draft { background: rgba(255,152,0,0.15); color: #FF9800; }

/* Ad containers */
#sidebarAd {
  width: 100%;
  max-height: 250px;
  overflow: hidden;
  border-radius: 8px;
}

#sidebarAd img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

#bottomAd {
  width: 100%;
  max-width: 970px;
  margin: 20px auto;
  max-height: 90px;
  overflow: hidden;
  border-radius: 6px;
}

#bottomAd img {
  width: 100%;
  height: 90px;
  object-fit: cover;
}

/* Admin Form */
.admin-form {
  background: #1A1A1A;
  border-radius: 8px;
  border: 1px solid #262626;
  padding: 28px;
}
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: #888; letter-spacing: 0.5px; margin-bottom: 8px; }
.form-input {
  width: 100%;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 12px 16px;
  color: white;
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--red); }
.form-input[type="file"] { cursor: pointer; }
.form-select {
  width: 100%;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 12px 16px;
  color: white;
  font-size: 14px;
  cursor: pointer;
}
.form-select:focus { outline: none; border-color: var(--red); }
.form-textarea {
  width: 100%;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 12px 16px;
  color: white;
  font-size: 14px;
  font-family: var(--font-body);
  min-height: 200px;
  resize: vertical;
  line-height: 1.6;
}
.form-textarea:focus { outline: none; border-color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.btn-primary {
  padding: 12px 28px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.5px;
}
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary {
  padding: 12px 28px;
  background: transparent;
  color: #888;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.2s;
}
.btn-secondary:hover { color: white; border-color: #555; }
.btn-danger {
  padding: 6px 14px;
  background: rgba(200,16,46,0.1);
  color: var(--red);
  border: 1px solid rgba(200,16,46,0.3);
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-danger:hover { background: var(--red); color: white; }
.btn-edit {
  padding: 6px 14px;
  background: rgba(255,152,0,0.1);
  color: #FF9800;
  border: 1px solid rgba(255,152,0,0.3);
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  margin-right: 8px;
  transition: all 0.2s;
}
.btn-edit:hover { background: #FF9800; color: white; }

/* Admin Sections */
.admin-section { display: none; }
.admin-section.active { display: block; }

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1A1A1A;
  color: white;
  padding: 14px 24px;
  border-radius: 6px;
  border-left: 4px solid var(--red);
  font-size: 14px;
  z-index: 9999;
  animation: slideIn 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.success { border-left-color: #4CAF50; }
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Responsive */
@media (max-width: 768px) {
  .main-grid { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .story-card.featured { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-top { padding: 12px 20px; }
  .main-nav { padding: 0 20px; }
  .hero-title { font-size: 28px; }
  .hero-content { padding: 28px 28px; }
  .admin-sidebar { width: 220px; }
  .admin-main { margin-left: 220px; }
  .epaper-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

  /* Header */
  .header-top {
    padding: 8px 12px;
    gap: 8px;
  }
  .logo img { height: 48px; }
  .live-clock { font-size: 11px; }
  .epaper-btn { padding: 6px 10px; font-size: 11px; }

  /* Navbar */
  .main-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 12px 14px; font-size: 13px; white-space: nowrap; }

  /* Hero */
  .hero-title { font-size: 22px; }
  .hero-excerpt { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* Layout — sidebar neeche */
  .main-layout { flex-direction: column; }
  .sidebar { width: 100%; }

  /* Top stories grid */
  .top-stories-grid { grid-template-columns: 1fr; }
  .story-card.featured { grid-column: span 1; }

  /* Category grid */
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Advertisement box */
  .ads-widget { min-height: 100px; }

  /* Weather */
  .weather-widget { margin: 0 0 16px; }

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

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

  /* General padding */
  .container { padding: 0 12px; }
  section { margin-bottom: 24px; }
}
@media (max-width: 768px) {
  .category-page .main-layout {
    flex-direction: column;
  }
  .category-page .sidebar {
    width: 100%;
    margin-top: 20px;
  }
  .category-page #catArticlesGrid {
    width: 100%;
    grid-template-columns: 1fr;
  }

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 18px; }
}
  .category-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 768px) {
  .category-layout {
    grid-template-columns: 1fr;
  }

  .ads-widget:empty, #sidebarAd:empty, #bottomAd:empty {
  display: none;
}

  .nav-social {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.nav-social a {
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-social a:hover { opacity: 1; }

@media (max-width: 768px) {
  .nav-social { display: none; }
}
