/* ==========================================================================
   Yeh Hai News India - Complete Mobile Responsive Theme Stylesheet
   ========================================================================== */

:root {
  --primary-red: #dc2626;
  --primary-red-hover: #b91c1c;
  --primary-dark: #0f1115;
  --text-dark: #111827;
  --text-body: #374151;
  --text-muted: #6b7280;
  --border-light: #e5e7eb;
  --border-dark: #27272a;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0f1115;
  --container-max-width: 720px;
  --bottom-bar-height: 58px;
}

@media (min-width: 1024px) {
  :root {
    --container-max-width: 100%;
  }
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-dark);
  font-family: 'Noto Sans Gujarati', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  padding-bottom: var(--bottom-bar-height); /* Space for bottom mobile nav */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
}

/* Layout Containers */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.875rem;
  padding-right: 0.875rem;
}

@media (min-width: 640px) {
  .container-narrow {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .container-narrow {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1440px) {
  .container-narrow {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Top Utility Bar */
.top-bar {
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
}

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

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trending-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background-color: #fee2e2;
  color: var(--primary-red);
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.live-pulse {
  width: 6px;
  height: 6px;
  background-color: var(--primary-red);
  border-radius: 50%;
  display: inline-block;
  animation: live-pulse-anim 1.5s infinite;
}

@keyframes live-pulse-anim {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Main Header Navbar */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 40;
}

.main-nav-bar {
  padding: 0.5rem 0;
}

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

.brand-logo-img,
.custom-logo,
.site-branding img {
  height: 40px !important;
  max-height: 48px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  display: block !important;
  transition: transform 0.2s ease;
}

@media (min-width: 480px) {
  .brand-logo-img,
  .custom-logo,
  .site-branding img {
    height: 46px !important;
    max-height: 52px !important;
    max-width: 260px !important;
  }
}

.brand-logo-img:hover,
.custom-logo:hover,
.site-branding img:hover {
  transform: scale(1.02);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.icon-button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #374151;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, color 0.15s;
  position: relative;
}

.icon-button:hover, .icon-button:active {
  background-color: #f1f5f9;
  color: var(--primary-red);
}

.notification-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  background-color: var(--primary-red);
  border-radius: 50%;
  border: 1.5px solid #ffffff;
}

/* Category Navigation Bar (Touch-Optimized Horizontal Scroll) */
.category-nav-wrapper {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 35;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.category-nav-scroll {
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.45rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}

.category-nav-scroll::-webkit-scrollbar {
  display: none;
}

.category-nav-scroll ul,
.category-nav-list {
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.category-nav-scroll li,
.category-nav-list li {
  list-style: none !important;
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.cat-nav-link,
.category-nav-scroll a,
.category-nav-list a {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: #4b5563 !important;
  padding: 0.35rem 0.8rem !important;
  border-radius: 0.375rem !important;
  transition: all 0.15s ease !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  line-height: 1.3 !important;
}

.cat-nav-link:hover, 
.cat-nav-link:active,
.category-nav-scroll a:hover,
.category-nav-list a:hover {
  color: var(--primary-red) !important;
  background-color: #fee2e2 !important;
  text-decoration: none !important;
}

.cat-nav-link.active,
.category-nav-scroll a.active,
.category-nav-list a.active,
.current-menu-item > a {
  background-color: var(--primary-red) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3) !important;
  text-decoration: none !important;
}

/* Spotlight Breaking News Ticker */
.ticker-section {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 0.35rem 0;
}

.ticker-box {
  display: flex;
  align-items: center;
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  gap: 0.5rem;
  overflow: hidden;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background-color: var(--primary-red);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticker-headline {
  flex: 1;
  font-size: 0.775rem;
  font-weight: 600;
  color: #1f2937;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .ticker-headline {
    font-size: 0.8125rem;
  }
}

.ticker-headline a:hover {
  color: var(--primary-red);
}

/* Hero Lead Story */
.hero-story-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 0.625rem;
  overflow: hidden;
  margin-top: 0.875rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hero-media-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #0f172a;
  overflow: hidden;
}

.hero-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-story-card:hover .hero-media-img {
  transform: scale(1.02);
}

.hero-badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  background-color: var(--primary-red);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-body {
  padding: 0.875rem 1rem 1rem;
}

@media (min-width: 640px) {
  .hero-body {
    padding: 1.125rem 1.25rem 1.25rem;
  }
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.hero-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
  margin: 0 0 0.5rem 0;
}

@media (min-width: 480px) {
  .hero-title {
    font-size: 1.25rem;
  }
}

.hero-title a:hover {
  color: var(--primary-red);
}

.hero-excerpt {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.hero-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.625rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Category Sections & News Cards */
.section-block {
  margin-bottom: 1.75rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.45rem;
  margin-bottom: 0.875rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-accent-bar {
  width: 4px;
  height: 18px;
  background-color: var(--primary-red);
  border-radius: 2px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.section-view-all {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--primary-red);
}

.section-view-all:hover {
  text-decoration: underline;
}

/* News Article Card (Mobile Responsive Grid) */
.news-cards-grid,
.news-grid,
.news-list,
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  gap: 1.125rem;
}

/* Strict Mobile 1-Column Layout on screens 767px or below */
@media (max-width: 767px) {
  .news-cards-grid,
  .news-grid,
  .news-list,
  .article-grid {
    grid-template-columns: 1fr !important;
    display: grid !important;
    width: 100% !important;
    gap: 1.25rem !important;
  }

  .news-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .news-card-media {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
  }

  .news-card-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .news-card-title {
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
  }
}

/* Tablet & Desktop Layouts (768px and above) */
@media (min-width: 768px) {
  .news-cards-grid,
  .news-grid,
  .news-list,
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .news-cards-grid,
  .news-grid,
  .news-list,
  .article-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1366px) {
  .news-cards-grid,
  .news-grid,
  .news-list,
  .article-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.news-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.news-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #f1f5f9;
  overflow: hidden;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

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

.news-card-body {
  padding: 0.75rem 0.875rem 0.875rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.card-category-tag {
  background-color: #fee2e2;
  color: var(--primary-red);
  padding: 0.12rem 0.4rem;
  border-radius: 0.25rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.625rem;
}

.news-card-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin: 0 0 0.45rem 0;
}

.news-card-title a {
  color: var(--text-dark);
  text-decoration: none;
}

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

.news-card-excerpt {
  font-size: 0.775rem;
  color: #4b5563;
  line-height: 1.4;
  margin-bottom: 0.65rem;
  flex: 1;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Humor & Jokes Box */
.jokes-box {
  background-color: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.75rem;
}

.jokes-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #854d0e;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.jokes-text {
  font-size: 0.85rem;
  color: #713f12;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.jokes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jokes-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #ffffff;
  border: 1px solid #fde047;
  color: #854d0e;
  padding: 0.35rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

/* Campaign Banner */
.campaign-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%);
  color: #ffffff;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.campaign-tag {
  background-color: #38bdf8;
  color: #082f49;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  align-self: flex-start;
}

.campaign-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

.campaign-btn {
  background-color: #facc15;
  color: #78350f;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.4rem 0.875rem;
  border-radius: 0.25rem;
  align-self: flex-start;
}

/* Photo Gallery Block */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}

.photo-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 0.375rem;
  overflow: hidden;
  background-color: #1e293b;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #ffffff;
  padding: 0.625rem 0.5rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Official Address & Contact Section (Dark Footer Masthead) */
.official-contact-section {
  background-color: var(--primary-dark);
  color: #ffffff;
  padding: 1.75rem 0 2.25rem;
  border-top: 1px solid var(--border-dark);
}

.contact-logo-img {
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  color: #94a3b8;
  font-size: 0.775rem;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.social-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #1e293b;
  color: #f1f5f9;
  padding: 0.375rem 0.7rem;
  border-radius: 0.375rem;
  font-size: 0.725rem;
  font-weight: 600;
  min-height: 36px;
}

.social-btn:hover, .social-btn:active {
  background-color: var(--primary-red);
  color: #ffffff;
}

.office-info-card {
  background-color: #15181e;
  border: 1px solid #272a30;
  border-radius: 0.5rem;
  padding: 1rem;
}

.office-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.625rem 0;
  border-bottom: 1px solid #272a30;
  padding-bottom: 0.4rem;
}

.office-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.775rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.office-detail-row a {
  color: #38bdf8;
}

/* Site Footer */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 1.5rem 0 1.25rem;
  font-size: 0.775rem;
  color: #4b5563;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

@media (min-width: 480px) {
  .footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-nav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-nav-col h5 {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem 0;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-menu li a {
  color: #64748b;
  font-size: 0.75rem;
}

.footer-menu li a:hover {
  color: var(--primary-red);
}

.footer-bottom-bar {
  text-align: center;
  padding-top: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
}

/* Single Post Page */
.single-post-container {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
}

.post-header-meta {
  margin-bottom: 0.875rem;
}

.post-category-tag {
  display: inline-block;
  background-color: #fee2e2;
  color: var(--primary-red);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.35rem;
}

.single-post-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-dark);
  margin: 0.25rem 0 0.5rem 0;
}

@media (min-width: 640px) {
  .single-post-title {
    font-size: 1.65rem;
  }
}

.post-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.625rem;
  margin-bottom: 1rem;
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* Text Resizer for accessibility on mobile */
.font-resizer-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: #f1f5f9;
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
}

.font-resize-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4b5563;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  border-radius: 0.2rem;
}

.font-resize-btn:hover {
  background-color: #e2e8f0;
}

.single-post-featured-image {
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.single-post-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
}

@media (min-width: 640px) {
  .single-post-content {
    font-size: 1.05rem;
  }
}

.single-post-content p {
  margin-bottom: 1.125rem;
}

.post-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 0.875rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.post-share-label {
  font-weight: 700;
  font-size: 0.775rem;
  color: var(--text-dark);
}

/* Sticky Bottom Mobile Navigation Bar (Modern Mobile News App Feel) */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-height);
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none; /* Only show on mobile devices */
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 600;
  min-width: 52px;
  height: 100%;
  padding: 0.25rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.15s;
}

.bottom-nav-item svg {
  margin-bottom: 2px;
}

.bottom-nav-item:hover, .bottom-nav-item:active, .bottom-nav-item.active {
  color: var(--primary-red);
}

/* Drawers & Modals */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 82%;
  max-width: 320px;
  background-color: #ffffff;
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.drawer-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 0;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #64748b;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-content {
  padding: 1rem;
  flex: 1;
}

.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  z-index: 60;
  transform: translateY(-100%);
  transition: transform 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.875rem 0;
}

.search-modal.active {
  transform: translateY(0);
}

.search-form-wrap {
  display: flex;
  gap: 0.5rem;
}

.search-input-field {
  flex: 1;
  padding: 0.6rem 0.875rem;
  border: 1.5px solid var(--border-light);
  border-radius: 0.375rem;
  font-size: 0.9rem;
  outline: none;
}

.search-input-field:focus {
  border-color: var(--primary-red);
}

.search-submit-btn {
  background-color: var(--primary-red);
  color: #ffffff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 0.375rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Page Templates (About, Contact, Grievance, Legal) */
.page-hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 1.75rem 1rem;
  text-align: center;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.page-hero-badge {
  display: inline-block;
  background-color: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.page-hero-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 0 0.35rem 0;
}

.page-hero-subtitle {
  font-size: 0.8rem;
  color: #cbd5e1;
  max-width: 480px;
  margin: 0 auto;
}

.contact-card-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.contact-form-group {
  margin-bottom: 0.875rem;
}

.contact-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.25rem;
}

.contact-form-group input, 
.contact-form-group select, 
.contact-form-group textarea {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid var(--border-light);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-family: inherit;
}

.contact-form-group input:focus, 
.contact-form-group select:focus, 
.contact-form-group textarea:focus {
  outline: none;
  border-color: var(--primary-red);
}

.contact-submit-btn {
  width: 100%;
  background-color: var(--primary-red);
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.contact-submit-btn:hover {
  background-color: var(--primary-red-hover);
}

/* ==========================================================================
   Comments Area & Discussion Styles
   ========================================================================== */
.comments-area {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.comments-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.comment-list .comment {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.comment-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comment-author .fn {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.comment-metadata a {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.comment-content {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.5;
}

.comment-reply-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-red);
  display: inline-block;
  margin-top: 0.25rem;
}

.comment-respond {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.comment-reply-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 0.75rem 0;
}

.comment-form p {
  margin-bottom: 0.75rem;
}

.comment-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 0.25rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--border-light);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-family: inherit;
  box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary-red);
}

.form-submit .submit {
  background-color: var(--primary-red);
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.15s ease;
}

.form-submit .submit:hover {
  background-color: var(--primary-red-hover);
}

/* ==========================================================================
   Advertisement Slots
   ========================================================================== */
.news-ad-container {
  width: 100%;
  text-align: center;
  margin: 1.25rem auto;
  overflow: hidden;
  box-sizing: border-box;
}

.news-ad-container img {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

/* ==========================================================================
   Asian Games & Event Banners
   ========================================================================== */
.asian-games-banner {
  box-sizing: border-box;
  width: 100%;
}

.asian-games-banner a:hover {
  filter: brightness(1.1);
}

