/* ==========================================================================
   Jordan's Crossing - Design System & Stylesheet
   Faithfully crafted from Adobe XD design specs & assets
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Nunito:wght@400;600;700;800;900&display=swap');

/* --- Design Tokens & Variables --- */
:root {
  /* Brand Color Swatches (Exact XD Extracted Values) */
  --color-gold: #F4C251;
  --color-gold-hover: #E5B23D;
  --color-navy: #1C4364;
  --color-navy-light: #2A5A82;
  --color-navy-dark: #1C4364;
  --color-navy-deep: #071627;
  --color-navy-card: #132740;
  --color-sky: #51AFCC;
  --color-sky-light: #6FD9F8;
  --color-cream: #ECE8DD;
  --color-cream-light: #F7F5F0;
  --color-white: #FFFFFF;
  --color-text-muted: #AABEC7;
  --color-text-dark: #1D3551;
  --color-gray-border: #D1D5DB;

  /* Typography */
  --font-display: 'Bree Serif', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Layout */
  --container-max-width: 1280px;
  --section-padding-y: 5rem;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
  --border-radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px rgba(244, 194, 81, 0.45);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-navy-dark);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- Section Dividers / Waves --- */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  position: relative;
  z-index: 2;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

@media (min-width: 768px) {
  .wave-divider svg {
    height: 90px;
  }
}

@media (min-width: 1200px) {
  .wave-divider svg {
    height: 120px;
  }
}

/* --- Top Navigation Header --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-cream);
  border-bottom: 1px solid rgba(28, 67, 100, 0.12);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: block;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 2.75rem;
}

@media (min-width: 900px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  padding: 0.35rem 0;
  position: relative;
}

.nav-link:hover {
  color: var(--color-navy-dark);
}

.nav-link.active {
  color: var(--color-navy);
  font-weight: 800;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-navy);
  border-radius: 2px;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Button Component (Component 4 from XD) */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gold);
  color: var(--color-navy);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.75rem 1.85rem;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 4px 14px rgba(244, 194, 81, 0.35);
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .header-container {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }
  .brand-logo img {
    height: 42px;
    width: auto;
  }
  .btn-gold {
    font-size: 0.92rem;
    padding: 0.55rem 1.15rem;
  }
  .header-cta-group {
    gap: 0.65rem;
  }
  .mobile-toggle {
    width: 28px;
    height: 20px;
  }
  .mobile-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }
}

.btn-gold:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.75rem 1.85rem;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 4px 12px rgba(28, 67, 100, 0.4);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.btn-navy:hover {
  background-color: var(--color-navy-light);
  transform: translateY(-2px);
}

.btn-hero {
  font-size: 1.25rem;
  padding: 1.2rem 2.6rem;
  border-radius: var(--border-radius-pill);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 18px rgba(244, 194, 81, 0.45);
}

@media (max-width: 1024px) {
  .btn-hero {
    font-size: 1.05rem;
    padding: 0.75rem 2rem;
  }
}

@media (max-width: 768px) {
  .btn-hero {
    font-size: 0.88rem;
    padding: 0.55rem 1.6rem;
  }
}

@media (max-width: 540px) {
  .btn-hero {
    font-size: 0.75rem;
    padding: 0.42rem 1.2rem;
    box-shadow: 0 2px 8px rgba(244, 194, 81, 0.35);
  }
}

@media (max-width: 380px) {
  .btn-hero {
    font-size: 0.65rem;
    padding: 0.32rem 0.95rem;
  }
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  cursor: pointer;
  z-index: 1001;
}

@media (min-width: 900px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-toggle.active span {
  background-color: var(--color-navy-dark);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(7, 22, 39, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer .nav-link {
  font-family: var(--font-sans);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-white);
  padding: 0.4rem 1rem;
  letter-spacing: 0.5px;
  position: relative;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.mobile-drawer .nav-link:hover {
  color: var(--color-gold);
  transform: translateY(-2px);
}

.mobile-drawer .nav-link.active {
  color: var(--color-gold);
  font-weight: 800;
}

.mobile-drawer .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 3px;
  background-color: var(--color-gold);
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  width: 100%;
  background-color: #FFFFFF;
  overflow: hidden;
  line-height: 0;
}

.hero-media-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-cta-wrapper {
  position: absolute;
  top: 41.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 92%;
  max-width: 1400px;
  pointer-events: none;
}

.hero-cta-wrapper > * {
  pointer-events: auto;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 2.1vw, 2.05rem);
  font-weight: 700;
  color: var(--color-navy);
  text-align: center;
  margin: clamp(0.35rem, 0.8vw, 0.85rem) 0 clamp(0.75rem, 1.8vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .hero-cta-wrapper {
    top: 40.5%;
  }

  .hero-tagline {
    font-size: clamp(0.6rem, 2.5vw, 0.72rem);
    white-space: normal;
    max-width: 320px;
    margin: 0.25rem 0 0.55rem;
    line-height: 1.2;
  }
}

/* --- Wave Audio Top & Bottom Transitions --- */
.wave-audio-top {
  background: #FFFFFF;
  line-height: 0;
  margin-top: -1px;
}

.wave-audio-top svg {
  display: block;
  width: 100%;
  height: 50px;
}

@media (min-width: 768px) {
  .wave-audio-top svg {
    height: 110px;
  }
}

@media (min-width: 1200px) {
  .wave-audio-top svg {
    height: 160px;
  }
}

@media (min-width: 1200px) {
  .wave-audio-top svg {
    height: 160px;
  }
}

.wave-audio-bottom {
  background-color: var(--color-sky);
  line-height: 0;
  margin-bottom: -1px;
}

.wave-audio-bottom svg {
  display: block;
  width: 100%;
  height: 90px;
}

@media (min-width: 768px) {
  .wave-audio-bottom svg {
    height: 140px;
  }
}

@media (min-width: 1200px) {
  .wave-audio-bottom svg {
    height: 190px;
  }
}

/* --- Audio Adventure Section --- */
.section-audio-adventure {
  position: relative;
  background-color: var(--color-sky);
  color: var(--color-white);
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
  z-index: 3;
}

.audio-adventure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .audio-adventure-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(460px, 500px);
    gap: 3.5rem;
  }
}

.audio-adventure-content .section-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .audio-adventure-content .section-title {
    font-size: 3.75rem;
  }
}

.adventure-subtitle {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.35;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .adventure-subtitle {
    font-size: 1.65rem;
    margin-bottom: 1.75rem;
  }
}

.audio-adventure-content .section-text {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--color-white);
  max-width: 620px;
  margin-bottom: 1.75rem;
}

.audio-adventure-content .section-text strong {
  font-weight: 800;
}

.adventure-conversations-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.15rem;
  line-height: 1.4;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .adventure-conversations-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 580px) {
  .adventure-conversations-title {
    white-space: normal;
    font-size: 1.1rem;
  }
}

/* Gold Pill Badge - Single Line matching Image 2 */
.keywords-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gold);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.6rem 1.6rem;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  margin-bottom: 1.75rem;
  line-height: 1.3;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .keywords-pill {
    font-size: 1.08rem;
    padding: 0.65rem 1.75rem;
  }
}

@media (min-width: 1200px) {
  .keywords-pill {
    font-size: 1.12rem;
    padding: 0.7rem 1.9rem;
  }
}

@media (max-width: 540px) {
  .keywords-pill {
    font-size: clamp(0.72rem, 2.8vw, 0.95rem);
    padding: 0.5rem 1rem;
  }
}

.lesson-text {
  margin-bottom: 0;
}

/* Audio Adventure Cards (Staggered & Tilted Stack Matching XD) */
.adventure-cards-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  position: relative;
  padding: 2rem 0;
}

.adventure-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), z-index var(--transition-fast);
  border: 5px solid var(--color-gold);
  background-color: var(--color-navy-card);
}

.adventure-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .adventure-card img {
    height: 290px;
  }
}

@media (max-width: 1023px) {
  .card-rotate-1 { transform: rotate(-3deg); }
  .card-rotate-2 { transform: rotate(4deg); }
  .card-rotate-3 { transform: rotate(-2deg); }
}

@media (min-width: 1024px) {
  .adventure-cards-container {
    display: block;
    height: 720px;
    width: 100%;
  }

  .adventure-card {
    position: absolute;
    width: 480px;
  }

  .card-rotate-1 {
    top: 10px;
    left: 10px;
    transform: rotate(-4deg);
    z-index: 1;
  }

  .card-rotate-2 {
    top: 195px;
    left: 85px;
    transform: rotate(7deg);
    z-index: 2;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.4);
  }

  .card-rotate-3 {
    top: 415px;
    left: 25px;
    transform: rotate(-4deg);
    z-index: 3;
  }

  .adventure-card:hover {
    z-index: 10 !important;
    transform: translateY(-8px) scale(1.03) !important;
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.45);
  }
}

@media (min-width: 1200px) {
  .adventure-cards-container {
    height: 760px;
  }

  .adventure-card {
    width: 520px;
  }

  .card-rotate-1 {
    top: 15px;
    left: 20px;
  }

  .card-rotate-2 {
    top: 210px;
    left: 100px;
  }

  .card-rotate-3 {
    top: 440px;
    left: 35px;
  }
}

/* --- Meet Your New Favorites (Character Carousel) --- */
.section-characters {
  position: relative;
  background-color: var(--color-navy-dark);
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.characters-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem;
}

.characters-header .section-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .characters-header .section-title {
    font-size: 3.75rem;
  }
}

.characters-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--color-cream);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .characters-subtitle {
    font-size: 1.35rem;
  }
}

/* Carousel Outer Wrapper */
.carousel-wrapper {
  position: relative;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2.75rem 0.5rem 1.75rem;
  align-items: center;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.character-card {
  flex: 0 0 250px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--color-sky);
  border-radius: 28px;
  padding: 1.15rem 1.15rem 1.4rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease, z-index 0.1s;
}

@media (min-width: 640px) {
  .character-card {
    flex: 0 0 270px;
  }
}

@media (min-width: 1200px) {
  .character-card {
    flex: 1 1 0;
    max-width: 240px;
    padding: 1.1rem 1.1rem 1.35rem;
  }
}

.character-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background-color: transparent;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-normal);
}

.character-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.character-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-white);
  margin-top: 1rem;
  margin-bottom: 0.15rem;
  letter-spacing: 0.3px;
  line-height: 1.25;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

/* Hover and Selected / Active States for Character Cards */
.character-card:hover,
.character-card.active {
  transform: translateY(-22px) scale(1.14);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
  z-index: 10;
}

.character-card:hover .character-name,
.character-card.active .character-name {
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .character-card:hover,
  .character-card.active {
    transform: translateY(-10px) scale(1.08);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  }
}

/* Carousel Navigation Arrows Matching XD Component 2 */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--border-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 10;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--color-white);
  opacity: 0.9;
}

.carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.carousel-btn-prev {
  left: 0.25rem;
}

.carousel-btn-next {
  right: 0.25rem;
}

@media (min-width: 1360px) {
  .carousel-btn-prev {
    left: -20px;
  }
  .carousel-btn-next {
    right: -20px;
  }
}

/* --- Wave Behind The Story Dividers Matching XD Group 4 --- */
.wave-behind-top {
  background-color: var(--color-navy-dark);
  line-height: 0;
  margin-top: -1px;
  margin-bottom: -1px;
}

.wave-behind-top svg {
  display: block;
  width: 100%;
  height: 60px;
}

@media (min-width: 768px) {
  .wave-behind-top svg {
    height: 110px;
  }
}

@media (min-width: 1200px) {
  .wave-behind-top svg {
    height: 160px;
  }
}

.wave-behind-bottom {
  background-color: var(--color-navy-dark);
  line-height: 0;
  margin-top: -1px;
  margin-bottom: -1px;
}

.wave-behind-bottom svg {
  display: block;
  width: 100%;
  height: 60px;
}

@media (min-width: 768px) {
  .wave-behind-bottom svg {
    height: 110px;
  }
}

@media (min-width: 1200px) {
  .wave-behind-bottom svg {
    height: 160px;
  }
}

/* --- Behind the Story Section (Gold Background & Tilted Map Matching XD) --- */
.section-behind-story {
  position: relative;
  background-color: var(--color-gold);
  padding: 2.5rem 0 3.5rem;
  z-index: 3;
}

.behind-story-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .behind-story-title {
    font-size: 3.75rem;
    margin-bottom: 3.75rem;
  }
}

.behind-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .behind-story-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
  }
}

.behind-story-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  border: 5px solid var(--color-navy);
  background-color: var(--color-navy);
  transform: rotate(-2deg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.behind-story-media:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
}

.behind-story-img {
  width: 100%;
  height: auto;
  display: block;
}

.behind-story-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.behind-story-text {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-white);
  margin-bottom: 2.25rem;
  font-weight: 600;
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .behind-story-text {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
  }
}

.behind-story-text strong {
  font-weight: 900;
  color: var(--color-white);
}

.behind-story-content .btn-navy {
  background-color: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.9rem 2.6rem;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 8px 20px rgba(28, 67, 100, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.behind-story-content .btn-navy:hover {
  background-color: var(--color-navy-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(11, 29, 48, 0.4);
}

/* --- Join Our Newsletter Section --- */
.section-newsletter {
  position: relative;
  background-color: var(--color-navy-dark);
  padding: 5rem 0 6.5rem;
  z-index: 3;
}

.newsletter-title {
  text-align: center;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 3.5rem;
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .newsletter-title {
    font-size: 2.25rem;
    margin-bottom: 2rem;
  }
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .newsletter-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
  }
}

.newsletter-content {
  display: flex;
  justify-content: center;
}

.newsletter-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 540px;
}

.newsletter-subtitle {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.35;
  margin-bottom: 1.25rem;
  text-align: center;
}

@media (min-width: 768px) {
  .newsletter-subtitle {
    font-size: 2.25rem;
  }
}

.newsletter-text {
  text-align: center;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 1.25rem;
  line-height: 1.8;
  font-weight: 400;
  max-width: 520px;
}

.newsletter-text strong {
  font-weight: 700;
  color: var(--color-white);
}

.newsletter-card-wrapper {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-card {
  background-color: var(--color-white);
  border-radius: 36px;
  padding: 3.5rem 3rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 576px) {
  .newsletter-card {
    padding: 2.5rem 1.75rem;
    border-radius: 28px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-input {
  width: 100%;
  background-color: var(--color-white);
  border: 1.5px solid #CCD5DC;
  border-radius: var(--border-radius-pill);
  padding: 0.9rem 1.75rem;
  font-size: 1.15rem;
  color: var(--color-text-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input::placeholder {
  color: #B8C3CC;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.form-input:focus {
  border-color: var(--color-navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(28, 67, 100, 0.15);
}

.recaptcha-notice {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: #8C9BA5;
  line-height: 1.45;
  margin-top: 0.25rem;
}

.recaptcha-notice a {
  color: var(--color-navy);
  text-decoration: underline;
}

.recaptcha-notice a:hover {
  color: var(--color-navy-light);
}

.grecaptcha-badge {
  z-index: 999;
}

.newsletter-card .btn-subscribe {
  align-self: flex-start;
  padding: 0.75rem 2.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  background-color: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--border-radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(28, 67, 100, 0.25);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.newsletter-card .btn-subscribe:hover {
  background-color: #15334c;
  transform: translateY(-2px);
}

.newsletter-card .btn-subscribe:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-feedback {
  display: none;
  padding: 0.85rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.form-feedback.success {
  display: block;
  background-color: #E6F4EA;
  color: #137333;
  border: 1px solid #CEEAD6;
}

.form-feedback.error {
  display: block;
  background-color: #FCE8E6;
  color: #C5221F;
  border: 1px solid #FAD2CF;
}

.form-feedback.info {
  display: block;
  background-color: #E8F0FE;
  color: #1A73E8;
  border: 1px solid #D2E3FC;
}

/* --- Footer Section --- */
.site-footer {
  position: relative;
  background-color: var(--color-sky);
  color: var(--color-white);
  padding: 4.5rem 0 2.5rem;
  z-index: 2;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 992px) {
  .footer-top-grid {
    grid-template-columns: 260px 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.footer-logo {
  max-width: 210px;
  height: auto;
}

.footer-series-logo {
  max-width: 120px;
  height: auto;
  border-radius: 8px;
}

.footer-app-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.footer-app-text {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-white);
  white-space: nowrap;
}

.badge-3abn-plus {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: block;
}

.app-badges {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.app-badge-link {
  display: inline-block;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.app-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.app-badge-img {
  height: 38px;
  width: auto;
  display: block;
  border-radius: 6px;
}

/* Footer Navigation Columns */
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}

@media (min-width: 600px) {
  .footer-nav-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 1.5rem;
  }
}

@media (min-width: 992px) {
  .footer-nav-grid {
    grid-template-columns: 1.35fr 1.35fr 1.35fr 1fr 1fr;
    gap: 1.75rem;
  }
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.5;
  text-decoration: none;
  transition: opacity var(--transition-fast);
  display: inline-block;
}

.footer-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-store-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.5;
}

/* Footer Bottom / Legal */
.footer-bottom {
  padding-top: 2rem;
  text-align: center;
}

.legal-text {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.legal-text a {
  color: var(--color-white);
  text-decoration: underline;
  transition: opacity var(--transition-fast);
}

.legal-text a:hover {
  opacity: 0.8;
}
