/* ==========================================================================
   REVETEMENT.COM MAGAZINE - RUBIK TIMES NEWSPAPER THEME STYLING
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garant:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Inter:wght@300;400;500;600;700&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700;800;900&family=Noto+Kufi+Arabic:wght@400;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,500;0,700;1,400;1,500&display=swap');

:root {
  --bg-page: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-dark: #111111;
  --bg-dark-hover: #222222;
  
  --border-subtle: #E8E8E4;
  --border-strong: #1a1a1a;
  
  --color-primary: #111111;
  --color-secondary: #555555;
  --color-muted: #888888;
  
  /* Brand Colors — officiel revetement.com (Bleu Royal dominant) */
  --color-background: 135, 74, 158; /* #1d349a (Bleu Royal officiel) */
  --brand-purple: rgb(var(--color-background));
  --brand-purple-light: rgba(var(--color-background), 0.08);
  --brand-purple-dark: #10206b; /* Bleu encore plus sombre pour le survol */
  
  --brand-yellow: #f6c806; /* #f6c806 (Jaune d'Or officiel) */
  --brand-yellow-light: #faf6e8;

  /* Typography — style éditorial */
  --font-display: 'Cormorant Garant', 'Libre Baskerville', Georgia, serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-arabic: 'Noto Kufi Arabic', sans-serif;
  --font-label: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --shadow-subtle: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-modal: 0 25px 50px -12px rgba(0,0,0,0.20);

  /* Typographic scale */
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   1.05rem;
  --text-lg:   1.25rem;
  --text-xl:   1.6rem;
  --text-2xl:  2rem;
  --text-3xl:  2.8rem;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
}

html[dir="rtl"] {
  font-family: var(--font-arabic), var(--font-body);
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 {
  font-family: var(--font-arabic), serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--bg-page);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

/* --- Typographie éditoriale (style PROJECTIMA) --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}
h1 { font-size: var(--text-3xl); font-style: italic; }
h2 { font-size: var(--text-2xl); font-style: italic; }
h3 { font-size: var(--text-xl);  font-style: italic; }
h4 { font-size: var(--text-lg);  font-style: normal; }

/* Labels uppercase style éditorial */
.label-editorial {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-secondary);
}

a { color: inherit; text-decoration: none; }

/* --------------------------------------------------------------------------
   RUBIK TOP BAR (BLACK FULL-WIDTH NEWSPAPER STRIP)
   -------------------------------------------------------------------------- */
.top-bar-rubik {
  background: var(--bg-dark);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  border-bottom: 2px solid var(--brand-purple);
}

.top-bar-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.45rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #94A3B8;
}

.top-bar-date {
  font-weight: 700;
  color: #E2E8F0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-ticker-badge {
  background: var(--brand-purple);
  color: #FFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   HEADER MAIN (RUBIK TIMES NEWSPAPER HEADER)
   -------------------------------------------------------------------------- */
.header-main {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.brand-identity-official {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon-r {
  width: 38px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo-text-stacked {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  justify-content: center;
}

.brand-text-revetement {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand-purple);
  letter-spacing: -0.5px;
}

.brand-text-dotcom {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-purple-light);
  margin-top: -2px;
}

.brand-divider {
  height: 28px;
  width: 1px;
  background: #CBD5E1;
  margin: 0 0.1rem;
}

.brand-slogan-arabic-stacked {
  display: flex;
  flex-direction: column;
  font-family: var(--font-arabic), sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand-purple);
  line-height: 1.1;
  text-align: right;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.main-nav li { white-space: nowrap; }

.main-nav a {
  color: var(--color-primary);
  padding: 0.4rem 0;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--brand-purple);
  border-bottom-color: var(--brand-purple);
}

.nav-cta-btn {
  background: var(--brand-purple);
  color: #FFF !important;
  padding: 8px 16px !important;
  border-radius: 4px;
  border-bottom: none !important;
  transition: background 0.2s ease !important;
  white-space: nowrap;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 10px rgba(29, 52, 154, 0.25);
}
.nav-cta-btn:hover { background: var(--bg-dark) !important; }

/* Lang switcher */
.nav-lang-container {
  margin-left: 0.25rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.header-lang-switcher {
  display: flex;
  background: #F1F5F9;
  padding: 2px;
  border-radius: 5px;
  gap: 2px;
}
.header-lang-switcher .lang-btn {
  background: transparent;
  border: none;
  color: var(--color-secondary);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.header-lang-switcher .lang-btn.active, .header-lang-switcher .lang-btn:hover {
  background: var(--brand-purple);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   RUBIK MODULE HEADER (SIGNATURE RUBIK TIMES SECTION TITLE TAB)
   -------------------------------------------------------------------------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 0;
  position: relative;
}

.section-head-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--brand-purple);
  color: #FFFFFF;
  padding: 8px 16px;
  display: inline-block;
  position: relative;
  margin-bottom: -2px;
  z-index: 2;
}

/* Encoche triangulaire sous l'onglet */
.section-head-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 15px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--brand-purple);
  z-index: 5;
}

.section-head-sub {
  font-size: 0.82rem;
  color: var(--color-secondary);
  font-weight: 600;
  padding-bottom: 6px;
}

/* --------------------------------------------------------------------------
   HERO SECTION (RUBIK TIMES FEATURED MODULE)
   -------------------------------------------------------------------------- */
.container { max-width: 1360px; margin: 0 auto; padding: 2rem 5rem; }

/* --------------------------------------------------------------------------
   RUBIK TIMES NEWSPAPER GRID HERO (3 COLUMNS: SIDE - CENTER - SIDE)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   RUBIK TIMES NEWSPAPER GRID HERO (3 COLUMNS: FLAT EDITORIAL PRINT STYLE)
   -------------------------------------------------------------------------- */
.rubik-newspaper-grid {
  display: grid;
  grid-template-columns: 290px 1fr 290px;
  gap: 2rem;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.5rem 0;
  margin-bottom: 0;
  box-shadow: none;
}

.rubik-column-side {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.rubik-column-center {
  border-left: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  padding: 0 1.75rem;
}

/* Side Column Articles */
.rubik-side-article {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  /* Isolation: prevent hover from causing layout shift */
  transform: translateZ(0);
  will-change: auto;
  backface-visibility: hidden;
}

.rubik-side-img-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 0;
  overflow: hidden;
  background: #F1F5F9;
  flex-shrink: 0; /* prevent height collapse on hover */
}

.rubik-side-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* All category badge bubbles — HIDDEN globally */
.rubik-side-badge {
  display: none !important;
}

.rubik-side-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.92rem;
  font-weight: 500;
  font-style: italic;
  color: var(--bg-dark);
  margin-top: 0.65rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.rubik-side-excerpt {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.74rem;
  font-weight: 400;
  color: #4A5568;
  line-height: 1.55;
  margin-top: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rubik-side-article:hover .rubik-side-title {
  color: var(--brand-purple);
}

.rubik-side-meta {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.72rem;
  color: #718096;
  font-weight: 400;
  margin-top: 0.4rem;
}

/* Stabilize Design News grid columns against hover-triggered reflows */
#dn-col-left, #dn-col-center, #dn-col-right {
  isolation: isolate;
}

#design-news-grid .rubik-side-article {
  /* Prevent any dimension change on hover from this section */
  position: relative;
}

/* Center Primary Article */
.rubik-center-article {
  position: relative;
  display: block;
  margin-bottom: 95px;
}

.rubik-center-img-wrapper {
  width: 100%;
  height: 420px;
  border-radius: 0;
  overflow: hidden;
  background: #F1F5F9;
}

.rubik-center-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rubik-center-content {
  position: absolute;
  bottom: -85px;
  left: 20px;
  right: 20px;
  background: #FFFFFF;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  box-sizing: border-box;
  z-index: 10;
  border-radius: 0;
}

/* Hero center badge — HIDDEN globally */
.rubik-center-badge {
  display: none !important;
}

.rubik-center-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  color: var(--bg-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.rubik-center-excerpt {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: #4A5568;
  line-height: 1.6;
  margin-top: 0.4rem;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rubik-center-meta {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.78rem;
  color: #718096;
  font-weight: 400;
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background: var(--brand-purple);
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.78rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px rgba(29, 52, 154, 0.25);
}

.btn-primary:hover {
  background: var(--bg-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for Rubik Grid */
@media (max-width: 1100px) {
  .rubik-newspaper-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .rubik-column-center {
    border-left: none;
    border-right: none;
    padding: 0;
  }
}

/* --------------------------------------------------------------------------
   🎯 RUBIK TIMES QUIZ CARD MODULE
   -------------------------------------------------------------------------- */
.quiz-container-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--brand-purple);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  margin-bottom: 3.5rem;
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.quiz-header-bar {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

.quiz-tag-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--brand-purple);
  letter-spacing: 1.8px;
  background: #F3EDF8;
  padding: 4px 12px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(29, 52, 154, 0.2);
}

.quiz-main-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bg-dark);
  margin-bottom: 0.5rem;
}

.quiz-main-sub {
  font-size: 0.9rem;
  color: var(--color-secondary);
  line-height: 1.5;
}

.quiz-step {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.quiz-step.active {
  display: block;
}

.quiz-step-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-purple);
  margin-bottom: 1.25rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto;
}

.quiz-opt-btn {
  background: #F8F9FA;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--color-primary);
}

.quiz-opt-btn:hover {
  background: #F3EDF8;
  border-color: var(--brand-purple);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 52, 154, 0.15);
}

.quiz-opt-icon { font-size: 1.8rem; margin-bottom: 0.4rem; }
.quiz-opt-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--bg-dark); margin-bottom: 0.2rem; }
.quiz-opt-desc { font-size: 0.78rem; color: var(--color-secondary); line-height: 1.4; }

.quiz-result-card {
  background: #FFFFFF;
  color: var(--color-primary);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.quiz-result-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--brand-purple);
  background: #F3EDF8;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 0.65rem;
  letter-spacing: 1.5px;
}

.quiz-result-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bg-dark);
  margin-bottom: 0.4rem;
}

.quiz-result-desc {
  font-size: 0.88rem;
  color: var(--color-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.quiz-res-pills {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   3D FLIPBOOK MAGAZINE SHOWCASE SECTION (12 OFFICIAL CATEGORIES)
   -------------------------------------------------------------------------- */
.magazine-3d-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-card);
}

.magazine-3d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 3.5rem 2.5rem;
  margin-top: 1.5rem;
}

/* Magazine Card Container with Perspective */
.magazine-card-3d-wrap {
  perspective: 1400px;
  width: 100%;
  max-width: 420px;
  height: 540px;
  margin: 0 auto;
  position: relative;
}

.magazine-book-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.magazine-card-3d-wrap:hover .magazine-book-3d {
  transform: rotateY(-8deg) rotateX(2deg);
}

/* Inside Page */
.magazine-inside-page {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: linear-gradient(to right, rgba(0,0,0,0.05) 0%, transparent 6%, transparent 94%, rgba(0,0,0,0.03) 100%);
  z-index: 10;
}

.inside-page-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--brand-purple);
  padding-bottom: 0.5rem;
}

.inside-page-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--brand-purple);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.inside-page-counter {
  font-size: 0.72rem;
  font-weight: 800;
  background: #F1F5F9;
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: 4px;
}

.inside-single-product-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.4rem 0;
  flex-grow: 1;
  position: relative;
}

.inside-product-photo-container {
  width: 100%;
  height: 210px;
  background: #FAF9F6;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  position: relative;
}

.inside-product-photo-container img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.side-flip-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: #FFFFFF;
  border: 2px solid var(--brand-purple);
  color: var(--brand-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 900;
  cursor: pointer !important;
  z-index: 999 !important;
  box-shadow: 0 4px 15px rgba(29, 52, 154, 0.3);
  transition: all 0.2s ease;
  pointer-events: auto !important;
  user-select: none;
}

.side-flip-arrow.left-arrow { left: -12px; }
.side-flip-arrow.right-arrow { right: -12px; }

.side-flip-arrow:hover {
  background: var(--brand-purple);
  color: #FFFFFF;
  border-color: var(--brand-purple);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 20px rgba(29, 52, 154, 0.5);
}

.inside-product-title-large {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--bg-dark);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.inside-product-price-large {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--brand-purple);
  margin-bottom: 0.55rem;
}

.inside-product-specs-pills {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.spec-pill {
  font-size: 0.6rem;
  font-weight: 700;
  background: #F3EDF8;
  color: var(--brand-purple);
  padding: 3px 7px;
  border-radius: 3px;
  border: 1px solid rgba(29, 52, 154, 0.15);
}

.inside-buy-link {
  background: var(--brand-purple);
  color: #FFF;
  text-align: center;
  padding: 11px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  width: 100%;
  display: block;
  box-shadow: 0 4px 12px rgba(29, 52, 154, 0.25);
  margin-top: auto;
  position: relative;
  z-index: 50;
}

.inside-buy-link:hover {
  background: var(--bg-dark);
}

/* Front Cover (Flips Open on Hover!) */
.magazine-front-cover {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 10px 15px 30px rgba(0,0,0,0.25);
  background: linear-gradient(135deg, #2D1A3F 0%, #150B21 50%, #0A0A0B 100%);
  z-index: 20;
}

.magazine-card-3d-wrap:hover .magazine-front-cover {
  transform: rotateY(-140deg);
  pointer-events: none !important;
}

.cover-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.75) 0%, rgba(10,10,11,0.25) 40%, rgba(10,10,11,0.92) 100%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFF;
}

.cover-masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 0.75rem;
}

.cover-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #FFF;
}

.cover-issue {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--brand-purple);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 1px;
}

.cover-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cover-category-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.1;
  color: #FFF;
  text-transform: uppercase;
}

.cover-subtitle {
  font-size: 0.78rem;
  opacity: 0.9;
  line-height: 1.4;
  color: #E2E8F0;
}

.cover-hover-prompt {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-purple-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Spine Effect */
.magazine-front-cover::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.4) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 5;
}

/* --------------------------------------------------------------------------
   RUBIK TIMES 3x3 SLIDING PUZZLE GAME STYLING
   -------------------------------------------------------------------------- */
.puzzle-game-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--brand-purple);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.puzzle-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--brand-purple);
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
}

.puzzle-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--brand-purple);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.puzzle-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--bg-dark);
}

.puzzle-moves-counter {
  font-size: 0.8rem;
  font-weight: 800;
  background: #F1F5F9;
  color: var(--brand-purple);
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid #CBD5E1;
}

.puzzle-lead {
  font-size: 0.82rem;
  color: var(--color-secondary);
  margin-bottom: 1.1rem;
  line-height: 1.45;
}

.puzzle-board {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  background: #0A0A0B;
  padding: 3px;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.puzzle-tile {
  background-repeat: no-repeat;
  background-size: 380px 380px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

.puzzle-tile:hover {
  filter: brightness(1.1);
  transform: scale(0.98);
}

.puzzle-tile.empty {
  background: #171719 !important;
  cursor: default;
  box-shadow: none;
}

.puzzle-controls {
  display: flex;
  justify-content: center;
}

/* ULTRA-MODERN LUXURIOUS VICTORY OVERLAY */
.puzzle-victory-banner {
  display: none;
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 50;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 1.5rem;
  animation: fadeIn 0.4s ease forwards;
  overflow: hidden;
}

.puzzle-victory-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(10,10,11,0.7) 100%);
  z-index: 1;
}

.puzzle-victory-banner.active {
  display: flex;
}

.puzzle-victory-card {
  position: relative;
  z-index: 10;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  border: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.victory-icon-badge {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.victory-cat-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--brand-purple);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: var(--brand-purple-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.victory-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bg-dark);
  margin-bottom: 0.25rem;
}

.victory-card-sub {
  font-size: 0.85rem;
  color: var(--color-secondary);
  margin-bottom: 1.25rem;
}

.victory-cta-btn {
  background: var(--brand-purple);
  color: #FFFFFF;
  padding: 11px 22px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  width: 100%;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(29, 52, 154, 0.35);
  transition: all 0.2s ease;
}

.victory-cta-btn:hover {
  background: var(--bg-dark);
  transform: translateY(-1px);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   RUBIK NEWSPAPER ARTICLES & SHOWCASE GRID
   -------------------------------------------------------------------------- */
.editorial-journal-section {
  background-color: var(--bg-surface);
  border-top: 3px solid var(--brand-purple);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3.5rem 2rem;
  margin-top: 4rem;
  margin-bottom: 0;
  color: var(--color-primary);
  box-shadow: var(--shadow-subtle);
}

.editorial-journal-container {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}

.editorial-col { display: flex; flex-direction: column; }

.editorial-col-header {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-purple);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--brand-purple);
  margin-bottom: 1.5rem;
}

.editorial-text { font-family: var(--font-body); font-size: 0.92rem; line-height: 1.7; color: var(--color-secondary); }

.editorial-subscribe-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--bg-dark); margin-bottom: 0.75rem; line-height: 1.35; }
.editorial-subscribe-lead { font-family: var(--font-body); font-size: 0.88rem; color: var(--color-secondary); line-height: 1.6; margin-bottom: 1.5rem; }

.editorial-subscribe-btn {
  background: var(--brand-purple); border: 1px solid var(--brand-purple); color: #FFFFFF;
  padding: 10px 22px; border-radius: 4px; font-family: var(--font-body); font-size: 0.78rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; cursor: pointer; transition: all 0.2s ease; align-self: flex-start;
}
.editorial-subscribe-btn:hover { background: var(--bg-dark); border-color: var(--bg-dark); }

.editorial-quote { font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.65; color: var(--bg-dark); margin-bottom: 1.25rem; }
.editorial-signature { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--brand-purple); }

.articles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; margin-bottom: 3.5rem;
}

.article-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 6px;
  overflow: hidden; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; cursor: pointer;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--brand-purple); }
.card-media { height: 200px; overflow: hidden; position: relative; background: #F1F5F9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.article-card:hover .card-media img { transform: scale(1.05); }

/* Rubik Solid Category Tag */
.card-body { padding: 1.35rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-tag {
  font-size: 0.68rem;
  background: var(--brand-purple);
  color: #FFFFFF;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 2px;
  align-self: flex-start;
  margin-bottom: 0.65rem;
}

.card-h3 { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.35; margin-bottom: 0.65rem; font-weight: 500; font-style: italic; color: var(--bg-dark); }
.card-text { font-size: 0.85rem; color: var(--color-secondary); line-height: 1.55; margin-bottom: 1.15rem; flex-grow: 1; }
.card-meta { font-size: 0.75rem; color: var(--brand-purple); display: flex; justify-content: space-between; border-top: 1px solid var(--border-subtle); padding-top: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }

.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; margin-bottom: 3.5rem; }

.faq-container-box { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-top: 4px solid var(--brand-purple); border-radius: 8px; padding: 2rem; margin-bottom: 3.5rem; box-shadow: var(--shadow-card); }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-card { background: var(--bg-page); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 1rem 1.25rem; cursor: pointer; transition: all 0.2s ease; }
.faq-card:hover, .faq-card.active { background: var(--bg-surface); border-color: var(--brand-purple); }
.faq-header { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.9rem; color: var(--bg-dark); }
.faq-body { display: none; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--border-subtle); color: var(--color-secondary); font-size: 0.85rem; line-height: 1.6; }
.faq-card.active .faq-body { display: block; }
.faq-toggle-icon { color: var(--brand-purple); font-size: 1.1rem; font-weight: 800; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(8px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.modal-overlay.active { display: flex; }
.modal-window { background: var(--bg-surface); border-radius: 8px; max-width: 800px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 2rem; position: relative; box-shadow: var(--shadow-modal); border: 1px solid var(--border-subtle); }
.modal-close-btn { position: absolute; top: 1rem; right: 1rem; background: var(--bg-page); border: 1px solid var(--border-subtle); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; z-index: 10; transition: all 0.2s ease; }
.modal-close-btn:hover { background: var(--bg-dark); color: #FFF; }
.modal-article-img { width: 100%; height: 320px; object-fit: cover; border-radius: 6px; margin-bottom: 1.25rem; }
.modal-article-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.85rem; line-height: 1.25; font-weight: 500; font-style: italic; }
.modal-article-body { font-size: 1.05rem; line-height: 1.7; color: #333; }
.modal-article-body p { margin-bottom: 1.2rem; }
.modal-article-body h2 { font-size: 1.35rem; margin-top: 2rem; margin-bottom: 1rem; }
.modal-article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.modal-article-body th, .modal-article-body td { border: 1px solid #E2E8F0; padding: 0.75rem; text-align: left; }
.modal-article-body th { background: #F1F5F9; font-weight: 700; }
.modal-article-body ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.modal-article-body li { margin-bottom: 0.5rem; }

/* NYT Style Links within Article Body */
.modal-article-body a,
.article-page-body a { 
  color: #326891; 
  text-decoration: underline; 
  text-underline-offset: 2px;
  text-decoration-color: #326891;
  transition: all 0.2s ease;
}
.modal-article-body a:hover,
.article-page-body a:hover {
  color: #1a4260;
  text-decoration-color: #1a4260;
}

footer { background: #000000; color: #94A3B8; padding: 3.5rem 1.5rem 1.5rem; border-top: 3px solid var(--brand-purple); }
.footer-inner { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-col h4 { color: #FFF; font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; border-bottom: 2px solid var(--brand-purple); padding-bottom: 0.4rem; display: inline-block; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.82rem; }
.footer-col a { transition: color 0.2s ease; }
.footer-col a:hover { color: #FFFFFF; }
.footer-bar { max-width: 1360px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid #1E293B; display: flex; justify-content: space-between; font-size: 0.78rem; }

/* --------------------------------------------------------------------------
   NEWSPAPER CATEGORY SECTIONS (FLAT PRINT LOOK)
   -------------------------------------------------------------------------- */

/* Section 1: Grid of 6 (3 + 3) */
.rubik-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.rubik-flat-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.rubik-flat-card-img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border-radius: 0;
  background: #F1F5F9;
}
.rubik-flat-card-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  color: var(--bg-dark);
  margin-top: 0.65rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}
.rubik-flat-card:hover .rubik-flat-card-title {
  color: var(--brand-purple);
}
.rubik-flat-card-excerpt {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: #4A5568;
  line-height: 1.55;
  margin-top: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rubik-flat-card-meta {
  font-size: 0.68rem;
  color: #718096;
  font-weight: 400;
  margin-top: 0.35rem;
}

/* Section 2: 3 Columns (Left, Center, Right) */
.rubik-3-columns-container {
  display: grid;
  grid-template-columns: 290px 1fr 300px;
  gap: 2rem;
}
.rubik-3col-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.rubik-3col-center {
  border-left: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  padding: 0 1.75rem;
}
.rubik-3col-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Text list with right arrows */
.rubik-text-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid #E2E8F0;
  padding-top: 1rem;
}
.rubik-text-links-list li {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bg-dark);
  cursor: pointer;
  display: flex;
  gap: 0.4rem;
}
.rubik-text-links-list li span.bullet {
  color: var(--brand-purple);
}
.rubik-text-links-list li:hover {
  color: var(--brand-purple);
}

/* Social Followers Counter Widget */
.rubik-social-counters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.social-box {
  background: #2D3748;
  color: #FFFFFF;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.social-box.fb { background: #3B5998; }
.social-box.tw { background: #1DA1F2; }
.social-box .count { font-weight: 800; font-size: 1.1rem; margin-top: 4px; }
.social-box .label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.8px; opacity: 0.85; }

.rubik-tech-news-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 2px solid var(--bg-dark);
  padding-bottom: 4px;
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

/* Vertical Stack with small thumbnails */
.rubik-vertical-thumbs-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.rubik-thumb-row {
  display: flex;
  gap: 12px;
  cursor: pointer;
  align-items: center;
}
.rubik-thumb-img {
  width: 90px;
  height: 65px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 0;
}
.rubik-thumb-content {
  display: flex;
  flex-direction: column;
}
.rubik-thumb-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--bg-dark);
}
.rubik-thumb-row:hover .rubik-thumb-title {
  color: var(--brand-purple);
}
.rubik-thumb-meta {
  font-size: 0.68rem;
  color: var(--color-muted);
  margin-top: 2px;
}

/* Section 3: 2 Columns */
.rubik-2-columns-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.rubik-bullet-links-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.rubik-bullet-link-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 1rem;
  cursor: pointer;
}
.rubik-bullet-link-item:hover .rubik-bullet-title {
  color: var(--brand-purple);
}
/* Bullet badge — HIDDEN globally */
.rubik-bullet-badge {
  display: none !important;
}
.rubik-bullet-title-row {
  display: flex;
  gap: 6px;
}
.rubik-bullet-title-row span.arrow {
  color: var(--brand-purple);
  font-weight: 800;
}
.rubik-bullet-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--bg-dark);
}
.rubik-bullet-meta {
  font-size: 0.68rem;
  color: var(--color-muted);
  margin-top: 3px;
  margin-left: 14px;
}

/* Section 4: Vertical Large List (Image Left, text Right) */
.rubik-vertical-large-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.rubik-large-row {
  display: flex;
  gap: 1.75rem;
  cursor: pointer;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 1.75rem;
}
.rubik-large-row-img {
  width: 260px;
  height: 170px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 0;
}
.rubik-large-row-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rubik-large-row-badge {
  align-self: flex-start;
  font-size: 0.65rem;
  background: var(--brand-purple);
  color: #FFFFFF;
  padding: 3px 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.5rem;
}
.rubik-large-row-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bg-dark);
  margin-bottom: 0.5rem;
}
.rubik-large-row:hover .rubik-large-row-title {
  color: var(--brand-purple);
}
.rubik-large-row-excerpt {
  font-size: 0.88rem;
  color: var(--color-secondary);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.rubik-large-row-meta {
  font-size: 0.72rem;
  color: var(--color-muted);
  font-weight: 700;
}

/* BLACK FOOTER STYLING OVERRIDES */
.rubik-black-footer {
  background: #111111;
  color: #A0AEC0;
  padding: 4rem 1.5rem 1.5rem;
  border-top: 3px solid var(--brand-purple);
}
.rubik-footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.rubik-footer-col h4 {
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #2D3748;
  padding-bottom: 6px;
}
.rubik-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.25rem;
}
.rubik-tag-link {
  background: #2D3748;
  color: #E2E8F0;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.rubik-tag-link:hover {
  background: var(--brand-purple);
  color: #FFFFFF;
}
.rubik-footer-row {
  display: flex;
  gap: 12px;
  margin-bottom: 1rem;
  align-items: center;
  cursor: pointer;
}
.rubik-footer-row img {
  width: 65px;
  height: 50px;
  object-fit: cover;
  flex-shrink: 0;
}
.rubik-footer-row-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #E2E8F0;
  line-height: 1.35;
}
.rubik-footer-row:hover .rubik-footer-row-title {
  color: var(--brand-purple-light);
}
.rubik-footer-row-meta {
  font-size: 0.65rem;
  color: #718096;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   EXPLORER PAR CATEGORIE GRID WITH IMAGES
   -------------------------------------------------------------------------- */
.explorer-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.category-img-card {
  position: relative;
  height: 120px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #E2E8F0;
  box-sizing: border-box;
}
.category-img-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.4s ease;
}
.category-img-card:hover img {
  transform: scale(1.05);
}
.category-img-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 70%);
  z-index: 2;
}
.category-img-card-title {
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  z-index: 3;
  position: relative;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
  .rubik-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .rubik-3-columns-container { grid-template-columns: 1fr; }
  .rubik-3col-center { border-left: none; border-right: none; padding: 0; }
  .rubik-2-columns-container { grid-template-columns: 1fr; }
  .rubik-footer-inner { grid-template-columns: 1fr; }
  .rubik-large-row { flex-direction: column; }
  .rubik-large-row-img { width: 100%; height: 200px; }
  .explorer-categories-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
  .explorer-categories-grid { grid-template-columns: 1fr !important; }
  .rubik-grid-6 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   NEW THEME HEADER (RUBIK NEWSPAPER STYLE)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   NEW PREMIUM THEME HEADER (CREN/PROJECTIMA EDITORIAL NEWSPAPER STYLE)
   -------------------------------------------------------------------------- */

/* Top Promo Banner */
.top-promo-banner-wrapper {
  width: 100%;
  background: linear-gradient(90deg, #ff4c3b 0%, #ff6f59 100%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -3px 8px rgba(0,0,0,0.05);
}

.top-promo-banner-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 160px;
  position: relative;
  text-decoration: none;
  padding: 0 3rem 0 0;
}

.top-promo-flowers {
  width: 420px;
  height: 160px;
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  flex-shrink: 0;
  /* background-image set dynamically via JS from Supabase */
}

.top-promo-content {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 2rem;
}

.top-promo-text-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.top-promo-title {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-style: italic;
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.top-promo-subtitle {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1.5px;
}

.top-promo-btn {
  background: #FFFFFF;
  color: #111111;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-promo-banner-link:hover .top-promo-btn {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  background: #FAFAF8;
}

/* New Top Bar (White background) */
.top-bar-new {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.top-bar-new-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-new-search-btn {
  background: none;
  border: none;
  font-size: 0.95rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 5px;
  transition: opacity 0.2s;
}

.top-bar-new-search-btn:hover {
  opacity: 0.7;
}

.top-bar-new-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.top-bar-new-link,
.top-bar-lang-btn {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--color-secondary);
  text-transform: uppercase;
  transition: color 0.2s;
  text-decoration: none;
}

.top-bar-new-link:hover,
.top-bar-lang-btn:hover,
.top-bar-lang-btn.active {
  color: var(--brand-purple);
}

.top-bar-new-subscribe-btn {
  background: #2e6894;
  color: #FFFFFF;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 3px;
  transition: background-color 0.2s, transform 0.1s;
  display: inline-block;
}

.top-bar-new-subscribe-btn:hover {
  background: #245275;
  transform: translateY(-1px);
}

/* Top bar right: search + subscribe grouped together */
.top-bar-right-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-bar-search-form {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-bar-search-icon {
  background: #f1f5f9;
  width: 32px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  color: #4a5568;
  font-size: 0.82rem;
}

.top-bar-search-input-wrap {
  position: relative;
  border: 1.5px solid #c8d0d8;
  border-radius: 3px;
  display: flex;
  align-items: center;
  background: #f8fafc;
  height: 30px;
  overflow: hidden;
  width: 160px;
  transition: border-color 0.2s, width 0.3s;
}

.top-bar-search-input-wrap:focus-within {
  border-color: #2e6894;
  width: 200px;
}

.top-bar-search-input-wrap input {
  border: none;
  outline: none;
  background: transparent;
  padding: 0 28px 0 8px;
  font-size: 0.8rem;
  color: #121212;
  font-family: var(--font-body, 'Inter', sans-serif);
  width: 100%;
  height: 100%;
}

#nyt-nav-search-clear {
  position: absolute;
  right: 6px;
  background: none;
  border: none;
  font-size: 0.7rem;
  color: #a0aec0;
  cursor: pointer;
  display: none;
  padding: 0;
  line-height: 1;
}

.top-bar-search-go {
  background: #2e6894;
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0 10px;
  height: 30px;
  border-radius: 3px;
  font-size: 0.72rem;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.top-bar-search-go:hover {
  background: #245275;
}

/* === DYNAMIC MEGA DROPDOWN - 2 columns === */
.mega-dropdown-inner.two-col {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.5rem;
  padding: 1.75rem 2.5rem;
}

.mega-dd-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
  row-gap: 0.2rem;
}

.mega-dd-category-link {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a202c;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  background: transparent;
}

.mega-dd-category-link:hover {
  background: #f1f5f9;
  color: #2e6894;
  transform: translateX(3px);
}

.cat-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s ease;
  color: #2e6894;
  font-weight: bold;
}

.mega-dd-category-link:hover .cat-arrow {
  opacity: 1;
  transform: translateX(0);
}

.mega-dd-col-newsletters {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.mega-dd-nl-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.mega-dd-nl-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.mega-dd-nl-title {
  font-weight: 700;
  color: #1a202c;
  font-size: 0.78rem;
  line-height: 1.35;
  margin-bottom: 2px;
  text-decoration: none;
  display: block;
}

.mega-dd-nl-title:hover {
  color: #2e6894;
}

.mega-dd-nl-see-all {
  font-size: 0.72rem;
  font-weight: 600;
  color: #2e6894;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
  display: inline-block;
}

.mega-dd-nl-see-all:hover {
  text-decoration: underline;
}


/* Center Brand Identity Row */
.brand-row-new {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.brand-row-new-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand-row-new-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-row-date {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
}

.brand-row-subdate {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--color-muted);
}

.brand-row-new-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo-link-new {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img-new {
  height: 52px;
  width: auto;
  display: block;
}

.brand-slogan-pipe {
  font-size: 1.5rem;
  color: var(--border-subtle);
  font-weight: 300;
}

.brand-slogan-arabic-new {
  font-family: var(--font-arabic), sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brand-purple);
}

.brand-row-new-right {
  display: flex;
  justify-content: flex-end;
}

/* Bottom Navigation Row */
.navigation-row {
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  border-bottom: 2px solid #E2E8F0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: visible;
}

/* Needed for mega-dropdown absolute positioning */
.nav-row-container {
  position: relative;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 44px;
  display: flex;
  align-items: center;
}

.nav-hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.nav-hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #1A202C;
  transition: all 0.25s;
}

.nav-row-links {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  overflow: visible;
  justify-content: center; /* Center the brands like NYT */
}

.nav-row-links > li {
  display: flex;
  align-items: center;
  position: static;
}

/* Vertical divider between items on same row */
.nav-row-links > li + li > a {
  border-left: 1px solid #e8edf2;
}

.nav-row-links a {
  font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: #1a202c;
  letter-spacing: 0px;
  padding: 0 13px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
  flex-shrink: 0;
  position: relative;
}

.nav-row-links a:hover,
.nav-row-links a.active {
  color: #2e6894;
  background: #f7fafd;
}

/* Underline on hover — NYT style */
.nav-row-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 13px;
  right: 13px;
  height: 2px;
  background: #2e6894;
  transform: scaleX(0);
  transition: transform 0.18s ease;
  transform-origin: left;
}

.nav-row-links a:hover::after,
.nav-row-links a.active::after {
  transform: scaleX(1);
}


/* =============================================
   MEGA DROPDOWN MENU
   ============================================= */
.nav-item {
  position: static;
  list-style: none;
}

.nav-item.has-dropdown {
  position: static;
}

.nav-link-arrow {
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 2px solid transparent;
  transition: all 0.25s;
}

.nav-chevron {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-right: 1.5px solid #999;
  border-bottom: 1.5px solid #999;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
  margin-left: 3px;
  flex-shrink: 0;
}

.nav-item.has-dropdown:hover .nav-chevron {
  transform: translateY(1px) rotate(-135deg);
  border-color: var(--brand-purple);
}

/* Dropdown panel */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  border-top: 2px solid var(--brand-purple);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
}

/* Hover bridge — covers full 2-row navbar height so mouse can travel to dropdown */
.mega-dropdown::before {
  content: '';
  position: absolute;
  top: -90px;         /* cover both nav rows + spacing */
  left: 0;
  width: 100%;
  height: 90px;
  background: transparent;
  pointer-events: all;
}

/* Dropdown visible state — toggled by JS class .is-open */
.nav-item.has-dropdown.is-open .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

/* Keep CSS hover as fallback for items on row 1 where mouse path is direct */
.nav-item.has-dropdown:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.mega-dropdown-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 2rem 5rem;
}

.mega-dd-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-purple);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mega-dd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.mega-dd-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.mega-dd-card:hover { opacity: 0.75; }

.mega-dd-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.mega-dd-card-tag {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.mega-dd-card h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.3;
  color: var(--color-primary);
}

.mega-dd-card-date {
  font-size: 0.68rem;
  color: var(--color-muted);
}

.mega-dd-viewall {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  display: inline-block;
  transition: color 0.2s;
}

.mega-dd-viewall:hover { color: var(--brand-purple); }

.mega-dd-loading {
  color: var(--color-muted);
  font-size: 0.82rem;
  grid-column: 1/-1;
  padding: 1rem 0;
}

/* Overlay fond sombre */
.mega-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 899;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s;
  pointer-events: none;
}

.mega-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-cta-link-pill {
  background: var(--brand-purple);
  color: #FFFFFF !important;
  padding: 6px 14px !important;
  border-radius: 0px !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: none !important;
}

.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  color: #1A202C;
  padding: 0.5rem;
}

/* Sidebar Drawer */
.sidebar-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sidebar-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100%;
  background: #FFFFFF;
  z-index: 1001;
  box-shadow: 4px 0 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.sidebar-drawer.open {
  left: 0;
}

.sidebar-drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-identity-sidebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-text-sidebar {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.brand-text-revetement-sb {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: #1A202C;
  letter-spacing: -0.5px;
}

.brand-text-dotcom-sb {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--brand-purple);
  letter-spacing: -0.5px;
}

.sidebar-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: #A0AEC0;
  line-height: 1;
  padding: 0.25rem;
}

.sidebar-close-btn:hover {
  color: #1A202C;
}

.sidebar-drawer-body {
  flex-grow: 1;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  z-index: 5;
  position: relative;
}

.sidebar-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-nav-links a {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1A202C;
  transition: color 0.2s;
  display: block;
}

.sidebar-nav-links a:hover {
  color: var(--brand-purple);
}

.sidebar-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid #E2E8F0;
  z-index: 5;
  background: #FFFFFF;
}

.sidebar-social-links {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.sidebar-social-links a {
  color: #718096;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.sidebar-social-links a:hover {
  color: var(--brand-purple);
}

.sidebar-copyright {
  font-family: Georgia, serif;
  font-size: 0.72rem;
  color: #A0AEC0;
  line-height: 1.5;
}

.sidebar-drawer::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 60%;
  background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=400&q=50') no-repeat bottom right;
  background-size: contain;
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

/* Language Switcher in dark top bar */
.top-bar-right .header-lang-switcher {
  background: #2D3748;
  padding: 2px;
  border-radius: 5px;
  gap: 2px;
  display: flex;
  margin-left: 0.5rem;
}
.top-bar-right .header-lang-switcher .lang-btn {
  background: transparent;
  border: none;
  color: #A0AEC0;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.top-bar-right .header-lang-switcher .lang-btn.active,
.top-bar-right .header-lang-switcher .lang-btn:hover {
  background: var(--brand-purple);
  color: #FFFFFF;
}

/* ==========================================================================
   IAB ADVERTISING STANDARDS STYLE (MEDIUM RECTANGLE 300X250)
   ========================================================================== */
.iab-ad-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.iab-medium-rectangle {
  width: 300px;
  height: 250px;
  overflow: hidden;
  position: relative;
  background: #F8F9FA;
  border: 1px solid #E2E8F0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.iab-fallback-link {
  display: flex;
  width: 100%;
  height: 100%;
  text-decoration: none;
  justify-content: center;
  align-items: center;
  background: var(--brand-purple-light);
  color: var(--bg-dark);
  position: relative;
  border: 1px dashed var(--brand-purple);
  box-sizing: border-box;
}

.iab-fallback-content {
  text-align: center;
  padding: 10px;
}

.iab-ad-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
}

.iab-billboard {
  width: 970px;
  height: 250px;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  background: #F8F9FA;
  border: 1px solid #E2E8F0;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 992px) {
  .iab-billboard {
    width: 728px;
    height: 90px;
  }
}

@media (max-width: 768px) {
  .iab-billboard {
    width: 320px;
    height: 100px;
  }
}

/* =============================================
   DESIGN NEWS SLIDER & CAROUSEL
   ============================================= */
.dn-slider-container {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.dn-slider-img-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 0;
  background: #F1F5F9;
}

.dn-slider-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dn-slider-container:hover .dn-slider-img-wrapper img {
  transform: scale(1.02);
}

.dn-slider-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.dn-slider-dots {
  display: flex;
  gap: 6px;
}

.dn-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #CBD5E1;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.dn-slider-dot.active {
  background: #1e293b;
}

.dn-slider-arrows {
  display: flex;
  gap: 8px;
}

.dn-slider-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #4A5568;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.75rem;
  user-select: none;
}

.dn-slider-arrow:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple-dark);
  background: var(--brand-purple-light);
}

.dn-slider-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  color: var(--bg-dark);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.dn-slider-container:hover .dn-slider-title {
  color: var(--brand-purple);
}

.dn-slider-excerpt {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: #4A5568;
  line-height: 1.6;
  margin-top: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================
   EDITOR PICKS PASTEL BOX STYLING
   ============================================= */
#hot-news-editor-picks {
  background: #f8f5f9; /* warm faded pastel gold */
  padding: 1.25rem;
  border-radius: 4px;
  border: 1px solid rgba(249, 200, 241, 0.25);
  box-sizing: border-box;
}

#hot-news-editor-picks .section-head {
  border-bottom: 2px solid rgba(253, 173, 246, 0.3);
}

/* =============================================
   CATEGORY NEWSPAPER BLOCKS
   ============================================= */
.category-newspaper-block {
  display: grid;
  grid-template-columns: 360px 480px 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  border-top: 1px solid #E2E8F0;
  padding-top: 1.5rem;
}

@media (max-width: 992px) {
  .category-newspaper-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.cat-block-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2rem;
}

.cat-block-item {
  cursor: pointer;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #F1F5F9;
  transition: all 0.2s ease;
}

.cat-block-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cat-block-item-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.98rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  color: var(--bg-dark);
  margin-bottom: 0.4rem;
  transition: color 0.2s ease;
}

.cat-block-item:hover .cat-block-item-title {
  color: var(--brand-purple);
}

.cat-block-item-excerpt {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-secondary);
  line-height: 1.5;
  margin: 0.3rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-block-item-meta {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.cat-block-featured-image {
  position: relative;
  width: 480px;
  height: 300px;
  overflow: hidden;
  background: #F1F5F9;
  cursor: pointer;
}

@media (max-width: 992px) {
  .cat-block-featured-image {
    width: 100%;
    height: 280px;
  }
}

.cat-block-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cat-block-featured-image:hover img {
  transform: scale(1.02);
}

.cat-block-img-caption {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.55);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 2px;
  pointer-events: none;
  letter-spacing: 0.3px;
}

/* =============================================
   POINTER HAND CURSOR OVERRIDES ON ARTICLE HOVER
   ============================================= */
.article-card, 
.article-card *,
.cat-block-item, 
.cat-block-item *,
.rubik-side-article, 
.rubik-side-article *,
#hero-main-article, 
#hero-main-article *,
.webtv-card, 
.webtv-card *,
.recent-news-row, 
.recent-news-row *,
.rubik-footer-row, 
.rubik-footer-row * {
  cursor: pointer !important;
}

/* =============================================
   NYT / ATHLETIC STYLE DESIGN NEWS GRID
   ============================================= */
.design-news-nyt-grid {
  display: grid;
  grid-template-columns: 320px 580px 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  border-top: 1px solid #E2E8F0;
  padding-top: 1.5rem;
}

@media (max-width: 992px) {
  .design-news-nyt-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.dn-nyt-left {
  display: flex;
  flex-direction: column;
}

.dn-nyt-left-item {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 1.25rem;
}

.dn-nyt-left-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.dn-nyt-left-category {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--brand-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
}

.dn-nyt-left-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bg-dark);
  margin-bottom: 0.5rem;
  text-decoration: none;
  display: block;
}

.dn-nyt-left-title:hover {
  color: var(--brand-purple);
}

.dn-nyt-left-excerpt {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-secondary);
  line-height: 1.5;
  margin: 0;
}

.dn-nyt-left-meta {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-top: 0.5rem;
  letter-spacing: 0.5px;
}

/* Center Column - Centerpiece Dark Card */
.dn-nyt-center {
  display: flex;
  flex-direction: column;
  background: #0d0d0d;
  color: #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.dn-nyt-center-img-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.dn-nyt-center-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dn-nyt-center-content {
  padding: 1.75rem;
}

.dn-nyt-center-category {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--brand-yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.dn-nyt-center-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  text-decoration: none;
  display: block;
}

.dn-nyt-center-title:hover {
  color: var(--brand-yellow);
}

.dn-nyt-center-excerpt {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.dn-nyt-center-meta {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Right Column - Image Card */
.dn-nyt-right {
  display: flex;
  flex-direction: column;
}

.dn-nyt-right-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #F1F5F9;
  margin-bottom: 0.85rem;
}

.dn-nyt-right-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dn-nyt-right:hover .dn-nyt-right-img-wrapper img {
  transform: scale(1.02);
}

.dn-nyt-right-category {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--brand-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
}

.dn-nyt-right-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bg-dark);
  margin-bottom: 0.5rem;
  text-decoration: none;
  display: block;
}

.dn-nyt-right-title:hover {
  color: var(--brand-purple);
}

.dn-nyt-right-excerpt {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-secondary);
  line-height: 1.5;
  margin: 0;
}

.dn-nyt-right-meta {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-top: 0.5rem;
  letter-spacing: 0.5px;
}

/* =============================================
   PREMIUM SLIDER LOGIC FOR MUST READ SECTION
   ============================================= */
.mr-premium-slider {
  position: relative;
  width: 100%;
  height: 520px;
  margin-bottom: 5rem; /* space for overlapping card */
  border-radius: 8px;
  overflow: visible; /* allow overflow of card */
}

.mr-slider-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

#mr-slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mr-slider-card-overlay {
  position: absolute;
  bottom: -40px; /* overlaps at the bottom */
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  max-width: 680px;
  background: #FFFFFF;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #F1F5F9;
  z-index: 20;
  text-align: left;
  border-radius: 4px;
}

.mr-slider-card-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bg-dark);
  margin-bottom: 0.75rem;
}

.mr-slider-card-excerpt {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.mr-slider-card-meta {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
}

.mr-slider-dots {
  position: absolute;
  bottom: 25px;
  left: 25px;
  display: flex;
  gap: 8px;
  z-index: 25;
}

.mr-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mr-slider-dot.active {
  background: #FFFFFF;
  width: 24px;
  border-radius: 4px;
}

.mr-slider-arrows {
  position: absolute;
  bottom: 20px;
  right: 25px;
  display: flex;
  gap: 8px;
  z-index: 25;
}

.mr-slider-arrow-btn {
  background: rgba(255, 255, 255, 0.85);
  color: #1A202C;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mr-slider-arrow-btn:hover {
  background: #FFFFFF;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .mr-premium-slider {
    height: 400px;
  }
  .mr-slider-card-overlay {
    width: 92%;
    padding: 1.25rem;
    bottom: -20px;
  }
  .mr-slider-card-title {
    font-size: 1.2rem;
  }
  .mr-slider-card-excerpt {
    display: none; /* Hide excerpt on small mobile to fit */
  }
}

/* ===========================================
   NYT-STYLE FOOTER
   =========================================== */
.nyt-footer {
  background: #FFFFFF;
  border-top: 2px solid #1a1a2e;
  font-family: 'Inter', 'Arial', sans-serif;
  padding: 0;
  margin-top: 3rem;
}

.nyt-footer-top {
  max-width: 1360px;
  margin: 0 auto;
  padding: 2.5rem 2rem 2rem;
  border-bottom: 1px solid #E2E8F0;
}

.nyt-footer-logo {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #E2E8F0;
}

.nyt-footer-cols {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.nyt-footer-col {
  display: flex;
  flex-direction: column;
}

.nyt-footer-col-head {
  font-family: 'Inter', 'Arial', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #E2E8F0;
}

.nyt-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.nyt-footer-col ul li a {
  font-family: 'Inter', 'Arial', sans-serif;
  font-size: 0.82rem;
  color: #2D3748;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s ease;
  display: block;
}

.nyt-footer-col ul li a:hover {
  color: var(--brand-purple);
  text-decoration: underline;
}

/* Bottom copyright bar */
.nyt-footer-bottom {
  max-width: 1360px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nyt-footer-bottom span {
  font-size: 0.75rem;
  color: #718096;
  font-family: 'Inter', sans-serif;
}

.nyt-footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nyt-footer-bottom-links a {
  font-size: 0.72rem;
  color: #718096;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  transition: color 0.15s ease;
}

.nyt-footer-bottom-links a:hover {
  color: var(--brand-purple);
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .nyt-footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .nyt-footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .nyt-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
/* =========================================================================
/* ==========================================================================
   EXACT LE MONDE CLONE THEME
   ========================================================================== */

/* Dark Navbar Overrides for Le Monde look */
.top-bar-new, .header-new, .brand-row-new {
  display: none !important; /* Hide old elements to mimic clean Le Monde header */
}

.navigation-row {
  background: #121212 !important;
  color: #ffffff !important;
  border-bottom: none !important;
  height: 52px !important;
}

.nav-row-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  height: 100% !important;
}

/* Le Monde Gothic Logo */
.nav-row-container::before {
  content: 'M';
  font-family: 'Georgia', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  margin-right: 2rem;
  font-style: italic;
}

#main-nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-grow: 1 !important;
}

#main-nav-links .nav-item > a {
  color: #333 !important;
  font-family: Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
  padding: 0.5rem 0.5rem !important;
  border-bottom: 2px solid transparent !important;
}

#main-nav-links .nav-item.has-dropdown:hover > a {
  border-bottom-color: #ffffff !important;
}

/* Yellow Subscribe Button on Right */
.nav-row-container::after {
  content: 'S\'abonner';
  background: #cbb6e8 !important;
  color: #2e2140 !important;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 2rem;
  text-transform: uppercase;
}

/* Spotlight Page Main Content */
.spotlight-main {
  max-width: 1030px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  background-color: #ffffff;
  color: #1a1a1a;
  font-family: Arial, Helvetica, sans-serif;
}

/* Le Monde Category Big Title (Impact / Bold Condensed) */
.spotlight-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.spotlight-brand-title {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: #5a6a85;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.spotlight-category-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin: 0;
}

.spotlight-desc {
  display: none; /* Hide subtitle to match clean Le Monde look */
}

/* Le Monde Capsules / Tag Filters */
.lemonde-filter-container {
  margin-bottom: 2rem;
}

.lemonde-filter-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.lemonde-filter-btn {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #1a1a1a;
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.1s;
}

.lemonde-filter-btn:hover {
  background-color: #f5f5f5;
}

.lemonde-filter-btn.active {
  background-color: #ffffff;
  border-color: #1a1a1a;
  font-weight: 700;
}

/* Le Monde Editorial Layout (Grid & Columns) */
.lemonde-top-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 2.5rem;
}

@media (min-width: 992px) {
  .lemonde-top-layout {
    grid-template-columns: 1.7fr 1fr; /* 63% left, 37% right */
    gap: 3rem;
  }
  
  .lemonde-top-left {
    border-right: 1px solid #e2e8f0;
    padding-right: 3rem;
  }
}

/* Featured story (La Une) - Horizontal Flex layout, image on right! */
.lemonde-hero-card {
  display: flex;
  flex-direction: column-reverse;
  gap: 1.25rem;
}

@media (min-width: 576px) {
  .lemonde-hero-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .lemonde-hero-text {
    flex: 1.2;
  }
  
  .lemonde-hero-img-wrap {
    flex: 0.8;
  }
}

.lemonde-hero-img-wrap img {
  width: 100%;
  aspect-ratio: 1.5/1;
  object-fit: cover;
  display: block;
}

.lemonde-label {
  font-family: Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: #7a7a7a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  display: block;
}

.lemonde-hero-title {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0 0 0.75rem 0;
}

/* Le Monde Gothic Yellow Icon next to Title */
.lemonde-hero-title a::before {
  content: 'M';
  font-family: Georgia, serif;
  background: #fcc200;
  color: #1a1a1a;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 0 0.3rem;
  margin-right: 0.5rem;
  display: inline-block;
  font-style: italic;
}

.lemonde-hero-desc {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.5;
  margin: 0;
}

/* Sidebar Widgets */
.lemonde-top-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.lemonde-newsletter-box {
  background: #fdfdfd;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lemonde-newsletter-title {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.lemonde-pub-box {
  background: #f7f7f7;
  border: 1px solid #eaeaea;
  padding: 1rem;
  text-align: center;
}

.lemonde-pub-label {
  font-size: 0.6rem;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.lemonde-pub-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Grid layout at bottom */
.lemonde-divider {
  border: 0;
  border-top: 1px solid #1a1a1a;
  margin: 2.5rem 0;
}

.lemonde-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .lemonde-bottom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lemonde-grid-card {
  display: flex;
  flex-direction: column-reverse;
  gap: 1rem;
}

@media (min-width: 576px) {
  .lemonde-grid-card {
    flex-direction: row;
    gap: 1.25rem;
  }
  .lemonde-grid-text {
    flex: 1.2;
  }
  .lemonde-grid-img-wrap {
    flex: 0.8;
  }
}

.lemonde-grid-img-wrap img {
  width: 100%;
  aspect-ratio: 1.5/1;
  object-fit: cover;
  display: block;
}

.lemonde-grid-title {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0;
}

.lemonde-grid-title a::before {
  content: 'M';
  font-family: Georgia, serif;
  background: #fcc200;
  color: #1a1a1a;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 0 0.25rem;
  margin-right: 0.4rem;
  display: inline-block;
  font-style: italic;
}

.lemonde-grid-desc {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Article detail page overrides */
.lemonde-article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .lemonde-article-layout {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
}

.lemonde-article-title {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.lemonde-article-chapeau {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  color: #444;
  line-height: 1.6;
  border-left: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.lemonde-article-text {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #1a1a1a;
}

.lemonde-article-text p::first-letter {
  margin-bottom: 0.4rem;
  display: block;
}

.lemonde-hero-title {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0 0 0.75rem 0;
}

/* Le Monde Gothic Yellow Icon next to Title */
.lemonde-hero-title a::before {
  content: 'M';
  font-family: Georgia, serif;
  background: #fcc200;
  color: #1a1a1a;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 0 0.3rem;
  margin-right: 0.5rem;
  display: inline-block;
  font-style: italic;
}

.lemonde-hero-desc {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.5;
  margin: 0;
}

/* Sidebar Widgets */
.lemonde-top-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.lemonde-newsletter-box {
  background: #fdfdfd;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lemonde-newsletter-title {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.lemonde-pub-box {
  background: #f7f7f7;
  border: 1px solid #eaeaea;
  padding: 1rem;
  text-align: center;
}

.lemonde-pub-label {
  font-size: 0.6rem;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.lemonde-pub-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Grid layout at bottom */
.lemonde-divider {
  border: 0;
  border-top: 1px solid #1a1a1a;
  margin: 2.5rem 0;
}

.lemonde-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .lemonde-bottom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lemonde-grid-card {
  display: flex;
  flex-direction: column-reverse;
  gap: 1rem;
}

@media (min-width: 576px) {
  .lemonde-grid-card {
    flex-direction: row;
    gap: 1.25rem;
  }
  .lemonde-grid-text {
    flex: 1.2;
  }
  .lemonde-grid-img-wrap {
    flex: 0.8;
  }
}

.lemonde-grid-img-wrap img {
  width: 100%;
  aspect-ratio: 1.5/1;
  object-fit: cover;
  display: block;
}

.lemonde-grid-title {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0;
}

.lemonde-grid-title a::before {
  content: 'M';
  font-family: Georgia, serif;
  background: #fcc200;
  color: #1a1a1a;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 0 0.25rem;
  margin-right: 0.4rem;
  display: inline-block;
  font-style: italic;
}

.lemonde-grid-desc {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* Article detail page overrides */
.lemonde-article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .lemonde-article-layout {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
}

.lemonde-article-title {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.lemonde-article-chapeau {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  color: #444;
  line-height: 1.6;
  border-left: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.lemonde-article-text {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #1a1a1a;
}

.lemonde-article-text p::first-letter {
  all: unset; /* Remove drop cap to match Le Monde clean look */
}

/* --------------------------------------------------------------------------
   NYT STYLE HEADER
   -------------------------------------------------------------------------- */
.nyt-header-main {
  background-color: #FFFFFF;
  border-bottom: 2px solid #000;
  width: 100%;
  padding-bottom: 0.5rem;
}

.nyt-header-top {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #E2E8F0;
}

.nyt-header-top-left {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #333;
}

.nyt-header-top-center {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nyt-lang-btn {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nyt-lang-btn:hover {
  text-decoration: underline;
}

.nyt-header-top-right {
  min-width: 100px;
}

.nyt-header-logo-row {
  text-align: center;
  padding: 1.5rem 0;
}

.brand-logo-img-nyt {
  max-height: 75px;
  width: auto;
}

.nyt-header-nav {
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.nyt-header-nav .nav-row-links {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.nyt-nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  text-transform: capitalize;
}

.nyt-nav-link:hover {
  color: #555;
  text-decoration: underline;
}

/* Anti-flash publicités : emplacement masqué tant qu' aucune campagne n' est chargée */
[id^="ad-slot-"]:not([data-ad-filled="1"]) { display: none !important; }
