/* ============================================================
   IBT PRESS — Main Stylesheet
   Colors: dark #1f2024 | blue #26326E | orange #F26C3E | purple #8974f1
   Fonts: Montserrat (headings) + Mulish (body)
   ============================================================ */

/* 1. Reset & CSS Variables
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:    #1f2024;
  --blue:    #26326E;
  --orange:  #F26C3E;
  --purple:  #8974f1;
  --white:   #ffffff;
  --bg:      #f4f5f7;
  --text:    #1f2024;
  --muted:   #6b7280;
  --border:  #e5e7eb;
  --shadow:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.12);
  --radius:  8px;
  --max-w:   1300px;
  --header-h: 64px;
  --font-h:  'Montserrat', sans-serif;
  --font-b:  'Mulish', sans-serif;
}

/* 2. Base
   ============================================================ */
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font-b); color: var(--text); background: var(--bg); line-height: 1.6; }
a     { color: inherit; text-decoration: none; }
img   { display: block; max-width: 100%; height: auto; }
ul    { list-style: none; }

/* 3. Typography
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-h);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* 4. Container
   ============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* 5. Header
   ============================================================ */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--orange);
}
.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-logo {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.site-logo span { color: var(--orange); }

.main-nav { display: flex; align-items: center; gap: 0.1rem; }
.main-nav a {
  color: rgba(255,255,255,.82);
  font-family: var(--font-h);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,.1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* 6. Hero
   ============================================================ */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 3.5rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero p  { color: rgba(255,255,255,.72); font-size: 1.05rem; margin-bottom: 1.75rem; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,.55);
  margin-top: 1.5rem;
}
.hero-meta .author { color: var(--orange); font-weight: 600; }
.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  transition: background .2s, transform .2s;
}
.btn-read:hover { background: #e05830; transform: translateY(-2px); }

/* 7. Sections
   ============================================================ */
.section { padding: 3rem 0; }
.section + .section { padding-top: 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}
.section-header h2 {
  position: relative;
  padding-left: 1rem;
}
.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 80%;
  background: var(--orange);
  border-radius: 2px;
}
.section-link {
  font-family: var(--font-h);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  letter-spacing: 0.5px;
}
.section-link:hover { text-decoration: underline; }

/* 8. Cards Grid
   ============================================================ */
.cards-grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cards-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.cards-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }

.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 0.5rem; font-size: 1rem; line-height: 1.35; }
.card-body h3 a:hover { color: var(--orange); }
.card-excerpt { font-size: 0.875rem; color: var(--muted); flex: 1; margin-bottom: 0; }

.card-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}
.card-footer .author { font-weight: 600; color: var(--dark); }

/* Large card (2-col span) */
.card-lg { grid-column: span 2; }
.card-lg .card-img { aspect-ratio: 2/1; }

/* 9. Category Badges
   ============================================================ */
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.22rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.65rem;
}
.badge-entertainment { background: rgba(137,116,241,.13); color: #8974f1; }
.badge-technology    { background: rgba(38,50,110,.13);   color: #26326E; }
.badge-education     { background: rgba(5,150,105,.13);   color: #059669; }
.badge-services      { background: rgba(242,108,62,.13);  color: #F26C3E; }
.badge-news          { background: rgba(220,38,38,.13);   color: #dc2626; }
.badge-movies        { background: rgba(137,116,241,.13); color: #8974f1; }
.badge-tv            { background: rgba(137,116,241,.13); color: #8974f1; }
.badge-survey        { background: rgba(8,145,178,.13);   color: #0891b2; }
.badge-sports        { background: rgba(5,150,105,.13);   color: #059669; }

/* 10. Article Page
   ============================================================ */
.article-page { padding: 2.5rem 0 4rem; }
.article-wrap { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; }

.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--orange); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

.article-header { margin-bottom: 2rem; }
.article-header h1 { margin: 0.75rem 0 1.25rem; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.article-meta .author { font-weight: 600; color: var(--dark); }
.meta-dot { color: var(--border); }

.article-featured-img {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.article-featured-img img { width: 100%; height: 100%; object-fit: cover; }

.article-body { font-size: 1.05rem; line-height: 1.8; }
.article-body h2 { margin: 2.25rem 0 0.875rem; }
.article-body h3 { margin: 1.75rem 0 0.75rem; color: var(--blue); }
.article-body p  { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { font-weight: 700; color: var(--dark); }
.article-body blockquote {
  border-left: 4px solid var(--orange);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(242,108,62,.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}
.article-body .highlight-box {
  background: rgba(38,50,110,.06);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid var(--blue);
}

/* Author box */
.author-box {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}
.author-box-info h4 { margin-bottom: 0.3rem; font-size: 1rem; }
.author-box-info .role { font-size: 0.8rem; color: var(--orange); font-weight: 600; margin-bottom: 0.6rem; }
.author-box-info p { font-size: 0.875rem; color: var(--muted); }

/* Related */
.related-articles { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--border); }
.related-articles h3 { margin-bottom: 1.5rem; font-size: 1.2rem; }

/* Article rating */
.article-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(242,108,62,.1);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin: 1rem 0;
}

/* 11. Static Pages (About, Contact, etc.)
   ============================================================ */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p  { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

.page-content { padding: 3rem 0 4rem; }
.page-content-wrap { max-width: 900px; margin: 0 auto; padding: 0 1.25rem; }

/* EEAT cards */
.eeat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.eeat-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 3px solid var(--orange);
}
.eeat-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.eeat-card h3 { margin-bottom: 0.75rem; font-size: 1rem; }
.eeat-card p  { font-size: 0.875rem; color: var(--muted); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 2.5rem 0; }
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.team-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--border);
}
.team-card h3 { margin-bottom: 0.25rem; font-size: 1.05rem; }
.team-card .role { font-size: 0.82rem; color: var(--orange); font-weight: 600; margin-bottom: 0.75rem; }
.team-card p { font-size: 0.875rem; color: var(--muted); }

/* Mission box */
.mission-box {
  background: linear-gradient(135deg, var(--dark) 0%, var(--blue) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  margin: 3rem 0;
}
.mission-box h2 { color: var(--white); margin-bottom: 1rem; }
.mission-box p  { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 700px; margin: 0 auto; }

/* Contact form */
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-b);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color .2s, background .2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--orange); background: var(--white); }
.form-group textarea { height: 160px; resize: vertical; }

.btn-submit {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 0.9rem 2rem;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-submit:hover { background: #e05830; transform: translateY(-1px); }

.contact-info-box {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-info-box h3 { color: var(--white); margin-bottom: 1.5rem; }
.contact-info-item { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-info-item p { color: rgba(255,255,255,.7); font-size: 0.875rem; margin: 0; }
.contact-info-item strong { display: block; color: var(--white); margin-bottom: 0.2rem; font-size: 0.85rem; }

/* Privacy / Terms */
.legal-content { max-width: 800px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.legal-content h2 { margin: 2.5rem 0 1rem; }
.legal-content h3 { margin: 2rem 0 0.75rem; color: var(--blue); }
.legal-content p  { color: #444; line-height: 1.8; margin-bottom: 1rem; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.5rem; color: #444; }

/* 12. Footer
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.72);
  padding: 3.5rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer-logo-img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.footer-logo-link .site-logo { margin-bottom: 0; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 300px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-h);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.35); transition: color .2s; }
.footer-bottom a:hover { color: var(--orange); }

/* 13. Cookie Banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 21, 25, 0.97);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.25,.46,.45,.94);
  backdrop-filter: blur(12px);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.cookie-text { flex: 1; font-size: 0.875rem; color: rgba(255,255,255,.72); line-height: 1.6; }
.cookie-text a { color: var(--orange); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-btn {
  padding: 0.6rem 1.3rem;
  border-radius: 6px;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}
.cookie-btn-accept { background: var(--orange); color: var(--white); }
.cookie-btn-accept:hover { background: #e05830; }
.cookie-btn-refuse {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.15);
}
.cookie-btn-refuse:hover { background: rgba(255,255,255,.13); }

/* 14. Utilities
   ============================================================ */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* 16. Homepage — Branding Header
   ============================================================ */
.site-branding {
  background: var(--dark);
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.branding-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.branding-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.branding-link:hover .branding-title { color: rgba(255,255,255,.85); }
.branding-logo { width: 44px; height: 44px; object-fit: contain; }
.branding-title {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--white);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.branding-title span { color: var(--orange); }
.branding-tagline {
  font-family: var(--font-h);
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.25);
  padding: 0.25rem 1rem;
  border-radius: 2px;
}

/* Homepage nav — sticky: branding scrolls away, nav stays at top */
.site-nav {
  background: var(--blue);
  border-bottom: 3px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 900;
}
.site-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;   /* nav centré */
  height: 48px;
  position: relative;
}
.site-nav-links {
  display: flex;
  align-items: center;
}
.site-nav-links a {
  color: rgba(255,255,255,.82);
  font-family: var(--font-h);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 0 0.85rem;
  height: 48px;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255,255,255,.1);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.site-nav-links a:first-child { border-left: 1px solid rgba(255,255,255,.1); }
.site-nav-links a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.site-nav-links a.active { background: var(--orange); color: var(--white); }
.site-nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 5px;
  position: absolute;
  left: 1.25rem;
}
.site-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* 17. Overlay Cards
   ============================================================ */
.ov-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  background: var(--dark);
}
.ov-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s;
}
.ov-card:hover img { transform: scale(1.05); }
.ov-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.25) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem;
  color: var(--white);
}
.ov-overlay .badge { align-self: flex-start; margin-bottom: 0.4rem; font-size: 0.6rem; }
.ov-overlay .badge-entertainment { background: rgba(137,116,241,.9); color: #fff; }
.ov-overlay .badge-technology    { background: rgba(38,50,110,.95);  color: #fff; }
.ov-overlay .badge-tv            { background: rgba(137,116,241,.9); color: #fff; }
.ov-overlay .badge-movies        { background: rgba(137,116,241,.9); color: #fff; }
.ov-overlay .badge-education     { background: rgba(5,150,105,.9);   color: #fff; }
.ov-overlay .badge-services      { background: rgba(242,108,62,.9);  color: #fff; }
.ov-overlay .badge-news          { background: rgba(220,38,38,.9);   color: #fff; }
.ov-overlay .badge-survey        { background: rgba(8,145,178,.9);   color: #fff; }
.ov-overlay .badge-sports        { background: rgba(5,150,105,.9);   color: #fff; }
.ov-overlay h3 {
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.ov-overlay h3 a { color: inherit; }
.ov-overlay h3 a:hover { color: var(--orange); }
.ov-overlay time { font-size: 0.68rem; color: rgba(255,255,255,.58); }

/* 18. Latest Feed Grid
   ============================================================ */
.latest-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 235px 235px;
  gap: 0.85rem;
}
.ov-card-main {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.ov-card-main .ov-overlay h3 { font-size: 1.35rem; }
.latest-grid .ov-card { height: 100%; }

/* 19. Featured Grid
   ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.featured-grid .ov-card { height: 300px; }

/* 20. Homepage Layout with Sidebar
   ============================================================ */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0 3rem;
}
.layout-main { min-width: 0; }
.layout-aside { min-width: 0; }

/* Section title bar */
.hp-section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--blue);
}
.hp-section-head h2 {
  font-size: 1rem;
  font-family: var(--font-h);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
}
.hp-section-head .section-link {
  margin-left: auto;
  font-size: 0.72rem;
}

/* 21. List Article (image left + text right)
   ============================================================ */
.list-art {
  display: flex;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  transition: box-shadow .25s, transform .25s;
}
.list-art:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.list-art-img {
  width: 185px;
  min-width: 185px;
  overflow: hidden;
  flex-shrink: 0;
}
.list-art-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.list-art:hover .list-art-img img { transform: scale(1.05); }
.list-art-body {
  padding: 1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.list-art-body h3 { font-size: 1rem; margin-bottom: 0.4rem; line-height: 1.35; }
.list-art-body h3 a:hover { color: var(--orange); }
.list-art-body p { font-size: 0.845rem; color: var(--muted); flex: 1; margin-bottom: 0.75rem; }
.list-art-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: auto;
}
.btn-read-more {
  display: inline-block;
  font-family: var(--font-h);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 0.28rem 0.7rem;
  border-radius: 3px;
  transition: background .2s, color .2s;
}
.btn-read-more:hover { background: var(--orange); color: var(--white); }

/* 22. More Posts / Mini List
   ============================================================ */
.more-posts-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.more-posts-big .ov-card { height: 100%; min-height: 280px; }
.mini-list { display: flex; flex-direction: column; gap: 0.75rem; }
.mini-item {
  display: flex;
  gap: 0;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.mini-item:hover { box-shadow: var(--shadow-lg); }
.mini-item-img {
  width: 75px;
  min-width: 75px;
  height: 75px;
  overflow: hidden;
  flex-shrink: 0;
}
.mini-item-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-item-body {
  padding: 0.6rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mini-item-body .badge { font-size: 0.55rem; padding: 0.15rem 0.45rem; margin-bottom: 0.3rem; }
.mini-item-body h4 { font-size: 0.8rem; line-height: 1.3; margin-bottom: 0.25rem; }
.mini-item-body h4 a:hover { color: var(--orange); }
.mini-item-body time { font-size: 0.68rem; color: var(--muted); }

/* 23. Sidebar Widgets
   ============================================================ */
.sidebar-widget { margin-bottom: 1.75rem; }
.sidebar-widget-title {
  font-family: var(--font-h);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}
.sidebar-ov { height: 380px; margin-bottom: 1rem; }
.sidebar-mini-list { display: flex; flex-direction: column; gap: 0.65rem; }
.sidebar-mini-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.6rem;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.sidebar-mini-item:hover { box-shadow: var(--shadow-lg); }
.sidebar-mini-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.sidebar-mini-item h4 { font-size: 0.78rem; line-height: 1.3; }
.sidebar-mini-item h4 a:hover { color: var(--orange); }
.sidebar-mini-item time { font-size: 0.66rem; color: var(--muted); display: block; margin-top: 0.2rem; }

/* 15. Responsive
   ============================================================ */
@media (max-width: 1200px) {
  .cards-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .eeat-grid    { grid-template-columns: repeat(2, 1fr); }
  .team-grid    { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .layout-sidebar { grid-template-columns: 1fr 260px; }
  .featured-grid  { grid-template-columns: repeat(2, 1fr); }
  .featured-grid .ov-card { height: 240px; }
  .latest-grid {
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .ov-card-main { grid-row: 1 / span 2; }
}

@media (max-width: 910px) {
  /* Article pages — existing nav toggle */
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #16171b;
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0;
    border-bottom: 2px solid var(--orange);
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.75rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 0.85rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .cards-grid   { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-lg { grid-column: span 2; }

  /* Homepage nav */
  .site-nav-toggle { display: flex; }
  .site-nav-links {
    display: none;
    position: absolute;
    top: 48px;
    left: 0; right: 0;
    background: #1d2760;
    flex-direction: column;
    border-bottom: 2px solid var(--orange);
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
    z-index: 800;
  }
  .site-nav-links.open { display: flex; }
  .site-nav-links a {
    height: auto;
    padding: 0.75rem 1.25rem;
    border-right: none;
    border-left: none !important;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 0.82rem;
  }

  /* Homepage layout */
  .layout-sidebar { grid-template-columns: 1fr; padding: 1.5rem 0 2rem; }
  .latest-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .ov-card-main { grid-row: 1 / span 2; }
  .more-posts-wrap { grid-template-columns: 1fr; }
  .more-posts-big { display: none; }
}

@media (max-width: 600px) {
  .cards-grid   { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .cards-grid-4 { grid-template-columns: 1fr; }
  .card-lg      { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .eeat-grid    { grid-template-columns: 1fr; }
  .team-grid    { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-actions .cookie-btn { flex: 1; text-align: center; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .article-meta { flex-wrap: wrap; gap: 0.75rem; }
  .author-box { flex-direction: column; }
  .mission-box { padding: 2rem 1.5rem; }

  /* Homepage mobile */
  .latest-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 240px 180px 180px 180px 180px;
  }
  .ov-card-main { grid-row: 1; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid .ov-card { height: 180px; }
  .list-art-img { width: 110px; min-width: 110px; }
  .branding-title { letter-spacing: 1.5px; }
}

/* 24. Back to Top Button
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 46px;
  height: 46px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
  z-index: 8000;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: #e05830; transform: translateY(-2px); }

/* 25. Marvel Quiz
   ============================================================ */
.marvel-quiz {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  margin: 2.5rem 0;
  color: var(--white);
}
.marvel-quiz h3 {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
  margin-bottom: 0.4rem;
}
.marvel-quiz .quiz-subtitle {
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.75rem;
}
.quiz-question {
  display: none;
}
.quiz-question.active {
  display: block;
}
.quiz-q-text {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.4;
}
.quiz-q-num {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.5rem;
}
.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.quiz-opt {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.85);
  font-family: var(--font-b);
  font-size: 0.9rem;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.quiz-opt:hover:not(:disabled) {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.3);
  color: var(--white);
}
.quiz-opt.correct {
  background: rgba(16,185,129,.18);
  border-color: #10b981;
  color: #6ee7b7;
  cursor: default;
}
.quiz-opt.wrong {
  background: rgba(239,68,68,.15);
  border-color: #ef4444;
  color: #fca5a5;
  cursor: default;
}
.quiz-opt:disabled { cursor: default; }
.quiz-feedback {
  font-size: 0.85rem;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: none;
}
.quiz-feedback.show { display: block; }
.quiz-feedback.correct-fb { background: rgba(16,185,129,.15); color: #6ee7b7; border-left: 3px solid #10b981; }
.quiz-feedback.wrong-fb   { background: rgba(239,68,68,.12);  color: #fca5a5; border-left: 3px solid #ef4444; }
.quiz-next-btn {
  background: var(--orange);
  color: var(--white);
  border: none;
  font-family: var(--font-h);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s;
  display: none;
}
.quiz-next-btn.show { display: inline-block; }
.quiz-next-btn:hover { background: #e05830; }
.quiz-progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.quiz-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  transition: background .3s;
}
.quiz-dot.done { background: var(--orange); }
.quiz-dot.current { background: rgba(255,255,255,.6); }
.quiz-result {
  display: none;
  text-align: center;
  padding: 1rem 0;
}
.quiz-result.show { display: block; }
.quiz-score {
  font-family: var(--font-h);
  font-size: 3rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.quiz-score-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 0.75rem;
}
.quiz-verdict {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.quiz-verdict-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.5rem;
}
.quiz-restart-btn {
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: var(--font-h);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.quiz-restart-btn:hover { background: var(--orange); color: var(--white); }

/* Quiz review (shown in result) */
.quiz-review-list {
  text-align: left;
  margin: 1.5rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.quiz-review-item {
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border-left: 3px solid transparent;
}
.quiz-review-item.review-correct { border-left-color: #10b981; }
.quiz-review-item.review-wrong   { border-left-color: #ef4444; }
.review-q-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 0.35rem;
  line-height: 1.4;
}
.review-user-ans {
  font-family: var(--font-h);
  font-size: 0.85rem;
  font-weight: 700;
}
.review-correct .review-user-ans { color: #6ee7b7; }
.review-wrong   .review-user-ans { color: #fca5a5; }
.review-correct-ans {
  font-size: 0.82rem;
  color: #6ee7b7;
  margin-top: 0.25rem;
}

/* 26. MCU Timeline
   ============================================================ */
.mcu-timeline {
  margin: 2.5rem 0;
}
.mcu-timeline > h3 {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--blue);
}
.timeline-phase {
  margin-bottom: 2rem;
}
.timeline-phase-title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-h);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  background: var(--blue);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.timeline-phase-title.saga-infinity { background: var(--blue); }
.timeline-phase-title.saga-multiverse { background: #6d28d9; }
.timeline-phase-title.saga-upcoming { background: #1f2024; border: 1px solid rgba(255,255,255,.15); }
.timeline-entries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
  padding-left: 0;
  list-style: none;
}
.timeline-entry {
  background: var(--white);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--blue);
  transition: box-shadow .2s, transform .2s;
}
.timeline-entry:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.timeline-phase-title.saga-multiverse ~ .timeline-entries .timeline-entry { border-left-color: #6d28d9; }
.timeline-phase:has(.saga-multiverse) .timeline-entry { border-left-color: #6d28d9; }
.timeline-phase:has(.saga-upcoming) .timeline-entry { border-left-color: var(--orange); }
.timeline-year {
  font-family: var(--font-h);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}
.timeline-title {
  font-family: var(--font-h);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

@media (max-width: 600px) {
  .marvel-quiz { padding: 1.5rem 1.1rem; }
  .timeline-entries { grid-template-columns: 1fr 1fr; }
}
