/* ====================================================================
 * LDBhatt.in Inspired Professional Newsroom Stylesheet
 * Custom PHP 8.2+ News Portal
 * ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@300;400;500;600;700;800&family=Noto+Serif+Devanagari:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-red: #c91414;
  --primary-dark: #900c0c;
  --secondary-navy: #0f172a;
  --accent-gold: #f59e0b;
  --accent-blue: #1d4ed8;
  --news-heading-font: 'Mukta', 'Noto Serif Devanagari', -apple-system, BlinkMacSystemFont, sans-serif;
  --news-body-font: 'Mukta', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --news-serif-font: 'Noto Serif Devanagari', Georgia, serif;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --bg-light: #f8fafc;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --card-hover-shadow: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
}

body {
  font-family: var(--news-body-font);
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .news-title {
  font-family: var(--news-heading-font);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

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

/* --------------------------------------------------------------------
 * Top Date & Info Bar
 * -------------------------------------------------------------------- */
.top-info-bar {
  background-color: #0f172a;
  color: #94a3b8;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #1e293b;
}

.top-info-bar a {
  color: #cbd5e1;
}

.top-info-bar a:hover {
  color: #ffffff;
}

.top-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #cbd5e1;
  font-size: 12px;
  margin-left: 6px;
  transition: all 0.2s ease;
}

.top-social-links a:hover {
  background: var(--primary-red);
  color: #ffffff;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------
 * Publication Header & Branding
 * -------------------------------------------------------------------- */
.main-header {
  padding: 22px 0 16px;
  background: #ffffff;
  border-bottom: 2px solid #f1f5f9;
}

.brand-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary-red);
  display: inline-flex;
  align-items: center;
}

.brand-title .brand-dot {
  color: var(--secondary-navy);
}

.brand-tagline {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: -2px;
}

.header-search-box {
  position: relative;
  max-width: 320px;
}

.header-search-box input {
  border-radius: 25px;
  padding-left: 40px;
  padding-right: 15px;
  border: 1px solid var(--border-light);
  font-size: 14px;
  background-color: var(--bg-light);
  transition: all 0.2s ease;
}

.header-search-box input:focus {
  background-color: #ffffff;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(201, 20, 20, 0.12);
}

.header-search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
}

/* --------------------------------------------------------------------
 * Main Horizontal Navigation Bar
 * -------------------------------------------------------------------- */
.main-navbar {
  background: var(--secondary-navy);
  padding: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.navbar-nav .nav-link {
  color: #f1f5f9 !important;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 14px !important;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background-color: rgba(255,255,255,0.08);
  color: #ffffff !important;
  border-bottom-color: var(--primary-red);
}

.navbar-nav .nav-link.nav-breaking {
  background-color: var(--primary-red);
  color: #ffffff !important;
}

.navbar-nav .dropdown-menu {
  border-radius: 6px;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-hover-shadow);
  padding: 6px 0;
}

.navbar-nav .dropdown-item {
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 18px;
}

.navbar-nav .dropdown-item:hover {
  background-color: #fee2e2;
  color: var(--primary-red);
}

/* --------------------------------------------------------------------
 * Breaking News Ticker (Crawlable & Progressive)
 * -------------------------------------------------------------------- */
.breaking-ticker-wrapper {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 2px solid var(--border-light);
  padding: 6px 0;
}

.ticker-badge {
  background: var(--primary-red);
  color: #ffffff;
  font-weight: 700;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.ticker-content {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-item {
  display: inline-block;
  margin-right: 35px;
  font-size: 15px;
  font-weight: 600;
}

.ticker-item a {
  color: #1e293b;
}

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

/* --------------------------------------------------------------------
 * Lead Story / Hero Section
 * -------------------------------------------------------------------- */
.lead-story-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

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

.lead-story-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #e2e8f0;
}

.lead-story-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lead-story-card:hover .lead-story-img-wrapper img {
  transform: scale(1.03);
}

.lead-story-body {
  padding: 20px;
}

.category-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background-color: var(--primary-red);
  color: #ffffff;
}

.meta-byline {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-byline i {
  margin-right: 4px;
}

/* Compact Lead Cards */
.compact-lead-card {
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  display: flex;
  gap: 14px;
}

.compact-lead-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.compact-lead-card:first-child {
  padding-top: 0;
}

.compact-lead-img {
  width: 105px;
  height: 75px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #e2e8f0;
}

.compact-lead-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.compact-lead-card:hover .compact-lead-img img {
  transform: scale(1.05);
}

.compact-lead-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------
 * Section Headers
 * -------------------------------------------------------------------- */
.section-header {
  border-bottom: 2px solid var(--secondary-navy);
  margin-bottom: 20px;
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--secondary-navy);
  margin: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 18px;
  background: var(--primary-red);
  margin-right: 10px;
  border-radius: 2px;
}

.section-view-all {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-red);
}

/* --------------------------------------------------------------------
 * Standard News Cards (Grids)
 * -------------------------------------------------------------------- */
.news-grid-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.news-grid-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.news-grid-body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-grid-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.news-grid-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-grow: 1;
}

/* --------------------------------------------------------------------
 * Sidebar Widgets
 * -------------------------------------------------------------------- */
.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
}

.sidebar-widget-title {
  font-size: 17px;
  font-weight: 800;
  border-bottom: 2px solid var(--secondary-navy);
  padding-bottom: 8px;
  margin-bottom: 16px;
  color: var(--secondary-navy);
}

/* Most Read Numbers */
.ranking-list-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: flex-start;
}

.ranking-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ranking-number {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: #cbd5e1;
  min-width: 24px;
  text-align: center;
}

.ranking-list-item:nth-child(1) .ranking-number { color: var(--primary-red); }
.ranking-list-item:nth-child(2) .ranking-number { color: #ea580c; }
.ranking-list-item:nth-child(3) .ranking-number { color: #eab308; }

.ranking-content h6 {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------
 * Article Page Styling
 * -------------------------------------------------------------------- */
.article-header {
  margin-bottom: 24px;
}

.article-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  margin: 12px 0;
}

.article-lead {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 16px;
}

.article-byline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.author-mini-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-mini-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
}

.social-share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 16px;
  transition: all 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.share-btn.share-whatsapp { background-color: #25d366; }
.share-btn.share-facebook { background-color: #1877f2; }
.share-btn.share-twitter { background-color: #000000; }
.share-btn.share-telegram { background-color: #229ed9; }
.share-btn.share-linkedin { background-color: #0a66c2; }
.share-btn.share-copy { background-color: #475569; }

.article-featured-image {
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-image-caption {
  font-size: 13.5px;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 8px 14px;
  border-left: 3px solid var(--primary-red);
}

/* Article Body Typography */
.article-content {
  font-size: 18.5px;
  line-height: 1.8;
  color: #1e293b;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content h2, .article-content h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 800;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-red);
  padding: 16px 20px;
  background-color: var(--bg-light);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-style: italic;
  font-size: 19px;
  color: #334155;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 18px 0;
}

.article-tags-cloud a {
  display: inline-block;
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 6px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.article-tags-cloud a:hover {
  background-color: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

.author-bio-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
}

/* --------------------------------------------------------------------
 * Newsroom Footer
 * -------------------------------------------------------------------- */
.main-footer {
  background: #0b1120;
  color: #94a3b8;
  padding-top: 50px;
  border-top: 4px solid var(--primary-red);
}

.footer-brand {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 2px solid #1e293b;
  padding-bottom: 8px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom-bar {
  background: #060913;
  padding: 18px 0;
  font-size: 13px;
  border-top: 1px solid #1e293b;
  margin-top: 40px;
}

/* --------------------------------------------------------------------
 * Live Search Suggestions Dropdown
 * -------------------------------------------------------------------- */
.search-suggestions-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  margin-top: 6px;
  z-index: 1050;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.suggestion-item {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}

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

.suggestion-item:hover, .suggestion-item.active {
  background-color: #f8fafc;
}

.suggestion-img {
  width: 50px;
  height: 38px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.suggestion-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #1e293b;
}

/* --------------------------------------------------------------------
 * Responsive Media Queries
 * -------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .brand-title {
    font-size: 28px;
  }
  .article-title {
    font-size: 25px;
  }
  .article-content {
    font-size: 17px;
  }
}

@media (max-width: 575.98px) {
  .brand-title {
    font-size: 24px;
  }
  .article-title {
    font-size: 22px;
  }
  .lead-story-body {
    padding: 14px;
  }
  .compact-lead-card {
    gap: 10px;
  }
  .compact-lead-img {
    width: 85px;
    height: 60px;
  }
}
