/* ==========================================================================
   Page banner circle style (approved 4 Dec 2026), matching the home banner.
   Used on every public page that has <section class="h1-bg" data-hero="white" data-banner="...">.
   - Laptop and desktop (1025px and wider) - style S1: white left side with faint navy dots,
     the faint campus photo across the right side, and the page's own photo inside a circle
     with a red ring and a dashed navy ring. Full width, edge to edge.
   - Tablet and phone (1100px and narrower) - style P1: the circle sits under the text.
   - 1101px and wider: every banner is the same height (520px). On tablets and phones the
     height follows the length of the text; the circle and spacing are the same on every page.
   - Arabic and Urdu are mirrored.
   Markup: templates/website/partials/page_banner_bg.html. JS: js/page_banner.js
   ========================================================================== */

html body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner]{background:#FFFFFF!important;position:relative!important;isolation:isolate;overflow:hidden;min-height:var(--pbn-h)!important;
  --pbn-h:520px;--pbn-d:400px;--pbn-cx:min(calc(50% + 350px), calc(100% - 290px));--pbn-pos:78% center}
html body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner]::before,html body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner]::after{content:none!important;display:none!important}
.pbn{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.pbn>span{position:absolute;display:block}
.pbn-dots{left:0;top:0;bottom:0;width:60%;background:radial-gradient(circle,rgba(21,27,84,.10) 1.2px,transparent 1.6px) 0 0/24px 24px;-webkit-mask-image:linear-gradient(90deg,#000 40%,transparent);mask-image:linear-gradient(90deg,#000 40%,transparent)}
.pbn-side{right:0;top:0;bottom:0;width:58%;background:linear-gradient(rgba(240,243,251,.74),rgba(240,243,251,.74)),url("../images/hero-circle-campus.jpg") center/cover no-repeat;filter:saturate(.85);-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 22%);mask-image:linear-gradient(90deg,transparent 0,#000 22%)}
.pbn-deco{left:var(--pbn-cx);top:calc(var(--pbn-top,112px) + (100% - var(--pbn-top,112px)) / 2 + 12px);width:0;height:0}
.pbn-deco>span{position:absolute;display:block;border-radius:50%;box-sizing:border-box}
.pbn-circle{width:var(--pbn-d);height:var(--pbn-d);left:calc(var(--pbn-d) / -2);top:calc(var(--pbn-d) / -2);background:#151B54 var(--pbn-img) var(--pbn-pos)/cover no-repeat;box-shadow:0 30px 70px rgba(5,8,30,.25)}
.pbn-ring{width:calc(var(--pbn-d) + 50px);height:calc(var(--pbn-d) + 50px);left:calc((var(--pbn-d) + 50px) / -2);top:calc((var(--pbn-d) + 50px) / -2);border:4px solid #C5242E;clip-path:inset(var(--pbn-clip1,0px) 0 0 0)}
.pbn-ring2{width:calc(var(--pbn-d) + 104px);height:calc(var(--pbn-d) + 104px);left:calc((var(--pbn-d) + 104px) / -2);top:calc((var(--pbn-d) + 104px) / -2);border:1px dashed rgba(21,27,84,.25);clip-path:inset(var(--pbn-clip2,0px) 0 0 0)}

/* Arabic and Urdu: mirrored */
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner]{--pbn-cx:max(calc(50% - 350px), 290px);--pbn-pos:22% center}
[dir="rtl"] .pbn-dots{left:auto;right:0;-webkit-mask-image:linear-gradient(270deg,#000 40%,transparent);mask-image:linear-gradient(270deg,#000 40%,transparent)}
[dir="rtl"] .pbn-side{right:auto;left:0;transform:scaleX(-1)}

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

/* Photo position in the circle for each page (4 Dec 2026): the photo still fills the whole circle;
   it is only moved so the people sit in the middle. Arabic and Urdu use the mirrored position. */
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="about"]{--pbn-pos:80.3% center}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="about"]{--pbn-pos:19.7% center}
/* Application Form: its own circle photo (Junab's "Apply Now" photo, 4 Dec 2026), the same in every language */
html[dir] body section.h1-bg.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="application"]{--pbn-img:url("../images/banners/circle-application.jpg");--pbn-pos:44% center}
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="contact"]{--pbn-pos:85.4% center}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="contact"]{--pbn-pos:14.6% center}
/* Book Counselling: its own square circle photo (Junab's "Outdoor Campus Counselling Meeting" photo, 4 Dec 2026), the same in every language */
html[dir] body section.h1-bg.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="counselling"]{--pbn-img:url("../images/banners/circle-counselling.jpg");--pbn-pos:center center}
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="howtoapply"]{--pbn-pos:88.4% center}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="howtoapply"]{--pbn-pos:11.6% center}
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="legal"]{--pbn-pos:94.3% center}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="legal"]{--pbn-pos:5.7% center}
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="postgraduate"]{--pbn-pos:79.5% center}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="postgraduate"]{--pbn-pos:20.5% center}
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="search"]{--pbn-pos:90.6% center}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="search"]{--pbn-pos:9.4% center}
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="undergraduate"]{--pbn-pos:88.4% center}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="undergraduate"]{--pbn-pos:11.6% center}
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="universities"]{--pbn-pos:95.8% center}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="universities"]{--pbn-pos:4.2% center}
html[dir="ltr"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="workwithus"]{--pbn-pos:79.5% center}
html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner="workwithus"]{--pbn-pos:20.5% center}

/* Laptop and desktop: the text stops before the red ring, in every language */
@media (min-width:1101px){
  html body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner] .hero-wrap>:not(:first-child):not(header):not(.hdr-ph):not(.mob-wrap){max-width:min(700px, calc(100vw - 462px))!important;box-sizing:border-box}
}

/* Smaller laptops */
@media (max-width:1280px){html body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner]{--pbn-d:320px;--pbn-cx:calc(100% - 205px)}html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner]{--pbn-cx:205px}}

/* Tablet and phone (P1): the circle sits under the text, centred */
@media (max-width:1100px){
  html body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner],html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner]{--pbn-d:340px;--pbn-cx:50%;--pbn-gap:150px;min-height:0!important}
  html body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner] .hero-wrap{padding-bottom:calc(var(--pbn-d) + var(--pbn-gap) + 24px)!important}
  .pbn-deco{top:calc(100% - var(--pbn-d) / 2 - 76px)}
  .pbn-dots,[dir="rtl"] .pbn-dots{width:100%;-webkit-mask-image:linear-gradient(180deg,#000 30%,transparent 80%);mask-image:linear-gradient(180deg,#000 30%,transparent 80%)}
  .pbn-side,[dir="rtl"] .pbn-side{left:0;right:0;top:auto;bottom:0;width:auto;height:62%;transform:none;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 35%);mask-image:linear-gradient(180deg,transparent 0,#000 35%)}
}
@media (max-width:640px){html body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner],html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner]{--pbn-d:300px;--pbn-gap:130px}}
@media (max-width:380px){html body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner],html[dir="rtl"] body section.h1-bg.h1-bg.h1-bg.h1-bg[data-hero="white"][data-banner]{--pbn-d:250px;--pbn-gap:110px}}
/* Very wide screens (1700px and up): the faded campus and library photo fills the whole banner,
   so the left side is never plain white - same as the home page (approved option B, 4 Dec 2026). */
@media (min-width:1700px){
  .pbn-side,[dir="rtl"] .pbn-side{width:100%;-webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.55) 0,rgba(0,0,0,.25) 30%,rgba(0,0,0,.25) 38%,#000 62%);mask-image:linear-gradient(90deg,rgba(0,0,0,.55) 0,rgba(0,0,0,.25) 30%,rgba(0,0,0,.25) 38%,#000 62%)}
  .pbn-dots{width:45%}
}
