/* Al Huda Schools V8.1: accessible mobile photography, stable parallax and
   responsive typography. Loaded after the V8 design tokens and animation CSS. */
:root{--v81-safe-outline:#d0f28c}
/* Normalise touch and keyboard controls across all pages. */
.v7-home-hero .v6-hero-choice,
.v7-home-hero .v6-hero-feature-link{touch-action:manipulation}
.v7-home-hero .hero-media .v6-hero-choice:focus-visible,
.v7-home-hero .hero-media .v6-hero-feature-link:focus-visible{
 outline:3px solid var(--v81-safe-outline);outline-offset:3px
}
/* Portrait-specific artwork has its visual focal point in the upper half.
   Do not allow the photo to be independently translated off the canvas. */
.v7-hero-media .v6-hero-slide[data-v6-school="secondary"] img,
.v7-school-discovery .school-sec .school-photo img[data-photo="students"]{
 object-position:center 24%;
}
.v7-pathway-mobile-photo img[data-photo="students"]{object-position:center 20%}
/* Prevent the inherited image-movement transforms from fighting the
   user-selected scene transition. The visual image stays anchored. */
.v7-home-hero .v7-hero-media .v6-hero-slide .photo-frame,
.v7-home-hero .v7-hero-media .v6-hero-slide img{translate:none}

@media(max-width:900px){
 /* On phones and tablets, no scroll parallax or forced pins. Keeping image
    surfaces stationary prevents jumpy scroll and cumulative content movement. */
 .v7-home-hero .hero-v3-copy,
 .v7-home-hero .hero-v3-title,
 .v7-home-hero .hero-photo-shell,
 .v7-home-hero .v7-portal-frame,
 .v7-home-hero .v7-hero-media .v6-hero-slide,
 .v7-home-hero .v8-hero-aurora,
 .v7-home-hero .v8-hero-vine,
 .v8-growth-art,
 .v8-growth-emblem,
 .v8-growth-emblem img,
 .v8-art-orbit,
 .v7-theatre-photo-stack,
 .v7-statement-orbit,
 .statement-ghost{
   transform:none!important;translate:none!important;rotate:none!important;
   will-change:auto!important;
 }
 .v7-home-hero .hero-photo-shell{
   clip-path:none!important;animation:none!important;opacity:1!important;
 }
 .v7-home-hero .v6-hero-slide{transition:opacity .38s ease!important}
 .v7-home-hero .v6-hero-slide img{transform:none!important;scale:1!important}
 .v7-home-hero .v8-aurora-a,.v7-home-hero .v8-aurora-b,
 .v7-home-hero .v7-orbit{animation:none!important;transform:none!important;will-change:auto!important}
 .v8-growth-emblem{left:50%;top:47%;transform:translate(-50%,-50%)!important}
 .v8-growth-story .v8-art-branches path{stroke-dashoffset:0!important}
 .v8-growth-story{scroll-snap-type:none}
 .v8-growth-art{position:relative!important;top:auto!important}
 .v7-home-hero{background-attachment:scroll}

 /* Give the portrait and the people in it an unobstructed canvas. Both the
    old angled placard and small decorative seal overlap real faces on phones. */
 .v7-home-hero .v7-media-placard,
 .v7-home-hero .v8-emblem-seal,
 .v7-home-hero .v7-portal-frame,
 .v7-home-hero .v7-portal-topline{display:none!important}

 /* The school selector and its CTA move OUTSIDE the photo. No buttons, text
    or ornamental badge can mask the pupils' faces after this change. */
 .v7-home-hero .hero-media.v7-hero-media{
   display:flex;flex-direction:column;gap:13px;height:auto!important;
   min-height:0!important;overflow:visible!important;isolation:isolate;
   width:min(100%,600px);margin:22px auto 28px!important;
 }
 .v7-home-hero .v7-hero-media .hero-photo-shell{
   position:relative;inset:auto;flex:none;display:block;
   height:clamp(350px,85vw,545px)!important;width:100%;
   background:radial-gradient(ellipse at 50% 44%,#356d76 0%,#0e3b4d 56%,#072637 100%);
   border-radius:46% 46% 3px 3px / 25% 25% 3px 3px;
   overflow:hidden;
 }
 .v7-home-hero .v7-hero-media .v6-hero-slide[data-v6-school="secondary"] img{
   object-fit:contain!important;object-position:center 33%!important;
 }
 .v7-home-hero .v7-hero-media .v6-hero-slide[data-v6-school="elementary"] img{
   object-fit:cover!important;object-position:center 28%!important;
 }
 .v7-home-hero .v7-hero-media .hero-photo-veil{
   background:linear-gradient(180deg,rgba(4,29,43,.04),transparent 45%,rgba(4,29,43,.15));
   pointer-events:none;
 }
 .v7-home-hero .hero-photo-index,
 .v7-home-hero .v7-hero-media .hero-photo-index{
   position:relative!important;inset:auto!important;top:auto!important;
   right:auto!important;bottom:auto!important;left:auto!important;
   display:grid;grid-template-columns:minmax(0,1fr);gap:9px;
   width:100%;min-width:0;margin:0;padding:0;
   transform:none!important;background:transparent;z-index:4;
 }
 .v7-home-hero .hero-photo-index .v6-hero-choices{
   display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
   width:100%;min-width:0;
 }
 .v7-home-hero .hero-photo-index .v6-hero-choice,
 .v7-home-hero .hero-photo-index .v6-hero-feature-link{
   position:relative;min-height:48px!important;height:auto!important;
   font-size:13px!important;line-height:1.35;letter-spacing:0;
   padding:9px 12px!important;min-width:0;width:100%;
   color:#f9fffd;border-color:rgba(204,237,218,.54);
   background:#123c4d;box-shadow:none;
 }
 .v7-home-hero .hero-photo-index .v6-hero-choice[aria-pressed="true"]{
   color:#092d3b;background:#d0f28c;border-color:#d0f28c;
 }
 .v7-home-hero .hero-photo-index .v6-hero-feature-link{
   display:flex;justify-content:space-between;
   background:#0b3445;color:#fff!important;
 }
 .v7-home-hero .hero-photo-index .v6-hero-feature-link:hover,
 .v7-home-hero .hero-photo-index .v6-hero-feature-link:focus-visible{
   background:#d0f28c;color:#082d3c!important;
 }
 .v7-home-hero .hero-photo-index .v8-icon-wrap{height:34px;width:34px}
 .v7-home-hero .hero-media .hero-photo-shell::after{pointer-events:none}

 /* Typography spacing stays stable as language and system text scaling change. */
 .v7-home-hero .v7-hero-edition,.v8-growth-story .v8-act-num,
 .v8-growth-story .v8-art-label,.v8-growth-stage-caption small{
   font-size:12px!important;line-height:1.5;letter-spacing:.03em;
 }
 .v7-home-hero .hero-rule{font-size:12px!important;line-height:1.5}
 .v7-home-hero .hero-lead{overflow-wrap:break-word;line-height:1.62}
 .v8-growth-chapter{min-height:0!important}
}
@media(max-width:520px){
 .v7-home-hero .hero-media.v7-hero-media{width:100%;margin-block:20px 26px!important}
 .v7-home-hero .v7-hero-media .hero-photo-shell{height:clamp(320px,96vw,440px)!important}
 .v7-home-hero .hero-photo-index .v6-hero-choice{font-size:12.5px!important}
 .v8-growth-intro h2,.v7-manifesto h2{overflow-wrap:normal;hyphens:manual}
 .v7-home-hero .hero-v3-copy{padding-bottom:16px}
 .v7-home-hero .v6-hero-feature-link{font-size:13px!important}
}
@media(max-width:360px){
 .v7-home-hero .v7-hero-media .hero-photo-shell{height:340px!important}
 .v7-home-hero .v7-hero-media .hero-photo-index .v6-hero-choice{font-size:12px!important;padding:9px 7px!important}
 .v7-home-hero .hero-photo-index .v6-hero-choices{gap:6px}
}
@media(prefers-reduced-motion:reduce){
 .v7-home-hero .v6-hero-slide,
 .v7-home-hero .v7-hero-media .hero-photo-shell{transition:none!important;animation:none!important}
}
body.motion-paused .v7-home-hero .v6-hero-slide{transition:none!important}
/* Portrait safety applies to desktop too: the angled branding placard sat
   directly over the photographed students, and the seal overlapped the upper
   portrait. The real school identity remains in the masthead and storytelling. */
.v7-home-hero .v7-media-placard,
.v7-home-hero .hero-seal.v8-emblem-seal{display:none!important}
/* A portrait should not be unpredictably cut by cover-cropping on tablets. */
@media(min-width:901px) and (max-width:1200px){
 .v7-home-hero .v7-hero-media .v6-hero-slide[data-v6-school="secondary"] img{
   object-fit:contain!important;object-position:center center!important;
 }
}
/* Second-pass typography finding: the admissions-pathway caveat was only 13px
   even on desktop. Keep this important information comfortably readable. */
.journey-note{font-size:15px!important;line-height:1.6;letter-spacing:0;max-width:74ch}
/* Original secondary photograph is portrait-oriented. Preserve the full frame
   on desktops too, rather than risking a head crop at wide hero aspect ratios. */
.v7-home-hero .v7-hero-media .v6-hero-slide[data-v6-school="secondary"] img{
 object-fit:contain!important;object-position:center center!important;
}
/* Desktop pointer sheen was persisting after taps on some touch browsers.
   Remove purely decorative pseudo-element motion from mobile buttons. */
@media(max-width:900px){
 .button::before,.header-apply::before{display:none!important;animation:none!important}
}
