/* ============================================================================
   gbi-products.css: course product images (Chair's decisions, 19 November 2026)
   1. .gbi-product-hero: full-width navy hero on every product landing page, the
      21:9 product image on the right, the dark left for the title.
   2. .gbi-pcard-img: clean product card images (no mask, no baked panel), the
      title stays in HTML, white, on the dark left of the photograph.
   Navy #051B43, white titles in Nevis, Cambria subtitles. No coloured corner
   fades: the only overlay is a horizontal navy fall-off behind the text.
   Image URLs come from gbi_product_hero_style() as custom properties.
   ============================================================================ */

/* ---------- 1. Product hero ---------- */
section.gbi-product-hero{
  --ph-fade:linear-gradient(90deg,#051B43 0%,#051B43 30%,rgba(5,27,67,.86) 42%,rgba(5,27,67,.35) 58%,rgba(5,27,67,0) 72%);
  position:relative;
  height:auto;min-height:0;
  color:#fff;
  background-color:#051B43!important;
  background-image:var(--ph-fade),var(--ph-jpg,none);
  background-position:left top,right center;
  background-size:100% 100%,auto 100%;
  background-repeat:no-repeat;
  overflow:hidden;
}
/* WebP where supported: 1920 wide at 1x, 2688 wide on 2x screens. */
@supports (background-image:image-set(url("a.webp") type("image/webp") 1x)){
  section.gbi-product-hero[style*="--ph-webp"]{
    background-image:var(--ph-fade),image-set(var(--ph-webp) type("image/webp") 1x,var(--ph-xl-webp) type("image/webp") 2x,var(--ph-jpg) type("image/jpeg") 1x);
  }
  @media (min-width:1921px){
    section.gbi-product-hero[style*="--ph-webp"]{
      background-image:var(--ph-fade),image-set(var(--ph-xl-webp) type("image/webp") 1x,var(--ph-jpg) type("image/jpeg") 1x);
    }
  }
}
/* The old per-page banner (.main-header::before) and the old banner image under
   the hero are replaced by the product image. */
section.main-header.gbi-product-hero::before{display:none;background-image:none}
section.gbi-product-hero>.about-warp-image{display:none}
section.gbi-product-hero>.container{position:relative;z-index:1}

/* Text: white titles in Nevis, Cambria subtitle and lead. */
section.gbi-product-hero h1,section.gbi-product-hero h2,section.gbi-product-hero h3,
section.gbi-product-hero h4,section.gbi-product-hero h5,section.gbi-product-hero h6,
section.gbi-product-hero p,section.gbi-product-hero li,section.gbi-product-hero i,
section.gbi-product-hero .text-muted,section.gbi-product-hero .text-dark,
section.gbi-product-hero .text-primary,section.gbi-product-hero .text-black,
section.gbi-product-hero .text-accent-violet,section.gbi-product-hero .text-accent-blue{color:#fff!important}
/* Badges and buttons keep their own colours: navy text on the yellow member badge. */
section.gbi-product-hero .badge.bg-warning,section.gbi-product-hero .badge.bg-warning *,
section.gbi-product-hero .btn-light,section.gbi-product-hero .btn-light *,
section.gbi-product-hero .btn-warning,section.gbi-product-hero .btn-warning *{color:#051B43!important}
section.gbi-product-hero .badge:not(.bg-warning) *,section.gbi-product-hero .btn:not(.btn-light):not(.btn-warning) *{color:inherit!important}
section.gbi-product-hero h1,section.gbi-product-hero .main-title,section.gbi-product-hero h1 span{
  font-family:var(--font-title,'Nevis','Arial Black',Arial,sans-serif);font-weight:700;letter-spacing:-.01em;line-height:1.12;text-transform:none;
}
section.gbi-product-hero h1{font-size:clamp(2rem,3.4vw,3.1rem);max-width:15em;margin-bottom:.6rem}
section.gbi-product-hero h1 span{font-size:inherit!important}
section.gbi-product-hero h5:first-child,section.gbi-product-hero h3.text-uppercase{
  font-family:var(--font-text,'Aptos','Segoe UI',sans-serif);font-size:.82rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;opacity:.9;
}
section.gbi-product-hero p.text-muted,section.gbi-product-hero .short-description,section.gbi-product-hero h6+h5,
section.gbi-product-hero p.lead{font-family:var(--font-sub,Cambria,Georgia,'Times New Roman',serif);font-size:1.12rem;line-height:1.55;max-width:34em}
section.gbi-product-hero .col-lg-7{max-width:640px}
/* Partner logos sit on a white chip so dark logos stay legible on navy. */
section.gbi-product-hero .container img{background:#fff;padding:6px 10px;border-radius:6px;box-sizing:content-box}
section.gbi-product-hero .btn-link{color:#fff!important}
section.gbi-product-hero a:not(.btn){color:#fff}

/* The bundles page hero was a full-screen photograph. */
section.solution-area-1.gbi-product-hero{height:auto;padding:110px 0 90px}

/* Large screens: a little more room for the photograph. */
@media (min-width:1400px){
  section.gbi-product-hero{background-size:100% 100%,auto 100%}
}

/* Tablets: the photograph moves further right and the text keeps its navy field. */
@media (max-width:1199px){
  section.gbi-product-hero{--ph-fade:linear-gradient(90deg,#051B43 0%,#051B43 38%,rgba(5,27,67,.9) 52%,rgba(5,27,67,.45) 70%,rgba(5,27,67,.1) 100%)}
}

/* Phones: the 1200x700 crop becomes a band above the title, the hero below is solid navy. */
@media (max-width:767px){
  section.gbi-product-hero,section.solution-area-1.gbi-product-hero{background-image:none!important;padding-top:0!important;padding-bottom:48px!important;height:auto!important}
  section.gbi-product-hero::before,section.main-header.gbi-product-hero::before{
    content:"";display:block!important;position:relative!important;inset:auto!important;
    width:100%!important;height:auto!important;aspect-ratio:12/7;z-index:auto!important;margin:0 0 28px;
    background-color:#051B43;
    background-image:linear-gradient(180deg,rgba(5,27,67,0) 62%,#051B43 100%),var(--ph-m-jpg,none)!important;
    background-size:100% 100%,cover!important;background-position:center,right center!important;background-repeat:no-repeat!important;
  }
  section.gbi-product-hero h1{font-size:1.9rem}
  section.gbi-product-hero .col-lg-7{max-width:none}
  section.gbi-product-hero p.text-muted,section.gbi-product-hero .short-description{max-width:none!important}
  section.gbi-product-hero .d-flex{flex-wrap:wrap}
}
@supports (background-image:image-set(url("a.webp") type("image/webp") 1x)){
  @media (max-width:767px){
    section.gbi-product-hero[style*="--ph-m-webp"]::before,section.main-header.gbi-product-hero[style*="--ph-m-webp"]::before{
      background-image:linear-gradient(180deg,rgba(5,27,67,0) 62%,#051B43 100%),image-set(var(--ph-m-webp) type("image/webp") 1x,var(--ph-m-jpg) type("image/jpeg") 1x)!important;
    }
  }
}
/* A product without a new image keeps a plain navy hero: no empty band on phones. */
@media (max-width:767px){
  section.gbi-product-hero:not([style*="--ph-m-jpg"]),section.solution-area-1.gbi-product-hero:not([style*="--ph-m-jpg"]){padding-top:48px!important}
  section.gbi-product-hero:not([style*="--ph-m-jpg"])::before,section.main-header.gbi-product-hero:not([style*="--ph-m-jpg"])::before{display:none!important}
}

/* Image on the left, text on the right (the bundles page's second section). */
section.gbi-product-hero.gbi-hero-left{
  --ph-fade:linear-gradient(270deg,#051B43 0%,#051B43 30%,rgba(5,27,67,.86) 42%,rgba(5,27,67,.35) 58%,rgba(5,27,67,0) 72%);
  background-position:left top,left center;
}
@media (max-width:1199px){
  section.gbi-product-hero.gbi-hero-left{--ph-fade:linear-gradient(270deg,#051B43 0%,#051B43 38%,rgba(5,27,67,.9) 52%,rgba(5,27,67,.45) 70%,rgba(5,27,67,.1) 100%)}
}
/* Phones: no band; the plain navy texture fills the section behind the white list. */
@media (max-width:767px){
  section.gbi-product-hero.gbi-hero-left{background-image:var(--ph-m-jpg,none)!important;background-size:cover!important;background-position:center!important;padding-top:56px!important}
  section.gbi-product-hero.gbi-hero-left::before,section.gbi-product-hero.gbi-hero-left[style*="--ph-m-webp"]::before{display:none!important}
}
@supports (background-image:image-set(url("a.webp") type("image/webp") 1x)){
  @media (max-width:767px){
    section.gbi-product-hero.gbi-hero-left[style*="--ph-m-webp"]{background-image:image-set(var(--ph-m-webp) type("image/webp") 1x,var(--ph-m-jpg) type("image/jpeg") 1x)!important}
  }
}
section.gbi-hero-left .container img{background:none;padding:0;border-radius:0}
section.gbi-hero-left del,section.gbi-hero-left s,section.gbi-hero-left strike,section.gbi-hero-left span,section.gbi-hero-left div{color:#fff}
section.gbi-hero-left .text-primary,section.gbi-hero-left .text-accent-violet{color:#fff!important}
section.gbi-hero-left h2{font-family:var(--font-title,'Nevis','Arial Black',Arial,sans-serif);font-weight:700}
/* The list keeps each bullet beside its line on phones. */
section.gbi-product-hero.gbi-hero-left .row.ms-4 .d-flex{flex-wrap:nowrap}
/* All Courses: the title sits in the navy field, without the old shadow. */
section.product-list-header.gbi-product-hero h1{text-shadow:none!important;font-weight:700!important;font-family:var(--font-title,'Nevis','Arial Black',Arial,sans-serif)!important}
section.product-list-header.gbi-product-hero h3{font-family:var(--font-text,'Aptos','Segoe UI',sans-serif)!important;font-size:.82rem;font-weight:700!important;letter-spacing:.14em;text-transform:uppercase}

/* ---------- 2. Product cards ---------- */
.gbi-pcard-pic{display:block}
img.gbi-pcard-img{display:block;width:100%;height:auto!important;aspect-ratio:1400/714;object-fit:cover;object-position:right center;background:#051B43}
img.gbi-pcard-img.gbi-pcard-wide{aspect-ratio:16/9}
/* The title overlay set by each card template: white, Nevis, on the dark left.
   The overlay spans the card; its text keeps to the dark left 46 percent. */
.position-relative:has(.gbi-pcard-img)>a>.position-absolute{width:100%;max-width:none!important;right:0}
.position-relative:has(.gbi-pcard-img)>a>.position-absolute>*{max-width:46%!important}
.position-relative:has(.gbi-pcard-img)>a>.position-absolute p,
.position-relative:has(.gbi-pcard-img)>a>.position-absolute h5{
  color:#fff!important;font-family:var(--font-title,'Nevis','Arial Black',Arial,sans-serif);font-weight:700;
  font-size:1.02rem;line-height:1.25;text-shadow:none;background:none!important;overflow-wrap:normal;word-break:normal;hyphens:none;
}
