/* Header + hero redesign (loaded after legacy style.css). Dark text only on yellow/white. */
:root {
  --hdr-yellow: #fcc20e;
  --hdr-yellow-deep: #f7b200;
  --hdr-dark: #1a1a18;
  --hdr-navy: #1c1b5a;
  --hdr-gold: #c99a1b;
  --hdr-cream: #fff3c9;
  --hdr-line: #d3d3d3;
  --hdr-road: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 220' fill='none'%3E%3Cpath d='M0 200C150 190 260 120 330 70S520 0 600 10' stroke='%23e6e6e6' stroke-width='46' stroke-linecap='round'/%3E%3Cpath d='M0 200C150 190 260 120 330 70S520 0 600 10' stroke='%23ffffff' stroke-width='2' stroke-dasharray='14 12'/%3E%3C/svg%3E");
  --hero-road: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300' fill='none'%3E%3Cpath d='M-20 280C140 250 300 170 420 90S560 10 640 0' stroke='%23ffffff' stroke-opacity='.35' stroke-width='3'/%3E%3Cpath d='M-20 310C140 280 310 200 440 120S580 40 660 30' stroke='%23ffffff' stroke-opacity='.25' stroke-width='3'/%3E%3Cpath d='M-20 250C140 220 290 140 400 60S540-20 620-30' stroke='%23ffffff' stroke-opacity='.25' stroke-width='3' stroke-dasharray='16 14'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  box-shadow: 0 6px 18px rgba(26, 26, 24, 0.08);
  isolation: isolate;
}

.site-header::before {
  content: "";
  display: block;
  height: 14px;
  background: var(--hdr-dark);
  border-bottom: 6px solid var(--hdr-yellow);
  box-sizing: content-box;
}

.header-inner {
  max-width: 1600px;
  min-height: 112px;
  padding: 10px clamp(16px, 2.4vw, 40px);
  gap: clamp(10px, 1.2vw, 20px);
}

.header-brand {
  gap: 0;
  align-items: center;
  position: relative;
  padding-right: clamp(14px, 1.8vw, 28px);
}

.header-brand::after,
.header-logo::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 72px;
  transform: translateY(-50%);
  background: var(--hdr-line);
}

.site-header { --junior-w: clamp(60px, 6vw, 92px); }

.header-logo,
.header-junior {
  flex: 0 0 auto;
  max-width: none;
  width: var(--junior-w);
  padding: 0;
}

/* Main logo (1554x1305) is wider than Junior (1360x1424) per unit height;
   scale its width so both render at the same visual height. */
.header-logo {
  width: calc(var(--junior-w) * 1.247);
  position: relative;
  margin-right: clamp(14px, 1.8vw, 28px);
}

.header-logo::after {
  right: calc(clamp(14px, 1.8vw, 28px) / -2);
  height: 80px;
}

.header-logo img,
.header-junior img {
  width: 100%;
}

.header-right {
  gap: clamp(8px, 1vw, 18px);
  min-width: 0;
}

.header-nav {
  padding-top: 0;
}

.nav-list {
  gap: 0;
}

.nav-list > li > a {
  padding: 14px clamp(7px, 0.9vw, 16px);
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 500;
  color: var(--hdr-dark);
  letter-spacing: 0.01em;
}

.nav-list > li > a:hover {
  color: var(--hdr-navy);
}

/* Current page (and its dropdown parent) is orange */
.nav-list > li > a.active,
.nav-list > li.active-parent > a,
.nav-list > li > a.active:hover,
.nav-list > li.active-parent > a:hover,
.nav-list .sub-menu li > a.active,
.nav-list .sub-menu li > a.active:hover {
  color: #ffa500;
}

.nav-dropdown-icon {
  width: 10px;
  height: 10px;
  margin-top: 3px;
}

.sub-menu {
  top: calc(100% - 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 250px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ececec;
  border-top: 3px solid var(--hdr-yellow);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(26, 26, 24, 0.14);
}

.sub-menu a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--hdr-dark);
  font-size: 14px;
}

.sub-menu a:hover {
  background: var(--hdr-cream);
  color: var(--hdr-dark);
}

/* CTA buttons */
.header-cta {
  gap: clamp(8px, 0.8vw, 12px);
}

.site-header .header-cta .header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-height: 46px;
  padding: 8px 14px 8px 12px;
  border: 1.5px solid var(--hdr-gold);
  border-radius: 10px;
  border-color: #f0b400;
  background: linear-gradient(180deg, #ffd23f 0%, var(--hdr-yellow-deep) 100%);
  color: var(--hdr-dark);
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 500;
  text-transform: none;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(247, 178, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-header .header-cta .header-cta-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(247, 178, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cta-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: var(--hdr-dark);
}

.menu-toggle {
  border-radius: 10px;
  border: 1.5px solid var(--hdr-gold);
  background: var(--hdr-cream);
  padding: 8px;
  line-height: 0;
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 clamp(10px, 1.6vw, 30px) clamp(10px, 1.6vw, 30px);
  border-radius: clamp(24px, 3vw, 50px);
  padding: clamp(12px, 1.6vw, 24px) clamp(16px, 5vw, 80px) clamp(28px, 4vw, 56px);
  background:
    radial-gradient(circle, rgba(26, 26, 24, 0.16) 1.4px, transparent 1.6px) 0 120px / 16px 16px no-repeat,
    linear-gradient(180deg, #fdc61a 0%, var(--hdr-yellow) 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

/* road swoosh, bottom-left */
.hero-section::after {
  left: 0;
  bottom: 0;
  width: min(45%, 620px);
  aspect-ratio: 2 / 1;
  background: var(--hero-road) left bottom / contain no-repeat;
}

.hero-card {
  position: relative;
  max-width: 1500px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

/* stripes, right of video */
.hero-card::after {
  content: "";
  position: absolute;
  top: 38%;
  right: calc(clamp(16px, 5vw, 80px) * -1);
  width: clamp(40px, 5vw, 90px);
  height: clamp(36px, 4vw, 70px);
  background: repeating-linear-gradient(120deg, rgba(26, 26, 24, 0.2) 0 14px, transparent 14px 28px);
  pointer-events: none;
  z-index: -1;
}

.hero-title-wrap {
  padding: 0 0 clamp(8px, 1vw, 14px);
}

.hero-title {
  position: relative;
  padding-bottom: 0;
  color: var(--hdr-dark);
  font-size: clamp(1.2rem, 2.3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  letter-spacing: -0.005em;
}

.hero-title::after { content: none; }

.hero-video-wrap {
  margin: 0;
  border: 3px solid #fff;
  border-radius: clamp(20px, 3vw, 44px);
  background: #fff;
  box-shadow: 0 18px 40px rgba(26, 26, 24, 0.22);
}

.hero-video-wrap video {
  border-radius: clamp(16px, 2.6vw, 40px);
}

.video-control-btn {
  bottom: clamp(10px, 1.6vw, 20px);
  display: grid;
  place-items: center;
  width: clamp(40px, 4.4vw, 64px);
  height: clamp(40px, 4.4vw, 64px);
  padding: 0;
  border-radius: 14px;
  background: rgba(38, 38, 36, 0.88);
  font-size: clamp(16px, 1.8vw, 26px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.video-control-btn:hover {
  background: var(--hdr-dark);
  transform: translateY(-2px);
}

#soundToggleBtn { right: clamp(10px, 1.6vw, 20px); }
#playPauseBtn { right: calc(clamp(10px, 1.6vw, 20px) + clamp(40px, 4.4vw, 64px) + 12px); }

.hero-cta-bar {
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(26, 26, 24, 0.14);
  /* hug the buttons and centre them with a modest gap instead of two stretched columns */
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: center;
  column-gap: clamp(20px, 4vw, 64px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 0;
    padding-block: 10px 14px;
    row-gap: 12px;
  }

  .header-brand { flex: 1 1 auto; }
  .header-brand::after { display: none; }

  .header-right { display: contents; }

  .header-nav {
    order: 2;
    flex: 0 0 auto;
    position: static;
  }

  .menu-toggle { display: block; }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px clamp(16px, 4vw, 32px) 16px;
    background: #fff;
    border-top: 3px solid var(--hdr-yellow);
    box-shadow: 0 16px 28px rgba(26, 26, 24, 0.16);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }

  .nav-list > li { width: 100%; }

  .nav-list > li > a {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid #eee;
  }

  .sub-menu {
    position: static;
    transform: none;
    min-width: 0;
    margin: 4px 0 8px;
    box-shadow: none;
    border: 0;
    border-left: 3px solid var(--hdr-yellow);
    border-radius: 0;
    background: #fffaf0;
  }

  .nav-list > li:hover .sub-menu { display: none; }
  .nav-list > li .sub-menu.open { display: block; }

  .header-cta {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
  }

  .site-header .header-cta .header-cta-btn {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .site-header { --junior-w: clamp(54px, 15vw, 72px); }

  .header-logo::after { height: 56px; }

  .header-cta { gap: 8px; }

  .site-header .header-cta .header-cta-btn {
    min-height: 44px;
    gap: 6px;
    padding: 8px 10px;
    font-size: 12.5px;
    white-space: normal;
  }

  .cta-icon { width: 20px; height: 20px; }

  .hero-section::after { width: 70%; }
  .hero-card::after { display: none; }
  .hero-video-wrap { border-width: 2px; }
  .video-control-btn { border-radius: 10px; }
  #playPauseBtn { right: calc(clamp(10px, 1.6vw, 20px) + clamp(40px, 4.4vw, 64px) + 8px); }
}


@media (min-width: 1201px) and (max-width: 1400px) {
  .nav-list > li > a { padding-inline: 6px; font-size: 13px; }
  .site-header .header-cta .header-cta-btn { padding: 8px 10px 8px 9px; font-size: 12px; gap: 6px; }
  .cta-icon { width: 18px; height: 18px; }
}

/* Never let the menu spill over the logos */
.header-brand { flex-shrink: 0; }
@media (min-width: 1201px) {
  .header-right { flex: 1 1 0; }
  .header-nav { flex: 1 1 0; min-width: 0; }
  .nav-list { flex-wrap: nowrap; }
  .nav-list > li > a { padding-inline: clamp(14px, 1.2vw, 24px); }
}
@media (min-width: 1201px) and (max-width: 1400px) {
  .nav-list > li > a { padding-inline: 9px; font-size: 13px; }
}

/* ---------- Global font: Open Sans (overrides legacy Poppins hard-codes) ---------- */
:root {
  --font: "Open Sans", sans-serif;
  --main-font: "Open Sans", sans-serif;
}
body,
button,
input,
select,
textarea,
ul.ul-style1,
.qodef-page-title .qodef-m-content,
.qodef-section-title .qodef-m-subtitle {
  font-family: "Open Sans", sans-serif !important;
}

/* Join The Mission: same look as Know More */
.hero-cta-bar .btn-lg.join-btn {
  background: var(--primary);
  color: var(--dark);
  border-color: var(--primary);
}

.hero-cta-bar .btn-lg.join-btn:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

/* Value section: align heading with the map's top, bolder accordion +/- icons */
@media (min-width: 1025px) {
  .value-content { padding-top: 50px; }
}

/* Smooth, height-agnostic expand/collapse in place; no scroll anchoring jumps */
.accordion { overflow-anchor: none; }

.accordion .accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  max-height: none;
  padding: 0;
  overflow: visible;
  transition: grid-template-rows 0.35s ease;
}

.accordion .accordion-content.open {
  grid-template-rows: 1fr;
  max-height: none;
  padding: 0;
}

.accordion .accordion-content-clip {
  min-height: 0;
  overflow: hidden;
}

.accordion .accordion-content-inner {
  padding-bottom: 30px;
}

.accordion-title .icon {
  flex: 0 0 auto;
  width: 32px;
  color: var(--hdr-dark);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

/* Gap between the Integrated Strengths banner and the footer = gap above it
   (join-video margin-bottom 40px + banner padding-top 30px; 40px + 20px on phones). */
.home-banner-section {
  padding-bottom: 70px;
}

@media (max-width: 767px) {
  .home-banner-section {
    padding-top: 20px;
    padding-bottom: 60px;
  }
}

/* Floating pledge badge: yellow label text (badge, icon and animation unchanged) */
.pledge-float span {
  color: var(--primary);
}

/* =====================================================================
   Home page: tablet / mobile refinements (desktop > 1024px untouched)
   ===================================================================== */
@media (max-width: 1024px) {
  /* Value section: stack content then map */
  .value-section {
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
  }

  .value-content,
  .value-map {
    flex: none;
    width: 100%;
    padding: 0;
  }

  .value-map {
    margin-top: 0;
    max-width: 460px;
    margin-inline: auto;
  }

  /* Hero buttons: stack, never clip */
  .hero-cta-bar {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 520px;
    margin-top: 24px;
    padding: 18px 20px;
  }

  .hero-cta-bar .btn-lg {
    width: 100%;
    max-width: 360px;
    padding: 14px 24px;
    font-size: clamp(16px, 4.2vw, 22px);
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .home-bheem-section.box-container,
  .home-banner-section.box-container {
    padding-inline: 16px;
  }

  /* Compact sticky header so it doesn't eat the screen */
  .site-header::before {
    height: 8px;
    border-bottom-width: 4px;
  }

  .header-inner {
    padding-block: 6px 10px;
    row-gap: 8px;
  }

  .site-header .header-cta .header-cta-btn {
    min-height: 40px;
  }

  .menu-toggle svg {
    width: 22px;
    height: 22px;
  }

  /* Pledge badge: smaller so it covers less content */
  .pledge-float {
    width: 68px;
    right: 6px;
    padding: 4px 4px 8px;
    border-radius: 12px;
  }

  .pledge-float img {
    width: 22px;
    margin-bottom: 3px;
  }

  .pledge-float span {
    font-size: 10px;
    line-height: 14px;
  }

  .accordion-title {
    gap: 12px;
    padding: 16px 0;
  }

  .accordion-title .icon {
    font-size: 24px;
    width: 28px;
  }
}
