/* RAWDA — phone layout (glass pill header, photo hero, glass card, stats row) */
.rw-m{display:none !important}
.rw-sheet{display:none}
.rw-m-only{display:none}

@media (max-width:760px){
  html{scroll-padding-top:86px;-webkit-text-size-adjust:100%}
  .rw-m{display:grid !important;place-items:center}
  .rw-top{display:none !important}

  /* floating glass pill */
  .rw-head{position:sticky !important;top:8px;z-index:60;background:transparent !important;border:0 !important;margin:8px 12px -71px;pointer-events:none}
  .rw-head-in{pointer-events:auto;height:63px;padding:0 10px 0 12px !important;gap:0 !important;flex-wrap:nowrap !important;justify-content:flex-start !important;border-radius:999px;
    background:rgba(255,255,255,.46);border:1.5px solid rgba(255,255,255,.9);
    -webkit-backdrop-filter:blur(18px) saturate(1.5);backdrop-filter:blur(18px) saturate(1.5);
    box-shadow:0 8px 26px rgba(11,18,87,.07),inset 0 1px 0 rgba(255,255,255,.8);transition:background .25s,box-shadow .25s}
  html.rw-scrolled .rw-head-in{background:rgba(255,255,255,.88);box-shadow:0 12px 30px rgba(11,18,87,.14)}
  .rw-actions{display:contents !important}
  .rw-menu{order:0;width:40px !important;height:40px !important;border:0 !important;background:transparent !important;color:#2A2D3A !important;margin-inline-end:20px}
  .rw-menu svg{width:23px;height:23px;stroke-width:1.8}
  .rw-logo{order:1;gap:8px !important}
  .rw-logo svg{width:29px;height:29px}
  .rw-logo>span>span:first-child{font-size:29px !important;line-height:1.1}
  .rw-logo>span>span:last-child{font-size:7.5px !important;letter-spacing:3.4px !important;margin-top:0 !important;text-align:center}
  .rw-user{order:2;margin-inline-start:auto;width:40px;height:40px;color:#2A2D3A}
  .rw-enrol{order:2;margin-inline-start:auto;border:0 !important;width:40px !important;height:40px !important;color:#2A2D3A !important}
  .rw-head-in:has(.rw-enrol) .rw-user{margin-inline-start:2px}
  .rw-head-in:has(.rw-enrol) .rw-user,.rw-head-in:has(.rw-enrol) .rw-search{order:3}
  html[lang="en"] .rw-logo>span>span:first-child{font-size:20px !important;letter-spacing:3.5px !important}
  html[lang="en"] .rw-logo>span>span:last-child{font-size:11px !important;letter-spacing:0 !important;margin-top:1px !important;text-align:start}
  html[lang="en"] .rw-stat-row>div>div:last-child{white-space:normal;font-size:10.5px !important;line-height:1.25}
  html[lang="en"] .rw-stat-row>div>div:first-child{font-size:17px !important}
  .rw-search{order:3;width:40px;height:40px;border-radius:50%;border:0;padding:0;margin-inline-start:12px;background:#2B2C30;color:#fff;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.18)}

  /* inner pages: leave room for the pill */
  .rw-first-pad{padding-top:92px !important}
  div[style^="height:540px;border-radius:26px"]{height:380px !important}
  div[style^="height:540px;border-radius:26px"] img[style*="height:510px"]{height:360px !important}
  .rw-wave{width:300px !important;height:150px !important;left:-90px !important;bottom:-70px !important;opacity:.55}
  .rw-offer-flower{width:96px !important;height:96px !important;left:-34px !important;top:-34px !important;opacity:.5 !important}

  /* hero: photo from the supplied header, glass card on top */
  .rw-hero{background:#D9D6DF url(m-hero.webp) top center/100% auto no-repeat !important;overflow:visible !important}
  .rw-hero-in{display:block !important;padding:88.5% 16px 116px !important}
  .rw-hero-media{display:none !important}
  .rw-hero-copy{position:relative;border-radius:26px;padding:24px 22px 22px;
    background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.58));border:1.5px solid rgba(255,255,255,.95);
    -webkit-backdrop-filter:blur(22px) saturate(1.3);backdrop-filter:blur(22px) saturate(1.3);box-shadow:0 18px 40px rgba(11,18,87,.07)}
  .rw-dsk{display:none}
  .rw-eyebrow{display:flex;align-items:center;gap:10px;margin:0 0 12px !important;font-size:13px !important;color:#4A5078 !important}
  .rw-eyebrow::before{content:"";width:22px;height:1.5px;background:#4A5078;border-radius:2px;flex:none}
  .rw-h1{font-size:47px !important;line-height:1.07 !important;letter-spacing:0 !important}
  html[lang="en"] .rw-h1{font-size:40px !important;line-height:1.05 !important;letter-spacing:-1px !important}
  .rw-lead{margin:12px 0 0 !important;font-size:15.5px !important;line-height:1.5 !important;color:#3E4466 !important;max-width:270px !important}
  .rw-hero-btns{margin-top:20px !important;flex-direction:column;align-items:flex-start !important;gap:12px !important}
  .rw-hero-btns>a{width:min(240px,100%);height:46px;padding:0 18px !important;justify-content:center;border-radius:999px !important;font-size:16px !important}
  .rw-hero-btns>a:first-child{background:linear-gradient(180deg,#0B74D6,#075FB5) !important;box-shadow:0 10px 22px rgba(8,104,196,.28)}
  .rw-tour{background:rgba(255,255,255,.35) !important;border:1.8px solid #13207A !important;color:#0B1257 !important}
  .rw-tour svg{stroke:#13207A}

  /* stats: one row of four, like the header image */
  .rw-stats-wrap{margin:-94px auto 0 !important;padding:0 12px !important;z-index:2}
  .rw-stats{border-radius:26px !important;padding:15px 4px !important;min-height:78px;box-shadow:0 14px 34px rgba(11,18,87,.08) !important;gap:0 !important}
  .rw-stat-row{flex:1 1 100% !important;flex-wrap:nowrap !important;gap:0 !important}
  .rw-stat-row>div{flex:1 1 0 !important;min-width:0;position:relative;padding:2px 2px}
  .rw-stat-row>div:nth-child(4){order:1}.rw-stat-row>div:nth-child(2){order:2}.rw-stat-row>div:nth-child(3){order:3}.rw-stat-row>div:nth-child(1){order:4}
  .rw-stat-row>div:not(:first-child)::after{content:"";position:absolute;inset-inline-end:0;top:10%;bottom:10%;width:1px;background:#E1E4EE}
  .rw-stat-row>div>div:first-child{font-size:18px !important;line-height:1.35 !important;letter-spacing:0 !important;white-space:nowrap}
  .rw-stat-row>div>div:first-child span{color:inherit !important}
  .rw-stat-row>div>div:last-child{font-size:11px !important;margin-top:4px !important;white-space:nowrap}
  .rw-stat-div,.rw-certs{display:none !important}
  #school{margin-top:0 !important}

  /* shorter page: tighter sections, two-up grids, swipe rows */
  section>div[style*="max-width:1280px"],footer>div[style*="max-width:1280px"],section[style*="max-width:1280px"]{padding-left:20px !important;padding-right:20px !important}
  #school,#stages,#paths,#life,section[style*="padding:104px 0"]{padding-top:60px !important;padding-bottom:60px !important}
  #tour{padding-top:72px !important;padding-bottom:72px !important}
  #tour>svg{width:130px !important;height:130px !important;opacity:.55 !important}
  #tour>svg:first-of-type{right:-44px !important;top:-44px !important}
  #tour>svg:last-of-type{left:-40px !important;bottom:-50px !important}
  #tour>div[style*="max-width:880px"]{padding:0 24px !important}
  section h2[style*="margin:0 0 4"],section h2[style*="margin:0 0 5"]{margin-bottom:24px !important}
  section h2{font-size:32px !important}
  #school h2{font-size:34px !important}
  #school div[style*="margin-bottom:56px"],#life div[style*="margin-bottom:44px"]{margin-bottom:28px !important}
  #school div[style*="min-height:460px"]{min-height:250px !important;flex-basis:100% !important}
  #school div[style*="gap:44px;align-items:stretch"]{gap:28px !important}
  .rw-pairs{display:grid !important;grid-template-columns:1fr 1fr;gap:24px 14px !important}
  .rw-pairs>div{min-width:0}
  .rw-feat>div{padding-top:16px !important}
  .rw-feat svg{width:30px;height:30px}
  .rw-feat h3{font-size:18px !important;margin:12px 0 6px !important}
  .rw-feat p{font-size:13px !important;line-height:1.65 !important}
  .rw-why{gap:22px 14px !important}
  .rw-why>div{padding-top:14px !important}
  .rw-why>div>div:first-child{font-size:32px !important;line-height:1.3 !important}
  .rw-why>div>div:nth-child(2){font-size:11.5px !important}
  .rw-why>div>div:nth-child(3),.rw-why>div>h3{font-size:16px !important;line-height:1.5 !important;margin-top:6px !important}
  .rw-steps{gap:18px 14px !important}
  .rw-steps>div{padding-top:14px !important}
  .rw-steps h3{font-size:19px !important}
  .rw-steps p{font-size:13px !important;line-height:1.6 !important}
  .rw-video{height:230px !important;margin-top:32px !important;border-radius:22px !important}
  .rw-video button{width:64px !important;height:64px !important}
  .rw-video div{bottom:14px !important;font-size:13px !important;padding:9px 13px !important}
  .rw-swipe{display:flex !important;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:20px;gap:12px !important;margin:0 -20px;padding:4px 20px 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .rw-swipe::-webkit-scrollbar{display:none}
  .rw-swipe>*{flex:0 0 78% !important;scroll-snap-align:start;min-width:0}
  .rw-swipe img{height:180px !important}
  .rw-swipe .rw-card:hover,.rw-card:hover{transform:none !important}
  .rw-swipe span[style*="font-size:32px"],.rw-swipe span[style*="font-size:27px"]{font-size:24px !important}
  /* compact footer: logo + socials on one line, three short link columns */
  .rw-footer{padding:30px 0 18px !important}
  .rw-foot{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 12px !important}
  .rw-brand{grid-column:1/-1;flex-direction:row !important;align-items:center;justify-content:space-between;gap:12px !important}
  .rw-brand>p{display:none}
  .rw-brand>div:first-child svg{width:30px;height:30px}
  .rw-brand>div:first-child span{font-size:24px !important}
  .rw-social{gap:8px !important}
  .rw-social a{width:34px !important;height:34px !important}
  .rw-social svg{width:15px;height:15px}
  .rw-foot>div:not(.rw-brand){gap:9px !important;font-size:13px !important;min-width:0}
  .rw-foot>div:not(.rw-brand)>span{font-size:14px !important;margin-bottom:0 !important}
  .rw-copy{margin-top:22px !important;padding-top:14px !important;gap:4px 12px !important;font-size:11.5px !important}

  /* pathways page: rows of three, each a swipe slider */
  .rw-dsk-only{display:none !important}
  .rw-m-only{display:block}
  .rw-prow+.rw-prow{margin-top:22px}
  .rw-prow-h{display:flex;align-items:baseline;gap:8px;margin:0 0 10px;font-size:17px;color:#0B1257}
  .rw-prow-h span{font-size:13px;color:#6B7193;font-weight:500}
  .rw-prow .rw-swipe>a{max-width:none !important;min-width:0 !important;flex:0 0 80% !important}
  .rw-prow .rw-swipe>a>span:first-child{height:150px !important}
  .rw-prow .rw-swipe img{height:100% !important}
  .rw-prow .rw-swipe span[style*="font-size:26px"]{font-size:22px !important}

  /* parent dashboard: compact top bar with scrolling tabs */
  .rw-side{flex:1 1 100% !important;min-width:0 !important;max-width:100%;padding:18px 14px 14px !important;gap:14px !important}
  .rw-side-nav{flex-direction:row !important;overflow-x:auto;gap:6px !important;margin:0 -14px;padding:0 14px 2px;scrollbar-width:none}
  .rw-side-nav::-webkit-scrollbar{display:none}
  .rw-side-nav>a{flex:none;padding:9px 13px !important;border-radius:999px !important;white-space:nowrap;font-size:14px;background:rgba(255,255,255,.07)}
  .rw-side-nav>a[aria-current]{background:#fff !important}
  .rw-help{display:none !important}
  main[style*="padding:28px 32px 40px"]{padding:20px 14px 32px !important;gap:18px !important}
  main>div:first-child>div:last-child{width:100%}
  main>div:first-child label{flex:1;min-width:0}
  main input[type="search"]{width:100% !important;min-width:0}
  main h1{font-size:28px !important}

  /* menu / search sheet */
  .rw-sheet{display:block;position:fixed;inset:0;z-index:200;visibility:hidden;font-family:'Poppins','Alyamama',sans-serif;color:#0B1257}
  .rw-sheet.open{visibility:visible}
  .rw-sheet-bg{position:absolute;inset:0;background:rgba(11,18,87,.28);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);opacity:0;transition:opacity .25s}
  .rw-sheet.open .rw-sheet-bg{opacity:1}
  .rw-panel{position:absolute;top:8px;left:12px;right:12px;max-height:calc(100% - 16px);overflow:auto;background:#fff;border-radius:28px;padding:10px 12px 18px;
    box-shadow:0 24px 60px rgba(11,18,87,.25);transform:translateY(-14px) scale(.98);opacity:0;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .2s}
  .rw-sheet.open .rw-panel{transform:none;opacity:1}
  .rw-panel-top{display:flex;align-items:center;justify-content:space-between;height:46px;padding:0 6px 0 4px}
  .rw-panel-top b{font-size:15px;font-weight:600;color:#4A5078}
  .rw-x{width:40px;height:40px;border-radius:50%;border:0;background:#EEF1FA;color:#0B1257;display:grid;place-items:center;cursor:pointer}
  .rw-links{list-style:none;margin:6px 0 0;padding:0}
  .rw-links a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 10px;border-bottom:1px solid #EEF0F6;color:#0B1257;font-size:18px;font-weight:600}
  .rw-links a small{font-size:12px;font-weight:500;color:#6B7193}
  .rw-links li:last-child a{border-bottom:0}
  .rw-cta2{display:grid;gap:10px;margin-top:14px}
  .rw-cta2 a{height:48px;border-radius:999px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:600;font-size:16px}
  .rw-cta2 a:first-child{background:#0868C4;color:#fff}
  .rw-cta2 a:last-child{border:1.8px solid #13207A;color:#0B1257}
  .rw-lang{display:flex;gap:8px;margin-top:14px;justify-content:center}
  .rw-lang a{font-size:14px;font-weight:600;color:#0868C4;padding:6px 12px;border-radius:999px;background:#EEF1FA}
  .rw-q{display:flex;align-items:center;gap:10px;margin:4px 2px 8px;height:50px;border-radius:999px;background:#F1F3F9;padding:0 16px;border:1.5px solid transparent}
  .rw-q:focus-within{border-color:#0868C4;background:#fff}
  .rw-q input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:16px;color:#0B1257}
  .rw-q svg{flex:none;color:#4A5078}
  .rw-chips{display:flex;flex-wrap:wrap;gap:8px;margin:6px 2px 10px}
  .rw-chips button{border:1.5px solid #D5DBEC;background:#fff;color:#0B1257;border-radius:999px;padding:7px 13px;font:inherit;font-size:13.5px;font-weight:600;cursor:pointer}
  .rw-empty{padding:18px 10px;color:#6B7193;font-size:14px;text-align:center}
  .rw-sheet[data-mode="menu"] .rw-only-search,.rw-sheet[data-mode="search"] .rw-only-menu{display:none !important}
}

@media (max-width:360px){
  .rw-h1{font-size:41px !important}
  .rw-stat-row>div>div:first-child{font-size:17.5px !important}
  .rw-stat-row>div>div:last-child{font-size:10.5px !important}
  .rw-logo>span>span:first-child{font-size:22px !important}
  .rw-menu{margin-inline-end:6px}
  .rw-search{margin-inline-start:6px}
  .rw-social{gap:6px !important}
  .rw-social a{width:30px !important;height:30px !important}
  .rw-brand>div:first-child span{font-size:20px !important}
  .rw-brand>div:first-child svg{width:26px;height:26px}
}
