/* =============================================
   NAVODAYA TV — News Portal Styles
   ============================================= */

:root {
  --primary: #e8192c;
  --primary-dark: #b5111f;
  --primary-light: #ff3347;
  --accent: #f97316;
  --accent-dark: #ea6b0a;
  --brand-blue: #1a2b8f;
  --brand-blue-dark: #0f1d6b;
  --brand-blue-light: #2e44b8;
  --dark: #0d1a6b;
  --dark-2: #1a2b8f;
  --dark-3: #122070;
  --text: #1a1a1a;
  --text-2: #444;
  --text-3: #777;
  --text-4: #aaa;
  --bg: #f7f7f7;
  --bg-2: #ffffff;
  --bg-3: #f0f0f0;
  --border: #e5e5e5;
  --border-2: #d0d0d0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-kan: 'Noto Sans Kannada', sans-serif;
  --font-serif: 'Noto Serif Kannada', serif;
  --font-ui: 'Inter', sans-serif;
  --header-h: 88px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] {
  --text: #f0f0f0;
  --text-2: #ccc;
  --text-3: #999;
  --text-4: #666;
  --bg: #121212;
  --bg-2: #1e1e1e;
  --bg-3: #2a2a2a;
  --border: #333;
  --border-2: #444;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-kan);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: clip;
  max-width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-kan); }

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ TOP BAR ============ */
.top-bar {
  background: var(--dark);
  color: #ccc;
  font-size: 0.78rem;
  font-family: var(--font-ui);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-bar-left { display: flex; align-items: center; gap: 8px; }
.separator { opacity: 0.4; }
.edition { color: var(--accent); font-weight: 500; }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-link { color: #bbb; transition: color var(--transition); font-size: 0.75rem; }
.top-link:hover { color: var(--accent); }
.social-icons { display: flex; gap: 8px; }
.social-icon { color: #999; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; transition: color var(--transition); }
.social-icon svg { width: 14px; height: 14px; }
.social-icon:hover { color: var(--accent); }

.nav-header-bar { display: none; }
.nav-close-btn { display: none; }

/* ============ HEADER ============ */
.header {
  background: var(--bg-2);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 20px;
}

.logo a { text-decoration: none; display: flex; align-items: center; }
.logo-img { height: 80px; width: auto; object-fit: contain; display: block; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 11px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-blue);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(232,25,44,0.07); }
.chevron { font-size: 0.6rem; transition: transform var(--transition); }
.has-dropdown { position: relative; }
.has-dropdown:hover .chevron { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 0.82rem;
  color: var(--text-2);
  transition: all var(--transition);
}
.dropdown a:hover { color: var(--primary); background: rgba(192,57,43,0.06); padding-left: 20px; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.search-btn {
  width: 34px; height: 34px;
  background: none;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  font-size: 1rem;
  transition: all var(--transition);
}
.search-btn:hover { color: var(--primary); background: rgba(232,25,44,0.08); }
.theme-toggle {
  width: 34px; height: 34px;
  background: var(--bg-3);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 0.95rem;
  transition: all var(--transition);
}
.theme-toggle:hover { background: var(--primary); color: #fff; }
[data-theme="dark"] .theme-toggle { color: #f0c040; background: rgba(240,192,64,0.12); }
[data-theme="dark"] .theme-toggle:hover { background: #f0c040; color: #222; }
.moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

/* LANGUAGE TOGGLE */
.lang-toggle {
  display: flex; align-items: center; gap: 0;
  padding: 0;
  border: none;
  border-radius: 20px;
  background: var(--bg-3);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-3);
  transition: all var(--transition);
  overflow: hidden;
  height: 30px;
}
.lang-kn, .lang-en {
  padding: 0 9px;
  height: 100%;
  display: flex; align-items: center;
  transition: all var(--transition);
  font-family: var(--font-kan);
  border-radius: 20px;
}
.lang-divider { display: none; }
[data-lang="kn"] .lang-kn { background: var(--primary); color: #fff; }
[data-lang="kn"] .lang-en { color: var(--text-3); }
[data-lang="en"] .lang-en { background: var(--primary); color: #fff; }
[data-lang="en"] .lang-kn { color: var(--text-3); }
.lang-toggle:hover { background: var(--border); }

/* TICKER PAUSE BUTTON */
.ticker-pause {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.ticker-pause:hover { background: rgba(255,255,255,0.3); }

/* HERO SHARE BAR */
.hero-share-bar {
  position: absolute;
  top: 12px; right: 12px;
  display: flex; gap: 6px;
  opacity: 0;
  transform: translateY(-8px);
  transition: all var(--transition);
}
.hero-lead:hover .hero-share-bar { opacity: 1; transform: translateY(0); }
.share-btn {
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.55);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: all var(--transition);
}
.share-btn:hover { background: var(--primary); transform: scale(1.15); }

/* VIEW COUNT */
.view-count { display: flex; align-items: center; gap: 4px; color: var(--text-4); font-size: 0.72rem; }

/* NEWSLETTER INPUT WRAP */
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .fa-envelope { position: absolute; left: 14px; color: rgba(255,255,255,0.5); font-size: 0.85rem; pointer-events: none; }
.newsletter-form input { padding-left: 38px; }

/* FA ICONS IN TEXT */
.article-meta i, .sports-content i, .trend-time i { font-size: 0.75rem; opacity: 0.7; }
.section-title i { font-size: 1rem; color: var(--primary); }
.widget-header h3 i { color: var(--primary); }
.footer-links h4 i { color: var(--primary); font-size: 0.85rem; }
.footer-links a i.fa-chevron-right { font-size: 0.6rem; color: var(--primary); transition: transform var(--transition); }
.footer-links a:hover i.fa-chevron-right { transform: translateX(3px); }

/* WEATHER FA ICONS */
.weather-icon-fa { font-size: 1.4rem; }
.weather-icon-fa.rain { color: #3498db; }
.weather-icon-fa.cloud { color: #7f8c8d; }
.weather-icon-fa.storm { color: #8e44ad; }
.weather-icon-fa.sunny { color: #f39c12; }

/* SEARCH INNER ICON */
.search-icon-inner { position: absolute; left: 14px; color: var(--text-4); font-size: 0.85rem; pointer-events: none; }
.search-box { position: relative; }
.search-box input { padding-left: 40px; }

/* COOKIE ICON */
.cookie-icon { font-size: 1.4rem; color: var(--accent); flex-shrink: 0; }

/* AD ICON */
.ad-icon { font-size: 2.2rem; margin-bottom: 10px; color: rgba(255,255,255,0.9); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: -6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.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); }

/* SEARCH OVERLAY */
.search-overlay {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--bg-2);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  border-top: 1px solid var(--border);
}
.search-overlay.open { max-height: 80px; padding: 16px 20px; }
.search-box { display: flex; gap: 10px; max-width: 600px; margin: 0 auto; }
.search-box input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-kan);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.search-box input:focus { border-color: var(--primary); }
.search-close {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-3);
  font-size: 1rem;
}
.search-close:hover { color: var(--primary); border-color: var(--primary); }

/* MOBILE OVERLAY */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  backdrop-filter: blur(2px);
}
.mobile-overlay.show { display: block; }

/* ============ BREAKING NEWS ============ */
.breaking-news {
  background: var(--primary);
  color: white;
  padding: 10px 0;
  overflow: hidden;
  max-width: 100vw;
}
.breaking-inner { display: flex; align-items: center; gap: 16px; }
.breaking-label {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.2);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.live-dot {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.ticker-wrapper { flex: 1; overflow: hidden; position: relative; }
.ticker-wrapper::before, .ticker-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 30px;
  z-index: 2;
}
.ticker-wrapper::before { left: 0; background: linear-gradient(to right, var(--primary), transparent); }
.ticker-wrapper::after { right: 0; background: linear-gradient(to left, var(--primary), transparent); }
.ticker {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
}
.ticker span {
  padding: 0 40px;
  font-size: 0.88rem;
  font-weight: 500;
}
.ticker span::after {
  content: '●';
  margin-left: 40px;
  opacity: 0.5;
}
@keyframes ticker-scroll {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ============ MAIN CONTENT ============ */
.main-content { padding: 28px 0 40px; }

/* ============ HERO ============ */
.hero-section { margin-bottom: 36px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
}

.hero-lead {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.hero-lead:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hero-image-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.hero-lead:hover .hero-image-wrap img { transform: scale(1.03); }
.hero-overlay { position: absolute; top: 16px; left: 16px; }
.hero-content { padding: 24px; }
.hero-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--text);
}
.hero-excerpt { font-size: 0.9rem; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; }

.hero-side { display: flex; flex-direction: column; gap: 16px; }
.side-story {
  display: flex;
  gap: 14px;
  background: var(--bg-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.side-story:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.side-image { position: relative; flex-shrink: 0; width: 130px; overflow: hidden; }
.side-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.side-story:hover .side-image img { transform: scale(1.06); }
.side-image .category-badge { position: absolute; bottom: 6px; left: 6px; }
.side-content { padding: 14px 14px 14px 0; display: flex; flex-direction: column; gap: 6px; }
.side-content h2 { font-size: 0.9rem; font-weight: 700; line-height: 1.4; color: var(--text); }
.side-content p { font-size: 0.78rem; color: var(--text-3); line-height: 1.5; }

/* ============ ARTICLE META ============ */
.article-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.75rem; font-family: var(--font-ui); color: var(--text-3); }
.meta-dot { opacity: 0.4; }
.author { color: var(--primary); font-weight: 600; }
.time { color: var(--text-4); }
.read-time { color: var(--text-4); }

/* ============ BADGES ============ */
.category-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-ui);
  letter-spacing: 0.3px;
}
.badge-red { background: var(--primary); color: white; }
.badge-blue { background: #2980b9; color: white; }
.badge-green { background: #27ae60; color: white; }
.badge-orange { background: #e67e22; color: white; }
.badge-purple { background: #8e44ad; color: white; }

/* ============ CATEGORY TABS ============ */
.category-tabs-wrap {
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-tabs-wrap::-webkit-scrollbar { display: none; }
.category-tabs { display: flex; gap: 4px; padding-bottom: 0; min-width: max-content; }
.cat-tab {
  padding: 10px 18px;
  border: none;
  background: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  white-space: nowrap;
}
.cat-tab:hover { color: var(--primary); }
.cat-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ============ CONTENT LAYOUT ============ */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

/* ============ NEWS SECTIONS ============ */
.news-section { margin-bottom: 40px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}
.title-accent {
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}
.see-all { font-size: 0.78rem; font-family: var(--font-ui); color: var(--primary); font-weight: 600; }
.see-all:hover { text-decoration: underline; }

/* NEWS CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.news-card {
  background: var(--bg-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-image { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .card-image img { transform: scale(1.05); }
.card-image .category-badge { position: absolute; bottom: 8px; left: 8px; }
.card-body { padding: 16px; }
.card-body h3 { font-size: 0.88rem; font-weight: 700; line-height: 1.45; margin-bottom: 8px; color: var(--text); }
.card-body p { font-size: 0.78rem; color: var(--text-3); line-height: 1.55; margin-bottom: 10px; }

/* ============ SPORTS LIST ============ */
.sports-list { display: flex; flex-direction: column; gap: 14px; }
.sports-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: var(--bg-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.sports-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.sports-item img { width: 110px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.sports-content { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sports-content h3 { font-size: 0.88rem; font-weight: 700; line-height: 1.4; color: var(--text); }
.sports-content .time { font-size: 0.72rem; color: var(--text-4); font-family: var(--font-ui); }

/* ============ ENTERTAINMENT ============ */
.entertainment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.entertainment-grid + .entertainment-grid { margin-top: 14px; }
.ent-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.ent-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ent-card:hover img { transform: scale(1.08); }
.ent-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding: 20px 12px 14px;
  transform: translateY(0);
  transition: transform var(--transition);
}
.ent-overlay h3 { font-size: 0.9rem; font-weight: 700; color: white; margin: 6px 0 3px; }
.ent-overlay p { font-size: 0.72rem; color: rgba(255,255,255,0.75); }

/* ============ SIDEBAR ============ */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-widget {
  background: var(--bg-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.widget-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}
.widget-header h3 { font-size: 0.9rem; font-weight: 800; color: var(--text); }

/* TRENDING */
.trending-list { padding: 8px 0; }
.trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { background: var(--bg-3); }
.trend-num {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--border-2);
  line-height: 1;
  font-family: var(--font-ui);
  flex-shrink: 0;
  min-width: 28px;
}
.trending-item:nth-child(1) .trend-num { color: var(--primary); }
.trending-item:nth-child(2) .trend-num { color: var(--accent); }
.trending-item:nth-child(3) .trend-num { color: #27ae60; }
.trend-content { display: flex; flex-direction: column; gap: 4px; }
.trend-content a { font-size: 0.82rem; font-weight: 600; line-height: 1.4; color: var(--text-2); }
.trend-content a:hover { color: var(--primary); }
.trend-time { font-size: 0.7rem; color: var(--text-4); font-family: var(--font-ui); }

/* WEATHER */
.weather-cities { padding: 8px 0; }
.weather-city {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.weather-city:last-child { border-bottom: none; }
.weather-city:hover { background: var(--bg-3); }
.city-name { font-size: 0.85rem; font-weight: 700; display: block; }
.weather-desc { font-size: 0.72rem; color: var(--text-3); font-family: var(--font-ui); }
.temp-display { display: flex; align-items: center; gap: 6px; }
.weather-icon { font-size: 1.3rem; }
.temp { font-size: 1.2rem; font-weight: 800; font-family: var(--font-ui); color: var(--primary); }

/* AD WIDGET */
.ad-widget { position: relative; }
.ad-label { position: absolute; top: 6px; right: 8px; font-size: 0.6rem; color: var(--text-4); font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 0.5px; }
.ad-placeholder {
  height: 200px;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.2) 100%),
    url('https://picsum.photos/400/200?random=77') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.ad-placeholder::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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%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/g%3E%3C/svg%3E");
}
.ad-content { text-align: center; color: white; }
.ad-icon { font-size: 2rem; margin-bottom: 8px; }
.ad-content p { font-size: 0.85rem; margin-bottom: 12px; }
.ad-cta {
  display: inline-block;
  padding: 6px 16px;
  background: white;
  color: #764ba2;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* VIDEO LIST */
.video-list { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.video-item { display: flex; gap: 10px; align-items: flex-start; }
.video-thumb { position: relative; flex-shrink: 0; width: 90px; border-radius: var(--radius-sm); overflow: hidden; }
.video-thumb img { width: 100%; height: 58px; object-fit: cover; }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4);
  color: white;
  font-size: 1rem;
  transition: background var(--transition);
}
.video-thumb:hover .play-btn { background: rgba(192,57,43,0.7); }
.video-dur { position: absolute; bottom: 3px; right: 4px; font-size: 0.65rem; background: rgba(0,0,0,0.7); color: white; padding: 1px 4px; border-radius: 2px; font-family: var(--font-ui); }
.video-item p { font-size: 0.78rem; font-weight: 600; line-height: 1.4; color: var(--text-2); }

/* ============ PHOTO GALLERY ============ */
.photo-gallery { margin-bottom: 40px; }
.gallery-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.gallery-strip::-webkit-scrollbar { height: 4px; }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }
.gallery-item {
  flex-shrink: 0;
  width: clamp(160px, 40vw, 220px);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
}
.gallery-item img { width: 100%; height: 148px; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 24px 10px 8px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ============ OPINION ============ */
.opinion-section { margin-bottom: 40px; }
.opinion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.opinion-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--bg-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  transition: all var(--transition);
}
.opinion-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.opinion-author-img img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.opinion-content { display: flex; flex-direction: column; gap: 6px; }
.opinion-tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); font-family: var(--font-ui); }
.opinion-content h3 { font-size: 0.85rem; font-weight: 700; line-height: 1.4; color: var(--text); }
.opinion-byline { font-size: 0.72rem; color: var(--text-3); font-family: var(--font-ui); }

/* ============ NEWSLETTER ============ */
.newsletter-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  padding: 48px 0;
  margin-bottom: 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter-text h2 { font-size: 1.5rem; font-weight: 800; color: white; margin-bottom: 6px; }
.newsletter-text p { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 12px 18px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  color: white;
  font-family: var(--font-kan);
  font-size: 0.88rem;
  width: 280px;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  transition: all var(--transition);
}
.newsletter-form button:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ============ FOOTER ============ */
.footer {
  background: #0d1a6b;
  color: #aaa;
  padding: 56px 0 0;
  border-top: 4px solid var(--primary);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .footer-logo { margin-bottom: 10px; }
.footer-logo-img { height: 110px; width: auto; object-fit: contain; display: block; }
.footer-tagline {
  font-size: 0.72rem;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.footer-brand p { font-size: 0.82rem; line-height: 1.7; color: #8899cc; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #aab;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.footer-socials a:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.footer-links h4 { color: #e0e0e0; font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.footer-links h4 i { color: var(--accent); }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.82rem; color: #8899cc; transition: all var(--transition); display: flex; align-items: center; gap: 5px; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-links a i.fa-chevron-right { font-size: 0.6rem; color: var(--primary); transition: transform var(--transition); }
.footer-links a:hover i.fa-chevron-right { transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.78rem; color: #5566aa; font-family: var(--font-ui); }

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 92px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 650;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============ COOKIE NOTICE ============ */
.cookie-notice {
  position: fixed;
  bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--dark);
  color: white;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  font-size: 0.82rem;
  max-width: 560px;
  width: calc(100% - 40px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cookie-notice.show { transform: translateX(-50%) translateY(0); }
.cookie-notice a { color: var(--accent); text-decoration: underline; }
.cookie-notice button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--transition);
}
.cookie-notice button:hover { background: var(--primary-dark); }

/* ============ ANIMATIONS ============ */
.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.6s cubic-bezier(0.4,0,0.2,1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Loading skeleton pulse */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Shimmer for images */
.card-image::before, .hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: none;
}

/* Page load animation */
@keyframes headerSlide {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.header { animation: headerSlide 0.5s ease forwards; }

/* ============ FONT SIZE CONTROL ============ */
.font-size-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.font-btn {
  width: 26px; height: 30px;
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text-3);
  font-family: var(--font-ui);
  font-weight: 700;
  transition: all var(--transition);
  padding: 0;
  cursor: pointer;
}
.font-btn:last-child { border-right: none; }
.font-btn:nth-child(1) { font-size: 0.65rem; }
.font-btn:nth-child(2) { font-size: 0.8rem; }
.font-btn:nth-child(3) { font-size: 0.95rem; }
.font-btn.active { background: var(--primary); color: white; }
.font-btn:hover:not(.active) { background: var(--bg-3); color: var(--primary); }

/* ============ STICKY CATEGORY TABS ============ */
.category-tabs-wrap.tabs-sticky {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: transparent;
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0;
  margin-bottom: 0;
  animation: slideDown 0.25s ease;
}
@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============ SIDEBAR MOBILE TOGGLE ============ */
.sidebar-toggle-btn {
  display: none;
  width: 38px; height: 38px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  align-items: center; justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition);
}
.sidebar-toggle-btn:hover { color: var(--primary); border-color: var(--primary); }

/* ============ SKELETON LOADER ============ */
.img-loading {
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--border) 50%, var(--bg-3) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.4s ease infinite;
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============ FAB GROUP ============ */
.fab-group {
  position: fixed;
  bottom: 28px; right: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 600;
  pointer-events: none;
}
.fab-group > * { pointer-events: auto; }

.fab-main {
  width: 52px; height: 52px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(192,57,43,0.45);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
  z-index: 2;
}
.fab-main:hover { background: var(--primary-dark); transform: scale(1.08); box-shadow: 0 6px 28px rgba(192,57,43,0.55); }

.fab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fab-group.fab-expanded .fab-item {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fab-group.fab-expanded .fab-whatsapp { transition-delay: 0.05s; }
.fab-group.fab-expanded .fab-call    { transition-delay: 0.0s; }

.fab-label {
  background: var(--dark);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.fab-item .fab-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  color: white;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.fab-whatsapp:hover .fab-icon, .fab-call:hover .fab-icon { transform: scale(1.12); }
.fab-whatsapp .fab-icon { background: #25d366; }
.fab-call .fab-icon    { background: #2980b9; }

/* ============ EXTRA CARDS (tab expand) ============ */
.extra-card { display: none; }
.section-highlight {
  outline: 2px solid var(--primary);
  outline-offset: 8px;
  border-radius: var(--radius-md);
  transition: outline 0.3s ease;
}

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

/* ============ SELECTION ============ */
::selection { background: var(--primary); color: white; }

/* ============ FOCUS ============ */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* --- Tablet (max 1100px) --- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 300px; }
  .content-layout { grid-template-columns: 1fr 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .entertainment-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-link { padding: 8px 8px; font-size: 0.78rem; }
}

/* --- Small Tablet (max 900px) --- */
@media (max-width: 900px) {
  .sidebar-toggle-btn { display: flex; }
  .sidebar {
    position: fixed !important;
    top: 0; right: -100vw;
    width: 100vw; height: 100vh;
    background: var(--bg-2);
    z-index: 1002;
    overflow-y: auto;
    padding: calc(var(--header-h) + 16px) 16px 40px;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  .sidebar.sidebar-open { right: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .side-story { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .content-layout { grid-template-columns: 1fr; }
  .opinion-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .main-nav.open {
    display: flex;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: var(--brand-blue);
    flex-direction: column;
    z-index: 1001;
    padding: 0;
    box-shadow: none;
    animation: slideInLeft 0.28s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
  }
  @keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
  }
  .nav-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    height: 64px;
    min-height: 64px;
    background: #fff;
    border-bottom: 3px solid var(--primary);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 5;
  }
  .nav-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
  }
  .nav-x-btn {
    width: 36px; height: 36px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
  }
  .nav-x-btn:hover { background: var(--primary-dark); }
  .main-nav.open .nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 40px;
    width: 100%;
  }
  .main-nav.open .nav-link {
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-left: 4px solid transparent;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    gap: 8px;
  }
  .main-nav.open .nav-list li { width: 100%; }
  .main-nav.open .nav-link:hover,
  .main-nav.open .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-left-color: var(--primary);
  }
  .main-nav.open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(0,0,0,0.2);
    padding: 4px 0;
    border-radius: 0;
  }
  .main-nav.open .dropdown a {
    padding: 10px 20px 10px 40px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
  }
  .main-nav.open .dropdown a:hover { color: #fff; background: rgba(255,255,255,0.08); }
  .top-bar-left .date-display { display: none; }
}

/* --- Mobile (max 640px) --- */
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .container { padding: 0 14px; }

  /* Header layout */
  .header-inner { gap: 8px; padding: 0 4px; }
  .logo { flex: 1; }
  .logo-img { height: 44px; }
  .font-size-ctrl { display: none; }
  .search-btn, .theme-toggle { width: 32px; height: 32px; border: none; }
  .lang-toggle { padding: 4px 7px; font-size: 0.72rem; border: none; }
  .header-actions { gap: 2px; flex-shrink: 0; }
  .sidebar-toggle-btn { display: none; }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.15rem; }
  .hero-image-wrap { aspect-ratio: 16/8; }
  .hero-content { padding: 14px; }
  .hero-excerpt { display: none; }

  /* Side stories: 2-column grid on mobile */
  .hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .side-story { flex-direction: column; min-width: 0; }
  .side-image { width: 100%; height: 130px; flex-shrink: 0; }
  .side-image img { height: 130px; width: 100%; }
  .side-content { padding: 8px; gap: 4px; }
  .side-content h2 { font-size: 0.78rem; }
  .side-content p { display: none; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }

  /* Sports */
  .sports-item img { width: 88px; height: 64px; }

  /* Entertainment */
  .entertainment-grid { grid-template-columns: repeat(2, 1fr); }
  .ent-card { aspect-ratio: 4/5; height: auto; }

  /* Gallery */
  .gallery-item { width: 180px; }
  .gallery-item img { width: 180px; height: 120px; }

  /* Opinion */
  .opinion-grid { grid-template-columns: 1fr; }

  /* Category tabs */
  .cat-tab { padding: 8px 12px; font-size: 0.78rem; }

  /* Section */
  .section-title { font-size: 1rem; }
  .section-header { margin-bottom: 14px; }

  /* Breaking news */
  .breaking-label { font-size: 0.7rem; padding: 3px 8px; }
  .ticker span { font-size: 0.76rem; }

  /* Sidebar widgets on mobile (shown in panel) */
  .top-bar { display: none; }
  .social-icons { display: none; }

  /* Newsletter */
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { justify-content: center; flex-direction: column; align-items: center; }
  .newsletter-form input { width: 100%; max-width: 300px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-logo-img { height: 80px; }

  /* FAB / back-to-top */
  .fab-group { bottom: 16px; right: 16px; }
  .back-to-top { bottom: 16px; right: 76px; width: 40px; height: 40px; }

  /* Main content padding */
  .main-content { padding: 20px 0 40px; }
}

/* --- Very small (max 380px) --- */
@media (max-width: 380px) {
  .container { padding: 0 10px; }
  .hero-title { font-size: 1rem; }
  .cat-tab { padding: 7px 9px; font-size: 0.72rem; }
  .entertainment-grid { grid-template-columns: repeat(2, 1fr); }
  .ent-card { aspect-ratio: 1/1; }
}

/* ============================================
   HOROSCOPE SECTION
   ============================================ */
.horoscope-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #0f1d6b 0%, #1a2b8f 60%, #e8192c 100%);
  position: relative;
  overflow: hidden;
}
.horoscope-section::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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%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/g%3E%3C/svg%3E");
}
.horoscope-section .section-header { position: relative; }
.horoscope-section .section-title { color: #fff; }
.horoscope-section .view-all { color: rgba(255,255,255,0.8); }
.horoscope-section .view-all:hover { color: #fff; }
.horoscope-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  position: relative;
}
.rashi-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  transition: transform 0.22s, background 0.22s;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.rashi-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.35);
}
.rashi-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}
.rashi-name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
}
.rashi-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rashi-luck {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}

/* ============================================
   MOST READ SECTION
   ============================================ */
.most-read-section {
  padding: 60px 0;
  background: var(--bg-1);
}
.most-read-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.most-read-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.most-read-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.18s;
}
.most-read-item:last-child { border-bottom: none; }
.most-read-item:hover { background: var(--bg-2); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.mr-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--border);
  min-width: 48px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.most-read-item:nth-child(1) .mr-number { color: var(--primary); }
.most-read-item:nth-child(2) .mr-number { color: var(--brand-blue); }
.most-read-item:nth-child(3) .mr-number { color: var(--accent); }
.mr-content { flex: 1; min-width: 0; }
.mr-title {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-1);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  margin-bottom: 6px;
}
.mr-title:hover { color: var(--primary); }
.mr-meta {
  font-size: 0.75rem;
  color: var(--text-3);
  display: flex;
  gap: 6px;
  align-items: center;
}
.mr-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Trending + Poll sidebar */
.most-read-sidebar { display: flex; flex-direction: column; gap: 24px; }
.trending-tags-box, .poll-box {
  background: var(--bg-2);
  border-radius: 14px;
  padding: 20px;
  border: 1px solid var(--border);
}
.trending-tags-title, .poll-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.trending-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.trend-tag {
  background: var(--bg-3);
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.trend-tag:hover { background: var(--primary); color: #fff; }
[data-theme="dark"] .trend-tag { color: var(--text-2); }
.poll-question {
  font-size: 0.9rem;
  color: var(--text-1);
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.5;
}
.poll-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.poll-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.18s, background 0.18s;
}
.poll-option:hover { border-color: var(--primary); background: var(--bg-3); }
.poll-option input { accent-color: var(--primary); }
.poll-vote-btn {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
}
.poll-vote-btn:hover { background: var(--primary-dark); }

/* ============================================
   DISTRICTS SECTION
   ============================================ */
.districts-section {
  padding: 60px 0;
  background: var(--bg-2);
}
.districts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.district-card {
  background: var(--bg-1);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
}
.district-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.district-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.district-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.district-card:hover .district-img-wrap img { transform: scale(1.06); }
.district-info {
  padding: 14px 16px;
  flex: 1;
}
.district-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 6px;
}
[data-theme="dark"] .district-info h3 { color: var(--text-1); }
.district-info p {
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.district-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(232,25,44,0.08);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ============================================
   AGRICULTURE SECTION
   ============================================ */
.agri-section {
  padding: 60px 0;
  background: var(--bg-1);
}
.agri-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.agri-featured {
  background: var(--bg-2);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.agri-featured-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.agri-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.agri-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #2d7a22;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.agri-featured-body { padding: 20px; }
.agri-featured-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
}
.agri-featured-body h3 a {
  color: var(--text-1);
  text-decoration: none;
}
.agri-featured-body h3 a:hover { color: var(--primary); }
.agri-featured-body p {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.agri-meta { font-size: 0.78rem; color: var(--text-3); }
.agri-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.agri-card {
  display: flex;
  gap: 14px;
  text-decoration: none;
  background: var(--bg-2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.agri-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.agri-card img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}
.agri-card-body {
  padding: 10px 14px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.agri-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2d7a22;
  background: rgba(45,122,34,0.1);
  padding: 2px 8px;
  border-radius: 20px;
  align-self: flex-start;
}
.agri-card-body h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.agri-time { font-size: 0.73rem; color: var(--text-3); }

/* Market Prices strip */
.market-prices {
  background: #1a5c14;
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
}
.mp-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  background: rgba(0,0,0,0.2);
  padding: 6px 14px;
  border-radius: 8px;
  flex-shrink: 0;
}
.mp-items {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mp-items::-webkit-scrollbar { display: none; }
.mp-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.mp-crop {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.mp-price {
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}
.mp-price.up { color: #7eff78; }
.mp-price.down { color: #ff8080; }
.mp-price i { font-size: 0.65rem; }

/* ============================================
   RESPONSIVE — NEW SECTIONS
   ============================================ */
@media (max-width: 1200px) {
  .horoscope-grid { grid-template-columns: repeat(4, 1fr); }
  .districts-grid { grid-template-columns: repeat(3, 1fr); }
  .most-read-layout { grid-template-columns: 1fr 300px; }
}
@media (max-width: 900px) {
  .horoscope-grid { grid-template-columns: repeat(3, 1fr); }
  .districts-grid { grid-template-columns: repeat(2, 1fr); }
  .most-read-layout { grid-template-columns: 1fr; }
  .most-read-sidebar { flex-direction: row; }
  .trending-tags-box, .poll-box { flex: 1; }
  .agri-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .horoscope-grid { grid-template-columns: repeat(2, 1fr); }
  .horoscope-section, .most-read-section, .districts-section, .agri-section { padding: 40px 0; }
  .districts-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .most-read-sidebar { flex-direction: column; }
  .market-prices { flex-direction: column; align-items: flex-start; gap: 10px; }
  .agri-card img { width: 80px; height: 65px; }
}
