/* =========================================
   1. GLOBAL VARIABLES & THEMES
========================================= */
:root {
  /* Neutral palette */
  --white: #ffffff;
  --black: #000000;
  --gray-bg: #f4f3ef;
  --gray-border: #e2e8f0;
  --text-main: #2d3748;
  --text-light: #4a5568;

  --font-family: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
  --container-width: 1200px;

  /* Spacing tokens */
  --section-gap: 80px;
  --card-padding: 35px 40px;
  --content-max-width: 850px;
  --hero-padding: 140px 20px 120px;

  /* Typography scale */
  --title-h1: 3.2rem;
  --title-h2: 2rem;
  --title-h3: 1.4rem;
  --text-lead: 1.25rem;
  --text-base: 1.1rem;
  --text-small: 0.95rem;
  --badge-text: 0.85rem;

  /* Default brand tokens (eDreams) — templates without a theme class fall back here */
  --brand-primary:       #005DAD;
  --brand-primary-hover: #004a8f;
  --brand-secondary:     #FFD633;
  --brand-dark:          #073b70;
  --brand-light:         #deeffe;
  --brand-gradient:      linear-gradient(135deg, #073b70 0%, #005DAD 100%);
  --text-on-primary:     #ffffff;
  --text-on-secondary:   #073b70;
  --focus-ring:          #FFD633;
}

/* ─── eDreams Theme ─────────────────────── */
[data-brand="ED"] {
  --brand-primary:       #005DAD;
  --brand-primary-hover: #004a8f;
  --brand-secondary:     #FFD633;
  --brand-dark:          #073b70;
  --brand-light:         #deeffe;
  --brand-gradient:      linear-gradient(135deg, #073b70 0%, #005DAD 100%);
  --text-on-primary:     #ffffff;
  --text-on-secondary:   #073b70;
  --focus-ring:          #FFD633;
}

/* ─── Opodo Theme ───────────────────────── */
[data-brand="OP"] {
  --brand-primary:       #f96302;
  --brand-primary-hover: #d95300;
  --brand-secondary:     #ffffff;
  --brand-dark:          #7a2f00;
  --brand-light:         #fff0e6;
  --brand-gradient:      linear-gradient(135deg, #c53030 0%, #f96302 100%);
  --text-on-primary:     #ffffff;
  --text-on-secondary:   #7a2f00;
  --focus-ring:          #f96302;
}


/* =========================================
   2. RESET & BASE
========================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px; /* offset for sticky nav */
}

body {
  font-family: var(--font-family);
  background-color: var(--gray-bg);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  font-size: var(--text-base);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-main);
  line-height: 1.25;
}

p  { margin-bottom: 1rem; }
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: var(--brand-primary); transition: var(--transition); }
a:hover { color: var(--brand-dark); }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Accessibility: focus ring ─────────── */
:focus-visible {
  outline: 3px solid var(--focus-ring, var(--brand-secondary));
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Reduced motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================
   SECTION HEADER UTILITY
========================================= */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--brand-primary);
  margin-bottom: 10px;
}
.section-header p {
  color: var(--text-light);
  font-size: var(--text-base);
  max-width: 580px;
  margin: 0 auto;
}

/* Section padding wrapper */
.section-block {
  padding: var(--section-gap) 0;
}

/* All top-level section wrappers get vertical breathing room */
/* body > [id]:not(#hero-searcher):not(#hero-standard):not(#hero-video):not(#zigzag):not(#tabs):not([data-component="zigzag-content"]):not([data-component="tabs"]) {
  padding-top: 60px;
  padding-bottom: 60px;
} */
/* Hero components must never inherit section padding regardless of their id */
body > .hero-searcher,
body > .hero,
body > .hero-video-wrapper {
  padding-top: 0;
  padding-bottom: 0;
}

/* Full-bleed white sections — bg spans 100vw, content stays within container */
#zigzag, [data-component="zigzag-content"],
#tabs,   [data-component="tabs"] {
  background: var(--white);
  padding-top: 60px;
  padding-bottom: 60px;
}
/* Section header inside full-bleed sections uses the container */
#zigzag > .container, [data-component="zigzag-content"] > .container,
#tabs > .container,   [data-component="tabs"] > .container {
  padding-bottom: 40px;
}


/* =========================================
   3. LIBRARY ADMIN SHELL
========================================= */
.library-header {
  background: #1e293b;
  color: white;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  gap: 12px;
}
.library-header h3 { margin: 0; font-size: 1.05rem; }

.library-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.library-controls select {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  background: white;
  color: #1e293b;
  font-weight: 600;
}

.library-wrapper {
  padding: 2rem;
  max-width: 1280px;
  margin: auto;
}

.library-component {
  background: white;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid var(--gray-border);
}

.library-component-header {
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  color: #1e293b;
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: background 0.2s;
}
.library-component-header:hover { background: #f1f5f9; }
.library-component.open .library-component-header {
  border-bottom-color: var(--gray-border);
}

.library-component-body {
  display: none;
  background: var(--gray-bg);
}
.library-component.open .library-component-body { display: block; }

.component-demo {
  background: transparent;
  padding: 0;
}


/* =========================================
   4. BUTTONS
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: var(--text-on-primary);
}
.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  color: var(--text-on-primary);
}

.btn-secondary {
  background-color: var(--brand-secondary);
  color: var(--text-on-secondary);
}
.btn-secondary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  color: var(--text-on-secondary);
}

.btn-outline {
  background: var(--brand-light);
  border-color: currentColor;
  color: var(--brand-primary);
}
.btn-outline:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--text-on-primary);
  transform: translateY(-2px);
}


/* =========================================
   5. STICKY NAV
========================================= */
.sticky-nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--white);
  border-bottom: 2px solid var(--gray-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s;
}

.sticky-nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0 auto;
  padding: 0 12px;
  overflow-x: auto;
  white-space: nowrap;
  max-width: var(--container-width);
  width: 100%;
  scrollbar-width: none; /* hide scrollbar on Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.sticky-nav-links::-webkit-scrollbar { display: none; }

.sticky-nav-links li { padding: 0; }

.sticky-nav-links a {
  display: block;
  padding: 20px 18px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.sticky-nav-links a:hover {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-light);
}
.sticky-nav-links a.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}


/* =========================================
   6. HERO SECTIONS
========================================= */

/* Standard Image Hero */
.hero {
  position: relative;
  padding: 100px 0;
  background-size: cover;
  background-position: center;
  color: white;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.72), rgba(0,0,0,0.15));
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 1000px; }
.hero h1 {
  font-size: clamp(3.5rem, 4vw, 4.5rem);
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
}
.hero p { font-size: 1.2rem; margin-bottom: 32px; opacity: 0.9; }

/* Video Hero */
.hero-video-wrapper {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
  z-index: 1;
}
.hero-video-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
  padding: 20px;
}
.hero-video-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: white;
  margin-bottom: 16px;
}
.hero-video-content p { font-size: 1.2rem; margin-bottom: 32px; opacity: 0.9; }

/* Hero with Searcher */
.hero-searcher {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  min-height: 420px;
  color: white;
  display: flex;
  align-items: center;
}
.hero-searcher::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(99 99 99 / 40%) 0%, rgb(57 57 57 / 27%) 100%);
}
.hero-searcher .container { position: relative; z-index: 2; }

.hero-searcher .breadcrums {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  backdrop-filter: blur(6px);
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-searcher .breadcrums a { color: white !important; font-weight: 500; }
.hero-searcher .breadcrums a:hover { opacity: 0.8; }

.hero-searcher h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
  margin-bottom: 28px;
}

.mock-searcher {
  background: rgba(0,0,0,0.5);
  padding: 20px;
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
}


/* =========================================
   7. ARTICLE / FULL-WIDTH CONTENT
========================================= */
.articleFULL {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  padding: 48px 56px;
  margin: 32px 0;
}
.articleFULL h2 { font-size: 2rem; color: var(--text-main); margin-bottom: 16px; }
.articleFULL h3 { font-size: 1.4rem; color: var(--brand-primary); margin-bottom: 12px; }
.articleFULL p  { color: var(--text-light); line-height: 1.85; margin-bottom: 1rem; }

@media (max-width: 768px) {
  .articleFULL { padding: 28px 20px; }
}


/* =========================================
   8. CITY CARDS
========================================= */
.card-city-container {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-primary) var(--gray-border);
}
.card-city-container::-webkit-scrollbar { height: 5px; }
.card-city-container::-webkit-scrollbar-track { background: var(--gray-border); border-radius: 10px; }
.card-city-container::-webkit-scrollbar-thumb { background: var(--brand-primary); border-radius: 10px; }

.card-city {
  flex: 1;
  min-width: 300px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border: 1px solid var(--gray-border);
}
.card-city:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.card-city-image { height: 210px; overflow: hidden; }
.card-city-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card-city:hover .card-city-image img { transform: scale(1.07); }

.card-city-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-city-content h4 {
  font-size: 1.3rem;
  color: var(--text-main);
  margin-bottom: 8px;
}
.card-city-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 20px !important;
  flex-grow: 1;
}

.card-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.btn-round {
  background-color: var(--brand-primary);
  color: white !important;
  font-weight: 700;
  padding: 11px 28px;
  border-radius: 50px;
  display: inline-block;
  transition: var(--transition);
  font-size: 0.95rem;
  text-align: center;
  width: 100%;
}
.btn-round:hover {
  background-color: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  color: white !important;
}
.link-secondary {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-secondary:hover { color: var(--brand-dark); }


/* =========================================
   9. IMAGE SLIDER
========================================= */
.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 40px 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.slider { display: flex; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 500px; object-fit: cover; }

.slider-info-box {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: rgba(0,0,0,0.55);
  color: white;
  backdrop-filter: blur(12px);
  padding: 28px 32px;
  border-radius: var(--radius);
  max-width: 480px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s 0.3s, transform 0.5s 0.3s;
  border: 1px solid rgba(255,255,255,0.1);
}
.slide.active .slider-info-box { opacity: 1; transform: translateY(0); }
.slider-info-box h3 { color: white; font-size: 1.8rem; margin-bottom: 10px; }
.slider-info-box p  { color: rgba(255,255,255,0.88); margin-bottom: 0; }

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  pointer-events: none;
}
.slider-btn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  background: white;
  color: var(--brand-primary);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transition: var(--transition);
}
.slider-btn:hover {
  background: var(--brand-primary);
  color: white;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .slide img { height: 320px; }
  .slider-info-box { left: 16px; right: 16px; bottom: 16px; padding: 20px; }
  .slider-info-box h3 { font-size: 1.3rem; }
  .slider-btn { width: 40px; height: 40px; }
}


/* =========================================
   10. FEATURE GRID
========================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.feature-card {
  background: white;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  text-align: left;
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.09);
  border-color: var(--brand-light);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--brand-light);
  color: var(--brand-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.feature-card h3 {
  color: var(--brand-primary);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.feature-card p { color: var(--text-light); font-size: 0.95rem; margin: 0; }


/* =========================================
   11. BENTO / FAQ CARDS
========================================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Base faq-card: solid brand-light, NOT transparent */
.faq-card {
  background: var(--brand-light);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  border: none;
  transition: var(--transition);
}
.faq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}
.faq-card h3 { color: var(--brand-primary); margin-bottom: 12px; }
.faq-card p  { color: var(--text-light); margin: 0; line-height: 1.75; }

/* Hero card (gradient) */
.hero-card {
  grid-column: span 2;
  background: var(--brand-gradient);
  color: white;
}
.hero-card h3 { color: var(--brand-secondary); }
.hero-card p  { color: rgba(255,255,255,0.88); }

/* Standard cards already inherit brand-light from .faq-card */
.standard-card h3 { color: var(--brand-primary); }

.tag {
  background: var(--brand-secondary);
  color: var(--text-on-secondary);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-block;
  margin-bottom: 16px;
}
.hero-card .tag { background: rgba(255,255,255,0.2); color: white; }


/* =========================================
   12. ZIG-ZAG CONTENT
========================================= */
/* --container-width = 1200px. The padding trick centers content at container width
   while the element itself is full viewport width. */
.zigzag-section {
  display: flex;
  gap: 48px;
  align-items: center;
  margin: 0;
  background: var(--white);
  padding: 48px max(24px, calc((100% - var(--container-width)) / 2));
}
/* Alternation is handled by inline style="flex-direction: row-reverse;" applied by the renderer.
   No CSS nth-child rule needed — it would conflict with inline styles and break the pattern. */

.zigzag-content { flex: 1; }
.zigzag-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--brand-primary);
  margin-bottom: 16px;
}
.zigzag-content p  { color: var(--text-light); line-height: 1.8; margin-bottom: 24px !important; }

.zigzag-image { flex: 1; }
.zigzag-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 280px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  .zigzag-section {
    flex-direction: column !important; /* override inline row-reverse on mobile */
    padding: 28px 20px;
    text-align: center;
  }
  .zigzag-image img { height: 220px; }
}


/* =========================================
   13. ACCORDION / FAQ
========================================= */
.accordion-wrapper {
  max-width: 800px;
  margin: 40px auto;
  border-radius: var(--radius-lg);
  padding: 8px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.accordion-item:last-child { border-bottom: none; }

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 22px 32px;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s, background 0.2s;
  gap: 16px;
  background: var(--white);
}
.accordion-header:hover { color: var(--brand-primary); }

.accordion-header::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  transition: transform 0.3s;
  font-size: 0.8rem;
  color: var(--brand-primary);
  flex-shrink: 0;
}
.accordion-item.active .accordion-header { color: var(--brand-primary); }
.accordion-item.active .accordion-header::after { transform: rotate(180deg); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-light);
  padding: 0 32px;
  font-size: 0.98rem;
  line-height: 1.8;
  background: var(--white);
}
.accordion-item.active .accordion-content {
  max-height: 400px;
  padding: 0 32px 24px;
}


/* =========================================
   14. TABS
========================================= */
.tabs-wrapper {
  margin: 0;
  background: var(--white);
  padding: 0;
  overflow: hidden;
}
.tabs-nav {
  display: flex;
  justify-content: center;
  border-bottom: 2px solid var(--gray-border);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--white);
  /* Pad horizontally so buttons align with container-width content */
  padding-left: max(24px, calc((100% - var(--container-width)) / 2));
  padding-right: max(24px, calc((100% - var(--container-width)) / 2));
}
.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 18px 28px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: var(--brand-primary); }
.tab-btn.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

.tab-pane {
  display: none;
  padding: 32px max(24px, calc((100% - var(--container-width)) / 2));
  animation: fadeInTab 0.35s ease;
}

/* When a zigzag-section lives inside a tab pane, remove its own padding
   so the tab-pane padding handles spacing uniformly */
.tab-pane .zigzag-section {
  padding: 0;
  margin: 0 0 32px;
}
.tab-pane .zigzag-section:last-child { margin-bottom: 0; }

.tab-pane.active { display: block; }
.tab-pane h3 { color: var(--brand-primary); margin-bottom: 12px; }
.tab-pane p  { color: var(--text-light); margin: 0; }

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =========================================
   15. STATS
========================================= */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 40px 0;
  background: var(--brand-gradient);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  text-align: center;
  padding: 48px 24px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-item:last-child { border-right: none; }
.stat-item h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--brand-secondary);
  margin-bottom: 8px;
  line-height: 1;
}
.stat-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

@media (max-width: 600px) {
  .stats-container { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding: 32px 16px; }
  .stat-item:nth-child(2n) { border-right: none; }
}


/* =========================================
   16. CTA STRIP
========================================= */
.cta-strip {
  background: var(--brand-gradient);
  color: white;
  padding: 72px 40px;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.cta-strip h2 {
  color: var(--brand-secondary);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.cta-strip p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}


/* =========================================
   17. BENTO IMAGE CARDS (bento-grid-cards)
========================================= */
.bento-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 40px 0;
}
.bento-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-border);
}
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.11); }
.bento-card-img { height: 200px; overflow: hidden; }
.bento-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.bento-card:hover .bento-card-img img { transform: scale(1.05); }
.bento-card-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.bento-card-body h3 { font-size: 1.1rem; color: var(--brand-primary); margin-bottom: .5rem; }
.bento-card-body p  { font-size: .9rem; color: var(--text-light); flex: 1; }
.bento-card-body .btn-outline { margin-top: 1rem; align-self: flex-start; }


/* =========================================
   18. NEWS PORTAL / HUB CARDS
========================================= */
.hub-content { padding: 60px 0 100px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.04);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.3s ease;
  display: none;
}
.news-card.visible { opacity: 1; transform: translateY(0); }
.news-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.09); }

.card-image {
  height: 240px;
  background-color: var(--gray-border);
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
}

.card-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--brand-secondary);
  color: var(--text-on-secondary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: var(--badge-text);
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  z-index: 2;
}

.card-content { padding: 28px; flex-grow: 1; display: flex; flex-direction: column; }
.card-date { font-size: 0.88rem; color: var(--text-light); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.card-title { font-size: 1.3rem; color: var(--brand-dark); margin-bottom: 14px; line-height: 1.35; font-weight: 700; }
.card-excerpt { font-size: 0.98rem; color: var(--text-light); margin-bottom: 24px; flex-grow: 1; }
.card-link { color: var(--brand-primary); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); margin-top: auto; font-size: 0.98rem; }
.news-card:hover .card-link { color: var(--brand-secondary); gap: 14px; }

.load-more-wrapper { text-align: center; margin-top: 56px; }
.btn-discover {
  background-color: var(--brand-primary);
  color: var(--text-on-primary);
  border: none;
  padding: 15px 44px;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.btn-discover:hover { background-color: var(--brand-dark); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.2); }
.btn-discover:active { transform: translateY(0); }
.btn-discover.hidden { display: none; }


/* =========================================
   19. UNIFIED HERO BANNERS (PR/Product/Travel Tips)
========================================= */
.pr-hero, .prod-header, .trip-hero {
  position: relative;
  text-align: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  padding: var(--hero-padding);
}
.pr-hero { background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=1920'); }
.prod-header { background: var(--brand-gradient); }
.trip-hero { background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&q=80&w=1920'); }

.pr-hero::before, .trip-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.pr-hero::before { background: var(--brand-gradient); opacity: 0.82; }
.trip-hero::before { background: linear-gradient(180deg, rgba(7,59,112,0.2) 0%, rgba(0,0,0,0.6) 100%); }

.pr-hero-content, .prod-header-content, .trip-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-max-width);
  margin: 0 auto;
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Badges */
.pr-badge, .prod-badge, .trip-badge {
  display: inline-block;
  background-color: var(--brand-secondary);
  color: var(--text-on-secondary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}


/* =========================================
   20. STICKY NAV SCROLLSPY ACTIVE HELPER
========================================= */
.sticky-nav-links a[aria-current="true"] {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}


/* =========================================
   21. RESPONSIVE BREAKPOINTS
========================================= */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: 1fr; }
  .hero-card  { grid-column: span 1; }
}

@media (max-width: 768px) {
  .hero h1           { font-size: 2.2rem; }
  .bento-grid        { grid-template-columns: 1fr; }
  .hero-card         { grid-column: span 1; }
  .bento-grid-cards  { grid-template-columns: 1fr; }
  .feature-grid      { grid-template-columns: 1fr; }
  .cards-grid        { grid-template-columns: 1fr; }
  .library-wrapper   { padding: 1rem; }
  .stats-container   { grid-template-columns: repeat(2, 1fr); }
  .faq-card          { padding: 24px 20px; }
  .cta-strip         { padding: 48px 24px; }
}


/* =========================================
   22. BACK BUTTON (floating, all article templates)
========================================= */
.back-btn {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 50px;
  height: 50px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px) scale(0.85);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  z-index: 1000;
  pointer-events: none;
}
.back-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-btn:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-3px) scale(1.08);
  color: #fff;
}


/* =========================================
   23. ARTICLE HERO — TITLES & META
       (shared across all three templates)
========================================= */
.pr-title,
.prod-title,
.trip-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 800;
}

.pr-meta,
.prod-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  flex-wrap: wrap;
  margin-top: 8px;
}
.pr-meta span,
.prod-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


/* =========================================
   24. COMPANY NEWS (PR) ARTICLE
========================================= */
.pr-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 60px 24px 100px;
}

/* Key Highlights box */
.pr-summary {
  background: var(--brand-light);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius);
  padding: 32px 40px;
  margin-bottom: 48px;
}
.pr-summary h3 {
  font-size: 1.1rem;
  color: var(--brand-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pr-summary ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-light);
  line-height: 1.85;
}
.pr-summary ul li { margin-bottom: 6px; }

/* Article body */
.pr-body h2 {
  font-size: 1.75rem;
  color: var(--brand-dark);
  margin: 44px 0 16px;
  padding-top: 8px;
}
.pr-body p {
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.pr-body ul,
.pr-body ol {
  color: var(--text-light);
  padding-left: 24px;
  margin-bottom: 1rem;
  line-height: 1.85;
}
.pr-body ul li,
.pr-body ol li { margin-bottom: 6px; }
.pr-body blockquote {
  border-left: 4px solid var(--brand-primary);
  margin: 32px 0;
  padding: 16px 28px;
  background: var(--brand-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-main);
}

/* Image block */
.pr-image-block {
  margin: 40px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}
.pr-image-block img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.pr-image-caption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 10px 0 4px;
  font-style: italic;
}

/* Data table */
.pr-table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.pr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.pr-table thead tr { background: var(--brand-gradient); color: white; }
.pr-table thead th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.pr-table tbody tr {
  border-bottom: 1px solid var(--gray-border);
  transition: background 0.2s;
}
.pr-table tbody tr:last-child { border-bottom: none; }
.pr-table tbody tr:hover      { background: var(--brand-light); }
.pr-table td { padding: 14px 20px; color: var(--text-light); }
.pr-table td:first-child { color: var(--text-main); font-weight: 600; }

@media (max-width: 768px) {
  .pr-summary   { padding: 24px 20px; }
  .pr-image-block img { max-height: 240px; }
}


/* =========================================
   25. PRODUCT NEWS ARTICLE
========================================= */
.prod-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 60px 24px 100px;
}

/* Hero image below the gradient header */
.prod-hero-image {
  margin-bottom: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.prod-hero-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.prod-hero-caption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 10px 0 4px;
  font-style: italic;
}

/* Article body */
.prod-body h2 {
  font-size: 1.75rem;
  color: var(--brand-dark);
  margin: 48px 0 16px;
}
.prod-body p {
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.prod-body ul {
  color: var(--text-light);
  padding-left: 24px;
  margin-bottom: 1rem;
  line-height: 1.85;
}
.prod-body ul li { margin-bottom: 6px; }

/* Zigzag variant used inside product-news article
   .zigzag-section = outer wrapper
   .zigzag-row     = flex row (alternates direction)
   .zigzag-text    = text column
   .zigzag-media   = image column                    */
.prod-body .zigzag-section {
  background: transparent;
  padding: 0;
  margin: 0;
}
.zigzag-row {
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
}
.zigzag-section .zigzag-row:nth-child(even) { flex-direction: row-reverse; }

.zigzag-text { flex: 1 1 0; }
.zigzag-text h3 {
  font-size: 1.4rem;
  color: var(--brand-primary);
  margin-bottom: 14px;
}
.zigzag-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}
.zigzag-text ul {
  color: var(--text-light);
  padding-left: 20px;
  line-height: 1.8;
}

.zigzag-media { flex: 1 1 0; }
.zigzag-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: block;
}

/* Feature comparison table */
.prod-table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.prod-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.prod-table thead tr { background: var(--brand-gradient); color: white; }
.prod-table thead th {
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-align: left;
}
.prod-table thead th:not(:first-child) { text-align: center; }
.prod-table tbody tr {
  border-bottom: 1px solid var(--gray-border);
  transition: background 0.2s;
}
.prod-table tbody tr:last-child { border-bottom: none; }
.prod-table tbody tr:hover      { background: var(--brand-light); }
.prod-table td { padding: 14px 20px; color: var(--text-light); }
.prod-table td:first-child { color: var(--text-main); font-weight: 600; }
.prod-table td:not(:first-child) { text-align: center; font-size: 1.1rem; }

@media (max-width: 768px) {
  .prod-hero-image img { max-height: 240px; }
  .zigzag-row,
  .zigzag-section .zigzag-row:nth-child(even) {
    flex-direction: column;
    padding: 24px 0;
    gap: 24px;
  }
  .zigzag-media img { height: 220px; }
}


/* =========================================
   26. BLOG / TRAVEL TIPS ARTICLE
========================================= */
.trip-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 48px 24px 100px;
}

/* Author + read-time bar */
.trip-author-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--gray-border);
  flex-wrap: wrap;
  gap: 16px;
}
.author-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--brand-gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.author-info strong { color: var(--brand-dark); font-size: 0.98rem; }
.author-info span   { font-size: 0.875rem; color: var(--text-light); }

.read-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
  white-space: nowrap;
}

/* "In this guide" summary box */
.trip-summary {
  background: var(--brand-light);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius);
  padding: 28px 36px;
  margin-bottom: 40px;
}
.trip-summary h3 {
  font-size: 1.05rem;
  color: var(--brand-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.trip-summary ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-light);
  line-height: 1.85;
}
.trip-summary ul li { margin-bottom: 6px; }

/* Article body */
.trip-body p {
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.trip-body p.intro {
  font-size: 1.18rem;
  color: var(--text-main);
  line-height: 1.8;
  border-left: 3px solid var(--brand-primary);
  padding-left: 20px;
  margin-bottom: 36px;
}
.trip-body h2 { font-size: 1.7rem; color: var(--brand-dark); margin: 44px 0 16px; }
.trip-body h3 { font-size: 1.25rem; color: var(--brand-primary); margin: 28px 0 12px; }

/* Styled content list */
.trip-body ul.content-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.trip-body ul.content-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--gray-border);
  color: var(--text-light);
  line-height: 1.7;
}
.trip-body ul.content-list li:last-child { border-bottom: none; }
.trip-body ul.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  background: var(--brand-primary);
  border-radius: 50%;
}
.trip-body ul.content-list li strong { color: var(--text-main); }

/* Inline image */
.trip-image { margin: 36px 0; }
.trip-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  display: block;
}
.image-caption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 10px 0 0;
  font-style: italic;
}

/* Data table */
.trip-table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.trip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.trip-table thead tr { background: var(--brand-gradient); color: white; }
.trip-table thead th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.trip-table tbody tr {
  border-bottom: 1px solid var(--gray-border);
  transition: background 0.2s;
}
.trip-table tbody tr:last-child { border-bottom: none; }
.trip-table tbody tr:hover      { background: var(--brand-light); }
.trip-table td { padding: 14px 20px; color: var(--text-light); }
.trip-table td:first-child { color: var(--text-main); font-weight: 600; }

/* CTA block at end of article */
.trip-actions {
  background: var(--brand-gradient);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  margin-top: 56px;
  color: white;
}
.trip-actions h3 {
  color: var(--brand-secondary);
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.trip-actions p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .trip-author-block { padding: 16px 20px; }
  .trip-summary      { padding: 20px 24px; }
  .trip-actions      { padding: 36px 24px; }
  .trip-actions h3   { font-size: 1.35rem; }
  .btn-group         { flex-direction: column; align-items: center; }
}


/* =========================================
   27. CURSOR FIX & NEWS-CARD DISPLAY BUG
========================================= */

/* Missing cursor pointer on interactive elements */
.card-city,
.faq-card,
.feature-card,
.bento-card,
.related-card,
.accordion-header,
.tab-btn,
.slider-btn,
.btn-round,
.filter-pill,
.page-btn,
.share-btn,
.back-btn,
.news-card,
.library-component-header { cursor: pointer; }

/* Bug fix: .news-card starts display:none but .visible never restores display */
.news-card.visible {
  display: flex;
  flex-direction: column;
}




/* =========================================
   33. TABLE OF CONTENTS (TOC)
========================================= */
.toc {
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
  border-left: 4px solid var(--brand-primary);
}
.toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
}
.toc ol li {
  margin-bottom: 8px;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.5;
}
.toc ol li a {
  color: var(--brand-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.toc ol li a:hover { color: var(--brand-dark); }
.toc ol li ol {
  margin-top: 6px;
  padding-left: 16px;
}
.toc ol li ol li {
  font-size: 0.875rem;
  margin-bottom: 4px;
}


/* =========================================
   34. SOCIAL SHARE BAR
========================================= */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  margin: 32px 0;
  flex-wrap: wrap;
}
.share-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin-right: 2px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  font-family: var(--font-family);
  white-space: nowrap;
}
.share-btn.x       { background: #000; color: white; }
.share-btn.x:hover { background: #333; color: white; transform: translateY(-1px); }
.share-btn.facebook       { background: #1877F2; color: white; }
.share-btn.facebook:hover { background: #1558b0; color: white; transform: translateY(-1px); }
.share-btn.linkedin       { background: #0A66C2; color: white; }
.share-btn.linkedin:hover { background: #084e96; color: white; transform: translateY(-1px); }
.share-btn.copy { background: var(--gray-border); color: var(--text-main); }
.share-btn.copy:hover { background: var(--brand-light); color: var(--brand-primary); }
.share-btn.copy.copied { background: #dcfce7; color: #16a34a; }


/* =========================================
   35. RELATED POSTS
========================================= */
.related-posts {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 2px solid var(--gray-border);
}
.related-posts h3 {
  font-size: 1.4rem;
  color: var(--brand-primary);
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.related-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-border);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  border-color: var(--brand-light);
  color: inherit;
}
.related-card-img {
  height: 150px;
  overflow: hidden;
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.related-card:hover .related-card-img img { transform: scale(1.06); }
.related-card-body { padding: 16px 18px; }
.related-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-primary);
  margin-bottom: 6px;
  display: block;
}
.related-card-body h4 {
  font-size: 0.97rem;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
}


/* =========================================
   36. AUTHOR BIO CARD
========================================= */
.author-bio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-top: 48px;
  border: 1px solid var(--gray-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.author-bio-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  overflow: hidden;
}
.author-bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-bio-info h4 {
  color: var(--brand-dark);
  font-size: 1.05rem;
  margin-bottom: 3px;
}
.author-bio-role {
  font-size: 0.8rem;
  color: var(--brand-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  display: block;
}
.author-bio-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* =========================================
   DATA TABLE (webmasterpage component)
========================================= */
.content-table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.content-table thead tr { background: var(--brand-gradient); color: white; }
.content-table thead th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--brand-secondary);
}
.content-table tbody tr {
  border-bottom: 1px solid var(--gray-border);
  transition: background 0.2s;
}
.content-table tbody tr:last-child { border-bottom: none; }
.content-table tbody tr:hover      { background: var(--brand-light); }
.content-table td {background-color: white; padding: 14px 20px; color: var(--text-light); }
.content-table td:first-child { color: var(--text-main); font-weight: 600; }

@media (max-width: 768px) {
  .content-table thead th,
  .content-table td { padding: 10px 14px; font-size: 0.875rem; }
}

@media (max-width: 600px) {
  .author-bio-card { flex-direction: column; }
}


/* =========================================
   38. COVER GRID
   Interactive visual list (10+ items).
   Hero panel shows selected item detail.
   Selector grid below — click any thumbnail.
   No rank numbers — use ranking-list for that.
========================================= */
#cover-grid, [data-component="cover-grid"] {
  background: var(--gray-bg);
  padding-top: 60px;
  padding-bottom: 60px;
}

.cover-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  margin-bottom: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  transition: opacity 0.22s ease;
}
.cover-hero.switching { opacity: 0; }

.cover-hero-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.cover-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.55) 45%,
    rgba(0,0,0,0.08) 100%);
}
.cover-hero-body {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  left: 0; padding: 0 52px;
  max-width: 580px; color: white;
}
.cover-hero-body h3 {
  font-size: 1.9rem; font-weight: 700;
  color: white; margin-bottom: 6px; line-height: 1.2;
}
.cover-hero-loc {
  font-size: 0.88rem; color: rgba(255,255,255,0.82);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 14px;
}
.cover-hero-loc i { font-size: 0.75rem; }
.cover-hero-desc {
  font-size: 0.93rem; color: rgba(255,255,255,0.88);
  line-height: 1.72; margin-bottom: 22px;
}
.cover-hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-secondary); color: var(--brand-dark);
  padding: 10px 22px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 700; text-decoration: none;
  transition: box-shadow 0.25s, transform 0.25s;
  width: fit-content;
}
.cover-hero-cta:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transform: translateY(-2px); color: var(--brand-dark);
}

.cover-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.cover-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 128px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.2s;
  background: none; padding: 0;
  display: block; width: 100%; text-align: left;
}
.cover-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.45s ease;
}
.cover-thumb:hover img { transform: scale(1.08); }
.cover-thumb:focus-visible {
  outline: 3px solid var(--brand-secondary);
  outline-offset: 2px;
}
.cover-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.18) 60%, transparent 100%);
  transition: opacity 0.2s;
}
.cover-thumb:hover .cover-thumb-overlay { opacity: 0.88; }
.cover-thumb-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 9px 10px;
}
.cover-thumb-content h4 {
  font-size: 0.78rem; font-weight: 700; color: white;
  margin: 0 0 1px; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cover-thumb-loc {
  font-size: 0.62rem; color: rgba(255,255,255,0.8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cover-thumb.active { border-color: var(--brand-secondary); }
.cover-thumb.active .cover-thumb-overlay {
  background: linear-gradient(to top,
    rgba(0,0,0,0.82) 0%, rgba(255,214,51,0.14) 100%);
}

@media (max-width: 900px) {
  .cover-hero { height: 320px; }
  .cover-hero-body { padding: 0 32px; }
  .cover-hero-body h3 { font-size: 1.55rem; }
}
@media (max-width: 640px) {
  .cover-hero { height: auto; overflow: visible; box-shadow: none; }
  .cover-hero-img {
    height: 220px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  }
  .cover-hero-overlay {
    height: 220px; bottom: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.5) 100%);
  }
  .cover-hero-body {
    position: relative; top: auto; transform: none;
    padding: 20px 20px 22px; max-width: 100%;
    background: var(--white);
    border: 1px solid var(--gray-border); border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  }
  .cover-hero-body h3  { font-size: 1.15rem; color: var(--brand-dark); }
  .cover-hero-loc      { color: var(--text-light); }
  .cover-hero-desc     { color: var(--text-light); font-size: 0.9rem; margin-bottom: 18px; }
  .cover-selector      { grid-template-columns: 1fr; gap: 6px; }
  .cover-thumb         { height: 110px; }
  .cover-thumb-content h4 { font-size: 0.88rem; }
  .cover-thumb-loc     { font-size: 0.72rem; }
}
@media (max-width: 420px) {
  .cover-thumb { height: 96px; }
}


/* =========================================
   39. RANKING LIST
   Ordered/ranked list (Top 3, 5, 10).
   Always has a rank number.
   Image optional — add .no-image to item.
   Location + CTA link also optional.
========================================= */
#ranking-list, [data-component="ranking-list"] {
  background: var(--white);
  padding-top: 60px;
  padding-bottom: 60px;
}

.ranking-list { margin-top: 8px; }

.ranking-item {
  display: grid;
  grid-template-columns: 80px 280px 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-border);
  border-left: 4px solid transparent;
  transition: border-left-color 0.25s ease;
  cursor: default;
}
.ranking-item:last-child { border-bottom: none; }
.ranking-item:hover { border-left-color: var(--brand-primary); }

.ranking-body {
  display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.25s ease;
}
.ranking-item:hover .ranking-body { transform: translateX(6px); }

.ranking-item.no-image { grid-template-columns: 110px 1fr; }
.ranking-item.no-image .ranking-num { font-size: 4.8rem; }

.ranking-num {
  font-size: 3.4rem; font-weight: 800; line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px; user-select: none;
  text-align: center; align-self: center;
}

.ranking-image {
  width: 280px; height: 178px;
  border-radius: var(--radius-lg); overflow: hidden;
  flex-shrink: 0; box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.ranking-image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.ranking-item:hover .ranking-image img { transform: scale(1.05); }

.ranking-body h3 {
  font-size: 1.2rem; color: var(--brand-dark); margin: 0; line-height: 1.3;
}
.ranking-item.no-image .ranking-body h3 { font-size: 1.3rem; }

.ranking-location {
  font-size: 0.8rem; font-weight: 600; color: var(--text-light);
  display: flex; align-items: center; gap: 5px; margin: 0;
}
.ranking-location i { font-size: 0.7rem; color: var(--brand-primary); }

.ranking-body p {
  font-size: 0.93rem; color: var(--text-light);
  line-height: 1.75; margin: 4px 0 0; max-width: 600px;
}
.ranking-item.no-image .ranking-body p { max-width: 100%; }

.ranking-link {
  font-size: 0.875rem; font-weight: 700; color: var(--brand-primary);
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px; transition: var(--transition);
  width: fit-content; min-height: 44px; align-self: flex-start;
}
.ranking-link i { font-size: 0.72rem; transition: transform 0.2s; }
.ranking-link:hover { color: var(--brand-dark); }
.ranking-link:hover i { transform: translateX(4px); }

@media (max-width: 900px) {
  .ranking-item { grid-template-columns: 56px 1fr; gap: 18px; }
  .ranking-num  { font-size: 2.6rem; align-self: start; padding-top: 4px; }
  .ranking-image { grid-column: 1 / -1; order: 3; width: 100%; height: 220px; }
  .ranking-num  { order: 1; }
  .ranking-body { order: 2; }
  .ranking-item.no-image { grid-template-columns: 80px 1fr; }
  .ranking-item.no-image .ranking-num { font-size: 3.6rem; }
}
@media (max-width: 560px) {
  .ranking-item {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    gap: 12px 16px; padding: 28px 0;
  }
  .ranking-image {
    grid-column: 1 / -1; grid-row: 1;
    width: 100%; height: 210px;
    border-radius: var(--radius); box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  }
  .ranking-num  { font-size: 2.8rem; grid-row: 2; grid-column: 1; align-self: start; padding-top: 2px; }
  .ranking-body { grid-row: 2; grid-column: 2; transform: none !important; }
  .ranking-body h3 { font-size: 1.05rem; }
  .ranking-body p  { font-size: 0.875rem; max-width: 100%; }
  .ranking-link    { min-height: 44px; }
  .ranking-item.no-image { grid-template-rows: auto; }
  .ranking-item.no-image .ranking-num  { grid-row: 1; font-size: 2.8rem; }
  .ranking-item.no-image .ranking-body { grid-row: 1; }
}
@media (max-width: 380px) {
  .ranking-num,
  .ranking-item.no-image .ranking-num { font-size: 2.2rem; }
}
