/* ==========================================================================
   RS PHYSICS ACADEMY — every media query lives here
   ========================================================================== */

@media (max-width:1100px){
  .rsa-hero__grid{grid-template-columns:1fr;gap:var(--rsa-sp-lg)}
  .rsa-faculty{grid-template-columns:240px 1fr}
  .rsa-steps{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:var(--rsa-sp-xl)}
  .rsa-steps__item:nth-child(2n)::after{display:none}
  .rsa-counters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rsa-footer__grid{grid-template-columns:1.4fr 1fr 1fr}
  .rsa-gallery{columns:2}
}

@media (max-width:900px){
  :root{--rsa-nav-h:64px}
  .rsa-nav__links{display:none}
  .rsa-burger{display:grid}
  .rsa-grid--3,.rsa-grid--4,.rsa-why__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rsa-split,.rsa-split--flip,.rsa-story__row,.rsa-contact{grid-template-columns:1fr}
  .rsa-story__row:nth-child(even) .rsa-story__media{order:0}
  .rsa-cta{grid-template-columns:1fr}
  .rsa-cta__actions{justify-content:flex-start}
  .rsa-course{grid-template-columns:1fr;gap:var(--rsa-sp-md)}
  .rsa-course__badge{max-width:180px}
  .rsa-post--featured{grid-column:span 1;flex-direction:column}
  .rsa-post--featured .rsa-ph{flex:none;min-height:170px}
  .rsa-faculty{grid-template-columns:1fr}
  .rsa-faculty__portrait{max-width:300px}
}

@media (max-width:620px){
  body{font-size:16px}
  .rsa-section{padding-block:var(--rsa-sp-xl)}
  .rsa-container{padding-inline:18px}
  .rsa-grid--2,.rsa-grid--3,.rsa-grid--4,.rsa-why__grid,.rsa-steps{grid-template-columns:1fr}
  .rsa-counters{grid-template-columns:1fr}
  .rsa-enquiry__row{grid-template-columns:1fr}
  .rsa-test__spec{grid-template-columns:1fr}
  .rsa-gallery{columns:1}
  .rsa-hero__proof{gap:18px}
  .rsa-footer__grid{grid-template-columns:1fr;gap:var(--rsa-sp-lg)}
  .rsa-wa span{display:none}
  .rsa-wa{padding:13px}
  .rsa-hero__cta .rsa-btn{width:100%}
  .rsa-steps__item::after{display:none}
  /* keep the top bar to one line on a phone: the demo button lives in the drawer */
  .rsa-logo img{width:31px;height:31px}
  .rsa-logo__text{font-size:.99rem}
  .rsa-logo__text small{display:none}
  .rsa-nav__actions>.rsa-btn{display:none}
}
