/* Homepage — modern, clean, high-energy layout */
:root {
  --home-navy: #0d1f2d;
  --home-navy-mid: #1a3a5c;
  --home-cyan: #00aeff;
  --home-cyan-soft: #4dc3ff;
  --home-gold: #00aeff;
  --home-amber: #00aeff;
  --home-light: #f4f8fb;
  --home-surface: #ffffff;
  --home-text: #1a1a2e;
  --home-muted: #64748b;
  --home-radius: 16px;
  --home-radius-sm: 10px;
  --home-shadow: 0 8px 32px rgba(13, 31, 45, 0.08);
  --home-shadow-lg: 0 20px 50px rgba(13, 31, 45, 0.14);
  --home-ease: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.front-home-newdesign {
  font-family: 'DM Sans', var(--ilc-font), sans-serif;
  color: var(--home-text);
  background: var(--home-surface);
}

.front-home-newdesign .ilc-main {
  overflow-x: clip;
}

.front-home-newdesign .ilc-parallax-bg {
  display: none;
}

.front-home-newdesign h1,
.front-home-newdesign h2,
.front-home-newdesign h3,
.front-home-newdesign h4,
.front-home-newdesign h5 {
  font-weight: 700;
}

/* Content images only — never stretch header/footer logos */
.front-home-newdesign .ilc-main img {
  display: block;
  width: 100%;
  height: 100%;
 /* object-fit: cover;*/
}

.front-home-newdesign .site-header .site-logo,
.front-home-newdesign .site-footer .site-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 38px;
  height: auto;
  object-fit: contain;
}

.front-home-newdesign .site-header .navbar-brand {
  flex-shrink: 0;
  line-height: 1;
}

/* Header over hero — light glass, dark links/icons */
.front-home-newdesign .site-header:not(.is-scrolled) {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(203, 214, 222, 0.45);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.front-home-newdesign .site-header:not(.is-scrolled) .navbar-brand {
  color: #1a1a2e;
  filter: none;
}

.front-home-newdesign .site-header:not(.is-scrolled) .nav-link {
  color: #000 !important;
}

.front-home-newdesign .site-header:not(.is-scrolled) .nav-link:hover,
.front-home-newdesign .site-header:not(.is-scrolled) .nav-link.active {
  background: linear-gradient(135deg, rgba(0, 174, 255, 0.14), rgba(231, 186, 82, 0.1));
  color: #000 !important;
  box-shadow: 0 4px 14px rgba(0, 174, 255, 0.12);
}

.front-home-newdesign .site-header:not(.is-scrolled) .btn-icon-search,
.front-home-newdesign .site-header:not(.is-scrolled) .header-social a,
.front-home-newdesign .site-header:not(.is-scrolled) .lang-switcher .btn-lang-switcher {
  color: #000;
}

.front-home-newdesign .site-header:not(.is-scrolled) .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.2);
  filter: none;
}

/* ========== Hero ========== */
.hero-section {
  position: relative;
  margin-bottom: 0;
}

.hero-carousel {
  position: relative;
  width: 100%;
  background: var(--home-navy);
}

.hero-carousel .carousel-inner {
  background: var(--home-navy);
}

/* Fixed 21:9 frame — Ken Burns zoom on active slide */
.hero-carousel .carousel-item {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 220px;
  overflow: hidden;
  background: var(--home-navy);
}

@keyframes hero-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}

.hero-carousel .carousel-item .hero-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  transform: scale(1);
  will-change: transform;
}

/* Ken Burns zoom on the visible slide (runs on load for the first active slide) */
.hero-carousel .carousel-item.active .hero-carousel-img.is-kenburns {
  animation: hero-kenburns 6.5s ease-out forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(13, 31, 45, 0.72) 0%, rgba(13, 31, 45, 0.2) 48%, transparent 72%),
    linear-gradient(to top, rgba(13, 31, 45, 0.92) 0%, rgba(13, 31, 45, 0.35) 42%, transparent 68%);
  pointer-events: none;
}

.hero-carousel .carousel-item .hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5rem;
  z-index: 3;
  padding-top: 4rem;
  padding-bottom: 1.75rem;
  pointer-events: auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero-title {
  color: #fff;
  margin-bottom: 0.65rem;
  line-height: 1.06;
  max-width: 14ch;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.35rem;
  max-width: 36rem;
  line-height: 1.5;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.72rem 1.45rem;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  text-decoration: none;
  transition: transform var(--home-ease), box-shadow var(--home-ease), background var(--home-ease);
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--home-cyan) 0%, #0092d9 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 174, 255, 0.35);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-hero-primary:hover,
.btn-hero-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  color: #fff;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Hero controls */
.hero-indicators {
  margin-bottom: 1.5rem;
  gap: 0.35rem;
}

.hero-indicators [data-bs-target] {
  width: 2rem;
  height: 4px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transition: width var(--home-ease), background var(--home-ease);
}

.hero-indicators .active {
  width: 2.75rem;
  background: var(--home-gold);
}

.hero-control {
  width: 3rem;
  height: 3rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background var(--home-ease), transform var(--home-ease);
}

.hero-control:hover {
  background: rgba(0, 174, 255, 0.35);
}

.hero-control-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.35rem;
  color: #fff;
}

.hero-slide-counter {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 4;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(13, 31, 45, 0.45);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* ========== Quick nav ========== */
.quick-nav-wrapper {
  position: relative;
  z-index: 5;
  margin-top: -3.5rem;
  padding-bottom: 2.5rem;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-radius: var(--home-radius);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--home-shadow-lg);
}

.quick-nav-card {
  position: relative;
  height: 168px;
  border-radius: var(--home-radius-sm);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  transform: translateY(0);
  transition: transform var(--home-ease), box-shadow var(--home-ease);
}

.quick-nav-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 31, 45, 0.88) 0%, rgba(13, 31, 45, 0.15) 65%);
  z-index: 1;
}

.quick-nav-index {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.quick-nav-card img {
  transition: transform 0.65s ease;
}

.quick-nav-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 174, 255, 0.22);
}

.quick-nav-card:hover img {
  transform: scale(1.1);
}

.quick-nav-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.85rem 0.9rem 0.75rem;
}

.quick-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.35rem;
  border-radius: 8px;
  background: rgba(0, 174, 255, 0.35);
  font-size: 0.9rem;
}

.quick-nav-body h3 {
  margin: 0 0 0.15rem;
  font-size: 0.92rem;
  line-height: 1.2;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
}

.quick-nav-body p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

/* ========== Download cards (apps + map) ========== */
.section-downloads {
  padding: 0 0 1.25rem;
  background: var(--home-surface);
}

.home-download-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--home-radius-sm);
  background: var(--home-surface);
  border: 1px solid rgba(203, 214, 222, 0.65);
  box-shadow: var(--home-shadow);
  text-decoration: none;
  color: var(--home-text);
  transition: transform var(--home-ease), box-shadow var(--home-ease), border-color var(--home-ease);
}

.home-download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow-lg);
  border-color: rgba(0, 174, 255, 0.3);
  color: var(--home-text);
}

.home-download-card__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.35rem;
  background: rgba(0, 174, 255, 0.1);
  color: var(--home-cyan);
  transition: background var(--home-ease), color var(--home-ease), transform var(--home-ease);
}

.home-download-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.home-download-card__label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.home-download-card__desc {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--home-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-badge-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
}

.store-badge-icon--apple {
  color: #1a1a2e;
}

.home-download-card__arrow {
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--home-muted);
  opacity: 0.65;
  transition: transform var(--home-ease), opacity var(--home-ease), color var(--home-ease);
}

.home-download-card:hover .home-download-card__arrow {
  transform: translate(2px, -2px);
  opacity: 1;
  color: var(--home-amber);
}

.home-download-card:hover .home-download-card__icon {
  transform: scale(1.06);
}

.home-download-card--android .home-download-card__icon,
.home-download-card--ios .home-download-card__icon {
  background: #fff;
  border: 1px solid rgba(203, 214, 222, 0.55);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.home-download-card--map .home-download-card__icon {
  background: rgba(0, 174, 255, 0.12);
  color: var(--home-cyan);
}

.home-download-card--print .home-download-card__icon {
  background: rgba(26, 58, 92, 0.08);
  color: var(--home-navy-mid);
}

/* ========== Section headers ========== */
.home-section {
  padding: 3.25rem 0;
  position: relative;
}

.home-section-head {
  margin-bottom: 1.75rem;
}

.home-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--home-cyan);
  margin-bottom: 0.45rem;
}

.home-section-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.5rem);
  line-height: 1;
  color: var(--home-text);
  letter-spacing: -0.5px;
}

.home-section-desc {
  margin: 0.15rem 0 0;
  color: var(--home-text);
}

.home-section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--home-amber);
  text-decoration: none;
  white-space: nowrap;
  transition: gap var(--home-ease), color var(--home-ease);
}

.home-section-link:hover {
  color: var(--home-navy-mid);
  gap: 0.55rem;
}

.home-section-head--light .home-eyebrow {
  color: var(--home-gold);
}

.home-section-link--light {
  color: var(--home-gold);
}

.home-section-link--light:hover {
  color: #fff;
}

.home-section-desc--light {
  color: rgba(255, 255, 255, 0.72);
}

/* ========== Sections backgrounds ========== */
.section-stories {
  background: var(--home-surface);
}

.section-videos {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(0, 174, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 95% 100%, rgba(231, 186, 82, 0.12), transparent 50%),
    linear-gradient(165deg, var(--home-navy) 0%, var(--home-navy-mid) 55%, #0a3048 100%);
  color: #fff;
}

.section-videos .section-title {
  color: #fff;
}

.section-curated {
  background:
    linear-gradient(180deg, var(--home-light) 0%, #eef4f8 100%);
}

.section-curated::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(0, 174, 255, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

/* ========== Homepage section carousels ========== */
.home-carousel-wrap {
  position: relative;
  padding-inline: clamp(2.25rem, 4vw, 3rem);
}

.home-carousel .carousel-inner {
  overflow: hidden;
  border-radius: var(--home-radius-sm);
}

.home-carousel.carousel-fade .carousel-item {
  transition: opacity 0.25s cubic-bezier(0.12, 1, 0.26, 1);
}

.home-carousel-row {
  margin: 0;
}

.home-carousel-control.is-pressed {
  transform: translateY(-50%) scale(0.92);
}

.home-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(203, 214, 222, 0.75);
  border-radius: 50%;
  background: var(--home-surface);
  color: var(--home-navy-mid);
  box-shadow: var(--home-shadow);
  opacity: 1;
  transition: background var(--home-ease), color var(--home-ease), border-color var(--home-ease), transform var(--home-ease);
}

.home-carousel-control:hover {
  background: var(--home-cyan);
  border-color: var(--home-cyan);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.home-carousel-control--prev { left: 0; }
.home-carousel-control--next { right: 0; }

.home-carousel-control-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.25rem;
  line-height: 1;
}

/* Light controls on dark video section */
.home-carousel-wrap--videos .home-carousel-control {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(8px);
}

.home-carousel-wrap--videos .home-carousel-control:hover {
  background: var(--home-gold);
  border-color: var(--home-gold);
  color: var(--home-navy);
}

/* — Stories: fade + rise + scale — */
.home-carousel--stories .carousel-item .story-card {
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  transition:
    opacity 0.32s cubic-bezier(0.12, 1, 0.26, 1),
    transform 0.32s cubic-bezier(0.12, 1, 0.26, 1),
    box-shadow var(--home-ease),
    border-color var(--home-ease);
}

.home-carousel--stories .carousel-item.is-carousel-visible .story-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.home-carousel--stories .carousel-item.is-carousel-visible .home-carousel-row > .col:nth-child(1) .story-card { transition-delay: 0.05s; }
.home-carousel--stories .carousel-item.is-carousel-visible .home-carousel-row > .col:nth-child(2) .story-card { transition-delay: 0.1s; }
.home-carousel--stories .carousel-item.is-carousel-visible .home-carousel-row > .col:nth-child(3) .story-card { transition-delay: 0.15s; }
.home-carousel--stories .carousel-item.is-carousel-visible .home-carousel-row > .col:nth-child(4) .story-card { transition-delay: 0.2s; }

/* — Videos: horizontal slide + zoom-in — */
.home-carousel--videos.carousel .carousel-item {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-carousel--videos .carousel-item .video-card {
  opacity: 0;
  transform: scale(0.82);
  transition:
    opacity 0.38s cubic-bezier(0.34, 1.2, 0.64, 1),
    transform 0.38s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow var(--home-ease),
    border-color var(--home-ease);
}

.home-carousel--videos .carousel-item.is-carousel-visible .video-card {
  opacity: 1;
  transform: scale(1);
}

.home-carousel--videos .carousel-item.is-carousel-visible .home-carousel-row > .col:nth-child(1) .video-card { transition-delay: 0.06s; }
.home-carousel--videos .carousel-item.is-carousel-visible .home-carousel-row > .col:nth-child(2) .video-card { transition-delay: 0.12s; }
.home-carousel--videos .carousel-item.is-carousel-visible .home-carousel-row > .col:nth-child(3) .video-card { transition-delay: 0.18s; }
.home-carousel--videos .carousel-item.is-carousel-visible .home-carousel-row > .col:nth-child(4) .video-card { transition-delay: 0.24s; }

/* — Curated: fade + blur slide from left — */
.home-carousel--curated.carousel-fade .carousel-item {
  transition: opacity 0.32s ease-out;
}

.home-carousel--curated .carousel-item .story-card {
  opacity: 0;
  transform: translateX(-28px);
  filter: blur(6px);
  transition:
    opacity 0.4s ease-out,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s ease-out,
    box-shadow var(--home-ease),
    border-color var(--home-ease);
}

.home-carousel--curated .carousel-item.is-carousel-visible .story-card {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.home-carousel--curated .carousel-item.is-carousel-visible .home-carousel-row > .col:nth-child(1) .story-card { transition-delay: 0.05s; }
.home-carousel--curated .carousel-item.is-carousel-visible .home-carousel-row > .col:nth-child(2) .story-card { transition-delay: 0.1s; }
.home-carousel--curated .carousel-item.is-carousel-visible .home-carousel-row > .col:nth-child(3) .story-card { transition-delay: 0.15s; }
.home-carousel--curated .carousel-item.is-carousel-visible .home-carousel-row > .col:nth-child(4) .story-card { transition-delay: 0.2s; }

/* — Shopping: fade + slide from right with tilt — */
.home-carousel--shopping.carousel-fade .carousel-item {
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-carousel--shopping .carousel-item .story-card {
  opacity: 0;
  transform: translateX(32px) rotate(2deg);
  transition:
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow var(--home-ease),
    border-color var(--home-ease);
}

.home-carousel--shopping .carousel-item.is-carousel-visible .story-card {
  opacity: 1;
  transform: translateX(0) rotate(0);
}

.home-carousel--shopping .carousel-item.is-carousel-visible .home-carousel-row > .col:nth-child(4) .story-card { transition-delay: 0.05s; }
.home-carousel--shopping .carousel-item.is-carousel-visible .home-carousel-row > .col:nth-child(3) .story-card { transition-delay: 0.1s; }
.home-carousel--shopping .carousel-item.is-carousel-visible .home-carousel-row > .col:nth-child(2) .story-card { transition-delay: 0.15s; }
.home-carousel--shopping .carousel-item.is-carousel-visible .home-carousel-row > .col:nth-child(1) .story-card { transition-delay: 0.2s; }

/* ========== Story cards ========== */
.story-card {
  border-radius: var(--home-radius);
  overflow: hidden;
  background: var(--home-surface);
  border: 1px solid rgba(203, 214, 222, 0.55);
  height: 100%;
  transition: transform var(--home-ease), box-shadow var(--home-ease), border-color var(--home-ease);
}

.story-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--home-shadow-lg);
  border-color: rgba(0, 174, 255, 0.25);
}

.story-card-img {
  position: relative;
  display: block;
  height: 190px;
  overflow: hidden;
}

.story-card-img img {
  transition: transform 0.6s ease;
}

.story-card:hover .story-card-img img {
  transform: scale(1.08);
}

.story-card-badge {
  position: absolute;
  left: 0.65rem;
  top: 0.65rem;
  z-index: 1;
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(13, 31, 45, 0.65);
  backdrop-filter: blur(6px);
  border-radius: 999px;
}

.story-card-body {
  padding: 1rem 1.05rem 1.1rem;
}

.story-card-body h4 {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.story-card-body h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.story-card-body h4 a:hover {
  color: var(--home-cyan);
}

.story-card-text {
  color: var(--home-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.story-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--home-muted);
}

/* ========== Video cards ========== */
.video-card {
  border-radius: var(--home-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
  transition: transform var(--home-ease), box-shadow var(--home-ease), border-color var(--home-ease);
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(0, 174, 255, 0.35);
}

.video-card-thumb {
  position: relative;
  display: block;
  height: 165px;
  overflow: hidden;
}

.video-card-thumb img {
  transition: transform 0.6s ease;
}

.video-card:hover .video-card-thumb img {
  transform: scale(1.08);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--home-navy);
  font-size: 1.65rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform var(--home-ease), background var(--home-ease);
}

.video-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--home-cyan);
  color: #fff;
}

.video-card-body {
  padding: 0.95rem 1rem 1.05rem;
}

.video-card-body h5 {
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  color: #fff;
}

.video-card-body h5 a {
  color: inherit;
  text-decoration: none;
}

.video-card-body h5 a:hover {
  color: var(--home-gold);
}

.video-meta {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
  margin: 0;
}

/* ========== Curated cards ========== */
.curated-card {
  border-radius: var(--home-radius);
  overflow: hidden;
  background: var(--home-surface);
  border: 1px solid rgba(203, 214, 222, 0.5);
  height: 100%;
  transition: transform var(--home-ease), box-shadow var(--home-ease);
}

.curated-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--home-shadow-lg);
}

.curated-card-media {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.curated-card-media img {
  transition: transform 0.6s ease;
}

.curated-card:hover .curated-card-media img {
  transform: scale(1.08);
}

.curated-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 31, 45, 0.45) 0%, transparent 55%);
  pointer-events: none;
}

.curated-card-body {
  padding: 1rem 1.05rem 1.15rem;
}

.curated-card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-cyan);
  margin-bottom: 0.35rem;
}

.curated-card-body h5 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.curated-card-body p {
  color: var(--home-muted);
  font-size: 0.82rem;
  line-height: 1.48;
  margin-bottom: 0.75rem;
}

.btn-curated {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, var(--home-navy-mid), var(--home-navy));
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  transition: transform var(--home-ease), box-shadow var(--home-ease);
}

.btn-curated:hover {
  color: #fff;
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(13, 31, 45, 0.25);
}

/* ========== App banner ========== */
.app-banner-section {
  padding: 0 0 3.25rem;
  background: var(--home-surface);
}

.app-banner-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--home-radius);
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  background: linear-gradient(125deg, #fff 0%, #f0f9ff 45%, #fff8eb 100%);
  border: 1px solid rgba(0, 174, 255, 0.38);
  box-shadow: var(--home-shadow);
}

.app-banner-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 80px;
  background: radial-gradient(circle, rgba(0, 174, 255, 0.2) 0%, #92dcff26 70%);
  pointer-events: none;
}

.app-banner-icon {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--home-cyan);
  background: rgba(0, 174, 255, 0.12);
  border-radius: 14px;
}

.app-banner-text {
  flex: 1;
  min-width: 200px;
}

.app-banner-text strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

/*.app-banner-text span {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--home-muted);
}*/

.qr-placeholder {
  width: 64px;
  height: 64px;
  border: 2px dashed rgba(0, 174, 255, 0.25);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  color: var(--home-muted);
  background: rgba(255, 255, 255, 0.6);
}

.app-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-app {
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--home-ease), background var(--home-ease), color var(--home-ease);
}

.btn-map {
  border: 2px solid var(--home-navy-mid);
  color: var(--home-navy-mid);
  background: transparent;
}

.btn-map:hover {
  color: #fff;
  background: var(--home-navy-mid);
  transform: translateY(-2px);
}

.btn-app-outline {
  border: 2px solid rgba(0, 174, 255, 0.35);
  color: var(--home-cyan);
  background: rgba(0, 174, 255, 0.08);
}

.btn-app-outline:hover {
  background: var(--home-cyan);
  color: #fff;
  transform: translateY(-2px);
}

/* Footer on homepage */
.front-home-newdesign .site-footer {
  background:
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(0, 174, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 5% 100%, rgba(231, 186, 82, 0.1), transparent 45%),
    var(--home-navy);
}

/* Card reveal animation */
.front-home-newdesign .quick-nav-card,
.front-home-newdesign .home-download-card,
.front-home-newdesign .story-card,
.front-home-newdesign .video-card,
.front-home-newdesign .curated-card,
.front-home-newdesign .app-banner-card {
  opacity: 0;
  transform: translateY(24px);
}

.front-home-newdesign .is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ========== Responsive ========== */
@media (max-width: 991.98px) {
  .quick-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    max-width: 16ch;
  }

  .home-section {
    padding: 2.75rem 0;
  }

  /* Mobile: no decorative homepage animations / effects */
  .hero-carousel .carousel-item .hero-carousel-img {
    transform: none !important;
    animation: none !important;
  }

  .home-carousel .carousel-item .story-card,
  .home-carousel .carousel-item .video-card,
  .home-carousel .carousel-item .curated-card {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .home-carousel.carousel-fade .carousel-item,
  .home-carousel--videos.carousel .carousel-item {
    transition: none !important;
  }

  .front-home-newdesign .quick-nav-card,
  .front-home-newdesign .home-download-card,
  .front-home-newdesign .story-card,
  .front-home-newdesign .video-card,
  .front-home-newdesign .curated-card,
  .front-home-newdesign .app-banner-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .story-card:hover,
  .video-card:hover,
  .curated-card:hover,
  .quick-nav-card:hover,
  .home-download-card:hover,
  .app-banner-card:hover {
    transform: none !important;
  }
}

@media (max-width: 767.98px) {
  .hero-carousel .carousel-item {
    min-height: 260px;
  }

  .hero-carousel .carousel-item .hero-content {
    bottom: 3rem;
    padding-bottom: 1.25rem;
  }

  .quick-nav-wrapper {
    margin-top: -2rem;
    padding-bottom: 2rem;
  }

  .quick-nav-grid {
    padding: 0.65rem;
    gap: 0.65rem;
  }

  .quick-nav-card {
    height: 140px;
  }

  .hero-slide-counter {
    display: none;
  }

  .hero-control {
    width: 2.5rem;
    height: 2.5rem;
  }

  .home-carousel-wrap {
    padding-inline: 2.5rem;
  }

  .home-carousel-control {
    width: 2.35rem;
    height: 2.35rem;
  }

  .story-card-img {
    height: 150px;
  }

  .hero-title,
  .hero-subtitle,
  .section-title {
    text-wrap: balance;
  }

  /* Download grid — 2 columns, compact labels */
  .home-download-card__desc {
    display: none;
  }

  .home-download-card {
    min-height: 0;
    padding: 0.65rem 0.75rem;
  }

  .home-download-card__label {
    font-size: 0.72rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-download-card__arrow {
    display: none;
  }

  /* Section headers — hide desc, icon button beside title */
  .home-section-desc {
    display: none;
  }

  .home-section-head__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
  }

  .section-title {
    flex: 1;
    min-width: 0;
    font-size: 1.25rem;
  }

  .home-section-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(0, 174, 255, 0.35);
    background: rgba(0, 174, 255, 0.1);
    color: var(--home-cyan);
    gap: 0;
    font-size: 1rem;
  }

  .home-section-link__text {
    display: none;
  }

  .home-section-link:hover {
    gap: 0;
    color: #fff;
    background: var(--home-cyan);
    border-color: var(--home-cyan);
  }

  .home-section-link--light {
    border-color: rgba(231, 186, 82, 0.45);
    background: rgba(231, 186, 82, 0.15);
    color: var(--home-gold);
  }

  .home-section-link--light:hover {
    color: var(--home-navy);
    background: var(--home-gold);
    border-color: var(--home-gold);
  }

  /* Hide app promo banner */
  .app-banner-section {
    display: none !important;
  }

  /* Article cards — match category listing on mobile */
  .front-home-newdesign .home-carousel .ilc-card-body {
    padding: 0.35rem;
  }

  .front-home-newdesign .home-carousel .ilc-card .ilc-badge-category,
  .front-home-newdesign .home-carousel .ilc-card-body > p.ilc-text-muted,
  .front-home-newdesign .home-carousel .ilc-card-body > .ilc-text-muted.small.d-flex {
    display: none !important;
  }

  .front-home-newdesign .home-carousel .ilc-card .ilc-heading-card {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .front-home-newdesign .home-carousel .ilc-card {
    border-radius: var(--home-radius-sm);
    box-shadow: none;
  }

  .front-home-newdesign .home-carousel .ilc-card:hover {
    transform: none;
    box-shadow: var(--home-shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel .carousel-item .hero-carousel-img {
    transform: none !important;
    animation: none !important;
  }

  .home-carousel .carousel-item .story-card,
  .home-carousel .carousel-item .video-card {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .home-carousel.carousel-fade .carousel-item,
  .home-carousel--videos.carousel .carousel-item {
    transition: none !important;
  }

  .story-card,
  .video-card,
  .curated-card,
  .quick-nav-card {
    transition: none;
  }

  .front-home-newdesign .quick-nav-card,
  .front-home-newdesign .home-download-card,
  .front-home-newdesign .story-card,
  .front-home-newdesign .video-card,
  .front-home-newdesign .curated-card,
  .front-home-newdesign .app-banner-card {
    opacity: 1;
    transform: none;
  }
}
