/* Homepage phone layout. Desktop and the established menu behavior stay intact. */
.home-mobile-actions { display: none; }
.home-intro { display: contents; }

@media screen and (max-width: 900px) {
  .home-page { font-size: 17px; line-height: 1.6; }

  /* The hero already carries this welcome; avoid repeating it above the fold. */
  .home-page .mobile-announce { display: none; }
  .home-page .content-area { padding: 24px 20px 40px; }
  .home-page .main-content > .content-area:first-of-type { padding-top: 0; }
  .home-intro { display: flex; flex-direction: column; }
  .home-intro #rt-living-world { order: -1; margin-bottom: 16px; }
  .home-page .hero-section { padding: 8px 0 12px; }
  .home-page .hero-welcome {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }
  .home-page .hero-title {
    max-width: 520px;
    margin: 0 auto 18px;
    font-size: clamp(23px, 5.8vw, 30px);
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-wrap: balance;
  }
  .home-page .hero-subtitle {
    max-width: 460px;
    margin: 0 auto 20px;
    font-size: 17px;
    line-height: 1.55;
    text-align: center;
    opacity: 0.85;
    text-wrap: pretty;
  }
  .home-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 12px;
  }
  .home-page .home-mobile-actions a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--color-red);
    border-radius: 24px;
    color: var(--color-red);
    text-decoration: none;
    font-size: 16px;
  }
  .home-page .home-mobile-actions a:first-child {
    background: var(--color-red);
    color: white;
  }
  .home-page .section-heading,
  .home-page .competency-heading {
    font-size: clamp(26px, 6.8vw, 32px);
    line-height: 1.25;
    margin-top: 36px;
    overflow-wrap: break-word;
  }
  .home-page .section-subheading {
    font-size: 27px;
    line-height: 1.3;
    margin-top: 32px;
    text-wrap: balance;
  }
  .home-page .section-tagline { font-size: 17px; }
  .home-page .video-embed { margin: 18px 0 24px; }
  .home-page .cta-buttons { gap: 10px; margin: 24px 0; }
  .home-page .cta-buttons .cta-btn {
    flex: 1 1 180px;
    max-width: 360px;
    padding: 12px 20px;
    text-decoration: none;
  }
  .home-page .info-box { padding: 22px 18px; margin: 28px 0; }
  .home-page .info-box h3 { font-size: 22px; line-height: 1.35; }
  .home-page .teachers-section { margin-left: 0; width: 100%; padding: 36px 0; }
  .home-page .teachers-inner { padding: 0 20px; text-align: center; }
  .home-page .teachers-heading { font-size: 32px; line-height: 1.2; margin-bottom: 22px; }
  .home-page .teachers-inner p { text-align: center; }
  .home-page .site-footer { padding: 32px 20px 24px; }
}
