/**
 * Lokshahi Nayak (lokshahinayak.com) - Marathi Master Stylesheet
 * Native Mobile App UX + PWA Optimized + Responsive Desktop
 */

@import url('marathi-fonts.css');

:root {
  --primary: #b91c1c;
  --primary-hover: #991b1b;
  --secondary: #0f172a;
  --accent-gold: #d97706;
  --accent-green: #16a34a;
  --whatsapp-color: #25d366;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  --bottom-nav-height: 58px;
  --mobile-ad-height: 52px;

  /* Saffron / Orange (भगवा / केशरी) Navigation Theme */
  --saffron-primary: #ea580c;
  --saffron-light: #f97316;
  --saffron-dark: #c2410c;
  --saffron-deep: #9a3412;
  --saffron-soft: #fff7ed;
  --saffron-soft-border: #ffedd5;
  --saffron-accent-gold: #fde047;
  --saffron-nav-grad: linear-gradient(90deg, #c2410c 0%, #ea580c 28%, #ff671f 68%, #ea580c 100%);
}


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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Adjust page padding for mobile app bottom bar */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(var(--bottom-nav-height) + var(--mobile-ad-height) + 10px);
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 1. TOP UTILITY BAR (Desktop) */
.top-bar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 6px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.marathi-date {
  font-weight: 500;
  color: #f8fafc;
}

.market-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.market-up {
  color: #4ade80;
  font-weight: 600;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Switcher Button Tab (मराठी | हिंदी) - Clean Text, No Background */
.lang-switch-box {
  display: inline-flex;
  align-items: center;
}
.lang-switch-tab {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 13px;
  line-height: 1;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8 !important;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.25;
}
.lang-btn:hover {
  color: #ffffff !important;
  background: transparent !important;
}
.lang-btn.active {
  background: transparent !important;
  box-shadow: none !important;
  color: #fb923c !important;
  font-weight: 800;
}
.lang-divider {
  color: #475569;
  font-size: 12px;
  margin: 0 2px;
  user-select: none;
}

/* Mobile Language Switcher Styles - Clean Text, No Background */
.header-mobile-lang {
  display: none;
}
.drawer-lang-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-hover);
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.drawer-lang-box .lang-switch-tab {
  background: transparent;
  border: none;
  box-shadow: none;
}
.drawer-lang-box .lang-btn {
  color: #64748b !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 3px 6px;
  font-size: 13px;
  font-weight: 500;
}
.drawer-lang-box .lang-btn:hover {
  background: transparent !important;
  color: var(--text-main) !important;
}
.drawer-lang-box .lang-btn.active {
  background: transparent !important;
  box-shadow: none !important;
  color: #ea580c !important;
  font-weight: 800;
}
.drawer-lang-box .lang-divider {
  color: #cbd5e1;
  margin: 0 2px;
}

.epaper-btn {
  background: #b91c1c;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s;
}
.epaper-btn:hover { background: #991b1b; }

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  flex-shrink: 0;
}
.social-link svg {
  display: block;
  fill: currentColor;
  transition: transform 0.2s ease;
}
.social-link:hover {
  transform: translateY(-2px);
  color: #ffffff;
}
.social-link:hover svg {
  transform: scale(1.12);
}
.social-link.social-fb:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}
.social-link.social-x:hover {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
.social-link.social-yt:hover {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.45);
}
.social-link.social-tg:hover {
  background: #24a1de;
  border-color: #24a1de;
  box-shadow: 0 4px 12px rgba(36, 161, 222, 0.45);
}

.footer-socials .social-link {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.drawer-social-row .social-link {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* 2. MAIN HEADER */
.main-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-link {
  display: block;
}
.logo-img {
  height: 52px;
  width: auto;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px;
}

.header-ad-box {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
}


/* 3. PRIMARY NAVBAR (Sticky Saffron / Orange Navigation) */
.primary-nav {
  background: var(--saffron-primary);
  background: var(--saffron-nav-grad);
  color: #ffffff;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28), 0 2px 6px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid var(--saffron-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  list-style: none;
  overflow: visible;
  white-space: nowrap;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 12px 9px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  border-bottom: 3px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.1px;
  white-space: nowrap;
}
.nav-link:hover, .nav-item.active .nav-link {
  background: rgba(0, 0, 0, 0.16);
  color: #ffffff;
  border-bottom-color: var(--saffron-accent-gold);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Nav Dropdown for Districts (Maharashtra) */
.nav-item.has-dropdown {
  position: relative;
}
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  display: grid !important;
  visibility: visible;
  opacity: 1;
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  color: var(--text-main);
  grid-template-columns: repeat(3, 160px);
  gap: 8px;
  padding: 14px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.22), 0 6px 12px -2px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  border-top: 3px solid var(--saffron-primary);
  z-index: 2000;
  animation: navFadeIn 0.2s ease-out;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
}
@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-link {
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-main);
  transition: all 0.2s;
  font-weight: 500;
}
.dropdown-link:hover {
  background: var(--saffron-soft);
  color: var(--saffron-dark);
  font-weight: 600;
  transform: translateX(3px);
}

.search-form {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 3px 12px;
  transition: all 0.25s ease;
}
.search-form:focus-within {
  background: rgba(0, 0, 0, 0.28);
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.search-input {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 5px 8px;
  font-size: 14px;
  outline: none;
  width: 140px;
}
.search-input::placeholder { color: rgba(255, 255, 255, 0.85); }
.search-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  transition: transform 0.2s ease;
}
.search-btn:hover {
  transform: scale(1.15);
}

/* 4. BREAKING NEWS TICKER */
.breaking-ticker {
  background: #fef2f2;
  border-bottom: 1px solid #fee2e2;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 42px;
}

.ticker-badge {
  background: #b91c1c;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}
.ticker-badge-pulse {
  width: 9px;
  height: 9px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  animation: pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { transform: scale(0.85); opacity: 0.4; box-shadow: 0 0 4px rgba(255, 255, 255, 0.5); }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 10px rgba(255, 255, 255, 1); }
  100% { transform: scale(0.85); opacity: 0.4; box-shadow: 0 0 4px rgba(255, 255, 255, 0.5); }
}

.ticker-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-marquee {
  display: inline-block;
  padding-left: 100%;
  animation: marqueeAnim 30s linear infinite;
  font-weight: 600;
  font-size: 14px;
}
.ticker-marquee:hover {
  animation-play-state: paused;
}
@keyframes marqueeAnim {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.ticker-item {
  margin-right: 40px;
  color: var(--text-main);
  transition: color 0.2s;
}
.ticker-item:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* 5. ADVERTISING WRAPPERS */
.portal-ad-wrapper {
  margin: 16px auto;
  text-align: center;
}
.ad-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.ad-banner-link {
  display: inline-block;
  border-radius: 6px;
  overflow: hidden;
  transition: opacity 0.2s;
}
.ad-banner-link:hover { opacity: 0.95; }
.ad-banner-img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* 6. MAIN CONTENT GRID (eSakal Style) */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
}

/* Hero Section (Big story + side highlights) */
.hero-section {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  background: var(--bg-card);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.lead-story {
  display: flex;
  flex-direction: column;
}
.lead-story .story-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.lead-story .story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.lead-story:hover .story-thumb img {
  transform: scale(1.03);
}

.category-tag {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin: 12px 0 8px;
  width: fit-content;
}

.lead-story .story-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.lead-story:hover .story-title {
  color: var(--primary);
}

.lead-story .story-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: auto;
}

.whatsapp-share-btn {
  background: #25d366;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s;
}
.whatsapp-share-btn:hover {
  transform: scale(1.05);
}

/* Secondary Hero List */
.secondary-hero-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-mini-card {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.hero-mini-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.hero-mini-thumb {
  position: relative;
  display: block;
  width: 105px;
  height: 75px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.hero-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-mini-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  transition: color 0.2s;
}
.hero-mini-card:hover .hero-mini-title {
  color: var(--primary);
}

/* 7. CATEGORY BLOCKS */
.category-block {
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.category-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.category-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.category-heading::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.view-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

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

.news-card {
  display: flex;
  flex-direction: column;
}
.news-card-thumb {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/10;
  margin-bottom: 10px;
}
.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.news-card:hover .news-card-thumb img {
  transform: scale(1.04);
}
.news-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.news-card:hover .news-card-title {
  color: var(--primary);
}

/* 8. SIDEBAR STYLING */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 17px;
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.trending-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.trending-rank {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  min-width: 24px;
}
.trending-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
}
.trending-item:hover .trending-title {
  color: var(--primary);
}

.sidebar-sticky-ad {
  position: sticky;
  top: 60px;
}

/* 9. ARTICLE DETAIL VIEW */
.article-header {
  margin-bottom: 20px;
}
.article-breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  word-break: break-word;
}
.article-detail-column {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.article-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
  color: var(--text-main);
  word-break: break-word;
  overflow-wrap: break-word;
}
.article-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.author-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  line-height: 1.5;
  font-size: 13px;
}
.meta-video-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #dc2626;
  font-weight: 700;
  background: #fee2e2;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}
.reader-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.zoom-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.font-zoom-btn {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.video-meta-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px 0;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.article-hero-media {
  width: 100%;
  display: block;
  margin: 0 0 24px 0;
  border-radius: 10px;
  overflow: hidden;
}
.article-hero-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* In-Portal Responsive Video Player (YouTube & HTML5 Video) */
.portal-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  margin-bottom: 8px;
}

.portal-video-wrapper iframe,
.portal-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
  background: #000000;
}

/* Video Badge on News Cards */
.video-card-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(220, 38, 38, 0.94);
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.3px;
  z-index: 3;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.video-card-badge svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

.article-caption {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  font-style: italic;
}

.article-content {
  font-size: 19px;
  line-height: 1.8;
  color: var(--text-main);
}
.article-content p {
  margin-bottom: 22px;
}

/* 10. MOBILE APP-LIKE EXPERIENCE (PWA / APP-SHELL UX) */

/* Horizontally Scrollable Category Pills */
.mobile-category-pills {
  display: none;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 950;
  background: var(--bg-card);
  border-bottom: 2px solid var(--saffron-soft-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 8px 12px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-category-pills::-webkit-scrollbar { display: none; }

.pill-item {
  display: inline-block;
  padding: 6px 14px;
  margin-right: 6px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  background: var(--bg-hover);
  color: var(--text-secondary);
  transition: all 0.2s;
  border: 1px solid transparent;
}
.pill-item.active, .pill-item:hover {
  background: linear-gradient(135deg, var(--saffron-light), var(--saffron-primary));
  color: #ffffff;
  border-color: var(--saffron-dark);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.32);
}

/* Slide-out Off-Canvas App Drawer */
.app-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background: var(--bg-card);
  z-index: 2000;
  box-shadow: 4px 0 20px rgba(0,0,0,0.25);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.app-drawer.open {
  left: 0;
}
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  background: var(--saffron-primary);
  background: var(--saffron-nav-grad);
  color: #ffffff;
  padding: 18px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--saffron-dark);
}
.drawer-brand {
  font-size: 20px;
  font-weight: 700;
}
.drawer-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.drawer-section-title {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin: 14px 0 8px;
}
.drawer-menu-list {
  list-style: none;
}
.drawer-menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}
.drawer-menu-item a:hover {
  background: var(--saffron-soft);
  color: var(--saffron-dark);
}

/* Mobile Sticky Anchor Ad (320x50) */
.mobile-sticky-ad-bar {
  display: none;
  position: fixed;
  bottom: var(--bottom-nav-height);
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 2px 0;
  z-index: 990;
}
.mobile-sticky-ad-bar img {
  margin: 0 auto;
  max-height: 50px;
  display: block;
}
.mobile-ad-label {
  position: absolute;
  top: -14px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 3px;
}
.close-ad-btn {
  position: absolute;
  top: -14px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 3px;
  cursor: pointer;
}

/* Fixed Mobile Native Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  flex: 1;
  height: 100%;
  transition: color 0.2s;
}
.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
  fill: currentColor;
}
.bottom-nav-item.active, .bottom-nav-item:hover {
  color: var(--saffron-primary);
}

/* 11. FOOTER */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: 40px;
  padding: 40px 0 20px;
  border-top: 4px solid var(--primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* 12. RESPONSIVE BREAKPOINTS (Mobile Optimization) */
@media (max-width: 992px) {
  .main-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .header-ad-box {
    display: none;
  }
  .news-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .top-bar {
    display: none;
  }
  .primary-nav {
    display: none; /* Replaced by mobile bottom nav & category pills */
  }
  .mobile-menu-btn {
    display: block;
  }
  .mobile-category-pills {
    display: flex;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .mobile-sticky-ad-bar {
    display: block;
  }
  .header-mobile-lang {
    display: flex;
    align-items: center;
  }
  .header-mobile-lang .lang-switch-tab {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
  }
  .header-mobile-lang .lang-btn {
    color: #64748b !important;
    background: transparent !important;
    font-size: 13px;
    padding: 2px 4px;
    font-weight: 500;
  }
  .header-mobile-lang .lang-btn:hover {
    color: #0f172a !important;
    background: transparent !important;
  }
  .header-mobile-lang .lang-btn.active {
    background: transparent !important;
    box-shadow: none !important;
    color: #ea580c !important;
    font-weight: 800;
  }
  .header-mobile-lang .lang-divider {
    color: #cbd5e1;
    margin: 0 2px;
  }
  
  .hero-section {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .lead-story .story-title {
    font-size: 20px;
  }
  
  .news-card-grid {
    grid-template-columns: 1fr;
  }
  .article-detail-column {
    padding: 14px 10px !important;
    border-radius: 6px;
  }
  .article-title {
    font-size: 21px;
    line-height: 1.38;
    margin-bottom: 12px;
  }
  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    margin-bottom: 14px;
  }
  .author-box {
    width: 100%;
    font-size: 12px;
    gap: 4px 6px;
  }
  .reader-tools {
    width: 100%;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed var(--border);
  }
  .portal-video-wrapper {
    border-radius: 6px;
    margin-bottom: 8px;
  }
  .video-meta-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .video-card-badge {
    font-size: 10px;
    padding: 2px 6px;
    bottom: 6px;
    left: 6px;
  }
  .article-content {
    font-size: 17px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
