/* Homepage phone hero; other mobile sections retain their existing rules. */
.mobile-utility-bar { display: none; }

@media (max-width: 767px) {
  body { overflow-x: hidden; }

  .hero-shell {
    width: calc(100% - 40px);
    min-height: 0;
    gap: 28px;
    padding: calc(var(--header-height) + 30px) 0 22px;
  }
  .hero-main { display: block; flex: none; }
  .hero-copy { width: 100%; }
  .hero-media img { object-position: 57% center; }
  .hero::before, html[dir="rtl"] .hero::before {
    background:
      linear-gradient(90deg, rgba(2, 12, 29, .4), rgba(2, 12, 29, .04)),
      linear-gradient(180deg, rgba(2, 12, 29, .75), rgba(2, 12, 29, .55) 35%, rgba(2, 12, 29, .05) 61%, rgba(2, 12, 29, .72));
  }
  .hero .eyebrow { gap: 9px; margin-bottom: 18px; font-size: .625rem; line-height: 1.5; }
  .hero .eyebrow::before { width: 20px; flex-basis: 20px; }
  .hero h1 {
    font-size: clamp(1.625rem, var(--hero-heading-size, 2rem), 2.875rem);
    line-height: 1.08;
  }
  .hero h1 span { text-wrap: balance; }
  html:is([lang="fr"], [lang="es"]) .hero h1 { --hero-heading-size: 1.75rem; }
  .hero-intro { max-width: 100%; margin-top: 18px; font-size: 1rem; line-height: 1.5; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 22px; }
  .hero-actions .btn { width: 100%; min-height: 50px; padding-block: 12px; box-shadow: none; }
  .hero-presence { grid-template-columns: minmax(0, 1fr); background: rgba(3, 16, 37, .78); }
  .hero-presence-intro { padding: 12px 16px 8px; }
  .hero-presence-intro > span { font-size: .625rem; }
  .hero-location {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px 16px;
    border-inline-start: 0;
  }
  .hero-location + .hero-location { border-top: 1px solid rgba(229, 199, 119, .28); }
  .hero-location-header { gap: 12px; }
  .hero-location-header strong { font-size: 1.0625rem; }
  .hero-location-header small { font-size: .625rem; }
  .hero-location-flag { width: 34px; flex-basis: 34px; }
  .hero-location address { font-size: .8125rem; line-height: 1.5; }
  .hero-location-phone { grid-column: 1; grid-row: auto; justify-self: start; margin-block: -4px; }

  /* ---------- AIDT for You: edge-to-edge stacked image bands, UCR-inspired.
     .container is width-constrained (not padded), so the grid breaks out
     to the full viewport width using the standard negative-margin
     technique: no cream margins, no rounded cards, one continuous strip. */
  .audience-mosaic {
    overflow-x: hidden;
  }

  .mosaic-grid {
    grid-template-columns: 1fr;
    gap: 2px;
    width: calc(100% + 40px);
    margin-left: -20px;
  }

  .mosaic-tile {
    grid-column: auto !important;
    min-height: 250px;
    border-radius: 0;
  }

  .mosaic-tile:nth-child(even) .mosaic-tile-overlay {
    background: linear-gradient(190deg, rgba(7, 20, 41, 0.1) 0%, rgba(7, 20, 41, 0.6) 54%, rgba(2, 8, 18, 0.92) 100%);
  }

  .mosaic-tile:nth-child(odd) .mosaic-tile-overlay {
    background: linear-gradient(190deg, rgba(2, 8, 18, 0.1) 0%, rgba(38, 12, 22, 0.56) 54%, rgba(2, 8, 18, 0.92) 100%);
  }

  .mosaic-tile-content {
    padding: 16px 20px 18px;
  }

  .mosaic-tile-title {
    font-size: 1.1rem;
  }

  .mosaic-tile-desc {
    display: none;
  }

  .mosaic-tile-arrow {
    margin-top: -16px;
  }

  /* ---------- Course Portfolio gateway: one full image panel ---------- */
  .course-gateway {
    min-height: 400px;
  }

  .course-gateway-media {
    background-position: 78% 50%;
  }

  .course-gateway-overlay {
    background:
      linear-gradient(200deg, rgba(2, 8, 18, 0.2) 0%, rgba(2, 8, 18, 0.72) 55%, rgba(2, 8, 18, 0.95) 100%),
      linear-gradient(90deg, rgba(2, 8, 18, 0.5) 0%, rgba(2, 8, 18, 0.15) 100%);
  }

  .course-gateway-copy {
    max-width: none;
    padding-block: 32px 34px;
  }

  .course-gateway-copy h2 {
    max-width: none;
    font-size: clamp(1.55rem, 6.4vw, 1.95rem);
  }

  .course-gateway-copy .btn {
    width: 100%;
  }

  
  

  

  

  

  

  

  
  

  

  

  

  

  

  /* ---------- Contact CTA ---------- */
  .home-contact-cta-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding-block: 36px;
  }

  .home-contact-cta-action {
    width: 100%;
    align-items: stretch;
    gap: 12px;
    padding-left: 0;
    border-left: 0;
    text-align: left;
  }

  .home-contact-cta-action .btn {
    width: 100%;
    min-height: 52px;
  }

  .home-contact-cta-email {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .mosaic-tile {
    min-height: 230px;
  }

}

@media (max-width: 374px) {
  .hero h1, html:is([lang="fr"], [lang="es"]) .hero h1 { --hero-heading-size: 1.75rem; }
  .hero-shell { padding-top: calc(var(--header-height) + 24px); padding-bottom: 18px; gap: 20px; }
  .hero .eyebrow { margin-bottom: 14px; }
  .hero-intro { margin-top: 14px; }
  .hero-actions { margin-top: 18px; }
  .hero-presence-intro { padding-block: 10px 6px; }
  .hero-location { padding-block: 12px; }
}
@media (max-width: 340px) {
  .hero h1, html:is([lang="fr"], [lang="es"]) .hero h1 { --hero-heading-size: 1.625rem; }
}
@media (min-width: 420px) and (max-width: 767px) {
  .hero h1 { --hero-heading-size: 2.25rem; }
}
@media (min-width: 375px) and (max-width: 767px) {
  .hero-location:first-of-type { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-location-phone { grid-column: 2; grid-row: 1; margin: 0; font-size: .75rem; }
}
