/* Index page: hero floating parallax (vanilla adaptation) */
.hero--floating {
  background: #ffffff;
  min-height: 760px;
}
.hero--floating .hero__bg {
  background:
    radial-gradient(900px 520px at 10% 18%, rgba(6, 136, 211, 0.18), transparent 62%),
    radial-gradient(820px 460px at 88% 70%, rgba(6, 136, 211, 0.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f0f8ff 100%);
}
.hero--floating .hero__bg-overlay {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 40%, rgba(241, 245, 255, 0.35) 100%);
}
.hero--floating .hero__content {
  min-height: 760px;
  display: flex;
  align-items: center;
}
.hero--floating .hero-inner {
  grid-template-columns: 1fr;
}
.hero--floating .hero-right {
  display: none;
}
.hero--floating .hero-left {
  max-width: min(700px, 92%);
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 60px rgba(6, 136, 211, 0.18);
}
.hero--floating .hero__title,
.hero--floating .hero__subtitle {
  color: var(--color-text);
}
.hero--floating .hero__subtitle {
  color: var(--color-text-muted);
}

.hero-floating-scene {
  position: absolute;
  /* 
   * Limit the parallax area to the centered content width (container),
   * so very wide screens don't spread the floating items too far.
   */
  top: 0;
  left: 50%;
  width: min(var(--container-max), 100%);
  height: 100%;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-floating__item {
  position: absolute;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 56px rgba(6, 136, 211, 0.22);
  will-change: transform;
}
.hero-floating__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 6 floating images (2 larger + 4 smaller, overall reduced size) */
.hero-floating__item--1 { top: 8%; left: 6%; width: clamp(220px, 23vw, 400px); height: clamp(250px, 28vw, 500px); }   /* large */
.hero-floating__item--2 { top: 7%; right: 10%; width: clamp(130px, 14vw, 240px); height: clamp(105px, 11vw, 190px); } /* small */
.hero-floating__item--3 { bottom: 12%; left: 15%; width: clamp(135px, 15vw, 250px); height: clamp(105px, 12vw, 200px);} /* small */
.hero-floating__item--4 { bottom: 7%; right: 9%; width: clamp(230px, 25vw, 420px); height: clamp(270px, 31vw, 520px); } /* large */
.hero-floating__item--5 { top: 22%; left: 38%; width: clamp(120px, 13vw, 220px); height: clamp(95px, 10vw, 170px); }   /* small */
.hero-floating__item--6 { bottom: 20%; right: 34%; width: clamp(145px, 16vw, 260px); height: clamp(110px, 12vw, 210px);} /* small */

@media (max-width: 1023px) {
  .hero--floating,
  .hero--floating .hero__content { min-height: 700px; }
  .hero-floating__item--1 { top: 10%; left: -6%; width: 34vw; height: 42vw; }
  .hero-floating__item--2 { top: 10%; right: -8%; width: 20vw; height: 15vw; }
  .hero-floating__item--3 { bottom: 14%; left: 2%; width: 22vw; height: 15vw; }
  .hero-floating__item--4 { bottom: 6%; right: -6%; width: 36vw; height: 46vw; }
  .hero-floating__item--5 { top: 24%; left: 40%; width: 18vw; height: 13vw; }
  .hero-floating__item--6 { bottom: 24%; right: 36%; width: 20vw; height: 15vw; }
}
@media (max-width: 767px) {
  .hero--floating,
  .hero--floating .hero__content { min-height: 640px; }
  .hero--floating .hero-left {
    max-width: 100%;
    margin-inline: 0;
    padding: 18px;
  }
  .hero-floating__item {
    border-radius: 16px;
    border-width: 1px;
  }
  .hero-floating__item--1 { width: 42vw; height: 54vw; top: 14%; left: -12%; }
  .hero-floating__item--2 { width: 24vw; height: 17vw; top: 12%; right: -10%; }
  .hero-floating__item--3 { width: 26vw; height: 18vw; bottom: 12%; left: -8%; }
  .hero-floating__item--4 { width: 44vw; height: 58vw; bottom: 5%; right: -12%; }
  .hero-floating__item--5 { width: 22vw; height: 16vw; top: 28%; left: 38%; }
  .hero-floating__item--6 { width: 24vw; height: 18vw; bottom: 28%; right: 34%; }
}

/* -------------------------------------------------------------------------- */
/* Trust Stats Bar (Global Metrics)                                            */
/* -------------------------------------------------------------------------- */
.trust-stats-bar {
  background: #ffffff;
  padding: var(--space-8) 0; /* Standardized tight padding for metrics */
  border-bottom: 1px solid #f1f5f9;
  position: relative;
  z-index: 2;
}

.trust-stats-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  max-width: 1000px;
  margin: 0 auto;
}

.trust-stats-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-stats-item__val {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.trust-stats-item__label {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.div-sep {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, #e2e8f0, transparent);
}

@media (max-width: 768px) {
  .div-sep { display: none; }
  .trust-stats-bar__inner { 
    flex-direction: column;
    gap: var(--space-8);
  }
}

/* -------------------------------------------------------------------------- */
/* Industry Slider (Modern Slider within Container)                            */
/* -------------------------------------------------------------------------- */
.industry-slider-section {
  overflow: hidden;
  padding-bottom: var(--section-pad-y);
}

.industry-slider-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-12); /* Standardized with global H2 margin */
  gap: var(--space-4);
}

.industry-slider-nav {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.slider-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: var(--color-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.slider-btn:hover:not(:disabled) {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.slider-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.industry-slider__viewport {
  width: 100%;
  overflow-x: auto; /* Enable native horizontal scroll */
  overflow-y: hidden;
  padding: var(--space-4) 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
  cursor: grab;
  user-select: none;
}

.industry-slider__viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none; /* Disable snap during drag */
  scroll-behavior: auto; /* Immediate response */
}

.industry-slider__viewport::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.industry-slider__track {
  display: flex;
  gap: var(--space-8);
  width: max-content;
  padding-right: var(--space-8); /* Buffer for snapping */
}

/* Ensure cards snap correctly */
.i-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  --card-color: hsl(var(--card-hue) 80% 45%);
  --card-bg-subtle: hsl(var(--card-hue) 100% 98.5%);
  
  flex-shrink: 0;
  width: min(85vw, 400px);
  aspect-ratio: 4 / 5.2;
  background: #ffffff;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.i-card:hover {
  box-shadow: 0 32px 64px -16px rgba(15, 23, 42, 0.18);
}

/* Slider Progress Bar */
.industry-slider-progress {
  width: min(400px, 100%);
  height: 4px;
  background: rgba(226, 232, 240, 0.6);
  margin: var(--space-8) auto 0;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.industry-slider-progress-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 100%;
  background: var(--color-primary);
  transform: scaleX(0.166); /* 1/6 default */
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Redefined i-card for Reveal-on-Hover style within Slider */
.i-card {
  --card-color: hsl(var(--card-hue) 80% 45%);
  --card-bg-subtle: hsl(var(--card-hue) 100% 98.5%);
  
  flex-shrink: 0;
  width: min(85vw, 400px);
  aspect-ratio: 4 / 5.2;
  background: #ffffff;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.i-card:hover {
  box-shadow: 0 32px 64px -16px rgba(15, 23, 42, 0.18);
}

.i-card__main {
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.i-card:hover .i-card__main {
  transform: scale(1.1);
}

.i-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Reveal Content Overlay (Inverted: Visible by default) */
.i-card__content {
  position: absolute;
  inset: auto 1.25rem 1.25rem;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  
  /* Initial state: VISIBLE */
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: auto;
}

.i-card:hover .i-card__content {
  /* Hover state: HIDDEN */
  transform: translateY(115%);
  opacity: 0;
  pointer-events: none;
}

.i-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.i-card__badge {
  font-size: 0.65rem;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--card-color);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.i-card__market-sm {
  font-size: 0.6875rem;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
}

.i-card__title-rev {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.i-card__desc-rev {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin-bottom: 18px;
}

.i-card__footer-rev {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.i-card__sal-rev {
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
}

.i-card__link-rev {
  font-size: 0.875rem;
  font-weight: 800;
  color: #ffffff; /* Explicit white */
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.3s ease;
}

.i-card__link-rev span {
  color: inherit; /* Sync color with text */
  margin-top: 2px;
  transition: transform 0.3s ease;
}

.i-card__link-rev:hover {
  opacity: 0.8;
}

.i-card__link-rev:hover span {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .industry-slider-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
  .i-card { width: min(85vw, 320px); }
  .i-card__content { inset: auto 1rem 1rem; padding: 1.25rem; }
}

/* Index page: offers (card-21 inspired, vanilla) */
.offer-card {
  /* theme color = "H S% L%" triple, e.g. 222 84% 28% */
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.offer-card__link {
  position: relative;
  display: block;
  width: 100%;
  /* Make cards taller (avoid small square feel) */
  aspect-ratio: 3 / 4;
  min-height: clamp(360px, 38vw, 520px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 0 40px -15px hsl(var(--theme-color) / 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.offer-card__link:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 60px -15px hsl(var(--theme-color) / 0.6);
}
.offer-card__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px hsl(var(--theme-color) / 0.28), 0 0 60px -15px hsl(var(--theme-color) / 0.55);
}

.offer-card__media {
  position: absolute;
  inset: 0;
  transform: scale(1);
  transition: transform 0.3s ease;
}
.offer-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.offer-card__link:hover .offer-card__media {
  transform: scale(1.10);
}

.offer-card__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    hsl(var(--theme-color) / 0.92) 0%,
    hsl(var(--theme-color) / 0.62) 32%,
    rgba(0, 0, 0, 0) 62%
  );
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.offer-card__link:hover .offer-card__overlay {
  opacity: 1;
  filter: saturate(1.05);
  background: linear-gradient(
    to top,
    hsl(var(--theme-color) / 0.96) 0%,
    hsl(var(--theme-color) / 0.68) 34%,
    rgba(0, 0, 0, 0) 64%
  );
}

.offer-card__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  color: #fff;
}
.offer-card__title {
  margin: 0;
  font-size: clamp(1.25rem, 1.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  display: flex;
  flex-wrap: wrap;
  gap: var(--layout-stack-tight);
  align-items: baseline;
}
.offer-card__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: hsl(var(--theme-color) / 0.22);
  border: 1px solid hsl(var(--theme-color) / 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.offer-card__desc {
  margin: var(--layout-stack-tight) 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-card__cta {
  margin-top: var(--layout-stack-loose);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--layout-stack-tight);
  border-radius: 14px;
  background: hsl(var(--theme-color) / 0.20);
  border: 1px solid hsl(var(--theme-color) / 0.30);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.offer-card__link:hover .offer-card__cta {
  background: hsl(var(--theme-color) / 0.34);
  border-color: hsl(var(--theme-color) / 0.48);
}
.offer-card__cta-text {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.offer-card__cta-icon {
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.3s ease;
  opacity: 0.95;
}
.offer-card__link:hover .offer-card__cta-icon {
  transform: translateX(6px);
}

@media (max-width: 767px) {
  .offer-card__link {
    aspect-ratio: 3 / 4;
    min-height: 420px;
  }
  .offer-card__content { padding: var(--layout-stack-loose); }
}

/* Index page: testimonial card stack (vanilla) */
.card-stack {
  width: 100%;
}
.card-stack__stage {
  position: relative;
  width: 100%;
  height: clamp(420px, 48vw, 620px);
  outline: none;
}
.card-stack__wash {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  top: 28px;
  margin-inline: auto;
  width: min(72%, 980px);
  height: 200px;
  border-radius: 999px;
  background: rgba(6, 136, 211, 0.08);
  filter: blur(48px);
}
.card-stack__cards {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 1100px;
}
.card-stack__card {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(520px, 90vw);
  height: clamp(340px, 36vw, 460px);
  transform-style: preserve-3d;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  will-change: transform, opacity;
}
.card-stack__card::after { display: none; }
.card-stack__bg { display: none; }
.card-stack__shade { display: none; }
.card-stack__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--layout-stack-loose);
  color: var(--color-text);
}
.card-stack__head {
  display: flex;
  align-items: center;
  gap: var(--layout-stack-tight);
  margin-bottom: var(--layout-stack-tight);
}
.card-stack__avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  background: var(--color-primary);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}
.card-stack__name {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.card-stack__sub {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 2px;
}
.card-stack__title {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.125rem, 1.6vw, 1.6rem);
  line-height: 1.15;
  margin-bottom: var(--layout-stack-tight);
}
.card-stack__desc {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-stack__meta { display: none; }

/* Active emphasis */
.card-stack__card[data-active="true"] {
  background: linear-gradient(180deg, rgba(6, 136, 211, 0.08) 0%, rgba(188, 54, 1, 0.05) 100%), rgba(255,255,255,0.98);
  border-color: rgba(6, 136, 211, 0.30);
  box-shadow: 0 18px 40px rgba(6, 136, 211, 0.20);
}
.card-stack__card[data-active="false"] {
  background: rgba(255,255,255,0.90);
  border-color: rgba(226, 232, 240, 0.95);
}

.card-stack__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255,255,255,0.85);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 22px;
  user-select: none;
}
.card-stack__nav--prev { left: 10px; }
.card-stack__nav--next { right: 10px; }
.card-stack__nav:disabled { opacity: 0.4; cursor: not-allowed; }

.card-stack__dots {
  margin-top: var(--layout-stack-loose);
  display: flex;
  justify-content: center;
  gap: var(--layout-stack-tight);
}
.card-stack__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.25);
  cursor: pointer;
}
.card-stack__dot.is-active { background: rgba(15, 23, 42, 0.85); }

/* Home quiz intro modal */
.quiz-home-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;

  /* Premium-ish entrance animation */
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
  pointer-events: none;
}
.quiz-home-modal[hidden] {
  display: none;
}

.quiz-home-modal--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.quiz-home-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 220ms ease;
}
.quiz-home-modal__panel {
  position: relative;
  width: min(680px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(6, 136, 211, 0.18);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  text-align: center;

  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}
.quiz-home-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  cursor: pointer;
}
.quiz-home-modal__title {
  font-size: var(--text-h2);
  margin-bottom: var(--space-4);
}
.quiz-home-modal__desc {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  line-height: 1.65;
}

.quiz-home-modal--visible .quiz-home-modal__backdrop {
  opacity: 1;
}
.quiz-home-modal--visible .quiz-home-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.quiz-home-modal__micro {
  margin-top: calc(var(--space-3) * 0.6);
  margin-bottom: var(--space-6);
  font-size: var(--text-small);
  color: var(--color-text-muted);
}
.quiz-home-modal__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}
.quiz-home-modal__actions .btn {
  min-width: 180px;
}

/* -------------------------------------------------------------------------- */
/* Partners marquee (index — hợp tác doanh nghiệp / nghiệp đoàn)              */
/* Logo files: ../_design/logo/ (relative from site/index.html)               */
/* -------------------------------------------------------------------------- */

.section--partners-marquee {
  position: relative;
  overflow: hidden;
}

.partners-marquee__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.partners-marquee__inner {
  position: relative;
  z-index: 1;
}

.partners-marquee__chip {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: var(--space-4);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(250, 250, 250, 0.95);
}

.partners-marquee__title {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.25;
  margin: 0 auto var(--layout-stack-tight);
  max-width: 52rem;
  color: #fafafa;
}

.partners-marquee__lead {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--layout-stack-loose);
  line-height: 1.6;
}

.partners-marquee__viewport {
  position: relative;
  margin-top: var(--layout-stack-loose);
  padding-bottom: var(--space-2);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.partners-marquee__row {
  overflow: hidden;
}

.partners-marquee__row + .partners-marquee__row {
  margin-top: var(--space-8);
}

.partners-marquee__track {
  display: flex;
  width: max-content;
  animation: partners-marquee-left 52s linear infinite;
}

.partners-marquee__row--right .partners-marquee__track {
  animation-name: partners-marquee-right;
}

.partners-marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-right: clamp(2rem, 4vw, 3.5rem);
}

.partners-marquee__logo {
  flex-shrink: 0;
  width: clamp(180px, 28vw, 280px);
  height: clamp(88px, 18vw, 120px);
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  padding: 14px 20px;
}

.partners-marquee__logo img {
  max-width: 100%;
  max-height: clamp(56px, 14vw, 96px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@keyframes partners-marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes partners-marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .partners-marquee__track {
    animation: none;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .partners-marquee__row + .partners-marquee__row {
    margin-top: var(--space-4);
  }

  .partners-marquee__group:last-child {
    display: none;
  }

  .partners-marquee__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Activity image gallery (index — vanilla port of react grid + lightbox)     */
/* -------------------------------------------------------------------------- */

.activity-gallery {
  position: relative;
  padding-top: var(--section-pad-y-lg);
  padding-bottom: var(--section-pad-y-lg);
  background: linear-gradient(180deg, #0b1020 0%, #070a14 100%);
  color: #e2e8f0;
  overflow: hidden;
}

.activity-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}

.activity-gallery .container {
  position: relative;
  z-index: 1;
}

.activity-gallery__heading {
  margin: 0 auto var(--layout-stack-tight);
  max-width: 40rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: #fafafa;
  letter-spacing: -0.02em;
}

.activity-gallery__sub {
  margin: 0 auto var(--layout-stack-loose);
  max-width: 36rem;
  color: rgba(226, 232, 240, 0.78) !important;
  font-size: var(--text-small);
}

.activity-gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--layout-grid-gap);
  grid-auto-flow: dense;
  /* Đặt height theo row để các tile không bị "cao/thấp" khác nhau tạo lỗ hổng */
  grid-auto-rows: clamp(230px, 27vw, 351px);
}

@media (min-width: 640px) {
  .activity-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-gallery__item--wide {
    grid-column: span 2;
  }
}

@media (min-width: 768px) {
  .activity-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .activity-gallery__item--wide {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .activity-gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    /* Tạo "đường hàng" rõ ràng: H1 < H2 cao hơn < H3 tăng/giảm nhẹ */
    --ag-row-1: clamp(285px, 24.3vw, 392px);
    --ag-row-2: clamp(365px, 29.7vw, 486px);
    --ag-row-3: clamp(318px, 27vw, 432px);
    grid-template-rows: var(--ag-row-1) var(--ag-row-2) var(--ag-row-3);
    grid-auto-rows: var(--ag-row-3);
  }

  .activity-gallery__item--wide {
    grid-column: span 2;
  }
}

.activity-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: rgba(15, 23, 42, 0.55);
  aspect-ratio: auto; /* height do grid-auto-rows quyết định */
  display: block;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.activity-gallery__item--wide {
  aspect-ratio: auto;
}

.activity-gallery__item:focus {
  outline: none;
}

.activity-gallery__item:focus-visible {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.55), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.activity-gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.activity-gallery__item:hover img,
.activity-gallery__item:focus-visible img {
  transform: scale(1.04);
}

.activity-gallery__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.15) 45%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.activity-gallery__item:hover .activity-gallery__overlay,
.activity-gallery__item:focus-visible .activity-gallery__overlay {
  opacity: 1;
}

.activity-gallery__title {
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  transform: translateY(12px);
  transition: transform 0.3s ease;
}

.activity-gallery__item:hover .activity-gallery__title,
.activity-gallery__item:focus-visible .activity-gallery__title {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .activity-gallery__item img {
    transition: none;
    transform: none;
  }

  .activity-gallery__overlay {
    opacity: 1;
  }

  .activity-gallery__title {
    transform: none;
  }
}

/* Lightbox */
.activity-gallery-modal[hidden] {
  display: none !important;
}

.activity-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.activity-gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.82);
}

.activity-gallery-modal__content {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1200px);
  max-height: 90vh;
}

.activity-gallery-modal__img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.activity-gallery-modal__close {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.activity-gallery-modal__close:hover {
  background: rgba(30, 41, 59, 0.95);
}

/* -------------------------------------------------------------------------- */
/* Blog posts (Home — Tin tức & Sự kiện)                                     */
/* -------------------------------------------------------------------------- */
.blog-posts {
  position: relative;
  overflow: hidden;
}

.blog-posts .container {
  position: relative;
  z-index: 1;
}

.blog-posts__bg-label {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  top: -2.25rem;
  display: block;
  text-align: center;
  font-size: clamp(3.25rem, 9vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.06);
}

.blog-posts__title {
  text-align: center;
  margin: 0 auto var(--layout-stack-tight);
  max-width: 50rem;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
}

.blog-posts__desc {
  text-align: center;
  margin: 0 auto var(--layout-stack-loose);
  max-width: 52rem;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.7;
}

.blog-posts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--layout-grid-gap);
  grid-auto-flow: dense;
}

.blog-posts__right-stack,
.blog-posts__bottom-grid {
  display: flex;
  flex-direction: column;
  gap: var(--layout-grid-gap);
}

.blog-posts__card {
  min-height: 190px;
}

@media (min-width: 1024px) {
  .blog-posts__grid {
    grid-template-columns: 1.1fr 0.9fr;
    /* Chỉ 1 hàng để cột trái không bị thấp hơn cột phải tạo khoảng trống */
    grid-template-rows: 1fr;
    align-items: stretch;
  }

  /* Card to nhất bên trái */
  .blog-posts__card--primary {
    grid-column: 1;
    grid-row: 1;
    min-height: 620px;
    height: 100%;
  }

  /* 4 bài bên phải xếp dọc */
  .blog-posts__right-stack {
    grid-column: 2;
    grid-row: 1;
    min-height: 620px;
    height: 100%;
  }

  .blog-posts__right-stack .blog-posts__card {
    flex: 1 1 auto;
    min-height: 150px;
    height: 100%;
  }

  /* Chặn trường hợp heading dài bị cắt do chiều cao cột phải bị giới hạn */
  .blog-posts__right-stack .blog-posts__heading {
    font-size: 1.05rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Các bài còn lại nằm dưới */
  .blog-posts__bottom-grid {
    grid-column: 1 / span 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--layout-grid-gap);
  }

  .blog-posts__bottom-grid .blog-posts__card {
    min-height: 170px;
  }
}

.blog-posts__card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(226, 232, 240, 0.12);
  box-shadow: var(--shadow-soft);
  background-size: cover;
  background-position: center;
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-posts__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.28) 45%,
    transparent 100%
  );
  opacity: 1;
}

.blog-posts__card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 232, 240, 0.22);
  box-shadow: var(--shadow-card);
}

.blog-posts__card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35), var(--shadow-card);
}

.blog-posts__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--layout-stack-tight);
  padding: var(--layout-stack-loose);
}

.blog-posts__category {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.blog-posts__heading {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: rgba(243, 244, 246, 0.92);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.blog-posts__card--primary .blog-posts__heading {
  font-size: 1.95rem;
}

.blog-posts__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--layout-stack-tight);
  color: rgba(226, 232, 240, 0.92);
}

.blog-posts__date {
  font-size: var(--text-small);
  color: rgba(226, 232, 240, 0.92);
  white-space: nowrap;
}

.blog-posts__card:hover .blog-posts__heading,
.blog-posts__card:hover .blog-posts__date {
  color: rgba(203, 213, 225, 1);
}

.blog-posts__card:hover .blog-posts__category {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

.blog-posts__arrow {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.blog-posts__arrow svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.blog-posts__card:hover .blog-posts__arrow {
  transform: translateX(6px);
  background: rgba(15, 23, 42, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .blog-posts__card,
  .blog-posts__arrow {
    transition: none;
  }
}
