/* ==========================================================================
   BBC News.fr Theme Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Top Bar & Header
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--bbc-dark-gray);
  color: #D1D5DB;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  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;
}

.top-bar-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  text-transform: capitalize;
}

.top-bar-edition {
  color: #9CA3AF;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

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

.top-bar-menu {
  display: flex;
  list-style: none;
  gap: 14px;
}

.top-bar-menu a {
  color: #D1D5DB;
  font-weight: 500;
}

.top-bar-menu a:hover {
  color: #FFFFFF;
}

.dark-mode-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.dark-mode-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

.moon-icon { display: none; }
body.dark-mode .sun-icon { display: none; }
body.dark-mode .moon-icon { display: block; }

/* Main Header */
.site-header {
  background-color: var(--bbc-bg-card);
  border-bottom: 2px solid var(--bbc-red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--bbc-shadow-sm);
}

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

/* BBC Logo Blocks */
.bbc-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.bbc-logo-blocks {
  display: flex;
  gap: 3px;
}

.bbc-block {
  background-color: var(--bbc-red);
  color: #FFFFFF;
  font-family: var(--bbc-font-sans);
  font-weight: 800;
  font-size: 22px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  letter-spacing: -0.5px;
}

.bbc-logo-blocks.small .bbc-block {
  width: 24px;
  height: 24px;
  font-size: 15px;
}

.bbc-brand-text {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.bbc-news-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--bbc-text-main);
  letter-spacing: 1px;
}

.bbc-fr-tag {
  font-size: 20px;
  font-weight: 800;
  color: var(--bbc-red);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-trigger-btn {
  background-color: var(--bbc-light-gray);
  border: 1px solid var(--bbc-border-color);
  color: var(--bbc-text-main);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-trigger-btn:hover {
  background-color: var(--bbc-red);
  border-color: var(--bbc-red);
  color: #FFFFFF;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-menu-btn .bar {
  width: 24px;
  height: 2.5px;
  background-color: var(--bbc-text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Main Nav */
.main-navigation {
  background-color: var(--bbc-bg-card);
  border-top: 1px solid var(--bbc-border-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--bbc-text-main);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 3px solid transparent;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: var(--bbc-red);
  border-bottom-color: var(--bbc-red);
  background-color: var(--bbc-light-gray);
}

/* --------------------------------------------------------------------------
   Breaking News Ticker Bar
   -------------------------------------------------------------------------- */
.breaking-news-section {
  background-color: var(--bbc-dark-gray);
  color: #FFFFFF;
  padding: 8px 0;
  border-bottom: 1px solid var(--bbc-border-color);
}

.breaking-news-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.breaking-label {
  background-color: var(--bbc-red);
  color: #FFFFFF;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.live-pulse {
  width: 8px;
  height: 8px;
  background-color: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.breaking-ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.breaking-ticker-list {
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 0;
  animation: ticker-slide 20s linear infinite;
}

.breaking-ticker-list:hover {
  animation-play-state: paused;
}

.breaking-ticker-list li {
  display: inline-block;
  margin-right: 32px;
  font-size: 14px;
}

.breaking-ticker-list a {
  color: #F3F4F6;
}

.breaking-ticker-list a:hover {
  color: #FF6B6B;
}

.ticker-time {
  color: #FCA5A5;
  margin-right: 6px;
}

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

/* --------------------------------------------------------------------------
   Hero Grid Section
   -------------------------------------------------------------------------- */
.hero-news-section {
  padding-top: 24px;
  padding-bottom: 24px;
}

.hero-news-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 24px;
}

.hero-main-card {
  background-color: var(--bbc-bg-card);
  border: 1px solid var(--bbc-border-color);
  border-radius: var(--bbc-radius);
  overflow: hidden;
  box-shadow: var(--bbc-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-main-card:hover {
  box-shadow: var(--bbc-shadow-md);
}

.hero-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-main-card:hover .hero-image-wrapper img {
  transform: scale(1.03);
}

.hero-category-tag,
.news-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--bbc-red);
  color: #FFFFFF;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
  z-index: 2;
}

.hero-category-tag a,
.news-card-badge a {
  color: #FFFFFF;
}

.hero-content {
  padding: 20px;
}

.hero-title {
  font-family: var(--bbc-font-sans);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero-title a {
  color: var(--bbc-text-main);
}

.hero-excerpt {
  color: var(--bbc-text-muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--bbc-text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Hero & Article Cards - Image + Centered Overlay Title
   -------------------------------------------------------------------------- */
.hero-overlay-card,
.side-overlay-card,
.grid-overlay-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #0A0A0A;
}

.hero-overlay-card:hover,
.side-overlay-card:hover,
.grid-overlay-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.card-overlay-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none !important;
  color: #FFFFFF !important;
}

.card-image-bg {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-overlay-card .card-image-bg {
  aspect-ratio: 16 / 9;
}

.side-overlay-card .card-image-bg {
  aspect-ratio: 16 / 9;
}

.grid-overlay-card .card-image-bg {
  aspect-ratio: 16 / 10;
}

.card-image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.card-overlay-link:hover .card-image-bg img {
  transform: scale(1.08);
}

/* Dark contrast gradient overlay over image */
.card-image-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.65) 55%, rgba(0, 0, 0, 0.92) 100%);
  z-index: 1;
}

.card-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--bbc-red);
  color: #FFFFFF !important;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
  z-index: 3;
}

.card-badge-tag.small {
  top: 8px;
  left: 8px;
  font-size: 9px;
  padding: 2px 6px;
}

.card-badge-tag a {
  color: #FFFFFF !important;
}

.card-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.95) 100%);
  display: flex;
  align-items: flex-end;
  text-align: left;
}

.card-overlay-title {
  color: #FFFFFF !important;
  font-family: var(--bbc-font-sans);
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-overlay-card .card-overlay-title {
  font-size: 24px;
}

.side-overlay-card .card-overlay-title {
  font-size: 13px;
  line-height: 1.3;
}

.grid-overlay-card .card-overlay-title {
  font-size: 15px;
}

/* Side Featured Stack */
.hero-side-stack {
  background-color: var(--bbc-bg-card);
  border: 1px solid var(--bbc-border-color);
  border-radius: var(--bbc-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-stack-header {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 2px solid var(--bbc-red);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.side-story-card {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bbc-border-color);
}

.side-story-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.side-story-thumb {
  width: 90px;
  height: 65px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.side-story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-story-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--bbc-red);
  text-transform: uppercase;
}

.story-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin: 2px 0 4px;
}

.story-time {
  font-size: 12px;
  color: var(--bbc-text-muted);
}

/* --------------------------------------------------------------------------
   Main Content & Sidebar Layout
   -------------------------------------------------------------------------- */
.main-content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  padding-bottom: 40px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--bbc-border-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .red-line,
.archive-title .red-bar,
.page-title .red-bar,
.related-heading .red-bar {
  display: inline-block;
  width: 5px;
  height: 20px;
  background-color: var(--bbc-red);
  border-radius: 2px;
}

.view-all-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--bbc-red);
}

/* News Cards Grid */
.latest-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.news-card {
  background-color: var(--bbc-bg-card);
  border: 1px solid var(--bbc-border-color);
  border-radius: var(--bbc-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.news-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

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

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

.news-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

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

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

/* Category Highlight Grid */
.category-highlight-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}

.highlight-main-box {
  position: relative;
  border-radius: var(--bbc-radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.highlight-main-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
  color: #FFFFFF;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.highlight-overlay .cat-pill {
  background-color: var(--bbc-red);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  width: fit-content;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.highlight-overlay h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
}

.highlight-overlay h3 a {
  color: #FFFFFF;
}

.highlight-overlay p {
  font-size: 13px;
  color: #E2E8F0;
}

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

.sub-article-item {
  background-color: var(--bbc-bg-card);
  border: 1px solid var(--bbc-border-color);
  border-radius: var(--bbc-radius);
  padding: 12px;
}

.sub-article-item .item-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--bbc-red);
  text-transform: uppercase;
}

.sub-article-item h4 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin: 4px 0;
}

.sub-article-item .item-time {
  font-size: 12px;
  color: var(--bbc-text-muted);
}

/* --------------------------------------------------------------------------
   Sidebar Widgets
   -------------------------------------------------------------------------- */
.sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget {
  background-color: var(--bbc-bg-card);
  border: 1px solid var(--bbc-border-color);
  border-radius: var(--bbc-radius);
  padding: 20px;
  box-shadow: var(--bbc-shadow-sm);
}

.widget-title {
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 2px solid var(--bbc-red);
  padding-bottom: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bbc-text-main);
}

.popular-posts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.popular-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bbc-border-color);
}

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

.popular-rank {
  font-size: 22px;
  font-weight: 800;
  color: var(--bbc-red);
  line-height: 1;
  min-width: 28px;
}

.popular-category {
  font-size: 11px;
  font-weight: 800;
  color: var(--bbc-text-muted);
  text-transform: uppercase;
}

.popular-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin: 2px 0;
}

.popular-time {
  font-size: 12px;
  color: var(--bbc-text-muted);
}

.widget-newsletter-box {
  background-color: var(--bbc-dark-gray);
  color: #FFFFFF;
}

.widget-newsletter-box .newsletter-badge {
  background-color: var(--bbc-red);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
}

.widget-newsletter-box h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 8px 0;
}

.widget-newsletter-box p {
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 12px;
}

.sidebar-newsletter-form input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: #2A2A2A;
  color: #FFFFFF;
  margin-bottom: 8px;
  font-size: 13px;
}

.btn-submit-red {
  width: 100%;
  background-color: var(--bbc-red);
  color: #FFFFFF;
  border: none;
  padding: 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-submit-red:hover {
  background-color: var(--bbc-red-dark);
}

.categories-styled-list {
  list-style: none;
}

.categories-styled-list li a {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--bbc-border-color);
  font-size: 14px;
  font-weight: 600;
}

.categories-styled-list li:last-child a {
  border-bottom: none;
}

.cat-count {
  background-color: var(--bbc-light-gray);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--bbc-text-muted);
}

/* --------------------------------------------------------------------------
   Single Post Typography & Layout
   -------------------------------------------------------------------------- */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 9999;
}

.reading-progress-bar {
  height: 100%;
  background-color: var(--bbc-red);
  width: 0%;
  transition: width 0.1s ease-out;
}

.single-post-container {
  padding-top: 20px;
}

.bbc-breadcrumbs {
  font-size: 13px;
  color: var(--bbc-text-muted);
  margin-bottom: 16px;
}

.bbc-breadcrumbs a {
  color: var(--bbc-text-muted);
  font-weight: 500;
}

.bbc-breadcrumbs .sep {
  margin: 0 6px;
}

.article-header {
  margin-bottom: 24px;
}

.article-category-badge a {
  display: inline-block;
  background-color: var(--bbc-red);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.article-title {
  font-family: var(--bbc-font-sans);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--bbc-text-main);
  margin-bottom: 12px;
}

.article-subtitle p {
  font-size: 18px;
  line-height: 1.5;
  color: var(--bbc-text-muted);
  font-weight: 400;
  margin-bottom: 16px;
}

.article-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--bbc-border-color);
  border-bottom: 1px solid var(--bbc-border-color);
  padding: 12px 0;
}

.author-meta-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar img {
  border-radius: 50%;
}

.author-text {
  font-size: 13px;
}

.byline-label {
  color: var(--bbc-text-main);
}

.meta-date-time {
  color: var(--bbc-text-muted);
  margin-top: 2px;
}

.article-share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--bbc-text-muted);
}

.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.share-btn:hover { opacity: 0.85; }
.share-btn.twitter { background-color: #000000; }
.share-btn.facebook { background-color: #1877F2; }
.share-btn.whatsapp { background-color: #25D366; }
.share-btn.copy-link { background-color: var(--bbc-mid-gray); }

.featured-img {
  width: 100%;
  border-radius: var(--bbc-radius);
  margin-bottom: 8px;
}

.featured-img-caption {
  font-size: 13px;
  color: var(--bbc-text-muted);
  padding-left: 12px;
  border-left: 3px solid var(--bbc-red);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Article Content Body */
.entry-content {
  font-family: var(--bbc-font-serif);
  font-size: 18px;
  line-height: 1.75;
  color: var(--bbc-text-main);
  margin-bottom: 32px;
}

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

.entry-content h2,
.entry-content h3 {
  font-family: var(--bbc-font-sans);
  font-weight: 800;
  margin: 32px 0 16px;
  color: var(--bbc-text-main);
}

.entry-content blockquote {
  border-left: 4px solid var(--bbc-red);
  padding-left: 20px;
  font-style: italic;
  font-size: 20px;
  color: var(--bbc-text-muted);
  margin: 28px 0;
}

/* Article Bio Card */
.author-bio-card {
  background-color: var(--bbc-light-gray);
  border-radius: var(--bbc-radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  margin: 32px 0;
}

.bio-avatar img {
  border-radius: 50%;
}

.bio-name {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.bio-description {
  font-size: 14px;
  color: var(--bbc-text-muted);
}

/* Related Posts */
.related-posts-section {
  margin: 40px 0;
}

.related-heading {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.related-card {
  background-color: var(--bbc-bg-card);
  border: 1px solid var(--bbc-border-color);
  border-radius: var(--bbc-radius);
  padding: 12px;
}

.related-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.related-date {
  font-size: 12px;
  color: var(--bbc-text-muted);
}

/* --------------------------------------------------------------------------
   Footer Styles
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bbc-black);
  color: #9CA3AF;
  font-size: 14px;
  margin-top: 40px;
}

.footer-top-accent {
  height: 4px;
  background-color: var(--bbc-red);
}

.footer-content {
  padding: 48px 20px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-news-title {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-social-links {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #262626;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.social-icon:hover {
  background-color: var(--bbc-red);
}

.footer-title {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--bbc-red);
  padding-bottom: 6px;
  display: inline-block;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #9CA3AF;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.newsletter-input-group {
  display: flex;
  margin-top: 10px;
}

.contact-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-details-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #D1D5DB;
}

.contact-details-list li svg {
  color: var(--bbc-red);
  flex-shrink: 0;
}

.contact-details-list li a {
  color: #D1D5DB;
  transition: color 0.2s ease;
}

.contact-details-list li a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.newsletter-input-group input {
  padding: 10px;
  border-radius: 4px 0 0 4px;
  border: 1px solid #374151;
  background-color: #1F2937;
  color: #FFFFFF;
  font-size: 13px;
  flex-grow: 1;
}

.newsletter-input-group button {
  background-color: var(--bbc-red);
  color: #FFFFFF;
  border: none;
  padding: 0 14px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.footer-bottom {
  background-color: #0A0A0A;
  border-top: 1px solid #1F2937;
  padding: 16px 0;
  font-size: 13px;
}

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

.back-to-top-btn {
  background: transparent;
  border: 1px solid #374151;
  color: #D1D5DB;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.back-to-top-btn:hover {
  background-color: var(--bbc-red);
  border-color: var(--bbc-red);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Search Modal Overlay
   -------------------------------------------------------------------------- */
.search-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 10000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.search-modal-overlay.active {
  display: flex;
}

.search-modal-content {
  background-color: var(--bbc-bg-card);
  width: 90%;
  max-width: 650px;
  border-radius: 12px;
  padding: 32px;
  position: relative;
  box-shadow: var(--bbc-shadow-lg);
}

.close-search-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--bbc-text-muted);
  cursor: pointer;
}

.search-modal-header h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.search-modal-header p {
  color: var(--bbc-text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.search-input-wrapper {
  display: flex;
  gap: 8px;
}

.search-input-wrapper input {
  flex-grow: 1;
  padding: 12px 16px;
  border: 2px solid var(--bbc-border-color);
  border-radius: 6px;
  font-size: 16px;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--bbc-red);
}

.search-submit-btn {
  background-color: var(--bbc-red);
  color: #FFFFFF;
  border: none;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-news-grid {
    grid-template-columns: 1fr;
  }

  .main-content-layout {
    grid-template-columns: 1fr;
  }

  .latest-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .main-navigation {
    display: none;
  }

  .main-navigation.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    overflow-x: visible;
  }

  .top-bar-edition {
    display: none;
  }

  .latest-news-grid {
    grid-template-columns: 1fr;
  }

  .category-highlight-grid {
    grid-template-columns: 1fr;
  }

  .article-title {
    font-size: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
