/**
 * Kamalam Custom Theme Core Design System
 * 
 * Elegant print-style typography (Noto Serif Gujarati), rich saffron & navy accents,
 * classic double-tiered newspaper masthead, thin editorial columns,
 * gold highlights, and polished animations.
 */

/* ==========================================================================
   1. Theme Variables & Base Style
   ========================================================================== */
:root {
  /* Fonts */
  --font-gujarati: 'Noto Sans Gujarati', sans-serif;
  --font-heading: 'Noto Serif Gujarati', Georgia, serif;
  --font-english: 'Outfit', sans-serif;

  /* Color Palette (Kamalam Saffron & Navy) */
  --primary-color: #e05a16;      /* Brand Saffron */
  --primary-hover: #b8430a;
  --secondary-color: #0b132b;    /* High-Authority Navy */
  --accent-color: #c5a059;       /* Journalistic Gold */
  --accent-hover: #a5823d;
  
  --bg-body: #f8fafc;            /* Clean light slate */
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --bg-footer: #080c18;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --border-color: #e2e8f0;
  --border-glow: rgba(224, 90, 22, 0.15);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 4px 12px rgba(224, 90, 22, 0.15);
  
  --border-radius-sm: 4px;       /* Crisp newspaper style corners */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  
  --transition-speed: 0.3s;
  --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --bg-body: #06090f;
  --bg-card: #0e1624;
  --bg-header: #0a0f1b;
  --bg-footer: #03050a;
  
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-inverse: #06090f;
  
  --border-color: #1e293b;
  --border-glow: rgba(224, 90, 22, 0.25);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 4px 16px rgba(224, 90, 22, 0.25);
}

/* Reset & Core Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

body {
  font-family: var(--font-gujarati);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}
[data-theme="dark"] a {
  color: var(--accent-color);
}
a:hover {
  color: var(--primary-color) !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   2. Double-Tiered Newspaper Masthead Header
   ========================================================================== */
.site-header {
  background-color: var(--bg-header);
  border-bottom: 3px double var(--border-color);
  transition: background-color var(--transition-speed);
  z-index: 1000;
  position: relative;
}

/* Tier 1: Top Bar */
.top-bar {
  background-color: var(--secondary-color);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 8px 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-bar-left {
  display: flex;
  align-items: center;
}
.top-bar-date {
  font-family: var(--font-gujarati);
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-bar-date i {
  color: var(--primary-color);
}
.top-bar-center {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-color);
}
.top-bar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.top-bar-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-bar-link:hover {
  color: var(--accent-color) !important;
}

/* Tier 2: Centered Logo Area */
.masthead-brand-tier {
  padding: 18px 0;
  text-align: center;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
}
.brand-tier-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}
.custom-logo-img {
  max-width: 320px;
  width: auto;
  height: 250px;
  display: block;
  /* margin: -90px auto -80px auto; *//* Negative margins to visually crop top and bottom padding */
  margin: -90px auto -105px auto;
  mix-blend-mode: multiply;
  transition: transform var(--transition-speed);
}
.custom-logo-img:hover {
  transform: scale(1.02);
}
[data-theme="dark"] .custom-logo-img {
  mix-blend-mode: screen;
  filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(1.15);
}
.logo-tagline-premium {
  display: block;
  font-family: var(--font-gujarati);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-align: center;
}

/* Tier 3: Horizontal Navigation Bar (Sticky) */
.navigation-tier {
  background-color: var(--primary-color);
  border-bottom: 2px solid var(--primary-hover);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: var(--shadow-sm);
}
.navigation-tier-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
}

.main-navigation {
  display: flex;
  align-items: center;
  height: 100%;
}
.main-nav-menu {
  display: flex;
  list-style: none;
  height: 100%;
  align-items: center;
}
.main-nav-menu > li {
  height: 100%;
}
.main-nav-menu > li > a {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}
.main-nav-menu > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transition: transform var(--transition-speed) var(--easing);
}
.main-nav-menu > li > a:hover::after,
.main-nav-menu > li.current-menu-item > a::after {
  transform: scaleX(1);
}
.main-nav-menu > li > a:hover {
  color: #ffffff !important;
  background-color: rgba(0,0,0,0.1);
}
.main-nav-menu > li.current-menu-item > a {
  color: #ffffff;
  background-color: rgba(0,0,0,0.15);
}

/* Submenu Dropdown */
.main-nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-speed) var(--easing);
  z-index: 100;
}
.main-nav-menu li {
  position: relative;
}
.main-nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav-menu .sub-menu a {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  display: block;
  color: var(--text-main);
}
.main-nav-menu .sub-menu a:hover {
  background-color: var(--bg-body);
  color: var(--primary-color) !important;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle-btn, .search-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) var(--easing);
}
.theme-toggle-btn:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #000000 !important;
  transform: rotate(15deg);
}
.search-toggle-btn:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #000000 !important;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
}

/* Search Overlay */
.search-overlay-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(11, 19, 43, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  backdrop-filter: blur(8px);
}
.search-close-btn {
  position: absolute;
  top: 40px;
  right: 40px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  transition: transform var(--transition-speed);
}
.search-close-btn:hover {
  transform: rotate(90deg);
  color: var(--primary-color) !important;
}
.search-overlay-inner {
  width: 100%;
  max-width: 700px;
  padding: 0 20px;
  text-align: center;
}
.search-overlay-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 42px;
  margin-bottom: 30px;
}
.search-input-group {
  display: flex;
  width: 100%;
  position: relative;
}
.search-field {
  width: 100%;
  padding: 20px 60px 20px 20px;
  font-size: 20px;
  font-family: var(--font-gujarati);
  border: none;
  border-radius: var(--border-radius-lg);
  background-color: #ffffff;
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.search-field:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-color);
}
.search-submit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  transition: color var(--transition-speed);
}
.search-submit:hover {
  color: var(--primary-hover) !important;
}

/* ==========================================================================
   3. Breaking News Ticker (Sleek and Traditional)
   ========================================================================== */
.breaking-news-ticker {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  height: 40px;
  overflow: hidden;
  position: relative;
}
.ticker-badge {
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  letter-spacing: 0.5px;
}
.ticker-badge i {
  margin-right: 6px;
  animation: pulse-glow 1s infinite alternate;
}
.ticker-content-wrapper {
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
.ticker-items {
  display: flex;
  white-space: nowrap;
  animation: ticker-slide 55s linear infinite;
  gap: 50px;
}
.ticker-items:hover {
  animation-play-state: paused;
}
.ticker-item {
  color: var(--text-main);
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
}
.ticker-item::before {
  content: "✦";
  color: var(--accent-color);
  font-size: 12px;
  margin-right: 12px;
}

@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulse-glow {
  0% { opacity: 0.6; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* ==========================================================================
   4. Premium Asymmetric Editorial Hero Grid
   ========================================================================== */
.hero-news-section {
  padding: 24px 0 40px 0;
  border-bottom: 4px solid var(--primary-color);
}
.editorial-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}

/* Left main card */
.hero-col-main {
  border-right: 1px solid var(--border-color);
  padding-right: 28px;
}
.featured-wide-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 460px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.4s var(--easing), box-shadow 0.4s var(--easing), border-color 0.4s var(--easing);
}
.featured-wide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--primary-color);
}
.featured-wide-card .card-img-wrapper {
  height: 100%;
  width: 100%;
}
.featured-wide-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--easing);
}
.featured-wide-card:hover .card-img-wrapper img {
  transform: scale(1.03);
}
.featured-wide-card .card-img-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(11, 19, 43, 0) 40%, rgba(11, 19, 43, 0.95) 95%);
}
.featured-wide-card .card-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 28px;
  z-index: 10;
  color: #ffffff;
}
.featured-wide-card .category-tag {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  margin-bottom: 12px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.featured-wide-card .card-meta {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  font-size: 12px;
  font-family: var(--font-english);
}
.featured-wide-card .card-meta span {
  margin-right: 15px;
}
.featured-wide-card .card-meta i {
  color: var(--accent-color);
  margin-right: 4px;
}
.featured-wide-card .card-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
}
.featured-wide-card .card-excerpt {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.6;
}

/* Middle Column - Stacked Cards */
.hero-col-mid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid var(--border-color);
  padding-right: 28px;
}
.hero-mid-card {
  height: calc(50% - 10px) !important;
}
.card-img-wrapper.aspect-16-9 {
  aspect-ratio: 16/9;
}
.no-thumb-placeholder {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--accent-color);
}
.no-thumb-compact {
  min-height: 110px;
}
.no-thumb-placeholder i {
  font-size: 24px;
}
.card-content-compact {
  padding: 12px 0 0 0 !important;
}
.meta-compact {
  margin-bottom: 6px !important;
}
.title-compact {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-bottom: 0 !important;
}
.title-compact a {
  color: var(--text-main);
}
.title-compact a:hover {
  color: var(--primary-color) !important;
}

/* Right Column - Timeline news */
.hero-col-side {
  padding-left: 10px;
}
.timeline-block-title {
  font-size: 17px !important;
  font-weight: 800 !important;
  border-bottom: 2px solid var(--secondary-color) !important;
  padding-bottom: 8px !important;
  margin-bottom: 16px !important;
  text-transform: uppercase;
}
[data-theme="dark"] .timeline-block-title {
  border-bottom-color: var(--accent-color) !important;
}
.editorial-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timeline-item {
  display: flex;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-color);
  transition: transform var(--transition-speed) var(--easing);
}
.timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.timeline-item:hover {
  transform: translateX(4px);
}
.timeline-num {
  font-family: var(--font-english);
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
  opacity: 0.85;
}
.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.timeline-title {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  font-family: var(--font-gujarati) !important;
}
.timeline-title a {
  color: var(--text-main);
}
.timeline-meta {
  font-family: var(--font-english);
  font-size: 11px;
  color: var(--text-muted);
}
.timeline-meta i {
  color: var(--primary-color);
  margin-right: 4px;
}

/* ==========================================================================
   5. News Card Grid & Layout (Category Section styles)
   ========================================================================== */
.category-block {
  margin-bottom: 40px;
}
.category-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--primary-color);
  margin-bottom: 24px;
  position: relative;
}
.category-block-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  background-color: var(--primary-color);
  padding: 8px 16px;
  display: inline-block;
  border-radius: 4px 4px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
[data-theme="dark"] .category-block-title {
  color: #ffffff;
}
.category-view-all {
  font-family: var(--font-english);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.category-view-all i {
  transition: transform var(--transition-speed);
}
.category-view-all:hover i {
  transform: translateX(3px);
}

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

/* Base Card Design */
.news-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-speed) var(--easing);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  background-color: #f1f5f9;
}
.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--easing);
}
.news-card:hover .card-img-wrapper img {
  transform: scale(1.04);
}

.card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-meta {
  font-family: var(--font-english);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.card-meta span i {
  color: var(--primary-color);
  margin-right: 4px;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 8px;
}
.card-title a {
  color: inherit;
}
.card-excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  margin-top: auto;
}
.read-more-link {
  font-family: var(--font-english);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-color) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.read-more-link i {
  transition: transform var(--transition-speed);
}
.read-more-link:hover i {
  transform: translateX(3px);
}

/* List View News Cards (Sandesh Style) */
.news-card-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: var(--bg-card);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed);
  gap: 16px;
}
.news-card-list:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}
.news-card-list .card-img-wrapper {
  width: 140px;
  min-width: 140px;
  height: 100px;
  flex-shrink: 0;
}
.news-card-list .card-content {
  padding: 10px 14px 10px 0;
}
.news-card-list .card-meta {
  margin-bottom: 4px;
  font-size: 11px;
}
.news-card-list .card-title {
  font-size: 15px;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-list .card-excerpt, .news-card-list .card-footer {
  display: none;
}

/* Mixed Grid for Category Panels (1 Featured + 3 List items) */
.mixed-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mixed-category-featured {
  grid-column: 1 / 2;
}
.mixed-category-list {
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Tab menu */
.tab-menu-container {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}
.tab-trigger {
  font-family: var(--font-gujarati);
  font-size: 14.5px;
  font-weight: 700;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-bottom: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
  margin-bottom: -1px;
  transition: all var(--transition-speed);
}
.tab-trigger:hover {
  color: var(--primary-color);
}
.tab-trigger.active {
  color: var(--primary-color);
  background-color: var(--bg-card);
  border-color: var(--border-color);
}
.tab-content-panel {
  display: none;
}
.tab-content-panel.active {
  display: block;
}
.tab-view-all-wrapper {
  text-align: right;
  margin-top: 15px;
}

/* Alternating Masonry categories */
.masonry-block {
  margin-top: 32px;
}
.category-news-grid.masonry-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.masonry-feed .news-card:first-child {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.masonry-feed .news-card:first-child .card-img-wrapper {
  height: 100%;
  aspect-ratio: auto;
}
.masonry-feed .news-card:first-child .card-content {
  padding: 28px;
  justify-content: center;
}
.masonry-feed .news-card:first-child .card-title {
  font-size: 21px;
}

/* ==========================================================================
   6. Premium Overlapping E-Papers Section
   ========================================================================== */
.epaper-carousel-section {
  padding: 40px 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 10px 0 35px 0;
}
.epaper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.epaper-card-premium {
  background-color: var(--bg-body);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-speed) var(--easing);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.epaper-card-premium:hover {
  background-color: var(--bg-card);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.epaper-stack-wrapper {
  position: relative;
  width: 70%;
  aspect-ratio: 3/4;
  margin: 5px auto 20px auto;
}
.epaper-stack-back {
  position: absolute;
  width: 90%;
  height: 90%;
  background-color: var(--border-color);
  border-radius: var(--border-radius-sm);
  top: -6px;
  left: 5%;
  opacity: 0.4;
  transform: scale(0.95);
  z-index: 1;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) var(--easing);
}
.epaper-stack-mid {
  position: absolute;
  width: 95%;
  height: 95%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  top: -3px;
  left: 2.5%;
  opacity: 0.75;
  transform: scale(0.98);
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) var(--easing);
}
.epaper-stack-front {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  top: 0;
  left: 0;
  z-index: 3;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) var(--easing);
}
.epaper-card-premium:hover .epaper-stack-front {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--primary-color);
}
.epaper-card-premium:hover .epaper-stack-mid {
  transform: translateY(-2px) rotate(-3deg) scale(0.99);
}
.epaper-card-premium:hover .epaper-stack-back {
  transform: translateY(-1px) rotate(4deg) scale(0.97);
}
.epaper-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}
.read-more-centered {
  justify-content: center;
  margin-top: auto;
}

/* ==========================================================================
   7. Sidebar Widgets
   ========================================================================== */
.sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.widget {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-heading);
  font-size: 16.5px;
  font-weight: 800;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 8px;
  margin-bottom: 16px;
  color: var(--text-main);
  text-transform: uppercase;
}
[data-theme="dark"] .widget-title {
  border-bottom-color: var(--accent-color);
}

/* E-Paper Widget box */
.epaper-widget-box {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #080d1b 100%);
  border: 1px solid var(--accent-color);
  color: #ffffff;
  text-align: center;
  padding: 24px 20px;
}
.epaper-widget-box .widget-title {
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.epaper-widget-box p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}
.epaper-cover-mockup {
  width: 110px;
  height: 150px;
  background-color: #ffffff;
  margin: 15px auto;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 32px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
}
.epaper-widget-btn {
  background-color: var(--primary-color);
  color: #ffffff !important;
  font-family: var(--font-english);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 20px;
  display: inline-block;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed);
}
.epaper-widget-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.list-news-item-flat {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
}
.list-news-item-flat:last-child {
  border-bottom: none;
}
.list-news-item-flat .list-news-title {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  font-family: var(--font-gujarati) !important;
}
.list-news-item-flat .list-news-title a {
  color: var(--text-main);
}
.list-news-item-flat .list-news-title a:hover {
  color: var(--primary-color) !important;
}
.list-news-item-flat .list-news-date {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-english);
  margin-top: 3px;
  display: block;
}

/* ==========================================================================
   8. Single Post Details (Readable, Print-like styling)
   ========================================================================== */
.single-post-container {
  /* padding: 30px 0 60px 0; */
  padding-top: 30px;
  padding-bottom: 60px;
}
.single-post-header {
  margin-bottom: 24px;
}
.single-post-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-family: var(--font-english);
}
.category-link a {
  background-color: var(--primary-color);
  color: #ffffff !important;
  padding: 3px 8px;
  font-weight: 700;
  font-size: 10px;
  border-radius: var(--border-radius-sm);
  text-transform: uppercase;
}
.single-post-meta i {
  color: var(--primary-color);
  margin-right: 4px;
}
.single-post-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-main);
}
.single-featured-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.single-featured-image img {
  width: 100%;
}

.single-post-content-wrap {
  display: flex;
  gap: 32px;
  position: relative;
}
.sidebar-share-column {
  width: 44px;
  flex-shrink: 0;
}
.floating-share-wrapper {
  position: sticky;
  top: 75px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.share-floating-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  transition: all var(--transition-speed) var(--easing);
}
.share-fb:hover { background-color: #3b5998; color: #ffffff !important; border-color: #3b5998; }
.share-tw:hover { background-color: #1da1f2; color: #ffffff !important; border-color: #1da1f2; }
.share-wa:hover { background-color: #25d366; color: #ffffff !important; border-color: #25d366; }

.single-post-inner {
  flex-grow: 1;
  max-width: 100%;
}
.single-post-body {
  font-family: var(--font-heading);
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--text-main);
  text-align: center;
}
.single-post-body img {
  display: block;
  margin: 0 auto 20px auto;
}
.single-post-body p {
  margin-bottom: 20px;
}
.post-tags {
  margin-top: 28px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.tag-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
}
.post-tags a {
  background-color: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: 600;
}
.post-tags a:hover {
  background-color: var(--primary-color);
  color: #ffffff !important;
  border-color: var(--primary-color);
}

/* Mobile share */
.single-post-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.mobile-share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.mobile-share-row .share-title {
  font-weight: 700;
  font-size: 13px;
}

/* Post navigation */
.post-navigation {
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.nav-link-sub {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.nav-link-title a {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}

/* Related section */
.related-posts-section {
  margin-top: 40px;
}
.related-posts-section .category-block-title {
  font-size: 18px;
  margin-bottom: 20px;
}
.related-news-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 18px !important;
}
.related-card-img {
  aspect-ratio: 16/10;
}
.related-card-content {
  padding: 12px !important;
}
.related-card-meta {
  margin-bottom: 4px !important;
  font-size: 10.5px !important;
}
.related-card-title {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

.no-related-posts {
  grid-column: span 3;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 15px;
}

.list-news-item-flat .list-news-title {
  margin: 0 0 5px 0;
  font-size: 15px;
  line-height: 1.4;
}

/* ==========================================================================
   Top 10 News Widget
   ========================================================================== */
.top10-widget {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
}
[data-theme="dark"] .top10-widget {
  background: var(--bg-card);
  border-color: var(--border-color);
}
.top10-header {
  background-color: #ef4444; /* Bright Red */
  color: #ffffff;
  padding: 15px 20px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.top10-list {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.top10-item {
  background: #ffffff;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  gap: 12px;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s, box-shadow 0.2s;
}
[data-theme="dark"] .top10-item {
  background: var(--bg-body);
  border-color: var(--border-color);
}
.top10-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.top10-img {
  width: 90px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}
.top10-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.top10-placeholder {
  width: 100%;
  height: 100%;
  background: #cbd5e1;
}
.top10-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.top10-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}
.top10-cat {
  color: #ef4444;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.top10-share {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  transition: opacity 0.2s;
}
.top10-share:hover {
  opacity: 0.7;
}
.top10-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  font-family: var(--font-gujarati);
}
.top10-title a {
  color: var(--text-main);
  text-decoration: none;
}
.top10-title a:hover {
  color: #ef4444;
}

/* ==========================================================================
   E-Paper Mock Cover
   ========================================================================== */
.epaper-stack-front {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
}
.epaper-stack-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.epaper-mock-cover {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #ffffff, #f1f5f9);
  display: flex;
  flex-direction: column;
  padding: 15px;
  box-sizing: border-box;
  align-items: center;
  border: 1px solid #e2e8f0;
}
[data-theme="dark"] .epaper-mock-cover {
  background: linear-gradient(to bottom, #1e293b, #0f172a);
  border-color: #334155;
}
.epaper-mock-logo {
  max-width: 80% !important;
  max-height: 40px !important;
  object-fit: contain !important;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.epaper-mock-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 15px;
}
.epaper-mock-lines {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.5;
}
.mock-line {
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  width: 100%;
}
[data-theme="dark"] .mock-line {
  background: #475569;
}
.mock-title {
  height: 8px;
  background: var(--primary-color);
  width: 70%;
  margin-bottom: 5px;
}
.mock-short {
  width: 50%;
}

/* ==========================================================================
   Comments Section
   ========================================================================== */
.comments-area {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e5e7eb;
}
[data-theme="dark"] .comments-area {
  border-color: var(--border-color);
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}
.comment-list .comment {
  margin-bottom: 20px;
}
.comment-list .children {
  list-style: none;
  padding-left: 30px;
  margin-top: 20px;
}
.comment-body {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 15px;
  border: 1px solid #e5e7eb;
}
[data-theme="dark"] .comment-body {
  background: var(--bg-card);
  border-color: var(--border-color);
}
.comment-author .avatar {
  border-radius: 50%;
}
.comment-author cite {
  font-weight: 700;
  font-style: normal;
  color: var(--text-main);
  font-size: 16px;
}
.comment-meta {
  font-size: 12px;
  margin-bottom: 10px;
}
.comment-meta a {
  color: var(--text-muted);
  text-decoration: none;
}
.comment-content p {
  margin: 0;
  line-height: 1.6;
}
.kamalam-comment-form,
.comment-form {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
[data-theme="dark"] .kamalam-comment-form,
[data-theme="dark"] .comment-form {
  background: var(--bg-card);
  border-color: var(--border-color);
}
.kamalam-comment-form label,
.comment-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-main);
}
.kamalam-comment-form input[type="text"],
.kamalam-comment-form input[type="email"],
.kamalam-comment-form input[type="url"],
.kamalam-comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
  font-family: inherit;
  margin-bottom: 15px;
  box-sizing: border-box;
}
[data-theme="dark"] .kamalam-comment-form input[type="text"],
[data-theme="dark"] .kamalam-comment-form input[type="email"],
[data-theme="dark"] .kamalam-comment-form input[type="url"],
[data-theme="dark"] .kamalam-comment-form textarea,
[data-theme="dark"] .comment-form input[type="text"],
[data-theme="dark"] .comment-form input[type="email"],
[data-theme="dark"] .comment-form input[type="url"],
[data-theme="dark"] .comment-form textarea {
  background: var(--bg-body);
  border-color: var(--border-color);
  color: var(--text-main);
}
.kamalam-comment-form input[type="submit"],
.comment-form input[type="submit"] {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.kamalam-comment-form input[type="submit"]:hover,
.comment-form input[type="submit"]:hover {
  opacity: 0.9;
}
.comment-notes, .logged-in-as {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.comment-reply-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.comment-reply-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Contact Page Premium Card
   ========================================================================== */
.contact-card-premium {
  max-width: 900px;
  margin: 0 auto 60px auto;
  background: #f8f9fa;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
[data-theme="dark"] .contact-card-premium {
  background: var(--bg-card);
  border-color: var(--border-color);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.contact-card-inner {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}
.contact-image-col {
  flex-shrink: 0;
}
.editor-profile-img {
  width: 250px;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border: 4px solid var(--primary-color);
  background: #ffffff;
}
.contact-info-col {
  flex-grow: 1;
}
.contact-badge {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}
.contact-name {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 25px 0;
  color: var(--text-main);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 15px;
}
.contact-name span {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
}
.contact-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-details-list li {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.contact-details-list .icon-box {
  background: rgba(230, 57, 70, 0.1);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-details-list .detail-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
}
.contact-details-list strong {
  color: var(--primary-color);
}
.contact-details-list a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-details-list a:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .contact-card-inner {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .contact-details-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .editor-profile-img {
    width: 200px;
    height: 200px;
  }
}

/* ==========================================================================
   Visitor Counter Badge
   ========================================================================== */
.kamalam-visitor-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-color);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
  margin: 15px 0;
  border: 2px solid rgba(255,255,255,0.2);
}
.kamalam-visitor-badge i {
  font-size: 18px;
}
#kamalam-live-visitor-count {
  font-family: monospace;
  font-size: 18px;
  background: rgba(0,0,0,0.2);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

/* ==========================================================================
   9. Footer (Premium Dark Layout)
   ========================================================================== */
.site-footer {
  background-color: var(--bg-footer);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px 0;
  border-top: 4px solid var(--primary-color);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-widget-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}
.footer-widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25px;
  height: 2px;
  background-color: var(--primary-color);
}
.footer-about-text {
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 13.5px;
  transition: all var(--transition-speed);
}
.footer-links a:hover {
  color: var(--accent-color) !important;
  padding-left: 4px;
}
.footer-social-icons {
  display: flex;
  gap: 8px;
}
.social-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 13px;
  transition: all var(--transition-speed) var(--easing);
}
.social-icon-btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  color: #ffffff !important;
}
.social-icon-btn:hover i {
  color: #ffffff !important;
}

.footer-newsletter-box {
  display: flex;
  height: 40px;
  margin-top: 15px;
}
.footer-newsletter-input {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 12px;
  color: #ffffff;
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
  flex-grow: 1;
  font-size: 13px;
}
.footer-newsletter-input:focus {
  outline: none;
  border-color: var(--primary-color);
}
.footer-newsletter-btn {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 0 16px;
  font-weight: 700;
  font-size: 12px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color var(--transition-speed);
}
.footer-newsletter-btn:hover {
  background-color: var(--primary-hover);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   10. Responsive Utilities & Mobile Navigation
   ========================================================================== */
@media (max-width: 1024px) {
  .editorial-hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .hero-col-side {
    grid-column: span 2;
    padding-left: 0;
    margin-top: 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .epaper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Header adjustments */
  .logo-title-premium {
    font-size: 34px;
  }
  .top-bar-center {
    display: none;
  }
  .navigation-tier-inner {
    height: 48px;
  }
  .mobile-nav-toggle {
    display: block;
  }
  
  /* Mobile Navigation Menu */
  .main-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border-bottom: 2px solid var(--primary-color);
    padding: 10px 20px;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    box-shadow: var(--shadow-lg);
  }
  .main-nav-menu > li {
    width: 100%;
    height: auto;
  }
  .main-nav-menu > li > a {
    padding: 12px 0;
    width: 100%;
  }
  .main-nav-menu > li > a::after {
    display: none;
  }
  
  .main-nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    padding-left: 15px;
    display: none;
  }
  .main-nav-menu li:hover > .sub-menu {
    display: block;
  }
  
  /* Grids and Cards */
  .editorial-hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-col-main {
    border-right: none;
    padding-right: 0;
  }
  .hero-col-mid {
    border-right: none;
    padding-right: 0;
    grid-column: span 1;
  }
  .hero-mid-card {
    height: auto !important;
  }
  .hero-col-side {
    grid-column: span 1;
  }
  .category-news-grid {
    grid-template-columns: 1fr;
  }
  .mixed-category-grid {
    grid-template-columns: 1fr;
  }
  .mixed-category-featured, .mixed-category-list {
    grid-column: span 1;
  }
  .masonry-feed .news-card:first-child {
    grid-template-columns: 1fr;
  }
  .single-post-content-wrap {
    flex-direction: column;
  }
  .sidebar-share-column {
    display: none;
  }
  .single-post-footer.mobile-only {
    display: block !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .epaper-grid {
    grid-template-columns: 1fr;
  }
  .related-news-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   11. Reading Progress Bar & Pagination
   ========================================================================== */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background-color: var(--primary-color);
  width: 0;
  z-index: 2000;
}

.navigation.pagination {
  margin: 30px auto;
  text-align: center;
}
.navigation.pagination .nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-english);
  font-size: 14px;
  font-weight: 700;
  transition: all var(--transition-speed);
}
.navigation.pagination a.page-numbers:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff !important;
}
.navigation.pagination .page-numbers.current {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff !important;
}
.navigation.pagination .page-numbers.dots {
  background: none;
  border: none;
  color: var(--text-muted);
}

/* ==========================================================================
   16. Bureau Profile Custom Styles
   ========================================================================== */
.bureau-profile-page {
  padding: 40px 0;
}
.bureau-header-banner {
  text-align: center;
  margin-bottom: 45px;
  border-top: 3px double var(--border-color);
  border-bottom: 3px double var(--border-color);
  padding: 30px 20px;
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.bureau-header-banner::before {
  content: "";
  position: absolute;
  top: 4px;
  margin-bottom: 60px;
}
.bureau-subtitle {
  font-family: var(--font-english);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}
.bureau-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 20px;
}
[data-theme="dark"] .bureau-title {
  color: #ffffff;
}
.bureau-intro {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Premium Editor Hero Layout */
.editor-profile-hero {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  margin: 0 auto;
  max-width: 1000px;
}

.editor-hero-image-col {
  width: 45%;
  background: linear-gradient(135deg, var(--bg-body), var(--bg-card));
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-color);
}
.editor-image-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3/4;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border: 4px solid #ffffff;
}
[data-theme="dark"] .editor-image-frame {
  border-color: var(--secondary-color);
}
.editor-image-frame::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  box-shadow: inset 0 0 0 2px var(--primary-color);
  pointer-events: none;
}
.editor-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) var(--easing);
}
.editor-profile-hero:hover .editor-avatar-img {
  transform: scale(1.05);
}

.editor-hero-content-col {
  width: 55%;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.editor-badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 20px;
  align-self: flex-start;
  letter-spacing: 0.5px;
}
.editor-name {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1.2;
  margin-bottom: 30px;
}
[data-theme="dark"] .editor-name {
  color: #ffffff;
}
.editor-quote-block {
  background-color: var(--bg-body);
  border-left: 4px solid var(--accent-color);
  padding: 24px 30px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin-bottom: 35px;
  position: relative;
}
.editor-quote-block .quote-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 24px;
  color: var(--accent-color);
  opacity: 0.3;
}
.editor-quote-block p {
  font-size: 18px;
  line-height: 1.8;
  font-weight: 600;
  color: var(--text-main);
  font-style: italic;
  margin: 0;
  position: relative;
  z-index: 2;
}

.editor-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 35px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 16px;
  color: var(--text-muted);
}
.contact-item i {
  color: var(--primary-color);
  font-size: 18px;
  margin-top: 4px;
  width: 20px;
  text-align: center;
}

.editor-action-buttons {
  display: flex;
  gap: 16px;
}
.editor-action-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-english);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed);
}
.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff !important;
  border: 1px solid var(--primary-color);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-secondary {
  background-color: transparent;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--bg-body);
  border-color: var(--primary-color);
  color: var(--primary-color) !important;
}

/* Editor Profile Mobile Responsiveness */
@media (max-width: 992px) {
  .editor-profile-hero {
    flex-direction: column;
  }
  .editor-hero-image-col {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .editor-hero-content-col {
    width: 100%;
    padding: 40px 30px;
  }
}
@media (max-width: 576px) {
  .bureau-title {
    font-size: 32px;
  }
  .editor-name {
    font-size: 36px;
  }
  .editor-action-buttons {
    flex-direction: column;
  }
  .editor-action-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}
