/* ============================================================
   GO SOLAR! KIDZ — Homepage Mobile Optimization
   Phase 20B
   Applies mainly to index.html / gsk-homepage.js.
   ============================================================ */

/* Prevent horizontal scrolling everywhere on mobile/tablet */
@media (max-width: 900px) {
  html,
  body,
  #root {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  #root * {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* ── Header ───────────────────────────────────────────── */
  .gsk-app-nav {
    display: none !important;
  }

  .gsk-app-burger {
    display: inline-flex !important;
  }

  #root header > div {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  #root header img[alt="Go Solar! Kidz"] {
    height: 48px !important;
  }

  #root header > div:first-child {
    gap: 12px !important;
  }

  #root header > div:first-child > div:first-child {
    gap: 10px !important;
  }

  #root header > div:first-child > div:last-child {
    gap: 12px !important;
  }

  /* ── General homepage spacing ─────────────────────────── */
  .gsk-home > section {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .gsk-home h1,
  .gsk-home h2,
  .gsk-home h3 {
    overflow-wrap: anywhere;
  }

  .gsk-home h2 {
    line-height: 1.08 !important;
  }

  .gsk-home p {
    overflow-wrap: anywhere;
  }

  /* Common desktop grids become stacked */
  .gsk-home [style*="1.1fr 1fr"],
  .gsk-home [style*="1.05fr 1fr"],
  .gsk-home [style*="1fr 1fr"],
  .gsk-home [style*="0.9fr 1.1fr"],
  .gsk-home [style*="1fr 1.6fr"],
  .gsk-home [style*="repeat(2, 1fr)"],
  .gsk-home [style*="repeat(4, 1fr)"],
  .gsk-home [style*="repeat(2, minmax(0px, 1fr))"],
  .gsk-home [style*="repeat(2, minmax(0, 1fr))"] {
    grid-template-columns: 1fr !important;
  }

  /* ========================================================
     1. HOMEPAGE HERO
     ======================================================== */

  .gsk-home > section:first-child {
    height: 680px !important;
    min-height: 680px !important;
    overflow: hidden !important;
  }

  .gsk-home > section:first-child > div[style*="opacity"] {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: center !important;
    padding: 28px 22px 0 !important;
    gap: 10px !important;
  }

  .gsk-home > section:first-child > div[style*="opacity"] > svg {
    width: 160px !important;
    height: 160px !important;
    top: -30px !important;
    right: -45px !important;
  }

  .gsk-home > section:first-child h1 {
    font-size: clamp(38px, 11vw, 56px) !important;
    line-height: 1.02 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 14px !important;
    max-width: 360px !important;
  }

  .gsk-home > section:first-child p {
    font-size: 17px !important;
    line-height: 1.55 !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 20px !important;
  }

  .gsk-home > section:first-child > div[style*="opacity"] > div:first-of-type {
    width: 100% !important;
    z-index: 3 !important;
  }

  .gsk-home > section:first-child > div[style*="opacity"] > div:last-of-type {
    height: 250px !important;
    width: 100% !important;
    margin-top: 6px !important;
  }

  .gsk-home > section:first-child img[src*="sonny"] {
    height: 280px !important;
    max-height: 280px !important;
    bottom: -8px !important;
  }

  .gsk-home > section:first-child img[src*="penny"] {
    height: 185px !important;
    max-height: 185px !important;
    bottom: 0 !important;
  }

  .gsk-home > section:first-child button:not([aria-label^="Slide"]) {
    min-width: 220px !important;
  }

  .gsk-home > section:first-child > div:last-child {
    bottom: 14px !important;
  }

  /* ========================================================
     2. LEAD LEARNING SECTION
     ======================================================== */

  .gsk-home > section:nth-of-type(2) > div {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child {
    height: 360px !important;
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child > div:nth-child(1) {
    width: 230px !important;
    height: 230px !important;
    right: 10px !important;
    top: 12px !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child > div:nth-child(2) {
    width: 72% !important;
    height: 170px !important;
    left: 0 !important;
    top: 24px !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child > div:nth-child(3) {
    width: 66% !important;
    height: 160px !important;
    right: 0 !important;
    top: 125px !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child > div:nth-child(4) {
    width: 62% !important;
    height: 145px !important;
    left: 22px !important;
    bottom: 0 !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child > div:nth-child(5) {
    display: none !important;
  }

  .gsk-home > section:nth-of-type(2) h2,
  .gsk-home > section:nth-of-type(2) p {
    text-align: left !important;
  }

  .gsk-home > section:nth-of-type(2) button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* ========================================================
     3. PROGRAM CARDS
     ======================================================== */

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] > div {
    border-radius: 18px !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] > div > div:first-child {
    height: 118px !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] img {
    height: 112px !important;
  }

  .gsk-home > section:nth-of-type(3) h3 {
    font-size: 24px !important;
  }

  .gsk-home > section:nth-of-type(3) li {
    font-size: 14px !important;
  }

  /* ========================================================
     4. BEST START IN LIFE SECTION
     Fixes image overlap shown in mobile screenshots.
     ======================================================== */

  .gsk-home > section:nth-of-type(4) {
    overflow: hidden !important;
  }

  .gsk-home > section:nth-of-type(4) > div {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .gsk-home > section:nth-of-type(4) > div > div:first-child {
    order: 1 !important;
  }

  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) {
    order: 2 !important;
    position: relative !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin-top: 8px !important;
  }

  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) > div {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
  }

  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) > div:nth-child(1),
  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) > div:nth-child(2) {
    aspect-ratio: 4 / 3 !important;
  }

  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) > div:nth-child(3) {
    justify-self: center !important;
    text-align: center !important;
    width: auto !important;
    padding: 10px 16px !important;
    font-size: 15px !important;
  }

  .gsk-home > section:nth-of-type(4) [style*="rgba(255,255,255,0.06)"] {
    padding: 20px !important;
  }

  .gsk-home > section:nth-of-type(4) li {
    grid-template-columns: 26px 1fr !important;
    gap: 12px !important;
  }

  /* ========================================================
     5. FIND A CLASS OR CAMP
     ======================================================== */

  .gsk-home > section:nth-of-type(5) {
    padding-top: 60px !important;
    padding-bottom: 64px !important;
  }

  .gsk-home > section:nth-of-type(5) > div > div {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .gsk-home > section:nth-of-type(5) h2 {
    max-width: 360px !important;
  }

  .gsk-home > section:nth-of-type(5) form {
    width: 100% !important;
    padding: 20px !important;
    border-radius: 18px !important;
  }

  .gsk-home > section:nth-of-type(5) form > div {
    grid-template-columns: 1fr !important;
    gap: 13px !important;
  }

  .gsk-home > section:nth-of-type(5) input,
  .gsk-home > section:nth-of-type(5) select {
    min-height: 52px !important;
    font-size: 15px !important;
  }

  .gsk-home > section:nth-of-type(5) button[type="submit"] {
    width: 100% !important;
    min-height: 56px !important;
    border-radius: 18px !important;
  }

  /* ========================================================
     6. UPCOMING CAMPS & CLASSES
     ======================================================== */

  .gsk-home > section:nth-of-type(6) > div[style*="repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] > div:first-child {
    min-height: 130px !important;
    border-right: 0 !important;
    border-bottom: 3px solid #1a1a1a !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] img {
    height: 115px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] > div:nth-child(2) {
    padding: 18px 20px 20px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] h3 {
    font-size: 25px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="justify-content: space-between"] {
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="justify-content: space-between"] button {
    min-width: 130px !important;
  }

  /* ========================================================
     7. SHOP SNEAK PEEK
     ======================================================== */

  .gsk-home a[href^="product.html"] {
    width: 100% !important;
  }

  .gsk-home a[href^="product.html"] > div:nth-child(2) {
    aspect-ratio: 16 / 9 !important;
    min-height: 165px !important;
    font-size: 42px !important;
  }

  .gsk-home a[href^="product.html"] > div:last-child {
    padding: 15px 18px !important;
  }

  .gsk-home a[href^="product.html"] > div:last-child > div:first-child {
    font-size: 18px !important;
  }

  .gsk-home a[href="shop.html"] {
    width: 100% !important;
    text-align: center !important;
  }

  /* ========================================================
     8. FAQ + REVIEWS
     ======================================================== */

  .gsk-home [style*="height: 480px"] {
    height: 300px !important;
  }

  .gsk-home [style*="padding: 32px 30px"] {
    padding: 26px 22px !important;
  }

  .gsk-home [style*="font-style: italic"] {
    font-size: 15px !important;
    line-height: 1.58 !important;
  }

  .gsk-home [style*="font-size: 44px"] {
    font-size: 34px !important;
  }

  /* Footer */
  #root footer {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  #root footer > div:first-child {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
  }

  /* Chat assistant button */
  #gskchat {
    right: 10px !important;
    bottom: 10px !important;
    transform: scale(0.78) !important;
    transform-origin: bottom right !important;
  }

  .gskc-panel {
    max-width: calc(100vw - 24px) !important;
  }
}

/* ============================================================
   Phone-specific cleanup
   ============================================================ */
@media (max-width: 600px) {
  .gsk-home > section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .gsk-home h1 {
    font-size: clamp(34px, 11vw, 48px) !important;
  }

  .gsk-home h2 {
    font-size: clamp(30px, 8.5vw, 42px) !important;
  }

  .gsk-home p {
    font-size: 16px !important;
    line-height: 1.62 !important;
  }

  /* Header top bar: keep email/social cleaner on phones */
  #root header > div:first-child {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
    font-size: 11px !important;
  }

  #root header > div:first-child > div:first-child > span:nth-child(n+2) {
    display: none !important;
  }

  #root header > div:first-child > div:last-child > span:first-child,
  #root header > div:first-child > div:last-child > span:nth-child(2) {
    display: none !important;
  }

  #root header > div:nth-child(2) {
    height: 72px !important;
  }

  #root header img[alt="Go Solar! Kidz"] {
    height: 44px !important;
  }

  .gsk-app-burger {
    width: 46px !important;
    height: 46px !important;
  }

  /* Hero tighter phone version */
  .gsk-home > section:first-child {
    height: 650px !important;
    min-height: 650px !important;
  }

  .gsk-home > section:first-child > div[style*="opacity"] {
    padding: 24px 18px 0 !important;
  }

  .gsk-home > section:first-child h1 {
    max-width: 330px !important;
    margin-bottom: 12px !important;
  }

  .gsk-home > section:first-child p {
    max-width: 345px !important;
    font-size: 16.5px !important;
    margin-bottom: 18px !important;
  }

  .gsk-home > section:first-child > div[style*="opacity"] > div:last-of-type {
    height: 230px !important;
  }

  .gsk-home > section:first-child img[src*="sonny"] {
    height: 255px !important;
    max-height: 255px !important;
  }

  .gsk-home > section:first-child img[src*="penny"] {
    height: 170px !important;
    max-height: 170px !important;
  }

  /* Lead collage */
  .gsk-home > section:nth-of-type(2) > div > div:first-child {
    height: 275px !important;
    max-width: 310px !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child > div:nth-child(1) {
    width: 190px !important;
    height: 190px !important;
    right: 4px !important;
    top: 8px !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child > div:nth-child(2) {
    width: 70% !important;
    height: 130px !important;
    top: 20px !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child > div:nth-child(3) {
    width: 64% !important;
    height: 125px !important;
    top: 102px !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child > div:nth-child(4) {
    width: 58% !important;
    height: 115px !important;
    left: 18px !important;
  }

  /* Program cards tighter */
  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] {
    gap: 18px !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] > div > div:first-child {
    height: 92px !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] img {
    height: 86px !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] > div > div:nth-child(2) {
    padding: 18px 20px 20px !important;
  }

  .gsk-home > section:nth-of-type(3) h3 {
    font-size: 22px !important;
    margin-bottom: 8px !important;
  }

  .gsk-home > section:nth-of-type(3) p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
  }

  .gsk-home > section:nth-of-type(3) li {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  /* Best Start in Life polish */
  .gsk-home > section:nth-of-type(4) {
    padding-left: 18px !important;
    padding-right: 18px !important;
    overflow-x: hidden !important;
  }

  .gsk-home > section:nth-of-type(4) h2 {
    font-size: clamp(28px, 8vw, 38px) !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .gsk-home > section:nth-of-type(4) p {
    max-width: 100% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .gsk-home > section:nth-of-type(4) > div {
    width: 100% !important;
    max-width: 100% !important;
  }

  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) {
    gap: 14px !important;
    width: 100% !important;
    max-width: 330px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) > div {
    width: calc(100% - 12px) !important;
    max-width: 318px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) > div:nth-child(1),
  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) > div:nth-child(2) {
    aspect-ratio: 4 / 3 !important;
  }

  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) > div:nth-child(3) {
    max-width: 230px !important;
  }

  /* Upcoming cards smaller */
  .gsk-home > section:nth-of-type(6) > div[style*="repeat(2, 1fr)"] {
    gap: 18px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] {
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] > div:first-child {
    min-height: 92px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] img {
    height: 78px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] > div:nth-child(2) {
    padding: 15px 17px 18px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] h3 {
    font-size: 21px !important;
    line-height: 1.12 !important;
    margin-bottom: 10px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] [style*="font-size: 13px"] {
    font-size: 12px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] button {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  /* Product cards: two-column mobile layout */
  .gsk-home > section:nth-of-type(8) > div > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .gsk-home a[href^="product.html"] {
    border-radius: 16px !important;
  }

  .gsk-home a[href^="product.html"] > div:nth-child(2) {
    min-height: 105px !important;
    aspect-ratio: 1 / 1 !important;
    font-size: 34px !important;
  }

  .gsk-home a[href^="product.html"] > div:first-child {
    font-size: 9px !important;
    padding: 2px 7px !important;
    top: 8px !important;
    left: 8px !important;
  }

  .gsk-home a[href^="product.html"] > div:last-child {
    padding: 11px 12px 13px !important;
  }

  .gsk-home a[href^="product.html"] > div:last-child > div:first-child {
    font-size: 13.5px !important;
    line-height: 1.25 !important;
  }

  .gsk-home a[href^="product.html"] > div:last-child > div:nth-child(2) {
    font-size: 15px !important;
  }

  /* Reviews smaller */
  .gsk-home > section:nth-of-type(10) > div[style*="repeat(2, 1fr)"] {
    gap: 18px !important;
  }

  .gsk-home > section:nth-of-type(10) [style*="padding: 32px 30px"] {
    padding: 22px 18px !important;
    border-radius: 17px !important;
  }

  .gsk-home > section:nth-of-type(10) [style*="font-style: italic"] {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 18px !important;
  }

  .gsk-home > section:nth-of-type(10) [style*="font-size: 18px"] {
    font-size: 16px !important;
  }

  .gsk-home > section:nth-of-type(10) [style*="width: 48px"] {
    width: 40px !important;
    height: 40px !important;
    font-size: 17px !important;
  }

  /* Footer one column on phones */
  #root footer > div:first-child {
    grid-template-columns: 1fr !important;
  }

  /* Hide Vibe launcher on phones to reduce clutter */
  #gsk-vibe-launch {
    display: none !important;
  }

  /* Chat assistant smaller on phones */
  #gskchat {
    right: 8px !important;
    bottom: 8px !important;
    transform: scale(0.68) !important;
  }
}

/* ============================================================
   Mobile drawer styles
   ============================================================ */

.gsk-app-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: #F0E136;
  border: 2px solid #1a1a1a;
  border-radius: 12px;
  box-shadow: 2px 2px 0 #1a1a1a;
  color: #21256B;
  cursor: pointer;
  padding: 0;
}

.gsk-app-burger svg {
  width: 22px;
  height: 22px;
}

.gsk-app-drawer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(20,22,55,0.5);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: flex-end;
}

.gsk-app-drawer__panel {
  width: min(86vw, 360px);
  height: 100%;
  overflow-y: auto;
  background: #21256B;
  padding: 22px 20px 40px;
  box-shadow: -8px 0 32px rgba(0,0,0,0.4);
  animation: gskDrawerIn 0.22s cubic-bezier(.4,0,.2,1);
}

@keyframes gskDrawerIn {
  from { transform: translateX(100%); }
  to { transform: none; }
}

.gsk-app-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.gsk-app-drawer__top img {
  height: 44px;
}

.gsk-app-drawer__close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.gsk-app-drawer__link {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.gsk-app-drawer__link:active {
  color: #F0E136;
}

.gsk-app-drawer__group {
  padding: 6px 0 4px;
}

.gsk-app-drawer__heading {
  font-family: 'Fredoka One', cursive;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #F0E136;
  padding: 14px 8px 6px;
}

.gsk-app-drawer__sub {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: rgba(255,255,255,0.82);
  padding: 9px 8px 9px 18px;
  text-decoration: none;
}

.gsk-app-drawer__sub:active {
  color: #F0E136;
}

.gsk-app-drawer__cta {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.gsk-app-drawer__cta a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 14px;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #1a1a1a;
}

.gsk-app-drawer__cta .login {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.gsk-app-drawer__cta .reg {
  background: #E5AC38;
  color: #1a1a1a;
  box-shadow: 2px 2px 0 #1a1a1a;
}

/* ============================================================
   PHASE 20B.3 — Homepage Mobile Final Polish
   Fixes lead collage spacing, shop two-column cards, and reviews.
   ============================================================ */

@media (max-width: 600px) {

  /* ── Lead Learning collage: smaller and no overlap with heading ── */
  .gsk-home > section:nth-of-type(2) {
    padding-top: 44px !important;
  }

  .gsk-home > section:nth-of-type(2) > div {
    gap: 18px !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child {
    height: 245px !important;
    max-width: 285px !important;
    margin: 0 auto 24px !important;
    overflow: visible !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child > div:nth-child(1) {
    width: 165px !important;
    height: 165px !important;
    right: 8px !important;
    top: 4px !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child > div:nth-child(2) {
    width: 68% !important;
    height: 112px !important;
    left: 0 !important;
    top: 16px !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child > div:nth-child(3) {
    width: 62% !important;
    height: 108px !important;
    right: 0 !important;
    top: 86px !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child > div:nth-child(4) {
    width: 58% !important;
    height: 104px !important;
    left: 14px !important;
    bottom: 0 !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:nth-child(2) {
    clear: both !important;
    position: relative !important;
    z-index: 4 !important;
  }

  .gsk-home > section:nth-of-type(2) h2 {
    font-size: clamp(29px, 8.2vw, 38px) !important;
    line-height: 1.08 !important;
    margin-top: 4px !important;
  }

  .gsk-home > section:nth-of-type(2) p {
    font-size: 15.5px !important;
    line-height: 1.55 !important;
  }

  /* ── Program cards: slightly more compact ── */
  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] > div {
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] > div > div:first-child {
    height: 82px !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] img {
    height: 78px !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] > div > div:nth-child(2) {
    padding: 16px 18px 18px !important;
  }

  /* ── Best Start section: prevent right-side clipping ── */
  .gsk-home > section:nth-of-type(4),
  .gsk-home > section:nth-of-type(4) * {
    max-width: 100% !important;
  }

  .gsk-home > section:nth-of-type(4) h2 {
    font-size: clamp(27px, 7.6vw, 36px) !important;
    line-height: 1.08 !important;
    padding-right: 4px !important;
  }

  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) {
    max-width: 300px !important;
  }

  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) > div {
    max-width: 288px !important;
  }

  /* ── Upcoming Camps: smaller cards ── */
  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] {
    max-width: 320px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] > div:first-child {
    min-height: 78px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] img {
    height: 68px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] h3 {
    font-size: 19px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] > div:nth-child(2) {
    padding: 14px 15px 16px !important;
  }

  /* ── Shop section: force two-column layout and shorter product cards ── */
  .gsk-home section:has(a[href^="product.html"]) > div > div:last-child,
  .gsk-home > section:nth-of-type(7) > div > div:last-child,
  .gsk-home > section:nth-of-type(8) > div > div:last-child {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .gsk-home section:has(a[href^="product.html"]) a[href^="product.html"] {
    width: 100% !important;
    border-radius: 14px !important;
  }

  .gsk-home section:has(a[href^="product.html"]) a[href^="product.html"] > div:nth-child(2),
  .gsk-home > section:nth-of-type(7) a[href^="product.html"] > div:nth-child(2),
  .gsk-home > section:nth-of-type(8) a[href^="product.html"] > div:nth-child(2) {
    height: 110px !important;
    min-height: 110px !important;
    aspect-ratio: auto !important;
    font-size: 28px !important;
  }

  .gsk-home section:has(a[href^="product.html"]) a[href^="product.html"] > div:first-child,
  .gsk-home > section:nth-of-type(7) a[href^="product.html"] > div:first-child,
  .gsk-home > section:nth-of-type(8) a[href^="product.html"] > div:first-child {
    font-size: 8px !important;
    padding: 2px 6px !important;
    top: 7px !important;
    left: 7px !important;
  }

  .gsk-home section:has(a[href^="product.html"]) a[href^="product.html"] > div:last-child,
  .gsk-home > section:nth-of-type(7) a[href^="product.html"] > div:last-child,
  .gsk-home > section:nth-of-type(8) a[href^="product.html"] > div:last-child {
    padding: 10px 10px 11px !important;
  }

  .gsk-home section:has(a[href^="product.html"]) a[href^="product.html"] > div:last-child > div:first-child,
  .gsk-home > section:nth-of-type(7) a[href^="product.html"] > div:last-child > div:first-child,
  .gsk-home > section:nth-of-type(8) a[href^="product.html"] > div:last-child > div:first-child {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  .gsk-home section:has(a[href^="product.html"]) a[href^="product.html"] > div:last-child > div:nth-child(2),
  .gsk-home > section:nth-of-type(7) a[href^="product.html"] > div:last-child > div:nth-child(2),
  .gsk-home > section:nth-of-type(8) a[href^="product.html"] > div:last-child > div:nth-child(2) {
    font-size: 13.5px !important;
  }

  /* ── Reviews: more compact cards ── */
  .gsk-home > section:nth-last-of-type(2) {
    padding-top: 44px !important;
    padding-bottom: 48px !important;
  }

  .gsk-home > section:nth-last-of-type(2) > div[style*="repeat(2, 1fr)"] {
    gap: 16px !important;
  }

  .gsk-home > section:nth-last-of-type(2) [style*="padding: 32px 30px"] {
    max-width: 330px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 20px 17px !important;
    border-radius: 16px !important;
  }

  .gsk-home > section:nth-last-of-type(2) [style*="font-style: italic"] {
    font-size: 13.5px !important;
    line-height: 1.48 !important;
    margin-bottom: 16px !important;
  }

  .gsk-home > section:nth-last-of-type(2) [style*="paddingTop: 18px"],
  .gsk-home > section:nth-last-of-type(2) [style*="padding-top: 18px"] {
    padding-top: 12px !important;
  }

  .gsk-home > section:nth-last-of-type(2) [style*="width: 48px"] {
    width: 38px !important;
    height: 38px !important;
    font-size: 16px !important;
  }
}

/* ============================================================
   PHASE 20B.4 — Homepage Mobile Card + FAQ Fix
   Program cards and Upcoming cards follow compact Shop-card style.
   FAQ section stacks properly on mobile.
   ============================================================ */

@media (max-width: 600px) {

  /* ========================================================
     A. Program cards: match compact two-column shop-card style
     ======================================================== */

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    max-width: 100% !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] > div {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 14px !important;
    box-shadow: 4px 4px 0 var(--program-shadow, #E5AC38) !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] > div > div:first-child {
    height: 110px !important;
    min-height: 110px !important;
    border-bottom: 3px solid #1a1a1a !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] img {
    height: 80px !important;
    max-height: 80px !important;
    transform: translateY(5px) !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] [style*="Program"] {
    font-size: 8px !important;
    padding: 2px 7px !important;
    top: 8px !important;
    left: 8px !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] > div > div:nth-child(2) {
    padding: 10px 10px 12px !important;
  }

  .gsk-home > section:nth-of-type(3) h3 {
    font-size: 14px !important;
    line-height: 1.18 !important;
    margin-bottom: 6px !important;
  }

  .gsk-home > section:nth-of-type(3) p {
    display: none !important;
  }

  .gsk-home > section:nth-of-type(3) ul {
    gap: 3px !important;
    margin-bottom: 8px !important;
  }

  .gsk-home > section:nth-of-type(3) li {
    font-size: 10.5px !important;
    line-height: 1.25 !important;
    padding-left: 12px !important;
  }

  .gsk-home > section:nth-of-type(3) li span {
    width: 5px !important;
    height: 5px !important;
    top: 5px !important;
  }

  .gsk-home > section:nth-of-type(3) li:nth-child(n+3) {
    display: none !important;
  }

  .gsk-home > section:nth-of-type(3) [style*="Learn More"] {
    font-size: 11px !important;
  }

  /* ========================================================
     B. Upcoming Camps: match compact two-column shop-card style
     ======================================================== */

  .gsk-home > section:nth-of-type(6) > div[style*="repeat(2, 1fr)"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    max-width: 100% !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] > div:first-child {
    min-height: 110px !important;
    height: 110px !important;
    border-right: 0 !important;
    border-bottom: 3px solid #1a1a1a !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] img {
    height: 82px !important;
    max-height: 82px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] > div:nth-child(2) {
    padding: 10px 10px 12px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] [style*="Summer Camp"],
  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] [style*="SUMMER CAMP"] {
    font-size: 8px !important;
    padding: 2px 7px !important;
    margin-bottom: 6px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] h3 {
    font-size: 14px !important;
    line-height: 1.18 !important;
    margin-bottom: 7px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] [style*="flex-direction: column"] {
    gap: 3px !important;
    margin-bottom: 8px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] [style*="font-size: 13px"] {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] [style*="flex-direction: column"] > div:nth-child(n+3) {
    display: none !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] [style*="View Details"] {
    font-size: 10.5px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] button {
    padding: 5px 9px !important;
    font-size: 10px !important;
    min-width: auto !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] [style*="justify-content: space-between"] {
    gap: 7px !important;
    align-items: center !important;
  }

  /* ========================================================
     C. FAQ section: stack cleanly on mobile
     The FAQ section is normally after Shop and before Testimonials.
     ======================================================== */

  .gsk-home > section:nth-of-type(8) {
    padding-top: 48px !important;
    padding-bottom: 52px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .gsk-home > section:nth-of-type(8) > div {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    max-width: 100% !important;
  }

  .gsk-home > section:nth-of-type(8) > div > div:first-child {
    height: 240px !important;
    max-width: 320px !important;
    width: 100% !important;
    margin: 0 auto !important;
    order: 1 !important;
  }

  .gsk-home > section:nth-of-type(8) > div > div:nth-child(2) {
    order: 2 !important;
    width: 100% !important;
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gsk-home > section:nth-of-type(8) h2 {
    font-size: 30px !important;
    line-height: 1.08 !important;
    text-align: center !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gsk-home > section:nth-of-type(8) [style*="Amazing experience"] {
    text-align: center !important;
  }

  .gsk-home > section:nth-of-type(8) [style*="display: flex"][style*="flex-direction: column"] {
    gap: 10px !important;
  }

  .gsk-home > section:nth-of-type(8) [style*="border-radius: 14px"] {
    width: 100% !important;
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gsk-home > section:nth-of-type(8) button {
    min-height: 54px !important;
  }

  .gsk-home > section:nth-of-type(8) button span:first-child {
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  .gsk-home > section:nth-of-type(8) [style*="padding: 0 20px 18px"] {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
  }

  .gsk-home > section:nth-of-type(8) button[style*="alignSelf"],
  .gsk-home > section:nth-of-type(8) button[style*="align-self"] {
    width: 100% !important;
    justify-content: center !important;
  }

  /* If the optional photo section is present, FAQ may become section 9.
     Keep this fallback safe and only target sections that contain FAQ buttons. */
  .gsk-home > section:nth-of-type(9):has(button[aria-label]),
  .gsk-home > section:nth-of-type(9):has(button span) {
    max-width: 100% !important;
  }
}

/* ============================================================
   PHASE 20B.5 — Homepage Mobile Card System Fix
   Standardizes homepage mobile cards/photos around the compact
   Shop-card size that works well on phones.
   ============================================================ */

@media (max-width: 600px) {

  /* ========================================================
     1. Lead Learning photo collage
     Fix overlap with "Part of the Family" text.
     ======================================================== */

  .gsk-home > section:nth-of-type(2) > div {
    gap: 16px !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child {
    height: 218px !important;
    max-width: 258px !important;
    margin: 0 auto 38px !important;
    overflow: hidden !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child > div:nth-child(1) {
    width: 150px !important;
    height: 150px !important;
    right: 8px !important;
    top: 2px !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child > div:nth-child(2) {
    width: 68% !important;
    height: 96px !important;
    left: 0 !important;
    top: 12px !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child > div:nth-child(3) {
    width: 62% !important;
    height: 96px !important;
    right: 0 !important;
    top: 76px !important;
  }

  .gsk-home > section:nth-of-type(2) > div > div:first-child > div:nth-child(4) {
    width: 58% !important;
    height: 92px !important;
    left: 13px !important;
    bottom: 0 !important;
  }

  .gsk-home > section:nth-of-type(2) h2 {
    font-size: clamp(28px, 7.8vw, 36px) !important;
    line-height: 1.08 !important;
  }

  .gsk-home > section:nth-of-type(2) p {
    font-size: 15px !important;
    line-height: 1.52 !important;
  }

  /* ========================================================
     2. Program cards
     Match compact two-column Shop-card sizing.
     ======================================================== */

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] > div {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] > div > div:first-child {
    height: 108px !important;
    min-height: 108px !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] img {
    height: 78px !important;
    max-height: 78px !important;
    transform: translateY(5px) !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] > div > div:nth-child(2) {
    padding: 10px 10px 12px !important;
  }

  .gsk-home > section:nth-of-type(3) h3 {
    font-size: 13.5px !important;
    line-height: 1.18 !important;
    margin-bottom: 6px !important;
  }

  .gsk-home > section:nth-of-type(3) p {
    display: none !important;
  }

  .gsk-home > section:nth-of-type(3) ul {
    margin-bottom: 8px !important;
    gap: 3px !important;
  }

  .gsk-home > section:nth-of-type(3) li {
    font-size: 10px !important;
    line-height: 1.25 !important;
    padding-left: 12px !important;
  }

  .gsk-home > section:nth-of-type(3) li:nth-child(n+3) {
    display: none !important;
  }

  .gsk-home > section:nth-of-type(3) [style*="Learn More"] {
    font-size: 10.5px !important;
  }

  /* ========================================================
     3. Best Start blue-section photos
     Make two photos compact like mobile cards.
     ======================================================== */

  .gsk-home > section:nth-of-type(4) {
    overflow-x: hidden !important;
  }

  .gsk-home > section:nth-of-type(4) h2 {
    font-size: clamp(27px, 7.5vw, 36px) !important;
    line-height: 1.08 !important;
    max-width: 100% !important;
  }

  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 340px !important;
    height: auto !important;
    margin: 18px auto 0 !important;
  }

  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) > div {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    transform: none !important;
    margin: 0 !important;
  }

  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) > div:nth-child(1),
  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) > div:nth-child(2) {
    aspect-ratio: 1 / 1 !important;
  }

  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) > div:nth-child(1) > div,
  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) > div:nth-child(2) > div {
    height: 100% !important;
    border-radius: 14px !important;
  }

  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .gsk-home > section:nth-of-type(4) > div > div:nth-child(2) > div:nth-child(3) {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    width: auto !important;
    max-width: 220px !important;
    padding: 9px 15px !important;
    font-size: 14px !important;
    text-align: center !important;
  }

  /* ========================================================
     4. Upcoming Camps & Classes
     Match compact two-column Shop-card sizing.
     ======================================================== */

  .gsk-home > section:nth-of-type(6) > div[style*="repeat(2, 1fr)"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] > div:first-child {
    height: 108px !important;
    min-height: 108px !important;
    border-right: 0 !important;
    border-bottom: 3px solid #1a1a1a !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] img {
    height: 78px !important;
    max-height: 78px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] > div:nth-child(2) {
    padding: 10px 10px 12px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] h3 {
    font-size: 13.5px !important;
    line-height: 1.18 !important;
    margin-bottom: 6px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] [style*="flex-direction: column"] {
    gap: 3px !important;
    margin-bottom: 8px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] [style*="font-size: 13px"] {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] [style*="flex-direction: column"] > div:nth-child(n+3) {
    display: none !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="View Details"] {
    font-size: 10px !important;
  }

  .gsk-home > section:nth-of-type(6) button {
    padding: 5px 9px !important;
    font-size: 10px !important;
    min-width: auto !important;
  }

  /* ========================================================
     5. FAQ section
     One-column readable layout, compact card width.
     This targets the FAQ grid by its original 0.9fr / 1.1fr layout.
     ======================================================== */

  .gsk-home > section > div[style*="0.9fr 1.1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gsk-home > section > div[style*="0.9fr 1.1fr"] > div:first-child {
    position: relative !important;
    height: 170px !important;
    max-width: 320px !important;
    width: 100% !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }

  .gsk-home > section > div[style*="0.9fr 1.1fr"] > div:first-child > div:first-child,
  .gsk-home > section > div[style*="0.9fr 1.1fr"] > div:first-child [style*="height: 480px"] {
    height: 170px !important;
    max-height: 170px !important;
    border-radius: 14px !important;
  }

  .gsk-home > section > div[style*="0.9fr 1.1fr"] > div:first-child img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .gsk-home > section > div[style*="0.9fr 1.1fr"] > div:first-child > div:nth-child(2) {
    top: 8px !important;
    right: 8px !important;
    font-size: 10px !important;
    padding: 7px 10px !important;
    transform: rotate(5deg) !important;
  }

  .gsk-home > section > div[style*="0.9fr 1.1fr"] > div:nth-child(2) {
    width: 100% !important;
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gsk-home > section > div[style*="0.9fr 1.1fr"] h2 {
    font-size: 30px !important;
    line-height: 1.08 !important;
    text-align: center !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gsk-home > section > div[style*="0.9fr 1.1fr"] [style*="Amazing experience"] {
    text-align: center !important;
  }

  .gsk-home > section > div[style*="0.9fr 1.1fr"] [style*="display: flex"][style*="flex-direction: column"] {
    gap: 10px !important;
  }

  .gsk-home > section > div[style*="0.9fr 1.1fr"] button {
    min-height: 54px !important;
  }

  .gsk-home > section > div[style*="0.9fr 1.1fr"] button span:first-child {
    font-size: 15px !important;
    line-height: 1.18 !important;
  }

  .gsk-home > section > div[style*="0.9fr 1.1fr"] [style*="padding: 0 20px 18px"] {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
  }

  .gsk-home > section > div[style*="0.9fr 1.1fr"] button[style*="alignSelf"],
  .gsk-home > section > div[style*="0.9fr 1.1fr"] button[style*="align-self"] {
    width: 100% !important;
    justify-content: center !important;
  }
}
/* ============================================================
   PHASE 20B.6 — Homepage Mobile Card Standardization
   Uses compact Shop-card sizing as the mobile standard.
   Removes image/color bands from Program + Upcoming cards.
   Makes FAQ cards full-width readable rectangles.
   ============================================================ */

@media (max-width: 600px) {

  /* ========================================================
     1. PROGRAM SECTION
     Remove mascot/top color band and make cards compact.
     ======================================================== */

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] > div {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    min-height: 170px !important;
  }

  /* Hide top color band with mascot */
  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] > div > div:first-child {
    display: none !important;
  }

  .gsk-home > section:nth-of-type(3) > div[style*="repeat(4, 1fr)"] > div > div:nth-child(2) {
    padding: 13px 12px 14px !important;
    height: 100% !important;
  }

  .gsk-home > section:nth-of-type(3) h3 {
    font-size: 14px !important;
    line-height: 1.18 !important;
    margin-bottom: 7px !important;
  }

  .gsk-home > section:nth-of-type(3) p {
    display: none !important;
  }

  .gsk-home > section:nth-of-type(3) ul {
    display: block !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
  }

  .gsk-home > section:nth-of-type(3) li {
    font-size: 10.5px !important;
    line-height: 1.25 !important;
    padding-left: 12px !important;
    margin-bottom: 4px !important;
  }

  .gsk-home > section:nth-of-type(3) li span {
    width: 5px !important;
    height: 5px !important;
    top: 5px !important;
  }

  .gsk-home > section:nth-of-type(3) li:nth-child(n+3) {
    display: none !important;
  }

  .gsk-home > section:nth-of-type(3) [style*="Learn More"] {
    font-size: 10.5px !important;
  }

  /* ========================================================
     2. UPCOMING CAMPS & CLASSES
     Remove yellow top band and mascot image.
     Make cards compact like Shop cards.
     ======================================================== */

  .gsk-home > section:nth-of-type(6) > div[style*="repeat(2, 1fr)"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    min-height: 190px !important;
  }

  /* Hide top colored mascot area */
  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] > div:first-child {
    display: none !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] > div:nth-child(2) {
    padding: 13px 12px 14px !important;
    height: 100% !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] [style*="Summer Camp"],
  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] [style*="SUMMER CAMP"] {
    font-size: 8px !important;
    padding: 2px 7px !important;
    margin-bottom: 7px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] h3 {
    font-size: 14px !important;
    line-height: 1.18 !important;
    margin-bottom: 7px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] [style*="flex-direction: column"] {
    gap: 4px !important;
    margin-bottom: 10px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] [style*="font-size: 13px"] {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  /* Keep only location and date rows; hide extra row to save height */
  .gsk-home > section:nth-of-type(6) [style*="180px 1fr"] [style*="flex-direction: column"] > div:nth-child(n+3) {
    display: none !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="View Details"] {
    font-size: 10px !important;
  }

  .gsk-home > section:nth-of-type(6) [style*="justify-content: space-between"] {
    gap: 7px !important;
    align-items: center !important;
  }

  .gsk-home > section:nth-of-type(6) button {
    padding: 5px 9px !important;
    font-size: 10px !important;
    min-width: auto !important;
  }

  /* ========================================================
     3. FAQ SECTION
     Make FAQ full-width one-column rectangle layout.
     Hide left image block on mobile to avoid crowded layout.
     ======================================================== */

  .gsk-home > section > div[style*="0.9fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Hide FAQ image panel on mobile */
  .gsk-home > section > div[style*="0.9fr"] > div:first-child {
    display: none !important;
  }

  .gsk-home > section > div[style*="0.9fr"] > div:nth-child(2) {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gsk-home > section > div[style*="0.9fr"] h2 {
    font-size: 31px !important;
    line-height: 1.08 !important;
    text-align: center !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gsk-home > section > div[style*="0.9fr"] [style*="Amazing experience"] {
    text-align: center !important;
  }

  .gsk-home > section > div[style*="0.9fr"] [style*="display: flex"][style*="flex-direction: column"] {
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* FAQ item cards become full-width rectangles */
  .gsk-home > section > div[style*="0.9fr"] [style*="border-radius: 14px"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 15px !important;
  }

  .gsk-home > section > div[style*="0.9fr"] button {
    min-height: 58px !important;
    width: 100% !important;
    padding: 15px 16px !important;
  }

  .gsk-home > section > div[style*="0.9fr"] button span:first-child {
    font-size: 15.5px !important;
    line-height: 1.2 !important;
  }

  .gsk-home > section > div[style*="0.9fr"] [style*="padding: 0 20px 18px"] {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .gsk-home > section > div[style*="0.9fr"] button[style*="alignSelf"],
  .gsk-home > section > div[style*="0.9fr"] button[style*="align-self"] {
    width: 100% !important;
    justify-content: center !important;
  }

  /* ========================================================
     4. General card consistency
     Keeps two-column cards visually close to Shop-card size.
     ======================================================== */

  .gsk-home > section:nth-of-type(3),
  .gsk-home > section:nth-of-type(6),
  .gsk-home section:has(a[href^="product.html"]) {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .gsk-home > section:nth-of-type(3) h2,
  .gsk-home > section:nth-of-type(6) h2 {
    font-size: clamp(29px, 8vw, 38px) !important;
    line-height: 1.08 !important;
  }
}

/* ============================================================
   PHASE 20B.14 — Clean Final FAQ + Reviews Mobile CSS
   Removes old conflicting FAQ selectors.
   Keeps FAQ heading visible, cards centered, and button below.
   ============================================================ */

/* ---------- Homepage FAQ Final Layout ---------- */

.gsk-home-faq-final {
  text-align: center !important;
}

.gsk-home-faq-final__wrap {
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Heading must always appear first */
.gsk-home-faq-final__heading {
  display: block !important;
  order: 1 !important;
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 auto 30px !important;
  text-align: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.gsk-home-faq-final__heading > div {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.gsk-home-faq-final__heading > div:first-child {
  display: flex !important;
  justify-content: center !important;
  margin-bottom: 14px !important;
}

.gsk-home-faq-final__heading h2 {
  display: block !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* FAQ cards */
.gsk-home-faq-final__list {
  order: 2 !important;
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.gsk-home-faq-final__card {
  width: 100% !important;
  background: #ffffff !important;
  border: 3px solid #1a1a1a !important;
  border-radius: 16px !important;
  box-shadow: 4px 4px 0 #F0E136 !important;
  overflow: hidden !important;
  transition: transform 0.18s, box-shadow 0.18s !important;
}

.gsk-home-faq-final__card.is-open {
  box-shadow: 6px 6px 0 #E5AC38 !important;
  transform: translate(-1px, -1px) !important;
}

.gsk-home-faq-final__question {
  width: 100% !important;
  min-height: 64px !important;
  padding: 18px 22px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  text-align: left !important;
}

.gsk-home-faq-final__question span:first-child {
  font-family: var(--font-primary, 'Poppins', sans-serif) !important;
  font-weight: 900 !important;
  font-size: 17px !important;
  color: #32378A !important;
  line-height: 1.22 !important;
}

.gsk-home-faq-final__icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #F0E136 !important;
  border: 2.5px solid #1a1a1a !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.gsk-home-faq-final__icon::before,
.gsk-home-faq-final__icon::after {
  content: '' !important;
  position: absolute !important;
  background: #32378A !important;
  border-radius: 2px !important;
  transition: transform 0.2s !important;
}

.gsk-home-faq-final__icon::before {
  left: 24% !important;
  right: 24% !important;
  top: 50% !important;
  height: 3px !important;
  transform: translateY(-50%) !important;
}

.gsk-home-faq-final__icon::after {
  top: 24% !important;
  bottom: 24% !important;
  left: 50% !important;
  width: 3px !important;
  transform: translateX(-50%) !important;
}

.gsk-home-faq-final__card.is-open .gsk-home-faq-final__icon {
  background: #E5AC38 !important;
}

.gsk-home-faq-final__card.is-open .gsk-home-faq-final__icon::after {
  transform: translateX(-50%) scaleY(0) !important;
}

.gsk-home-faq-final__answer {
  padding: 0 22px 20px !important;
  border-top: 2px dashed rgba(0,0,0,0.12) !important;
  font-family: var(--font-secondary, 'Nunito', sans-serif) !important;
  font-size: 15px !important;
  color: #4a4a4a !important;
  line-height: 1.6 !important;
  text-align: left !important;
  font-weight: 600 !important;
}

/* View More button must stay after cards and centered */
.gsk-home-faq-final__more {
  order: 3 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 20px auto 0 !important;
  text-align: center !important;
}

.gsk-home-faq-final__more > * {
  margin-left: auto !important;
  margin-right: auto !important;
}

.gsk-home-faq-final__more button {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  justify-content: center !important;
}

/* ---------- Mobile FAQ ---------- */

@media (max-width: 600px) {
  .gsk-home-faq-final {
    padding: 48px 12px 54px !important;
  }

  .gsk-home-faq-final__wrap {
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .gsk-home-faq-final__heading {
    display: block !important;
    order: 1 !important;
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 auto 26px !important;
    text-align: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .gsk-home-faq-final__heading > div:first-child {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 14px !important;
  }

  .gsk-home-faq-final__heading [style*="Amazing experience"] {
    display: block !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    letter-spacing: 0.16em !important;
    font-size: 10.5px !important;
  }

  .gsk-home-faq-final__heading h2 {
    display: block !important;
    max-width: 350px !important;
    font-size: 29px !important;
    line-height: 1.08 !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gsk-home-faq-final__list {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 11px !important;
  }

  .gsk-home-faq-final__card {
    width: 100% !important;
    border-radius: 13px !important;
  }

  .gsk-home-faq-final__question {
    min-height: 56px !important;
    padding: 13px 14px !important;
  }

  .gsk-home-faq-final__question span:first-child {
    font-size: 13.5px !important;
    line-height: 1.2 !important;
  }

  .gsk-home-faq-final__icon {
    width: 26px !important;
    height: 26px !important;
  }

  .gsk-home-faq-final__icon::before {
    height: 2.5px !important;
  }

  .gsk-home-faq-final__icon::after {
    width: 2.5px !important;
  }

  .gsk-home-faq-final__answer {
    padding: 0 14px 16px !important;
    font-size: 13px !important;
    line-height: 1.52 !important;
  }

  .gsk-home-faq-final__more {
    order: 3 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 18px auto 0 !important;
    text-align: center !important;
  }

  .gsk-home-faq-final__more > * {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gsk-home-faq-final__more button {
    width: auto !important;
    min-height: 46px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    border-radius: 9999px !important;
  }
}

/* ---------- Reviews Mobile Compact Layout ---------- */

@media (max-width: 600px) {
  .gsk-home-reviews {
    padding: 46px 16px 52px !important;
  }

  .gsk-home-reviews h2 {
    font-size: 31px !important;
    line-height: 1.08 !important;
    margin-bottom: 22px !important;
  }

  .gsk-home-reviews > div[style*="repeat(2, 1fr)"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 322px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gsk-home-reviews > div[style*="repeat(2, 1fr)"] > div {
    width: 100% !important;
    max-width: 322px !important;
    padding: 18px 16px 16px !important;
    border-radius: 16px !important;
    box-shadow: 4px 4px 0 var(--review-shadow, #E5AC38) !important;
  }

  .gsk-home-reviews > div[style*="repeat(2, 1fr)"] > div > div:first-child {
    top: -14px !important;
    left: 18px !important;
    font-size: 30px !important;
    padding: 3px 10px 8px !important;
    border-radius: 12px !important;
  }

  .gsk-home-reviews > div[style*="repeat(2, 1fr)"] > div > div:nth-child(2) {
    margin-top: 10px !important;
    margin-bottom: 9px !important;
  }

  .gsk-home-reviews svg {
    width: 14px !important;
    height: 14px !important;
  }

  .gsk-home-reviews > div[style*="repeat(2, 1fr)"] > div > p {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin-bottom: 13px !important;
  }

  .gsk-home-reviews > div[style*="repeat(2, 1fr)"] > div > div:last-child {
    padding-top: 11px !important;
    gap: 10px !important;
  }

  .gsk-home-reviews > div[style*="repeat(2, 1fr)"] > div > div:last-child > div:first-child {
    width: 34px !important;
    height: 34px !important;
    font-size: 14px !important;
  }

  .gsk-home-reviews > div[style*="repeat(2, 1fr)"] > div > div:last-child > div:nth-child(2) > div:first-child {
    font-size: 15px !important;
    line-height: 1.1 !important;
  }

  .gsk-home-reviews > div[style*="repeat(2, 1fr)"] > div > div:last-child > div:nth-child(2) > div:nth-child(2) {
    font-size: 9.5px !important;
    letter-spacing: 0.04em !important;
  }
}
/* ============================================================
   PHASE 20B.15 — Homepage FAQ Color Style Match
   Gives homepage FAQ cards the same colorful style as
   program detail page FAQ cards.
   Keeps existing FAQ open/close behavior unchanged.
   ============================================================ */

/* Soft colorful FAQ card backgrounds */
.gsk-home-faq-final__card:nth-child(5n + 1) {
  background: #FFF6D9 !important;
}

.gsk-home-faq-final__card:nth-child(5n + 2) {
  background: #EAF3FF !important;
}

.gsk-home-faq-final__card:nth-child(5n + 3) {
  background: #FFF0D8 !important;
}

.gsk-home-faq-final__card:nth-child(5n + 4) {
  background: #EEF8D9 !important;
}

.gsk-home-faq-final__card:nth-child(5n + 5) {
  background: #F3E8FF !important;
}

/* Open cards keep their soft color */
.gsk-home-faq-final__card.is-open:nth-child(5n + 1) {
  background: #FFF6D9 !important;
}

.gsk-home-faq-final__card.is-open:nth-child(5n + 2) {
  background: #EAF3FF !important;
}

.gsk-home-faq-final__card.is-open:nth-child(5n + 3) {
  background: #FFF0D8 !important;
}

.gsk-home-faq-final__card.is-open:nth-child(5n + 4) {
  background: #EEF8D9 !important;
}

.gsk-home-faq-final__card.is-open:nth-child(5n + 5) {
  background: #F3E8FF !important;
}

/* Colorful plus icons */
.gsk-home-faq-final__card:nth-child(5n + 1) .gsk-home-faq-final__icon {
  background: #E5AC38 !important;
}

.gsk-home-faq-final__card:nth-child(5n + 2) .gsk-home-faq-final__icon {
  background: #7FC8F8 !important;
}

.gsk-home-faq-final__card:nth-child(5n + 3) .gsk-home-faq-final__icon {
  background: #F6C15C !important;
}

.gsk-home-faq-final__card:nth-child(5n + 4) .gsk-home-faq-final__icon {
  background: #9DCB4A !important;
}

.gsk-home-faq-final__card:nth-child(5n + 5) .gsk-home-faq-final__icon {
  background: #C9A3FF !important;
}

/* Keep open icon active but preserve colorful design */
.gsk-home-faq-final__card.is-open .gsk-home-faq-final__icon {
  color: #32378A !important;
  border-color: #1a1a1a !important;
}

/* Keep text readable */
.gsk-home-faq-final__question span:first-child {
  color: #32378A !important;
}

.gsk-home-faq-final__answer {
  color: #1a1a1a !important;
}
/* ============================================================
   PHASE 20C.3C — Homepage Review Star Spacing Fix
   Moves star rating below quote badge so it does not overlap.
   ============================================================ */

@media (max-width: 600px) {
  .gsk-home-reviews > div[style*="repeat(2, 1fr)"] > div {
    padding-top: 28px !important;
  }

  .gsk-home-reviews > div[style*="repeat(2, 1fr)"] > div > div:nth-child(2) {
    margin-top: 18px !important;
    margin-bottom: 10px !important;
    padding-left: 0 !important;
    position: relative !important;
    z-index: 1 !important;
  }
}

@media (min-width: 601px) and (max-width: 960px) {
  .gsk-home-reviews > div[style*="repeat(2, 1fr)"] > div {
    padding-top: 38px !important;
  }

  .gsk-home-reviews > div[style*="repeat(2, 1fr)"] > div > div:nth-child(2) {
    margin-top: 20px !important;
  }
}