/* ============================================
   Tamil News Portal - Main Stylesheet
   ============================================ */

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

/* ---- CSS Variables — Guardian Blue Professional Theme ---- */
:root {
  --primary: #003580;
  --primary-dark: #052962;
  --primary-light: #1565C0;
  --accent: #E8A000;
  --topbar-bg: #052962;
  --nav-bg: #ffffff;
  --nav-border: #003580;
  --footer-bg: #041E42;
  --footer-text: #b0c4de;
  --text-dark: #111111;
  --text-muted: #555555;
  --text-light: #888888;
  --border: #C8D8EF;
  --bg-light: #F2F6FB;
  --bg-white: #ffffff;
  --red: #C70000;
  --blue: #1565c0;
  --gold: #E8A000;
  --category-bg: #003580;
  --shadow: 0 2px 10px rgba(5,41,98,0.10);
  --shadow-hover: 0 8px 24px rgba(5,41,98,0.18);
  --radius: 6px;
  --font-tamil: 'Noto Sans Tamil', 'TAMIL-UNI001', sans-serif;
  --font-heading: 'Noto Sans Tamil', 'TAMIL-UNI005', sans-serif;
  /* Theme extras */
  --page-bg: #dce8f7;
  --wrapper-bg: #ffffff;
  --wrapper-radius: 12px;
  --wrapper-shadow: 0 4px 24px rgba(5,41,98,0.10);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-tamil);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--page-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

a { text-decoration: none; color: inherit; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.col { padding: 0 10px; }
.col-12 { width: 100%; }
.col-8 { width: 66.666%; }
.col-4 { width: 33.333%; }
.col-6 { width: 50%; }
.col-3 { width: 25%; }

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  background: var(--topbar-bg, #052962);
  color: #fff;
  font-size: 12px;
  position: relative;
  z-index: 1001;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 36px;
  background: transparent;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-left a {
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: background .2s, color .2s;
}
.topbar-left a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.topbar-left a i { font-size: 11px; }

.topbar-date {
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-left: 1px solid rgba(255,255,255,0.12);
}

.topbar-right {
  display: flex;
  align-items: center;
}

.topbar-social {
  display: flex;
  align-items: center;
  height: 100%;
}

.topbar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 100%;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  border-left: 1px solid rgba(255,255,255,0.12);
  transition: background .2s, color .2s;
}
.topbar-social a:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--topbar-bg, #052962);
  padding: 8px 0 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 20px;
  background: var(--wrapper-bg, #fff);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 2px 0 rgba(5,41,98,0.06);
  margin: 0 -16px;
}

/* ---- Logo ---- */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 46px;
  height: 46px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(5,41,98,0.35);
  overflow: hidden;
}

.logo-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .name {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.logo-text .tagline {
  font-size: 11px;
  color: var(--text-light);
  font-family: var(--font-tamil);
  margin-top: 3px;
  letter-spacing: 0.3px;
}

/* ---- Header Ads ---- */
.header-ads {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  min-width: 0;
}

.header-ad-728 {
  width: 728px;
  height: 90px;
  overflow: hidden;
  position: relative;
}

.header-ad-728 img {
  width: 728px;
  height: 90px;
  object-fit: cover;
  display: block;
}

.header-ad-fallback {
  display: none;
  width: 728px;
  height: 90px;
  background: #f0f0f0;
  border: 1px dashed #bbb;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.header-ad-fallback span { font-size: 13px; color: #999; font-weight: 600; }
.header-ad-fallback .ad-size { font-size: 11px; color: #bbb; font-weight: 400; }

/* ============================================
   HAMBURGER BUTTON
   ============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  flex-shrink: 0;
  order: 99;
  position: relative;
  transition: background .25s, transform .2s;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,53,128,0.25);
}
.hamburger:active { transform: scale(.93); }
.hamburger span {
  display: block;
  background: #fff;
  border-radius: 3px;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .2s, width .25s;
  transform-origin: center;
}
.hamburger span:nth-child(1) { width: 22px; height: 2.5px; }
.hamburger span:nth-child(2) { width: 16px; height: 2.5px; }
.hamburger span:nth-child(3) { width: 22px; height: 2.5px; }
.hamburger.open span:nth-child(1) { width: 22px; transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { width: 22px; transform: translateY(-7.5px) rotate(-45deg); }

/* Desktop: transparent flex wrapper */
.mobile-nav-panel { display: flex; flex: 1; align-items: center; min-width: 0; }

/* ============================================
   MOBILE DRAWER — header bar hidden on desktop
   ============================================ */
.mobile-nav-header { display: none !important; }
.mobile-nav-logo img { height: 36px; width: auto; display: block; }
.mobile-nav-logo span { font-size: 15px; font-weight: 700; color: #fff; }
.mobile-nav-close {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  font-size: 16px; cursor: pointer; color: #fff;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.mobile-nav-close:hover { background: rgba(255,255,255,0.28); transform: rotate(90deg); }

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
  background: var(--topbar-bg, #052962);
  position: relative;
  z-index: 999;
  padding: 0;
}

.nav-inner {
  background: var(--wrapper-bg, #fff);
  border: none;
  border-top: 3px solid var(--primary);
  border-radius: 0;
  box-shadow: 0 3px 12px rgba(5,41,98,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -16px;
}

.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 15px 15px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  font-family: var(--font-tamil);
  transition: color .2s;
  position: relative;
  white-space: nowrap;
}

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform .25s ease;
  margin-bottom: -3px;
}

.nav-menu > li:hover > a::after,
.nav-menu > li.active > a::after { transform: scaleX(1); }

.nav-menu > li:hover > a,
.nav-menu > li.active > a { color: var(--primary); }

.nav-menu > li > a .fa-home { font-size: 16px; }

.nav-menu > li > a .arrow {
  font-size: 9px;
  opacity: .6;
  transition: transform .25s;
}
.nav-menu > li:hover > a .arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  min-width: 210px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.14);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s, transform .22s, visibility .22s;
  z-index: 1001;
}

.nav-menu > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-tamil);
  transition: all .18s;
}
.dropdown li a::before {
  content: '›';
  color: var(--primary);
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-4px);
  transition: all .18s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover {
  background: #EEF4FB;
  color: var(--primary);
  padding-left: 22px;
}
.dropdown li a:hover::before { opacity: 1; transform: translateX(0); }

/* ---- Nav Search ---- */
.nav-search { display: flex; align-items: center; padding: 0 0 0 6px; flex-shrink: 0; }

.nav-search-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: var(--bg-light);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--text-dark);
  transition: background .2s, color .2s;
}
.nav-search-btn:hover, .nav-search-btn.active {
  background: var(--primary);
  color: #fff;
}

/* ---- Slide-down search bar (click popup) ---- */
.search-bar-dropdown {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: #fff;
  border-top: 3px solid var(--primary);
  box-shadow: 0 8px 30px rgba(0,0,0,0.13);
  padding: 14px 0;
  z-index: 998;
  display: none;
}
.search-bar-dropdown.open { display: block; }

/* Box mode: constrain search dropdown to container width */
body.layout-box .search-bar-dropdown {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  border-radius: 0 0 10px 10px;
}

.search-bar-inner {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--primary);
  border-radius: 30px;
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 2px 12px rgba(5,41,98,0.10);
}

.search-bar-inner input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 20px;
  font-size: 14px;
  font-family: var(--font-tamil);
  color: var(--text-dark);
  background: transparent;
}
.search-bar-inner input::placeholder { color: #aaa; }

.search-bar-inner button {
  background: var(--primary);
  border: none;
  padding: 0 22px;
  height: 42px;
  cursor: pointer;
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-tamil);
  font-weight: 600;
  transition: background .2s;
  border-radius: 0 30px 30px 0;
}
.search-bar-inner button:hover { background: var(--primary-dark); }
.search-bar-inner .search-text { font-size: 13px; }

.search-bar-close {
  position: absolute;
  top: 14px; right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px;
  transition: color .2s;
}
.search-bar-close:hover { color: var(--red); }

/* ============================================
   BREAKING NEWS TICKER
   ============================================ */
.news-ticker-bar {
  background: var(--topbar-bg, #052962);
  padding: 0 0 10px;
}

.news-ticker-inner {
  display: flex;
  align-items: stretch;
  height: 42px;
  border: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(5,41,98,0.14);
  margin: 0 -16px;
}

.news-ticker-label {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-tamil);
  padding: 0 20px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.news-ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  background-color: white;
}

.news-ticker-track {
  display: flex;
  white-space: nowrap;
  animation: tickerScroll 60s linear infinite;
  will-change: transform;
}

.news-ticker-track span {
  padding-right: 60px;
  font-size: 13px;
  font-family: var(--font-tamil);
}

.news-ticker-track span::before {
  content: '•';
  color: var(--primary);
  margin-right: 10px;
  font-size: 16px;
  vertical-align: middle;
}

.news-ticker-track a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
}

.news-ticker-track a:hover { color: var(--primary); text-decoration: underline; }
.news-ticker-track.paused { animation-play-state: paused; }

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

.news-ticker-controls {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  border-left: 1px solid #C8D8EF;
}

.ntc-btn {
  width: 36px;
  background: #f8f8f8;
  border: none;
  border-left: 1px solid #e8e8e8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-size: 13px;
  color: #555;
}

.ntc-btn:first-child { border-left: none; }
.ntc-btn:hover { background: var(--primary); color: #fff; }

/* ============================================
   MAIN LAYOUT
   ============================================ */
.main-wrapper {
  padding: 18px 0 28px;
  background: var(--page-bg, #dce8f7);
}
.main-wrapper > .container {
  background: var(--wrapper-bg, #fff);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(5,41,98,0.09);
  padding-top: 24px;
  padding-bottom: 24px;
}

.content-area {
  width: calc(100% - 320px);
  padding-right: 20px;
}

.sidebar {
  width: 300px;
  flex-shrink: 0;
}

.layout-flex {
  display: flex;
  gap: 20px;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  padding: 6px 16px;
  font-family: var(--font-heading);
  display: inline-block;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 0;
  bottom: 0;
  border-left: 10px solid var(--primary);
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
}

.section-more {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  border: 1px solid var(--primary);
  padding: 4px 12px;
  border-radius: 30px;
  transition: all .2s;
}

.section-more:hover {
  background: var(--primary);
  color: #fff;
}

/* section-heading for single news related */
.section-heading {
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--primary);
}

.section-heading h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

/* ============================================
   HERO / FEATURED SECTION
   ============================================ */
.hero-section { margin-bottom: 24px; }

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
}

.hero-main {
  grid-row: span 2;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-main img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform .4s;
}

.hero-main:hover img { transform: scale(1.04); }

.hero-side { position: relative; overflow: hidden; border-radius: var(--radius); }

.hero-side img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  transition: transform .4s;
}

.hero-side:hover img { transform: scale(1.04); }

.news-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 40px 16px 16px;
}

.news-overlay .cat-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 6px;
  font-family: var(--font-tamil);
}

.news-overlay h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  font-family: var(--font-heading);
}

.news-overlay .news-meta {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  margin-top: 6px;
}

.hero-main .news-overlay h3 { font-size: 20px; }

/* ============================================
   CATEGORY BADGE
   ============================================ */
.cat-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 3px;
  font-family: var(--font-tamil);
  font-weight: 600;
}

.cat-badge.red { background: var(--red); }
.cat-badge.blue { background: var(--blue); }
.cat-badge.orange { background: var(--accent); color: #111; }

/* ============================================
   NEWS META
   ============================================ */
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 5px;
  font-family: var(--font-tamil);
}

.news-meta .author { color: var(--primary); font-weight: 600; }
.news-meta .sep { opacity: .4; }

/* ============================================
   NEWS CARDS — GRID
   ============================================ */
.news-section { margin-bottom: 30px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.news-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.news-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.news-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }

.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  border: 1px solid #ebebeb;
  transition: box-shadow .3s, transform .3s;
}

.news-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.news-card-img {
  position: relative;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  transition: transform .4s;
}

.news-card:hover .news-card-img img { transform: scale(1.06); }

.news-card-img .cat-badge {
  position: absolute;
  top: 10px; left: 10px;
}

.news-card-body { padding: 14px; }

.news-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-dark);
  font-family: var(--font-heading);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-title a:hover { color: var(--primary); }

.news-card-body h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-dark);
  font-family: var(--font-heading);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-body h3 a:hover { color: var(--primary); }

.news-card-excerpt, .news-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-light);
}

/* ============================================
   NEWS LIST (horizontal card)
   ============================================ */
.news-list-item {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}

.news-list-item:hover { box-shadow: var(--shadow-hover); }

.news-list-img {
  flex-shrink: 0;
  width: 120px;
  height: 85px;
  overflow: hidden;
}

.news-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.news-list-item:hover .news-list-img img { transform: scale(1.06); }

.news-list-body {
  flex: 1;
  padding: 10px 10px 10px 0;
}

.news-list-body h4 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-dark);
  font-family: var(--font-heading);
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-body h4 a:hover { color: var(--primary); }

/* ============================================
   FEATURED NEWS (large + list)
   ============================================ */
.featured-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.featured-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.featured-main img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform .4s;
}

.featured-main:hover img { transform: scale(1.04); }

.featured-list { display: flex; flex-direction: column; gap: 10px; }

/* ============================================
   HIGHLIGHT CARD
   ============================================ */
.highlight-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  display: flex;
  gap: 12px;
  padding: 12px;
  margin-bottom: 10px;
  transition: box-shadow .2s;
}

.highlight-card:hover { box-shadow: var(--shadow-hover); }

.highlight-card img {
  width: 85px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.highlight-card h4 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  font-family: var(--font-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.highlight-card h4 a:hover { color: var(--primary); }

/* ============================================
   AD BANNERS
   ============================================ */
.ad-banner {
  background: linear-gradient(135deg, #1a1a1a, #333);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  margin-bottom: 24px;
}

.ad-banner img { width: 100%; height: 90px; object-fit: cover; }

.ad-banner-placeholder {
  width: 100%;
  height: 90px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ============================================
   AD SLIDER
   ============================================ */
.ad-slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 24px;
  background: #f0f0f0;
}
.ad-slider-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}
.ad-slide {
  min-width: 100%;
  position: relative;
}
.ad-slide a { display: block; }
.ad-slide img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.ad-slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* arrows hidden */
.ad-slider-btn { display: none; }

.ad-slider-dots {
  position: absolute;
  bottom: 6px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 5px;
}
.ad-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.ad-dot.active {
  background: rgba(0,0,0,0.55);
  transform: scale(1.25);
}

/* sidebar variant — smaller height */
.sidebar-ad-slider .ad-slide img { height: 100px; }

/* ============================================
   SIDEBAR
   ============================================ */
.widget {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.widget-header {
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-header .icon { margin-right: 8px; }

.widget-body { padding: 14px; }

/* Social Follow Widget */
.social-follow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: opacity .2s;
}

.social-btn:hover { opacity: .85; color: #fff; }
.social-btn.facebook  { background: #1877f2; }
.social-btn.twitter   { background: #000; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.youtube   { background: #ff0000; }
.social-btn.whatsapp  { background: #25d366; }
.social-btn.telegram  { background: #0088cc; }
.social-btn.linkedin  { background: #0077b5; }
.social-btn.pinterest { background: #e60023; }
.social-btn.tiktok    { background: #010101; }
.social-btn.threads   { background: #101010; }
.social-btn.koo       { background: #f7c600; color: #000 !important; }
.social-btn.sharechat { background: #00b3b3; }
.social-btn .count { font-size: 14px; font-weight: 700; display: block; }
.social-btn .label { font-size: 10px; display: block; opacity: .85; }

/* Popular Posts Widget */
.popular-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
}

.popular-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-tamil);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--text-muted);
  transition: all .2s;
}

.popular-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.popular-list { padding: 12px; }

.popular-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}

.popular-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.popular-num {
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.popular-item h5 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  font-family: var(--font-heading);
}

.popular-item h5 a:hover { color: var(--primary); }

/* Sidebar News Items */
.sidebar-news-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.sidebar-news-item:last-child { border-bottom: none; }

.sidebar-news-img {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.sidebar-news-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  font-family: var(--font-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-news-title a:hover { color: var(--primary); }

/* Category list sidebar */
.sidebar-cat-list { list-style: none; }

.sidebar-cat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}

.sidebar-cat-list li:last-child { border-bottom: none; }
.sidebar-cat-list li a::before { content: '›'; margin-right: 6px; color: var(--primary); }
.sidebar-cat-list li a:hover { color: var(--primary); }

.sidebar-cat-count {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
}

/* E-Paper CTA Sidebar Button */
.epaper-cta-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
  color: #fff;
  box-shadow: 0 4px 18px rgba(5,41,98,0.28);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.epaper-cta-btn::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.epaper-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5,41,98,0.38);
  color: #fff;
}

.epaper-cta-icon {
  width: 46px;
  height: 46px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #111;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.epaper-cta-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.epaper-cta-label {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-heading);
  line-height: 1.2;
}

.epaper-cta-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-tamil);
  font-weight: 500;
}

/* E-paper sidebar widget */
.epaper-sb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.epaper-sb-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--border, #e5e7eb);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  background: #f8f8f8;
  display: block;
}

.epaper-sb-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  display: block;
}

.epaper-sb-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 5px 4px;
  margin-top: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   SINGLE NEWS PAGE
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--primary); }
.breadcrumb .sep { color: var(--text-light); }

.news-detail {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.news-detail-header { margin-bottom: 20px; }

.news-detail-category {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 3px;
  margin-bottom: 10px;
  font-family: var(--font-tamil);
  font-weight: 600;
}

.news-detail-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text-dark);
  font-family: var(--font-heading);
  margin-bottom: 14px;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.news-detail-img {
  margin: 20px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.news-detail-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.news-detail-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-dark);
  font-family: var(--font-tamil);
}

.news-detail-content p { margin-bottom: 18px; }
.news-detail-content h2 { font-size: 22px; font-weight: 700; margin: 24px 0 12px; font-family: var(--font-heading); }
.news-detail-content img { max-width: 100%; border-radius: var(--radius); margin: 16px 0; }
.news-detail-content blockquote {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 20px 0;
  font-style: italic;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Social Share in article */
.news-share {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.news-share h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: var(--font-heading);
}

.share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: opacity .2s;
  border: none;
  cursor: pointer;
  font-family: var(--font-tamil);
}

.share-btn:hover { opacity: .85; color: #fff; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.wa { background: #25d366; }
.share-btn.copy { background: #555; }

/* Related News */
.related-news { margin-bottom: 24px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

/* ============================================
   CATEGORY PAGE
   ============================================ */
.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  margin-bottom: 24px;
  border-bottom: 3px solid var(--primary);
}

.category-header h1 {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary);
}

.news-count {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
}

/* No results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-results i { font-size: 48px; color: var(--border); margin-bottom: 16px; display: block; }
.no-results h3 { font-size: 20px; margin-bottom: 8px; font-family: var(--font-heading); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.page-btn:hover, .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--page-bg, #dce8f7);
  color: var(--footer-text);
  padding: 0 0 20px;
}

.footer-box {
  background: var(--footer-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(5,41,98,0.13);
  margin: 0 -16px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 40px 30px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo-text .name {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-heading);
  margin-bottom: 8px;
}

.footer-about {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  font-family: var(--font-tamil);
}

.footer-social { display: flex; gap: 8px; margin-top: 14px; }

.footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  transition: background .2s;
}

.footer-social a:hover { background: var(--primary-light); }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  font-family: var(--font-heading);
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-tamil);
  transition: color .2s;
}

.footer-links a::before { content: '›'; margin-right: 6px; color: var(--accent); }
.footer-links a:hover { color: #fff; }

.footer-post {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-post img {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.footer-post h5 {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  font-family: var(--font-heading);
}

.footer-post h5 a:hover { color: #fff; }

.footer-post .date {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 3px;
}

.footer-bottom {
  padding: 16px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }

.footer-developer {
  text-align: center;
  padding: 8px 30px 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-developer a { color: var(--gold); font-weight: 600; }
.footer-developer a:hover { color: #fff; }

.subscribe-form {
  display: flex;
  gap: 0;
  margin-top: 12px;
}

.subscribe-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 13px;
  outline: none;
  font-family: var(--font-tamil);
  border-radius: var(--radius) 0 0 var(--radius);
}

.subscribe-form input::placeholder { color: rgba(255,255,255,0.4); }

.subscribe-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-tamil);
  font-weight: 600;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background .2s;
}

.subscribe-form button:hover { background: var(--primary-dark); }

/* ============================================
   AD SPOTS
   ============================================ */
.ad-spot { text-align: center; margin: 12px 0; }
.ad-spot img { max-width: 100%; height: auto; display: inline-block; border-radius: 6px; }
.header-ads #adslider_header { width: 100%; margin: 0; background: transparent; }
.header-ads #adslider_header .ad-slider-track { height: 90px; }
.header-ads #adslider_header .ad-slide img { height: 90px; width: auto; max-width: 100%; object-fit: contain; border-radius: 6px; }
.ad-spot-sidebar-news-1 img,
.ad-spot-sidebar-news-2 img,
.ad-spot-sidebar-news-3 img,
.ad-spot-sidebar-news-4 img { width: 100%; border-radius: 4px; }
.ad-spot-bottom-news img,
.ad-spot-bottom-latest-news-1 img,
.ad-spot-bottom-latest-news-2 img,
.ad-spot-bottom-latest-news-3 img { max-height: 100px; }
.ad-spot-news-latter img { max-height: 120px; }

/* ============================================
   E-PAPER PAGE
   ============================================ */
.epaper-page-header {
  padding: 0;
  margin-top: 2px;
}
.epaper-hero-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 10px;
  padding: 28px 24px;
  color: #fff;
  margin: 0 -16px;
}

.epaper-page-header h1 {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 8px;
}

.epaper-page-header p { font-size: 14px; opacity: .8; font-family: var(--font-tamil); }
.epaper-page-header .breadcrumb a { color: rgba(255,255,255,0.8); }
.epaper-page-header .breadcrumb { color: rgba(255,255,255,0.6); }

.epaper-read-btn-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-tamil);
  transition: background .2s;
}

.epaper-read-btn-lg:hover { background: #d49000; color: #111; }

.epaper-featured {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  padding: 20px;
  align-items: center;
}

.epaper-featured-cover img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.epaper-featured-info h2 {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 12px;
  color: var(--text-dark);
}

.epaper-featured-info .meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.epaper-featured-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-family: var(--font-tamil);
  margin-bottom: 20px;
}

.epaper-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
  margin-bottom: 20px;
}

.epaper-grid-all {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.epaper-card-item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .3s, transform .3s;
}

.epaper-card-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.epaper-card-img {
  position: relative;
  overflow: hidden;
  background: #f4f4f4;
  border-radius: var(--radius) var(--radius) 0 0;
}

.epaper-card-img img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  object-position: center top;
  background: #f4f4f4;
  transition: transform .4s;
}

.epaper-card-item:hover .epaper-card-img img { transform: scale(1.04); }

.epaper-special-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--accent);
  color: #111;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
}

.epaper-card-body { padding: 12px; }

.epaper-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-heading);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.epaper-card-date { font-size: 11px; color: var(--text-light); margin-bottom: 8px; }

.epaper-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  font-family: var(--font-tamil);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.d-none { display: none; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  z-index: 999;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); transform: translateY(-3px); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .content-area { width: 100%; padding-right: 0; }
  .sidebar { width: 100%; }
  .layout-flex { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-main { grid-row: span 1; }
  .hero-main img, .hero-side img { height: 200px; }
  .epaper-grid-all { grid-template-columns: repeat(3, 1fr); }
  .epaper-featured { grid-template-columns: 200px 1fr; }
}

/* ---- Tablet: hamburger (769–1024px) ---- */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-ads { display: none !important; }
  .hamburger { display: flex !important; }
  .header-inner { padding: 10px 20px; }
  .site-logo img { height: 55px !important; }
}

@media (max-width: 1024px) {

  /* ===== SHARED: mobile + tablet drawer ===== */
  .topbar-right { display: none; }
  .topbar-date { display: none; }
  .header-ads { display: none !important; }
  .hamburger { display: flex !important; }
  .header-inner { margin: 0; padding: 10px 16px; }
  .site-logo img { height: 50px !important; width: auto !important; }
  .site-logo { gap: 8px; }

  /* --- No overlay backdrop --- */
  .nav-overlay { display: none !important; }

  /* Lower site-header z-index so panel covers it */
  .site-header { z-index: 100 !important; }
  .main-nav    { z-index: 99  !important; }
  .topbar      { z-index: 101 !important; }

  /* --- Drawer panel --- */
  .mobile-nav-panel {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    width: 290px;
    max-width: 90vw;
    height: 100%;
    height: 100dvh;
    z-index: 99999;
    overflow: hidden;
    transform: translateX(-110%);
    transition: transform .28s cubic-bezier(.25,.46,.45,.94);
    box-shadow: none;
    background: #ffffff;
  }
  .mobile-nav-panel.open {
    transform: translateX(0);
    box-shadow: 6px 0 30px rgba(0,0,0,0.22);
  }

  /* --- Drawer header --- */
  .mobile-nav-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    min-height: 68px;
  }
  .mobile-nav-header::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
  }
  .mobile-nav-logo { display: flex; align-items: center; text-decoration: none; }
  .mobile-nav-logo img { height: 40px; width: auto; display: block; }
  .mobile-nav-logo span { font-size: 15px; font-weight: 700; color: #fff; }
  .mobile-nav-close {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    font-size: 16px; cursor: pointer; color: #fff;
    transition: background .2s, transform .25s;
    flex-shrink: 0;
    position: relative; z-index: 1;
  }
  .mobile-nav-close:active { transform: rotate(90deg); background: rgba(255,255,255,0.25); }

  /* --- Scrollable menu body --- */
  .nav-menu {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
    position: static;
    height: auto;
    box-shadow: none;
    padding: 6px 0 60px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-menu > li { width: 100%; position: static; background: #ffffff; }

  /* Menu items */
  .nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    height: 52px;
    color: #1c2b4a;
    background: #ffffff;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid #f0f3f8;
    text-decoration: none;
    transition: background .15s, color .15s;
    position: relative;
  }
  .nav-menu > li > a .fa-home { color: var(--primary); font-size: 15px; }
  .nav-menu > li > a .arrow {
    margin-left: auto;
    font-size: 10px;
    color: #aab;
    transition: transform .25s;
  }
  .nav-menu > li > a:active { background: #f0f4ff; }
  .nav-menu > li.active > a {
    color: var(--primary);
    font-weight: 700;
    background: #f0f5ff;
  }
  .nav-menu > li.active > a::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
  }
  .nav-menu > li > a::after { display: none !important; }
  .nav-menu > li > a .fa-newspaper { color: var(--accent); }

  /* Accordion sub-menu */
  .nav-menu > li > a.has-children { cursor: pointer; }
  .nav-menu > li > a.has-children.open .arrow { transform: rotate(180deg); }
  .dropdown {
    display: none;
    flex-direction: column;
    background: #f7f9ff;
    border-left: 3px solid var(--accent);
    margin: 0;
    position: static;
    opacity: 1; visibility: visible;
    transform: none; box-shadow: none;
    border-radius: 0;
    border-top: none;
  }
  .dropdown.open { display: flex; }
  .dropdown li { width: 100%; }
  .dropdown li a {
    display: flex;
    align-items: center;
    padding: 0 20px 0 34px;
    height: 46px;
    font-size: 14px;
    color: #445;
    background: #f7f9ff;
    border-bottom: 1px solid #edf0f8;
    transition: background .15s, color .15s;
    gap: 8px;
  }
  .dropdown li a::before {
    content: '›';
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
  }
  .dropdown li a:active { background: #e4ecff; color: var(--primary); }

  /* grid fixes */
  .search-bar-inner { max-width: 92%; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-grid-2 { grid-template-columns: 1fr 1fr; }
  .news-grid-3 { grid-template-columns: 1fr 1fr; }
  .news-grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .social-follow-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .news-detail-title { font-size: 20px; }
  .featured-block { grid-template-columns: 1fr; }
  .epaper-grid-all { grid-template-columns: repeat(2, 1fr); }
  .epaper-featured { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-grid-2 { grid-template-columns: 1fr; }
  .news-grid-3 { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .share-btns { gap: 5px; }
  .share-btn { padding: 7px 10px; font-size: 12px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================
   STATIC PAGES (About, Privacy, Terms, etc.)
   ============================================ */
.static-page {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.static-page h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--primary);
  position: relative;
}

.static-page h1::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
}

.static-page-content {
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.85;
  font-family: var(--font-tamil);
}

.static-page-content p { margin-bottom: 16px; }
.static-page-content h2 { font-size: 20px; font-weight: 700; color: var(--primary-dark); margin: 24px 0 10px; }
.static-page-content h3 { font-size: 17px; font-weight: 700; color: var(--primary); margin: 20px 0 8px; }
.static-page-content ul, .static-page-content ol { padding-left: 20px; margin-bottom: 16px; }
.static-page-content ul { list-style: disc; }
.static-page-content ol { list-style: decimal; }
.static-page-content li { margin-bottom: 6px; }
.static-page-content a { color: var(--primary); text-decoration: underline; }
.static-page-content strong { font-weight: 700; color: var(--text-dark); }
.static-page-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--bg-light);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

/* Page hero banner */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  padding: 40px 0 36px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -60px;
  width: 260px; height: 260px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 40px;
  width: 180px; height: 180px;
  background: rgba(232,160,0,0.12);
  border-radius: 50%;
}

.page-hero-inner { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: 30px;
  font-weight: 800;
  font-family: var(--font-heading);
  margin: 0 0 8px;
}

.page-hero .page-hero-sub {
  font-size: 14px;
  opacity: 0.8;
}

.page-hero .breadcrumb { padding: 0; margin-top: 10px; color: rgba(255,255,255,0.75); }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.9); }
.page-hero .breadcrumb .sep { color: rgba(255,255,255,0.5); }

/* ============================================
   CONTACT PAGE LAYOUT
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.contact-form-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.contact-form-box h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-form-box h2 i {
  background: var(--primary);
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.contact-info-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow .2s, transform .2s;
}

.contact-info-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.contact-info-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-icon.blue { background: #e8f0fd; color: var(--primary); }
.contact-info-icon.red  { background: #fde8e8; color: var(--red); }
.contact-info-icon.gold { background: #fdf5e0; color: var(--gold); }
.contact-info-icon.green{ background: #e8fdf0; color: #1a7a3e; }

.contact-info-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-info-text p {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

.contact-info-text a { color: var(--primary); }
.contact-info-text a:hover { text-decoration: underline; }

/* Contact form fields */
.cf-group { margin-bottom: 16px; }

.cf-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-family: var(--font-tamil);
}

.cf-group input,
.cf-group textarea,
.cf-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-tamil);
  color: var(--text-dark);
  background: #fafbfc;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.cf-group input:focus,
.cf-group textarea:focus,
.cf-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,53,128,0.10);
  background: #fff;
}

.cf-group textarea { resize: vertical; min-height: 110px; }

.cf-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-tamil);
  border-radius: var(--radius);
  cursor: pointer;
  width: 100%;
  transition: background .2s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cf-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.cf-submit:active { transform: translateY(0); }

.contact-alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-tamil);
  margin-bottom: 16px;
  display: none;
}
.contact-alert.success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; display: block; }
.contact-alert.error   { background: #fde8e8; color: #b71c1c; border: 1px solid #ef9a9a; display: block; }

.contact-map-box {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.contact-map-box iframe {
  width: 100%;
  height: 260px;
  border: none;
  display: block;
}

/* About page extras */
.about-page-content {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.about-page-content h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--primary);
  position: relative;
}

.about-page-content h1::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 60px; height: 3px;
  background: var(--accent);
}

.about-intro {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 24px;
  padding: 18px 20px;
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Social links in contact */
.contact-social-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: opacity .2s, transform .1s;
  text-decoration: none;
}

.contact-social-btn:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }
.contact-social-btn.fb    { background: #1877f2; }
.contact-social-btn.tw    { background: #1da1f2; }
.contact-social-btn.yt    { background: #ff0000; }
.contact-social-btn.ig    { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.contact-social-btn.wa    { background: #25d366; }

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
  .static-page { padding: 20px 16px; }
  .about-page-content { padding: 20px 16px; }
  .page-hero h1 { font-size: 22px; }
  .contact-form-box { padding: 20px 16px; }
}
