/*
Theme Name: Minnal24 News
Theme URI: https://minnal24.com
Author: Minnal24 Team
Author URI: https://minnal24.com
Description: மட்டக்களப்பு மற்றும் இலங்கை தமிழ் செய்திகளுக்கான நவீன WordPress Theme
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: minnal24
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Tamil:wght@300;400;500;600;700;800;900&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --primary: #CC0000;
  --primary-dark: #990000;
  --gold: #F59E0B;
  --gold-light: #FACC15;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --font-tamil: 'Noto Sans Tamil', sans-serif;
  --font-body: 'Source Sans 3', 'Noto Sans Tamil', sans-serif;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 12px;
}
body.dark-mode {
  --white: #1e293b;
  --gray-50: #0f172a;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-700: #cbd5e1;
  --gray-800: #e2e8f0;
  --gray-900: #f1f5f9;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--gray-100); color: var(--gray-900); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.dark-mode { background: #0f172a; color: #e2e8f0; }
*, *::before, *::after { max-width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
.tamil-text { font-family: var(--font-tamil); line-height: 1.8; }

/* Container - responsive */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (max-width: 640px) { .container { padding: 0 12px; } }

/* ============================================
   HEADER - NO TOPBAR, Logo + Nav only
   ============================================ */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s, border-bottom 0.3s;
}
body.dark-mode .site-header { background: #1e293b; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.12); border-bottom: 2px solid var(--primary); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 12px;
}

/* Logo image - responsive */
.site-logo-wrap { flex-shrink: 0; }
.site-logo-wrap a { display: flex; align-items: center; }
.site-logo-wrap img.site-logo-img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
@media (max-width: 480px) {
  .site-logo-wrap img.site-logo-img { height: 36px; max-width: 160px; }
}

/* Header ad */
.header-ad-slot { flex: 1; max-width: 480px; display: none; }
@media (min-width: 1024px) { .header-ad-slot { display: block; } }
.header-ad-inner {
  width: 100%; height: 60px;
  border: 2px dashed var(--gray-200);
  background: var(--gray-50);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--gray-400);
}
body.dark-mode .header-ad-inner { background: #334155; border-color: #475569; }

/* Header action buttons */
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-btn {
  width: 38px; height: 38px;
  border: none; background: transparent; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); transition: all 0.2s;
}
.header-btn:hover { background: #fee2e2; color: var(--primary); }
body.dark-mode .header-btn { color: #94a3b8; }
body.dark-mode .header-btn:hover { background: #334155; color: #f1f5f9; }
.header-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle-btn { display: flex; }
@media (min-width: 768px) { .menu-toggle-btn { display: none; } }

/* Search dropdown */
.search-dropdown { display: none; padding: 10px 0 12px; border-top: 1px solid var(--gray-100); }
.search-dropdown.open { display: block; }
body.dark-mode .search-dropdown { border-color: #334155; }
.search-form { display: flex; gap: 8px; }
.search-form input {
  flex: 1; padding: 10px 16px;
  border: 2px solid var(--gray-200); border-radius: 10px;
  font-size: 14px; font-family: var(--font-tamil); outline: none;
  background: var(--white); color: var(--gray-900); transition: border-color 0.2s;
}
.search-form input:focus { border-color: var(--primary); }
body.dark-mode .search-form input { background: #334155; border-color: #475569; color: #e2e8f0; }
.search-form button {
  background: var(--primary); color: #fff; border: none;
  padding: 10px 20px; border-radius: 10px;
  font-family: var(--font-tamil); font-weight: 700; font-size: 14px;
}
.search-form button:hover { background: var(--primary-dark); }

/* ============================================
   MAIN NAVIGATION (Red bar)
   ============================================ */
.main-nav-bar { background: #CC0000; display: none; }
@media (min-width: 768px) { .main-nav-bar { display: block; } }
.main-nav {
  display: flex; align-items: center;
  overflow-x: auto; scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav li { flex-shrink: 0; }
.main-nav a {
  display: flex; align-items: center; gap: 5px;
  padding: 11px 15px;
  color: rgba(255,255,255,0.92);
  font-size: 13px; font-weight: 600;
  font-family: var(--font-tamil); white-space: nowrap;
  transition: background 0.15s;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a { background: rgba(0,0,0,0.2); color: #fff; }
.main-nav .video-link { color: #fde68a; font-weight: 700; }

/* Mobile nav */
.mobile-nav { background: #111; display: none; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.mobile-nav.open { display: block; max-height: 700px; }
.mobile-nav ul { padding: 8px; }
.mobile-nav a {
  display: block; padding: 13px 16px;
  color: #ccc; font-size: 14px; font-family: var(--font-tamil);
  border-bottom: 1px solid #1a1a1a; transition: background 0.15s;
}
.mobile-nav a:hover { background: #1a1a1a; color: #fff; }
.mobile-nav .video-link { color: #fde68a; font-weight: 700; }
.mobile-social { display: flex; gap: 12px; padding: 14px 16px; border-top: 1px solid #222; }
.mobile-social a { color: #666; transition: color 0.2s; }
.mobile-social a:hover { color: #fff; }
.mobile-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ============================================
   BREAKING NEWS TICKER - Single Row Fixed
   ============================================ */
.breaking-news-bar {
  background: #111;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 42px;
}
.breaking-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 100%;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-tamil);
  white-space: nowrap;
  animation: pulseRed 1.5s ease-in-out infinite;
}
.breaking-dot {
  width: 7px; height: 7px;
  background: #fff; border-radius: 50%;
  animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
  flex-shrink: 0;
}
@keyframes ping { 75%,100% { transform: scale(2); opacity: 0; } }
@keyframes pulseRed { 0%,100% { background-color: #CC0000; } 50% { background-color: #ff1a1a; } }

.breaking-ticker-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 6px;
}
.breaking-ticker-content {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
  color: #e5e7eb;
  font-family: var(--font-tamil);
  font-weight: 500;
  animation: ticker 90s linear infinite;
}
.breaking-ticker-content a {
  color: #e5e7eb;
  transition: color 0.2s;
  margin: 0 6px;
}
.breaking-ticker-content a:hover { color: var(--gold-light); }
.breaking-ticker-content:hover { animation-play-state: paused; }
@keyframes ticker { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

.breaking-more-link {
  flex-shrink: 0;
  padding: 0 14px;
  color: var(--gold-light);
  font-size: 11px; font-weight: 700;
  white-space: nowrap;
  font-family: var(--font-tamil);
  height: 100%;
  display: none;
  align-items: center;
}
@media (min-width: 640px) { .breaking-more-link { display: flex; } }
.breaking-more-link:hover { color: var(--gold); }

/* ============================================
   AD SLOTS
   ============================================ */
.ad-slot {
  display: flex; position: static; float: none; clear: both;
  width: 100%; background: #f8f9fa; border: 2px dashed #dee2e6;
  border-radius: 8px; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px; padding: 10px;
  color: #9ca3af; font-size: 11px; font-weight: 600; text-align: center;
}
body.dark-mode .ad-slot { background: #1e293b; border-color: #334155; color: #475569; }
.ad-slot small { font-size: 10px; color: #bbb; }
.ad-bar { background: var(--white); padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
body.dark-mode .ad-bar { background: #1e293b; border-color: #334155; }
.ad-leaderboard { min-height: 90px; max-width: 728px; margin: 0 auto; }
.ad-rectangle { min-height: 250px; max-width: 300px; margin: 0 auto; }
.ad-inline-wrap { margin: 20px 0; text-align: center; }
.ad-label { font-size: 10px; color: #bbb; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title-wrap { display: flex; align-items: center; gap: 10px; }
.section-bar { width: 4px; height: 28px; border-radius: 3px; flex-shrink: 0; }
.section-title { font-size: 18px; font-weight: 900; color: var(--gray-900); font-family: var(--font-tamil); }
body.dark-mode .section-title { color: #f1f5f9; }
.section-all-link { font-size: 13px; font-weight: 700; color: var(--primary); font-family: var(--font-tamil); transition: color 0.2s; }
.section-all-link:hover { color: var(--primary-dark); }

/* ============================================
   NEWS CARDS
   ============================================ */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 0.5s ease; width: 100%; height: 100%; object-fit: cover; display: block; }
.img-zoom:hover img { transform: scale(1.06); }
.red-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 55%, transparent 100%); }
.cat-badge { display: inline-block; padding: 2px 10px; border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: #fff; font-family: var(--font-tamil); }
.breaking-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--primary); color: #fff; font-size: 9px; font-weight: 900; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; animation: pulseRed 1.5s ease-in-out infinite; position: absolute; top: 10px; left: 10px; }

/* Base card */
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; height: 100%; }
body.dark-mode .news-card { background: #1e293b; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* Featured card */
.card-featured { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: block; }
.card-featured .card-img-wrap { position: relative; height: 320px; }
@media (min-width: 768px) { .card-featured .card-img-wrap { height: 380px; } }
@media (min-width: 1024px) { .card-featured .card-img-wrap { height: 420px; } }
.card-featured .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.card-featured:hover .card-img-wrap img { transform: scale(1.05); }
.card-featured .card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px 20px; }
.card-featured .card-title { color: #fff; font-family: var(--font-tamil); font-weight: 900; font-size: 19px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
@media (min-width: 1024px) { .card-featured .card-title { font-size: 22px; } }
.card-featured:hover .card-title { color: var(--gold-light); }
.card-featured .card-meta { color: #9ca3af; font-size: 12px; margin-top: 7px; font-family: var(--font-tamil); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Medium card */
.card-medium .card-img-wrap { position: relative; height: 180px; }
.card-medium .card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.card-medium .card-cat { margin-bottom: 6px; }
.card-medium .card-title { font-size: 14px; font-weight: 700; color: var(--gray-900); font-family: var(--font-tamil); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; transition: color 0.2s; }
body.dark-mode .card-medium .card-title { color: #e2e8f0; }
.news-card:hover .card-medium .card-title { color: var(--primary); }
.card-medium .card-excerpt { font-size: 13px; color: var(--gray-500); margin-top: 6px; line-height: 1.6; font-family: var(--font-tamil); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-medium .card-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--gray-100); font-size: 12px; color: var(--gray-400); font-family: var(--font-tamil); flex-wrap: wrap; }
body.dark-mode .card-medium .card-meta { border-color: #334155; }

/* Compact sidebar card */
.card-compact { display: flex; gap: 10px; padding: 9px 6px; border-radius: 8px; transition: background 0.2s; align-items: flex-start; }
.card-compact:hover { background: var(--gray-50); }
body.dark-mode .card-compact:hover { background: #334155; }
.card-compact-num { font-size: 20px; font-weight: 900; color: #e5e7eb; width: 28px; flex-shrink: 0; text-align: center; line-height: 1.2; }
body.dark-mode .card-compact-num { color: #475569; }
.card-compact-img { width: 72px; height: 56px; object-fit: cover; border-radius: 6px; flex-shrink: 0; transition: transform 0.3s; }
.card-compact:hover .card-compact-img { transform: scale(1.04); }
.card-compact-content { flex: 1; min-width: 0; }
.card-compact-cat { font-size: 11px; font-weight: 700; font-family: var(--font-tamil); margin-bottom: 3px; }
.card-compact-title { font-size: 13px; font-weight: 600; color: var(--gray-800); font-family: var(--font-tamil); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
body.dark-mode .card-compact-title { color: #cbd5e1; }
.card-compact:hover .card-compact-title { color: var(--primary); }
.card-compact-date { font-size: 11px; color: var(--gray-400); margin-top: 3px; font-family: var(--font-tamil); }

/* Latest card */
.card-latest { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); align-items: flex-start; }
body.dark-mode .card-latest { border-color: #334155; }
.card-latest:last-child { border-bottom: none; padding-bottom: 0; }
.card-latest-img { width: 88px; height: 66px; object-fit: cover; border-radius: 6px; flex-shrink: 0; transition: transform 0.3s; }
.card-latest:hover .card-latest-img { transform: scale(1.04); }
.card-latest-body { flex: 1; min-width: 0; }
.card-latest-cat { font-size: 11px; font-weight: 700; font-family: var(--font-tamil); margin-bottom: 3px; }
.card-latest-title { font-size: 13px; font-weight: 600; color: var(--gray-800); font-family: var(--font-tamil); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
body.dark-mode .card-latest-title { color: #cbd5e1; }
.card-latest:hover .card-latest-title { color: var(--primary); }
.card-latest-meta { font-size: 11px; color: var(--gray-400); margin-top: 4px; font-family: var(--font-tamil); display: flex; gap: 6px; }

/* ============================================
   HOMEPAGE LAYOUT
   ============================================ */
.site-main { padding: 20px 0; }

/* Category pills */
.cat-pills-wrap { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: none; }
.cat-pills-wrap::-webkit-scrollbar { display: none; }
.cat-pill { flex-shrink: 0; padding: 6px 16px; border-radius: 25px; font-size: 13px; font-weight: 600; font-family: var(--font-tamil); white-space: nowrap; transition: all 0.2s; border: 2px solid; }
.cat-pill:hover { transform: scale(1.05); opacity: 0.85; }

/* Content + Sidebar grid */
.content-sidebar-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .content-sidebar-grid { grid-template-columns: 1fr 320px; } }

/* News grid */
.news-grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .news-grid-2 { grid-template-columns: 1fr 1fr; } }

.section-block { margin-bottom: 28px; }

/* Feature block (Batticaloa style) */
.batt-feature-block { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
body.dark-mode .batt-feature-block { background: #1e293b; }
.batt-feature-img { position: relative; height: 210px; }
.batt-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.batt-feature-title { font-size: 17px; font-weight: 900; color: #fff; font-family: var(--font-tamil); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.batt-feature-title:hover { color: var(--gold-light); }
.batt-list-item { display: flex; gap: 12px; padding: 12px; border-bottom: 1px solid var(--gray-100); align-items: flex-start; transition: background 0.15s; }
body.dark-mode .batt-list-item { border-color: #334155; }
.batt-list-item:last-child { border-bottom: none; }
.batt-list-item:hover { background: var(--gray-50); }
body.dark-mode .batt-list-item:hover { background: #334155; }
.batt-list-img { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.batt-list-title { font-size: 14px; font-weight: 600; color: var(--gray-800); font-family: var(--font-tamil); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
body.dark-mode .batt-list-title { color: #cbd5e1; }
.batt-list-item:hover .batt-list-title { color: var(--primary); }

/* ============================================
   SIDEBAR WIDGETS - Larger fonts
   ============================================ */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.sidebar-widget { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
body.dark-mode .sidebar-widget { background: #1e293b; }
.sidebar-widget-title { font-size: 17px; font-weight: 900; color: var(--gray-900); font-family: var(--font-tamil); margin-bottom: 14px; }
body.dark-mode .sidebar-widget-title { color: #f1f5f9; }

/* Social follow widget */
.social-follow-widget { background: linear-gradient(135deg, #CC0000, #880000); border-radius: var(--radius); padding: 20px; color: #fff; }
.social-follow-widget h3 { font-size: 17px; font-weight: 900; margin-bottom: 14px; font-family: var(--font-tamil); }
.social-follow-btn { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 8px; transition: opacity 0.2s; }
.social-follow-btn:last-child { margin-bottom: 0; }
.social-follow-btn:hover { opacity: 0.88; color: #fff; }
.btn-tag { font-size: 12px; opacity: 0.75; }
.btn-facebook { background: #1877F2; }
.btn-youtube { background: #FF0000; }
.btn-whatsapp { background: #25D366; }
.btn-twitter { background: #1DA1F2; }

/* Weather widget */
.weather-widget { background: linear-gradient(135deg, #1d4ed8, #1e40af); border-radius: var(--radius); padding: 20px; color: #fff; }
.weather-widget h3 { font-size: 15px; font-weight: 900; margin-bottom: 14px; font-family: var(--font-tamil); display: flex; align-items: center; gap: 6px; }
.weather-main-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.weather-temp { font-size: 40px; font-weight: 900; }
.weather-desc { font-size: 13px; color: #93c5fd; font-family: var(--font-tamil); }
.weather-icon-big { font-size: 48px; }
.weather-stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.2); text-align: center; font-size: 12px; }
.weather-stat-label { color: #93c5fd; font-family: var(--font-tamil); margin-bottom: 2px; }
.weather-stat-val { font-weight: 700; font-size: 13px; }

/* Currency widget */
.currency-widget { background: linear-gradient(135deg, #065f46, #047857); border-radius: var(--radius); padding: 20px; color: #fff; }
.currency-widget h3 { font-size: 15px; font-weight: 900; margin-bottom: 14px; font-family: var(--font-tamil); display: flex; align-items: center; gap: 6px; }
.currency-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.15); font-size: 13px; }
.currency-row:last-child { border-bottom: none; }
.currency-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.currency-flag { font-size: 18px; }
.currency-rate { font-weight: 900; color: #6ee7b7; font-size: 14px; }
.currency-change { font-size: 11px; margin-top: 2px; color: #a7f3d0; }
.currency-footer { margin-top: 10px; font-size: 11px; color: rgba(255,255,255,0.6); text-align: right; font-family: var(--font-tamil); }

/* Gold price widget */
.gold-widget { background: linear-gradient(135deg, #78350f, #92400e); border-radius: var(--radius); padding: 20px; color: #fff; }
.gold-widget h3 { font-size: 15px; font-weight: 900; margin-bottom: 14px; font-family: var(--font-tamil); }
.gold-price-main { text-align: center; padding: 14px 0; }
.gold-price-num { font-size: 28px; font-weight: 900; color: var(--gold-light); }
.gold-price-label { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 4px; font-family: var(--font-tamil); }
.gold-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.gold-item { background: rgba(255,255,255,0.1); border-radius: 8px; padding: 10px; text-align: center; }
.gold-item-label { font-size: 11px; color: rgba(255,255,255,0.7); font-family: var(--font-tamil); }
.gold-item-val { font-size: 14px; font-weight: 700; color: var(--gold-light); margin-top: 3px; }
.gold-footer { margin-top: 10px; font-size: 11px; color: rgba(255,255,255,0.5); text-align: right; font-family: var(--font-tamil); }

/* Tag cloud widget */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; background: var(--gray-100); color: var(--gray-600); font-family: var(--font-tamil); transition: all 0.2s; }
body.dark-mode .tag-cloud a { background: #334155; color: #94a3b8; }
.tag-cloud a:hover { background: var(--primary); color: #fff; transform: scale(1.05); }

/* Newsletter widget */
.newsletter-section { background: linear-gradient(135deg, #CC0000, #880000); padding: 36px 0; color: #fff; }
.newsletter-inner { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .newsletter-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.newsletter-text h3 { font-size: 22px; font-weight: 900; font-family: var(--font-tamil); margin-bottom: 4px; }
.newsletter-text p { font-size: 14px; color: rgba(255,255,255,0.8); font-family: var(--font-tamil); }
.newsletter-form-row { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form-row input { padding: 12px 18px; border-radius: 10px; border: none; font-size: 14px; font-family: var(--font-tamil); outline: none; min-width: 220px; flex: 1; }
.newsletter-form-row button { background: var(--gold); color: #111; border: none; padding: 12px 22px; border-radius: 10px; font-weight: 900; font-size: 14px; font-family: var(--font-tamil); white-space: nowrap; transition: background 0.2s; }
.newsletter-form-row button:hover { background: var(--gold-light); }

/* ============================================
   SINGLE POST
   ============================================ */
.single-breadcrumb { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 9px 0; }
body.dark-mode .single-breadcrumb { background: #1e293b; border-color: #334155; }
.breadcrumb-inner { font-size: 12px; color: var(--gray-500); font-family: var(--font-tamil); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.breadcrumb-inner a { color: var(--gray-500); transition: color 0.2s; }
.breadcrumb-inner a:hover { color: var(--primary); }
.breadcrumb-inner .sep { color: var(--gray-300); }

.single-article { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
body.dark-mode .single-article { background: #1e293b; }
.single-hero-img { position: relative; height: 280px; overflow: hidden; }
@media (min-width: 768px) { .single-hero-img { height: 420px; } }
.single-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-hero-img .img-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%); }

.single-content { padding: 22px; }
@media (min-width: 768px) { .single-content { padding: 32px 40px; } }

.single-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }

.post-title { font-size: 21px; font-weight: 900; color: var(--gray-900); font-family: var(--font-tamil); line-height: 1.45; margin-bottom: 16px; }
@media (min-width: 768px) { .post-title { font-size: 27px; } }
body.dark-mode .post-title { color: #f1f5f9; }

.post-meta-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); margin-bottom: 16px; font-size: 13px; color: var(--gray-500); }
body.dark-mode .post-meta-bar { border-color: #334155; }
.post-meta-item { display: flex; align-items: center; gap: 6px; }
.post-meta-item svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.post-meta-item strong { color: var(--gray-700); font-family: var(--font-tamil); }
body.dark-mode .post-meta-item strong { color: #cbd5e1; }

.share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.share-label { font-size: 14px; font-weight: 700; color: var(--gray-500); font-family: var(--font-tamil); }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 700; color: #fff; border: none; transition: opacity 0.2s; }
.share-btn:hover { opacity: 0.85; color: #fff; }
.share-btn svg { width: 13px; height: 13px; fill: currentColor; }
.share-fb { background: #1877F2; }
.share-tw { background: #1DA1F2; }
.share-wa { background: #25D366; }
.share-copy { background: var(--gray-200); color: var(--gray-700) !important; }
body.dark-mode .share-copy { background: #334155; color: #cbd5e1 !important; }

.post-excerpt-highlight { background: #fff1f1; border-left: 4px solid var(--primary); padding: 14px 18px; margin-bottom: 18px; border-radius: 0 10px 10px 0; font-size: 15px; font-weight: 600; color: var(--gray-700); font-family: var(--font-tamil); line-height: 1.7; }
body.dark-mode .post-excerpt-highlight { background: rgba(204,0,0,0.1); color: #cbd5e1; }

.entry-content { font-family: var(--font-tamil); font-size: 16px; color: var(--gray-700); line-height: 1.9; }
body.dark-mode .entry-content { color: #94a3b8; }
.entry-content p { margin-bottom: 16px; }
.entry-content h2 { font-size: 21px; font-weight: 900; margin: 24px 0 12px; color: var(--gray-900); }
body.dark-mode .entry-content h2 { color: #f1f5f9; }
.entry-content h3 { font-size: 18px; font-weight: 700; margin: 18px 0 10px; color: var(--gray-800); }
.entry-content img { border-radius: 10px; margin: 16px 0; width: 100%; }
.entry-content blockquote { border-left: 4px solid var(--primary); padding: 12px 18px; background: #fff1f1; border-radius: 0 10px 10px 0; margin: 16px 0; font-family: var(--font-tamil); font-weight: 600; }
body.dark-mode .entry-content blockquote { background: rgba(204,0,0,0.1); }
.entry-content a { color: var(--primary); }

.post-tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--gray-100); align-items: center; }
body.dark-mode .post-tags-row { border-color: #334155; }
.tags-label { font-size: 14px; font-weight: 700; color: var(--gray-500); font-family: var(--font-tamil); }
.post-tag { background: var(--gray-100); color: var(--gray-600); padding: 5px 14px; border-radius: 20px; font-size: 13px; font-family: var(--font-tamil); transition: all 0.2s; }
body.dark-mode .post-tag { background: #334155; color: #94a3b8; }
.post-tag:hover { background: var(--primary); color: #fff; }

/* Related posts - Beautiful List Style */
.related-posts { margin-top: 24px; }
.related-list { display: flex; flex-direction: column; gap: 0; }
.related-list-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
  border-radius: 0;
  transition: background 0.15s;
  align-items: flex-start;
}
.related-list-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.related-list-item:last-child { border-bottom: none; border-radius: 0 0 var(--radius) var(--radius); }
body.dark-mode .related-list-item { background: #1e293b; border-color: #334155; }
.related-list-item:hover { background: #fff8f8; }
body.dark-mode .related-list-item:hover { background: #334155; }
.related-list-num { font-size: 22px; font-weight: 900; color: #e5e7eb; width: 30px; flex-shrink: 0; text-align: center; margin-top: 2px; line-height: 1; }
body.dark-mode .related-list-num { color: #475569; }
.related-list-img { width: 90px; height: 68px; object-fit: cover; border-radius: 8px; flex-shrink: 0; transition: transform 0.3s; }
.related-list-item:hover .related-list-img { transform: scale(1.04); }
.related-list-body { flex: 1; min-width: 0; }
.related-list-cat { font-size: 11px; font-weight: 700; font-family: var(--font-tamil); margin-bottom: 4px; }
.related-list-title { font-size: 14px; font-weight: 700; color: var(--gray-800); font-family: var(--font-tamil); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
body.dark-mode .related-list-title { color: #cbd5e1; }
.related-list-item:hover .related-list-title { color: var(--primary); }
.related-list-meta { font-size: 11px; color: var(--gray-400); margin-top: 5px; font-family: var(--font-tamil); display: flex; gap: 6px; flex-wrap: wrap; }

/* ============================================
   FOOTER - Light text on dark background
   ============================================ */
.site-footer { background: #0f172a; color: #94a3b8; }

.footer-top { padding: 44px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* Footer brand column */
.footer-brand .footer-logo { display: flex; align-items: center; margin-bottom: 16px; }
.footer-brand .footer-logo img { height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.footer-desc { font-size: 14px; color: #94a3b8; line-height: 1.7; font-family: var(--font-tamil); margin-bottom: 14px; }
.footer-contact-info { font-size: 14px; color: #64748b; font-family: var(--font-tamil); line-height: 2.4; }
.footer-contact-info a { color: #64748b; transition: color 0.2s; }
.footer-contact-info a:hover { color: #94a3b8; }

.footer-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.footer-social-btn { display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #fff; transition: opacity 0.2s; }
.footer-social-btn:hover { opacity: 0.85; color: #fff; }
.footer-social-btn svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* Footer columns */
.footer-col h4 { font-size: 13px; font-weight: 700; color: #cbd5e1; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #1e293b; }
.footer-col a { display: flex; align-items: center; gap: 7px; font-size: 14px; color: #64748b; margin-bottom: 10px; font-family: var(--font-tamil); transition: color 0.2s; }
.footer-col a::before { content: '›'; color: var(--primary); font-weight: 700; font-size: 16px; }
.footer-col a:hover { color: #94a3b8; }

/* Footer bottom */
.footer-bottom { background: #020617; border-top: 1px solid #1e293b; padding: 16px 0; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: #475569; }
.footer-bottom-inner a { color: #475569; transition: color 0.2s; }
.footer-bottom-inner a:hover { color: #94a3b8; }
.footer-links-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-rss { display: flex; align-items: center; gap: 5px; }
.rss-dot { width: 8px; height: 8px; background: #f97316; border-radius: 50%; }

/* ============================================
   CATEGORY PAGE
   ============================================ */
.cat-hero { padding: 30px 0; color: #fff; }
.cat-hero h1 { font-size: 28px; font-weight: 900; font-family: var(--font-tamil); }
.cat-hero p { font-size: 14px; opacity: 0.8; margin-top: 5px; font-family: var(--font-tamil); }

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-hero { background: #CC0000; padding: 28px 0; color: #fff; }
.search-hero h1 { font-size: 22px; font-weight: 900; font-family: var(--font-tamil); margin-bottom: 14px; }
.search-form-main { display: flex; gap: 8px; flex-wrap: wrap; }
.search-form-main input { flex: 1; min-width: 200px; padding: 12px 18px; border-radius: 10px; border: none; font-size: 14px; font-family: var(--font-tamil); outline: none; }
.search-form-main button { background: var(--gold); color: #111; border: none; padding: 12px 22px; border-radius: 10px; font-weight: 900; font-size: 14px; font-family: var(--font-tamil); white-space: nowrap; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrap { display: flex; justify-content: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.page-numbers { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; font-size: 14px; font-weight: 600; background: var(--white); color: var(--gray-700); border: 1px solid var(--gray-200); transition: all 0.2s; }
body.dark-mode .page-numbers { background: #1e293b; color: #cbd5e1; border-color: #334155; }
.page-numbers:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-numbers.dots { background: none; border: none; }

/* ============================================
   404
   ============================================ */
.error-wrap { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.error-inner { text-align: center; padding: 40px 20px; }
.error-num { font-size: 96px; font-weight: 900; color: var(--primary); line-height: 1; }
.error-title { font-size: 22px; font-weight: 900; font-family: var(--font-tamil); color: var(--gray-800); margin: 12px 0 8px; }
body.dark-mode .error-title { color: #e2e8f0; }
.error-desc { color: var(--gray-500); font-family: var(--font-tamil); font-size: 15px; margin-bottom: 22px; }
.error-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary { display: inline-block; background: var(--primary); color: #fff; padding: 12px 26px; border-radius: 10px; font-weight: 700; font-size: 14px; font-family: var(--font-tamil); border: none; transition: background 0.2s; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-dark { display: inline-block; background: var(--gray-800); color: #fff; padding: 12px 26px; border-radius: 10px; font-weight: 700; font-size: 14px; font-family: var(--font-tamil); border: none; transition: background 0.2s; }
.btn-dark:hover { background: var(--gray-900); color: #fff; }
.btn-load-more { display: block; background: var(--primary); color: #fff; padding: 14px 40px; border-radius: 12px; font-weight: 900; font-size: 15px; font-family: var(--font-tamil); border: none; margin: 24px auto 0; transition: background 0.2s; text-align: center; }
.btn-load-more:hover { background: var(--primary-dark); color: #fff; }

/* ============================================
   SCROLL TO TOP
   ============================================ */
#scroll-to-top { position: fixed; bottom: 24px; right: 24px; width: 46px; height: 46px; background: var(--primary); color: #fff; border: none; border-radius: 50%; font-size: 20px; display: none; align-items: center; justify-content: center; z-index: 998; box-shadow: 0 4px 16px rgba(204,0,0,0.4); transition: all 0.2s; }
#scroll-to-top.visible { display: flex; }
#scroll-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
#scroll-to-top svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================
   RESPONSIVE OVERFLOW FIXES
   ============================================ */
body, html { overflow-x: hidden; width: 100%; }
.site-header, .main-nav-bar, .breaking-news-bar, .site-main, .site-footer, .newsletter-section { width: 100%; max-width: 100%; }
table { width: 100%; overflow-x: auto; display: block; }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; height: auto; }
iframe { max-width: 100%; }

@media (max-width: 768px) {
  .content-sidebar-grid { grid-template-columns: 1fr; }
  .news-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .related-list-img { width: 70px; height: 54px; }
  .single-content { padding: 16px; }
  .post-title { font-size: 20px; }
  .footer-social-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .news-grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Comments */
.comments-area { background: var(--white); border-radius: var(--radius); padding: 24px; margin-top: 20px; box-shadow: var(--shadow); }
body.dark-mode .comments-area { background: #1e293b; }
.comments-title { font-size: 19px; font-weight: 900; font-family: var(--font-tamil); margin-bottom: 18px; color: var(--gray-900); }
body.dark-mode .comments-title { color: #f1f5f9; }
.comment-body-inner { background: var(--gray-50); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
body.dark-mode .comment-body-inner { background: #334155; }
.fn { font-weight: 700; font-size: 14px; color: var(--gray-800); font-style: normal; }
body.dark-mode .fn { color: #e2e8f0; }
.comment-metadata { font-size: 12px; color: var(--gray-400); margin: 3px 0 8px; }
.comment-content p { font-size: 14px; color: var(--gray-600); font-family: var(--font-tamil); line-height: 1.6; }
body.dark-mode .comment-content p { color: #94a3b8; }
.comment-reply-link { font-size: 13px; color: var(--primary); font-weight: 700; }
.comment-form label { display: block; font-size: 13px; font-weight: 700; color: var(--gray-600); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 14px; font-family: var(--font-tamil); outline: none; background: var(--white); color: var(--gray-900); margin-bottom: 14px; transition: border-color 0.2s; }
body.dark-mode .comment-form input, body.dark-mode .comment-form textarea { background: #334155; border-color: #475569; color: #e2e8f0; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit { background: var(--primary); color: #fff; border: none; padding: 12px 26px; border-radius: 10px; font-weight: 700; font-size: 15px; font-family: var(--font-tamil); transition: background 0.2s; }
.comment-form .submit:hover { background: var(--primary-dark); }

/* Scrollbar & Selection */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }
::selection { background: rgba(204,0,0,0.2); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media print { .site-header, .main-nav-bar, .breaking-news-bar, .sidebar, .site-footer, .newsletter-section, #scroll-to-top { display: none; } }

/* ============================================
   3 AD SLOTS ROW (below breaking news)
   ============================================ */
.triple-ad-bar {
  background: var(--white);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}
body.dark-mode .triple-ad-bar { background: #1e293b; border-color: #334155; }
.triple-ad-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  align-items: center;
}
@media (max-width: 768px) {
  .triple-ad-row { grid-template-columns: 1fr; }
}
.triple-ad-item { display: flex; align-items: center; justify-content: center; }
.ad-slot-small {
  min-height: 60px;
  width: 100%;
  max-width: 240px;
  border-radius: 6px;
}

/* ============================================
   STORY SLIDER (Web Stories style)
   ============================================ */
.story-slider-section {
  margin-bottom: 24px;
  margin-top: 8px;
}
.story-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.story-slider-title {
  font-size: 19px;
  font-weight: 900;
  color: var(--gray-900);
}
body.dark-mode .story-slider-title { color: #f1f5f9; }
.story-slider-nav {
  display: flex;
  gap: 8px;
}
.slider-nav-btn {
  width: 36px; height: 36px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-700);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}
.slider-nav-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
body.dark-mode .slider-nav-btn { background: #1e293b; border-color: #334155; color: #cbd5e1; }

.story-slider-wrap {
  overflow: hidden;
  border-radius: var(--radius);
}
.story-slider-track {
  display: flex;
  gap: 14px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.story-card {
  flex-shrink: 0;
  width: 160px;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
@media (max-width: 480px) { .story-card { width: 130px; } }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
body.dark-mode .story-card { background: #1e293b; }

.story-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
@media (max-width: 480px) { .story-card-img { height: 170px; } }
.story-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.story-card:hover .story-card-img img { transform: scale(1.06); }

.story-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}
.story-play-btn {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 36px; height: 36px;
  background: rgba(204,0,0,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: background 0.2s, transform 0.2s;
}
.story-card:hover .story-play-btn { background: var(--primary); transform: scale(1.1); }

.story-cat-badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.story-card-body { padding: 10px 10px 12px; }
.story-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.dark-mode .story-card-title { color: #cbd5e1; }
.story-card-excerpt { display: none; }

/* ============================================
   STORY MODAL (popup like image 2)
   ============================================ */
.story-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.story-modal-overlay.open { display: flex; }

.story-modal {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
body.dark-mode .story-modal { background: #1e293b; }

.story-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}
body.dark-mode .story-modal-topbar { border-color: #334155; }

.story-modal-full-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.story-modal-full-btn:hover { background: var(--primary); color: #fff; }

.story-modal-close-btn {
  font-size: 13px; font-weight: 700;
  color: var(--gray-500);
  background: var(--gray-100);
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.story-modal-close-btn:hover { background: var(--gray-200); color: var(--gray-800); }
body.dark-mode .story-modal-close-btn { background: #334155; color: #94a3b8; }

.story-modal-img-wrap {
  flex-shrink: 0;
  height: 240px;
  overflow: hidden;
}
.story-modal-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.story-modal-body {
  padding: 18px 20px;
  flex: 1;
  overflow-y: auto;
}
.story-modal-cat {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.story-modal-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 10px;
}
body.dark-mode .story-modal-title { color: #f1f5f9; }
.story-modal-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 12px;
  font-family: var(--font-tamil);
  flex-wrap: wrap;
}
.story-modal-dot { color: var(--gray-300); }
.story-modal-excerpt {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}
body.dark-mode .story-modal-excerpt { color: #94a3b8; }
.story-modal-readmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
}
.story-modal-readmore-btn:hover { background: var(--primary); color: #fff; }
body.dark-mode .story-modal-readmore-btn { background: #334155; color: #cbd5e1; }

.story-modal-footer {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
  flex-shrink: 0;
}
body.dark-mode .story-modal-footer { border-color: #334155; }
.story-modal-nav-btn {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}
.story-modal-nav-btn:hover, .story-modal-nav-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
body.dark-mode .story-modal-nav-btn { background: #334155; border-color: #475569; color: #cbd5e1; }

/* ============================================
   WHATSAPP ANNOUNCEMENT BANNER
   ============================================ */
.wa-announcement {
  background: linear-gradient(135deg, #075e54, #128c7e);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  box-shadow: 0 8px 24px rgba(18,140,126,0.3);
  position: relative;
  overflow: hidden;
}
.wa-announcement::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.wa-announcement::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.wa-announcement-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.wa-icon-wrap {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wa-text { flex: 1; min-width: 180px; }
.wa-title {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.4;
}
.wa-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.wa-join-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.wa-join-btn:hover { background: #20ba5a; transform: translateY(-2px); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
@media (max-width: 640px) {
  .wa-announcement-inner { flex-direction: column; text-align: center; }
  .wa-join-btn { width: 100%; justify-content: center; }
}
