/* ==========================================================================
   Photo banners (approved 1 Dec 2026)
   Junab's banner photos on every public page with a white banner.
   - Each page's <section class="h1-bg" data-hero="white"> has data-banner="<name>",
     which picks static/images/banners/banner-<name>.jpg (and banner-<name>-rtl.jpg,
     a mirrored copy, for Arabic and Urdu).
   - Laptop and desktop (1025px and wider): the photo sits inside the page area,
     lined up with the menu bar, and is resized to fit so no part is cut off.
     A soft white fade behind the heading keeps the text easy to read.
   - Application Form, How to Apply, Book Counselling, Course Search and the
     Privacy / Terms / Cookies pages use a smaller photo that starts below the menu bar.
   - Tablet and phone (1024px and narrower): the photo shows lightly behind the text.
   Login is not changed (keeps its own picture).
   ========================================================================== */

html body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner]{background:#FFFFFF!important;position:relative!important;isolation:isolate}
html body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner]::after{display:none!important}
html body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner]::before{content:""!important;display:block!important;position:absolute!important;top:0;bottom:0;left:max(40px, calc((100% - 1200px) / 2));right:max(40px, calc((100% - 1200px) / 2));width:auto!important;height:auto!important;z-index:-1!important;pointer-events:none;border:0!important;border-radius:0!important;opacity:1!important;transform:none!important;box-shadow:none!important;
  --pb-veil:linear-gradient(90deg,#FFFFFF 0,#FFFFFF 440px,rgba(255,255,255,.85) 540px,rgba(255,255,255,0) 690px);
  --pb-edge:linear-gradient(270deg,#FFFFFF 0,rgba(255,255,255,0) 30px);
  --pb-top:linear-gradient(180deg,#FFFFFF 0,rgba(255,255,255,.7) 50px,rgba(255,255,255,0) 110px);
  --pb-pos:right bottom;
  background:var(--pb-veil),var(--pb-edge),var(--pb-top),var(--pb-img) var(--pb-pos)/contain no-repeat!important}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner]::before{
  --pb-veil:linear-gradient(270deg,#FFFFFF 0,#FFFFFF 470px,rgba(255,255,255,.88) 570px,rgba(255,255,255,0) 720px);
  --pb-edge:linear-gradient(90deg,#FFFFFF 0,rgba(255,255,255,0) 30px);
  --pb-pos:left bottom}
html body section.h1-bg[data-hero="white"][data-banner] .ab-hero>p,html body section.h1-bg[data-hero="white"][data-banner] .ww-hero-body>p{max-width:600px!important}

/* Smaller photo that starts below the menu bar */
html body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="application"]::before,
html body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="howtoapply"]::before,
html body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="counselling"]::before,
html body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="legal"]::before,
html body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="search"]::before{top:118px;
  --pb-top:linear-gradient(180deg,#FFFFFF 0,rgba(255,255,255,0) 24px)}

/* Photo for each page */
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="about"]::before{--pb-img:url("../images/banners/banner-about.jpg")}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="about"]::before{--pb-img:url("../images/banners/banner-about-rtl.jpg")}
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="undergraduate"]::before{--pb-img:url("../images/banners/banner-undergraduate.jpg")}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="undergraduate"]::before{--pb-img:url("../images/banners/banner-undergraduate-rtl.jpg")}
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="postgraduate"]::before{--pb-img:url("../images/banners/banner-postgraduate.jpg")}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="postgraduate"]::before{--pb-img:url("../images/banners/banner-postgraduate-rtl.jpg")}
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="universities"]::before{--pb-img:url("../images/banners/banner-universities.jpg")}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="universities"]::before{--pb-img:url("../images/banners/banner-universities-rtl.jpg")}
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="howtoapply"]::before{--pb-img:url("../images/banners/banner-howtoapply.jpg")}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="howtoapply"]::before{--pb-img:url("../images/banners/banner-howtoapply-rtl.jpg")}
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="application"]::before{--pb-img:url("../images/banners/banner-application.jpg")}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="application"]::before{--pb-img:url("../images/banners/banner-application-rtl.jpg")}
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="workwithus"]::before{--pb-img:url("../images/banners/banner-workwithus.jpg")}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="workwithus"]::before{--pb-img:url("../images/banners/banner-workwithus-rtl.jpg")}
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="contact"]::before{--pb-img:url("../images/banners/banner-contact.jpg")}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="contact"]::before{--pb-img:url("../images/banners/banner-contact-rtl.jpg")}
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="counselling"]::before{--pb-img:url("../images/banners/banner-counselling.jpg")}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="counselling"]::before{--pb-img:url("../images/banners/banner-counselling-rtl.jpg")}
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="search"]::before{--pb-img:url("../images/banners/banner-search.jpg")}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="search"]::before{--pb-img:url("../images/banners/banner-search-rtl.jpg")}
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="legal"]::before{--pb-img:url("../images/banners/banner-legal.jpg")}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="legal"]::before{--pb-img:url("../images/banners/banner-legal-rtl.jpg")}

/* Tablet and phone: photo shows lightly behind the text */
@media (max-width:1024px){
  html body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner]::before{display:none!important}
  html body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner]{background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.84)),var(--pb-img) var(--pb-mpos,75%) center/cover no-repeat,#FFFFFF!important}
  html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner]{--pb-mpos:25%}
  html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="about"]{--pb-img:url("../images/banners/banner-about.jpg")}
  html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="about"]{--pb-img:url("../images/banners/banner-about-rtl.jpg")}
  html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="undergraduate"]{--pb-img:url("../images/banners/banner-undergraduate.jpg")}
  html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="undergraduate"]{--pb-img:url("../images/banners/banner-undergraduate-rtl.jpg")}
  html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="postgraduate"]{--pb-img:url("../images/banners/banner-postgraduate.jpg")}
  html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="postgraduate"]{--pb-img:url("../images/banners/banner-postgraduate-rtl.jpg")}
  html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="universities"]{--pb-img:url("../images/banners/banner-universities.jpg")}
  html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="universities"]{--pb-img:url("../images/banners/banner-universities-rtl.jpg")}
  html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="howtoapply"]{--pb-img:url("../images/banners/banner-howtoapply.jpg")}
  html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="howtoapply"]{--pb-img:url("../images/banners/banner-howtoapply-rtl.jpg")}
  html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="application"]{--pb-img:url("../images/banners/banner-application.jpg")}
  html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="application"]{--pb-img:url("../images/banners/banner-application-rtl.jpg")}
  html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="workwithus"]{--pb-img:url("../images/banners/banner-workwithus.jpg")}
  html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="workwithus"]{--pb-img:url("../images/banners/banner-workwithus-rtl.jpg")}
  html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="contact"]{--pb-img:url("../images/banners/banner-contact.jpg")}
  html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="contact"]{--pb-img:url("../images/banners/banner-contact-rtl.jpg")}
  html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="counselling"]{--pb-img:url("../images/banners/banner-counselling.jpg")}
  html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="counselling"]{--pb-img:url("../images/banners/banner-counselling-rtl.jpg")}
  html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="search"]{--pb-img:url("../images/banners/banner-search.jpg")}
  html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="search"]{--pb-img:url("../images/banners/banner-search-rtl.jpg")}
  html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="legal"]{--pb-img:url("../images/banners/banner-legal.jpg")}
  html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="legal"]{--pb-img:url("../images/banners/banner-legal-rtl.jpg")}
}
