/* ==========================================================================
   Modern News Portal Template - Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700&display=swap');

/* --- Design Tokens & Theme Variables --- */
:root {
  /* Color Palette (Light Theme) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-accent: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  
  --accent-red: #da2824;
  --accent-red-hover: #b81e1b;
  --accent-green: #065f46;
  --accent-green-hover: #044b37;
  --accent-gold: #ffbc02;
  --accent-blue: #0284c7;

  /* Typography */
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --font-editorial: 'Playfair Display', Georgia, serif;

  /* Layout & Spacing */
  --container-max-width: 1200px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-sm: 4px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);

  /* Transition */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Color Palette (Dark Theme) */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-accent: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #1e293b;

  --accent-red: #ef4444;
  --accent-red-hover: #dc2626;
  --accent-green: #10b981;
  --accent-green-hover: #059669;
  
  /* Shadows (Dark Theme) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
}

/* --- Base Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-red);
  color: #fff;
  padding: 8px 16px;
  z-index: 100000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* --- Helper Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
  color: #fff;
}

.badge-red { background-color: var(--accent-red); }
.badge-green { background-color: var(--accent-green); }
.badge-gold { background-color: var(--accent-gold); color: #111; }
.badge-blue { background-color: var(--accent-blue); }

/* --- Top Header Navigation --- */
.top-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-secondary);
  height: 40px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.top-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top-header__menu {
  display: flex;
  gap: 16px;
}

.top-header__menu a:hover {
  color: var(--accent-red);
}

.top-header__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-header__socials {
  display: flex;
  gap: 12px;
}

.top-header__socials a {
  opacity: 0.7;
}

.top-header__socials a:hover {
  opacity: 1;
  color: var(--accent-red);
}

/* --- Sticky Navigation Wrapper --- */
.sticky-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-secondary);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* --- Main Header --- */
.main-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.main-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Hamburger & Toggle Buttons */
.main-header__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger-btn {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
}

.hamburger-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.theme-toggle-btn {
  font-size: 18px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
}

.theme-toggle-btn:hover {
  background-color: var(--bg-accent);
  color: var(--text-primary);
}

/* Logo */
.logo {
  font-family: var(--font-editorial);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--accent-red);
}

/* Header Actions */
.main-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 0;
  opacity: 0;
  padding: 6px 0;
  border: none;
  border-bottom: 2px solid var(--accent-red);
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.search-input.active {
  width: 180px;
  opacity: 1;
  padding: 6px 10px;
}

.search-btn {
  font-size: 16px;
  color: var(--text-secondary);
  padding: 6px;
  border-radius: 50%;
}

.search-btn:hover {
  background-color: var(--bg-accent);
  color: var(--text-primary);
}

.subscribe-btn {
  background-color: var(--accent-gold);
  color: #0f172a;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.subscribe-btn:hover {
  background-color: #e5a902;
  transform: translateY(-1px);
}

.login-btn {
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-size: 12px;
  font-weight: 600;
}

.login-btn:hover {
  background-color: var(--bg-accent);
}

/* --- Categories Sub-navigation --- */
.categories-nav {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.categories-nav__inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  gap: 24px;
  padding: 10px 0;
}

.categories-nav__inner::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.categories-nav__link {
  white-space: nowrap;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.categories-nav__link svg {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.categories-nav__link:hover svg {
  transform: scale(1.1);
}

.categories-nav__link:hover,
.categories-nav__link.active {
  color: var(--accent-red);
}

.categories-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-red);
  transition: var(--transition);
}

.categories-nav__link:hover::after,
.categories-nav__link.active::after {
  width: 100%;
}

/* --- Mobile Side Drawer Navigation --- */
.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  width: 300px;
  height: 100%;
  background-color: var(--bg-secondary);
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  padding: 30px 24px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  scrollbar-width: none; /* Hide scrollbar for layout cleanliness */
  border-right: 1px solid var(--border-color);
}

.side-drawer::-webkit-scrollbar {
  display: none;
}

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

.side-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.side-drawer__header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-accent);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.side-drawer__close:hover {
  background-color: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
  transform: rotate(90deg);
}

.side-drawer__search {
  margin-top: 5px;
}

.drawer-search-form {
  display: flex;
  background-color: var(--bg-accent);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.drawer-search-form:focus-within {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.drawer-search-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
}

.drawer-search-submit {
  padding: 0 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-search-submit:hover {
  color: var(--accent-red);
}

.side-drawer__languages {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  padding: 8px 0;
}

.side-drawer__languages .lang-title {
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang-options {
  display: flex;
  gap: 6px;
}

.lang-btn {
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  transition: var(--transition);
}

.lang-btn.active {
  background-color: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

.lang-btn:hover:not(.active) {
  background-color: var(--bg-accent);
  color: var(--text-primary);
}

.side-drawer__menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.side-drawer__menu a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--border-radius);
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.side-drawer__menu a:hover,
.side-drawer__menu a.active {
  background-color: var(--bg-accent);
  color: var(--accent-red);
  border-left-color: var(--accent-red);
  transform: translateX(4px);
}

.premium-badge {
  background-color: var(--accent-gold);
  color: #0f172a;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
}

.side-drawer__ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.side-drawer__ctas .subscribe-btn {
  text-align: center;
  width: 100%;
  padding: 12px;
  font-size: 13px;
}

.side-drawer__ctas .login-btn {
  text-align: center;
  width: 100%;
  padding: 12px;
  font-size: 13px;
  background-color: var(--bg-accent);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.side-drawer__ctas .login-btn:hover {
  background-color: var(--border-color);
}

.side-drawer__socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  margin-top: auto; /* Push to bottom if content is short */
}

.side-drawer__socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-accent);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.side-drawer__socials a:hover {
  background-color: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
  transform: translateY(-2px);
}

.side-drawer__footer {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding-top: 10px;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

/* --- Breaking News Banner --- */
.breaking-banner {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  height: 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.breaking-banner__label {
  background-color: var(--accent-red);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.breaking-banner__ticker {
  display: flex;
  align-items: center;
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
}

.breaking-banner__track {
  display: flex;
  white-space: nowrap;
  gap: 50px;
  padding-left: 20px;
  animation: ticker-animation 25s linear infinite;
}

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

.breaking-banner__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
}

.breaking-banner__item::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
  display: inline-block;
}

.breaking-banner__item a:hover {
  color: var(--accent-red);
  text-decoration: underline !important;
}

@keyframes ticker-animation {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* --- Sticky Social Widgets / Info Banners --- */
.info-banner {
  background: linear-gradient(135deg, #128c7e, #075e54);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 12px 20px;
  margin: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.info-banner--app {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid var(--border-color);
}

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

.info-banner__icon {
  font-size: 24px;
}

.info-banner__text h4 {
  font-size: 14px;
  font-weight: 700;
}

.info-banner__text p {
  font-size: 12px;
  opacity: 0.9;
}

.info-banner__btn {
  background-color: #fff;
  color: #075e54;
  font-weight: 700;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  text-transform: uppercase;
}

.info-banner--app .info-banner__btn {
  color: #0f172a;
  background-color: var(--accent-gold);
}

.info-banner__btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* --- Hero Layout Section --- */
.hero-section {
  padding: 24px 0;
}

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

/* Large Featured Card */
.hero-featured {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-featured:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-featured__img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: var(--bg-accent);
}

.hero-featured__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-featured:hover .hero-featured__img-wrapper img {
  transform: scale(1.03);
}

.hero-featured__badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
}

.hero-featured__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-featured__meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-featured__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-featured__title {
  font-family: var(--font-editorial);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.hero-featured__title a:hover {
  color: var(--accent-red);
}

.hero-featured__excerpt {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Secondary Hero Column */
.hero-side-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-side-card {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-side-card:hover {
  border-color: var(--accent-red);
  box-shadow: var(--shadow-md);
}

.hero-side-card__category {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-red);
}

.hero-side-card__title {
  font-family: var(--font-editorial);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.hero-side-card__title a:hover {
  color: var(--accent-red);
}

.hero-side-card__meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* Sidebar Override for Secondary Cards */
.sidebar .hero-side-card {
  border: none;
  background: transparent;
  padding: 12px 0;
  box-shadow: none;
  border-bottom: 1px dashed var(--border-color);
  border-radius: 0;
}

.sidebar .hero-side-card:hover {
  box-shadow: none;
  border-color: var(--border-color);
}

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

/* --- Main Layout Grid --- */
.main-layout {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 24px;
  padding-bottom: 40px;
}

/* --- Left Column Elements --- */
.content-area {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Live News Widget */
.live-widget {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--accent-red);
}

.live-widget__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.live-widget__title {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-widget__dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-red);
  border-radius: 50%;
  position: relative;
}

.live-widget__dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent-red);
  border-radius: 50%;
  animation: live-glow 1.5s infinite ease-out;
}

@keyframes live-glow {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.live-widget__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
}

.live-widget__footer {
  margin-top: 16px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.live-widget__more-btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-red);
  letter-spacing: 0.5px;
}

.live-widget__more-btn:hover {
  color: var(--accent-red-hover);
  text-decoration: underline !important;
}

.live-widget__list::-webkit-scrollbar {
  width: 4px;
}

.live-widget__list::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 2px;
}

.live-item {
  display: flex;
  gap: 16px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 14px;
}

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

.live-item__time {
  font-weight: 700;
  color: var(--accent-red);
  font-size: 12px;
  white-space: nowrap;
}

.live-item__title {
  font-size: 13.5px;
  font-weight: 600;
}

.live-item__title a:hover {
  color: var(--accent-red);
}

/* Category Sections */
.section-block__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--accent-green);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.section-block__header--red {
  border-bottom-color: var(--accent-red);
}

.section-block__header--blue {
  border-bottom-color: var(--accent-blue);
}

.section-block__title {
  font-family: var(--font-editorial);
  font-size: 20px;
  font-weight: 800;
}

.section-block__more {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.section-block__more:hover {
  color: var(--accent-red);
}

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

/* Article Cards */
.article-card {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--text-muted);
}

.article-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.article-card:hover .article-card__img img {
  transform: scale(1.02);
}

.article-card__content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.article-card__title {
  font-family: var(--font-editorial);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.article-card__title a:hover {
  color: var(--accent-red);
}

.article-card__excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__meta {
  margin-top: auto;
  font-size: 11px;
  color: var(--text-muted);
}

/* Video Section / Carousel */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.video-card {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.video-card__thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  background-color: #000;
  overflow: hidden;
}

.video-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: var(--transition);
}

.video-card:hover .video-card__thumbnail img {
  transform: scale(1.03);
  opacity: 0.7;
}

.video-card__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(225, 29, 72, 0.9);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  pointer-events: none;
}

.video-card:hover .video-card__play-btn {
  background-color: var(--accent-red);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card__content {
  padding: 12px;
}

.video-card__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__title a:hover {
  color: var(--accent-red);
}

/* --- Right Column Elements (Sidebar) --- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.sidebar-widget__title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent-red);
  padding-bottom: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Popular Articles */
.popular-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.popular-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.popular-item__rank {
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: 800;
  color: var(--border-color);
  line-height: 0.8;
  width: 32px;
  flex-shrink: 0;
  transition: var(--transition);
}

.popular-item:hover .popular-item__rank {
  color: var(--accent-red);
}

.popular-item__title {
  font-family: var(--font-editorial);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.popular-item__title a:hover {
  color: var(--accent-red);
}

/* Weather Widget */
.weather-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.weather-widget__left h3 {
  font-size: 20px;
  font-weight: 700;
}

.weather-widget__left p {
  font-size: 12px;
  color: var(--text-secondary);
}

.weather-widget__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.weather-widget__icon {
  font-size: 32px;
}

.weather-widget__temp {
  font-size: 24px;
  font-weight: 800;
}

/* --- Footer --- */
.main-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 60px 0 20px;
  border-top: 5px solid var(--accent-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col__title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 8px;
}

.footer-col__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-red);
}

.footer-col__text {
  font-size: 13px;
  line-height: 1.6;
}

.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.footer-col__links a {
  color: #94a3b8;
}

.footer-col__links a:hover {
  color: #fff;
  padding-left: 4px;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--border-radius);
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.newsletter-form button {
  background-color: var(--accent-red);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 10px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

.newsletter-form button:hover {
  background-color: var(--accent-red-hover);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.footer-bottom__copy {
  color: #64748b;
}

.footer-bottom__links {
  display: flex;
  gap: 16px;
}

.footer-bottom__links a:hover {
  color: #fff;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .hamburger-btn {
    display: flex;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .main-layout {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-header {
    display: none;
  }
  
  .logo {
    font-size: 22px;
  }
  
  .subscribe-btn, .login-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* --- Video Modal Popup --- */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.video-modal__container {
  position: relative;
  width: 90%;
  max-width: 800px;
  background-color: #000;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 3001;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-modal.active .video-modal__container {
  transform: scale(1);
}

.video-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 32px;
  color: #fff;
  background: none;
  border: none;
  z-index: 3002;
  transition: var(--transition);
}

.video-modal__close:hover {
  color: var(--accent-red);
}

.video-modal__body {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-modal__body iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 850px) {
  .video-modal__container {
    width: 95%;
  }
  .video-modal__close {
    top: 10px;
    right: 15px;
    font-size: 28px;
    background-color: rgba(0, 0, 0, 0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* --- Multi-Category Bottom Grid (genericbottom) --- */
#genericbottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  margin-top: 40px;
  margin-bottom: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}

.divTopPlusLus {
  display: flex;
  flex-direction: column;
}

.sideCategoryTitle {
  font-family: var(--font-editorial);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
  border-bottom: 3px solid var(--accent-green);
  padding-bottom: 8px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* Alternate colors for visual appeal */
.divTopPlusLus:nth-child(3n+1) .sideCategoryTitle {
  border-bottom-color: var(--accent-red);
}
.divTopPlusLus:nth-child(3n+2) .sideCategoryTitle {
  border-bottom-color: var(--accent-green);
}
.divTopPlusLus:nth-child(3n) .sideCategoryTitle {
  border-bottom-color: var(--accent-blue);
}

.popularpostsshow {
  display: flex;
  flex-direction: column;
}

.popularpostsshow article {
  margin-bottom: 16px;
}

.popularpostsshow article .imge-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 10px;
  background-color: var(--bg-accent);
}

.popularpostsshow article .imge-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.popularpostsshow article:hover .imge-wrapper img {
  transform: scale(1.02);
}

.popularpostsshow article h2 {
  font-family: var(--font-editorial);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

.popularpostsshow article h2:hover {
  color: var(--accent-red);
}

/* Secondary stories vertical stack */
.popularpostsshow .secondUneFloat {
  border-top: 1px dashed var(--border-color);
  padding: 12px 0;
}

.popularpostsshow .secondUneFloat:last-child {
  border-bottom: none;
}

.popularpostsshow .secondUneFloat h2 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-secondary);
}

.popularpostsshow .secondUneFloat h2:hover {
  color: var(--accent-red);
}

/* Premium Icons */
.premium-svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
  margin-top: -2px;
}

/* Video Indicators in Image Figure */
.popularpostsshow .imge-wrapper .ico_video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(225, 29, 72, 0.9);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.popularpostsshow article:hover .imge-wrapper .ico_video {
  background-color: var(--accent-red);
  transform: translate(-50%, -50%) scale(1.1);
}

.popularpostsshow .imge-wrapper .ico_video::before {
  content: '▶';
  margin-left: 2px;
}

/* Responsive adjustment for genericbottom */
@media (max-width: 1024px) {
  #genericbottom {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #genericbottom {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 24px;
  }
}

/* --- Revue de presse Slider --- */
.revue-presse-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.revue-presse-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 5px;
}

.revue-presse-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.revue-cell {
  flex: 0 0 calc((100% - 48px) / 4); /* Display 4 columns on desktop */
  scroll-snap-align: start;
  aspect-ratio: 3/4;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: #000;
  border: 1px solid var(--border-color);
  cursor: zoom-in;
  transition: var(--transition);
}

.revue-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.revue-cell:hover img {
  transform: scale(1.03);
}

/* Slider control buttons */
.slider-controls {
  display: flex;
  gap: 8px;
}

.slider-control-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.slider-control-btn:hover {
  background-color: var(--bg-accent);
  border-color: var(--text-muted);
}

/* --- Fullscreen Image Modal Popup --- */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.image-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.image-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.image-modal__container {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  z-index: 4001;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-modal.active .image-modal__container {
  transform: scale(1);
}

.image-modal__close {
  position: absolute;
  top: -40px;
  right: -10px;
  font-size: 36px;
  color: #fff;
  background: none;
  border: none;
  z-index: 4002;
  transition: var(--transition);
}

.image-modal__close:hover {
  color: var(--accent-red);
}

.image-modal__container img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.partenaire {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  border-top: 3px solid var(--accent-red);
  padding-top: 25px;
  margin-top: 25px;
  margin-bottom: 25px;
  color: var(--text-primary);
}

/* Responsiveness for cells */
@media (max-width: 1024px) {
  .revue-cell {
    flex: 0 0 calc((100% - 32px) / 3); /* Display 3 columns */
  }
}

@media (max-width: 768px) {
  .revue-cell {
    flex: 0 0 calc((100% - 16px) / 2); /* Display 2 columns */
  }
  .image-modal__close {
    top: 10px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .revue-cell {
    flex: 0 0 85%; /* Display 1 cell mostly, showing overlap */
  }
}
