/* GC Academy V13.6 — optional, page-scoped Hero layouts. Loaded after V13.2.
 * Existing pages keep their original layout until an administrator selects a mode.
 */
body .programs-hero .programs-hero-layout{align-items:center;gap:clamp(20px,3.4vw,52px);grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}
body .programs-hero .programs-hero-copy{min-width:0;max-width:100%}
body .programs-hero .programs-hero-copy h1{font-size:clamp(2.35rem,4.2vw,4.5rem)!important;line-height:1.16!important;letter-spacing:-.025em;max-width:760px;overflow-wrap:normal}
body .programs-hero .programs-hero-copy>p{font-size:clamp(1rem,1.4vw,1.17rem);line-height:1.9;max-width:650px}
body .programs-hero .gc9-programs-visual.gc16-custom-image{position:relative;isolation:isolate;padding:0!important;min-height:0!important;aspect-ratio:8/5;max-height:580px;overflow:hidden;border-radius:clamp(16px,2.3vw,28px)}
body .programs-hero .gc9-programs-visual.gc16-custom-image>picture{position:absolute;inset:0;display:block;width:100%;height:100%;margin:0;padding:0}
body .programs-hero .gc9-programs-visual.gc16-custom-image .gc11-showcase-custom{position:absolute!important;inset:0;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;display:block;object-fit:var(--gc-img-fit,cover);object-position:var(--gc-img-position,center center);transform:scale(var(--gc-img-zoom,1));border-radius:inherit}

/* Full-cover background mode — photographs never become readable text in HTML. */
body .gc16-hero--background{position:relative;isolation:isolate;overflow:hidden;background:#071b3d!important;color:#fff}
body .gc16-hero--background>.gc16-hero-bg{position:absolute;inset:0;z-index:0;display:block;overflow:hidden;pointer-events:none}
body .gc16-hero--background>.gc16-hero-bg img{display:block;width:100%;height:100%;object-fit:cover!important;object-position:var(--gc-img-position,center center);transform:scale(var(--gc-img-zoom,1));max-width:none}
body .gc16-hero--background:before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(100deg,rgba(5,18,43,.91),rgba(7,29,61,.76) 46%,rgba(8,32,69,.70));}
body .gc16-hero--background>.container{position:relative;z-index:2}
body .gc16-hero--background h1,body .gc16-hero--background h2,body .gc16-hero--background .kicker,body .gc16-hero--background .breadcrumbs,body .gc16-hero--background .breadcrumbs span,body .gc16-hero--background .breadcrumbs a{color:#fff!important}
body .gc16-hero--background p:not(.button),body .gc16-hero--background .legal-updated{color:rgba(255,255,255,.91)!important}
body .gc16-hero--background .programs-hero-layout,body .gc16-hero--background .info-hero-layout,body .gc16-hero--background .trainers-hero-layout,body .gc16-hero--background .event-hero-grid,body .gc16-hero--background .gc14-archive-grid,body .gc16-hero--background .faq-hero-layout,body .gc16-hero--background .program-detail-hero-layout,body .gc16-hero--background .trainer-profile-hero-layout{display:grid;grid-template-columns:minmax(0,1fr)!important;align-items:center;min-height:clamp(440px,56vh,740px);max-width:100%;padding-block:clamp(54px,6vw,112px)!important}
body .gc16-hero--background .programs-hero-copy,body .gc16-hero--background .info-hero-copy,body .gc16-hero--background .event-hero-content,body .gc16-hero--background .trainer-profile-copy,body .gc16-hero--background .program-detail-copy{max-width:900px;width:100%;min-width:0}
body .gc16-hero--background .gc9-programs-visual,body .gc16-hero--background .info-hero-media,body .gc16-hero--background .contact-hero-image,body .gc16-hero--background .contact-hero-panel,body .gc16-hero--background .trainers-hero-custom,body .gc16-hero--background .trainers-hero-collage,body .gc16-hero--background .event-visual,body .gc16-hero--background .gc14-archive-visual,body .gc16-hero--background .faq-hero-visual,body .gc16-hero--background .program-detail-visual,body .gc16-hero--background .trainer-profile-image{display:none!important}
body .gc16-hero--background .event-glow{z-index:1;pointer-events:none}
body .gc16-hero--background .legal-hero-inner{min-height:clamp(300px,45vh,550px);padding-block:clamp(42px,5vw,90px)}
body .gc16-hero--background .faq-hero-layout>.faq-hero-visual{display:none!important}
body .gc16-hero--background .event-hero-content p,body .gc16-hero--background .gc14-archive-grid p{max-width:790px}
body .gc16-hero--background .program-fact-row,body .gc16-hero--background .about-proof-row{max-width:850px}

/* Side-image mode: preserve page-specific structure and apply consistent image dimensions. */
body .gc16-hero--split{overflow:hidden}
body .gc16-hero--split .programs-hero-layout,body .gc16-hero--split .info-hero-layout,body .gc16-hero--split .trainers-hero-layout,body .gc16-hero--split .event-hero-grid{align-items:center;gap:clamp(22px,4vw,64px)}
body .gc16-hero--split .gc9-programs-visual.gc16-custom-image,body .gc16-hero--split .about-hero-media,body .gc16-hero--split .contact-hero-image,body .gc16-hero--split .trainers-hero-custom{overflow:hidden;border-radius:24px;box-shadow:0 22px 70px rgba(0,12,41,.22)}
body .gc16-hero--split .faq-hero-visual>picture,body .gc16-hero--split .faq-hero-visual>picture img{display:block;width:100%;height:100%;max-height:460px;border-radius:24px}
body .gc16-hero--split .faq-hero-visual>picture img{object-fit:var(--gc-img-fit,cover);object-position:var(--gc-img-position,center center)}
body .gc16-hero--split .legal-hero-inner{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(12px,3vw,44px);align-items:center}
body .gc16-privacy-side{grid-column:2;grid-row:1/7;align-self:stretch;min-height:260px;overflow:hidden;border-radius:24px;box-shadow:0 22px 60px rgba(0,12,41,.22)}
body .gc16-privacy-side picture,body .gc16-privacy-side img{display:block;width:100%;height:100%;max-height:460px;object-fit:var(--gc-img-fit,cover);object-position:var(--gc-img-position,center center)}
body .gc16-hero--split .trainer-profile-hero-layout,body .gc16-hero--split .program-detail-hero-layout{gap:clamp(20px,4vw,56px)}

@media(max-width:900px){
 body .programs-hero .programs-hero-layout{grid-template-columns:minmax(0,1fr)}
 body .programs-hero .programs-hero-copy h1{font-size:clamp(2.05rem,7vw,3.5rem)!important;max-width:100%}
 body .programs-hero .gc9-programs-visual.gc16-custom-image{width:100%;max-width:720px;margin-inline:auto}
 body .gc16-hero--split .legal-hero-inner{grid-template-columns:minmax(0,1fr)}
 body .gc16-privacy-side{grid-column:1;grid-row:auto;max-height:380px}
}
@media(max-width:780px){
 body .gc16-hero--background:before{background:linear-gradient(180deg,rgba(3,17,42,.83),rgba(5,24,53,.77) 50%,rgba(2,16,37,.92))}
 body .gc16-hero--background .programs-hero-layout,body .gc16-hero--background .info-hero-layout,body .gc16-hero--background .trainers-hero-layout,body .gc16-hero--background .event-hero-grid,body .gc16-hero--background .gc14-archive-grid,body .gc16-hero--background .faq-hero-layout,body .gc16-hero--background .program-detail-hero-layout,body .gc16-hero--background .trainer-profile-hero-layout{min-height:520px;padding-block:54px!important;grid-template-columns:minmax(0,1fr)!important}
 body .programs-hero .programs-hero-copy h1{font-size:clamp(1.95rem,8vw,3.05rem)!important;line-height:1.2!important;overflow-wrap:break-word}
 body .programs-hero .gc9-programs-visual.gc16-custom-image{aspect-ratio:4/3;max-height:none}
 body .gc16-hero--background .programs-hero-actions,body .gc16-hero--background .info-hero-actions{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){body .gc16-hero,body .gc16-hero *{animation-duration:0.01ms!important;transition-duration:0.01ms!important;scroll-behavior:auto!important}}

/* V13.6.1 — HOME HERO FULL-BLEED FIX ONLY.
   Background mode must fill the entire hero section, including its padding box.
   Do not change Split / Collage or any other page; leave all editor settings intact.
   Contain/ratio presets apply to framed media, never full-bleed backgrounds.
*/
body .gc9-home-hero.gc13-hero-mode-background {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
body .gc9-home-hero.gc13-hero-mode-background > picture.gc13-hero-backdrop {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: hidden !important;
  z-index: 0 !important;
  pointer-events: none !important;
}
body .gc9-home-hero.gc13-hero-mode-background > picture.gc13-hero-backdrop > img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: var(--gc-img-position, center center) !important;
  /* Never shrink a full background below 100%; 0.9 used to expose section margins. */
  transform: scale(max(1, var(--gc-img-zoom, 1))) !important;
}
body .gc9-home-hero.gc13-hero-mode-background::before {
  z-index: 1;
  pointer-events: none;
}
body .gc9-home-hero.gc13-hero-mode-background > .gc9-home-hero-inner,
body .gc9-home-hero.gc13-hero-mode-background > .gc9-hero-metrics {
  position: relative;
  z-index: 2;
}


/* GC Academy V13.7 — full-bleed media & motion collision guard.
 * Only active background modes are affected. Split/card/editor presets stay unchanged.
 * Camera/focal point remains controlled via the existing --gc-img-position.
 */
body .gc16-hero.gc16-hero--background > picture.gc16-hero-bg {
 position:absolute!important;inset:0!important;display:block!important;
 box-sizing:border-box!important;width:100%!important;max-width:none!important;
 height:100%!important;min-height:0!important;max-height:none!important;
 padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
 overflow:hidden!important;z-index:0!important;pointer-events:none;
}
body .gc16-hero.gc16-hero--background > picture.gc16-hero-bg > img {
 position:absolute!important;inset:0!important;display:block!important;
 box-sizing:border-box!important;width:100%!important;max-width:none!important;
 height:100%!important;min-height:0!important;max-height:none!important;
 object-fit:cover!important;
 object-position:var(--gc-img-position,center center)!important;
 transform:scale(max(1,var(--gc-img-zoom,1)))!important;
 border-radius:0!important;animation:none!important;will-change:auto!important;
}
/* Both hero types use the same predictable image geometry, while contrast overlays remain above the media. */
body .gc9-home-hero.gc13-hero-mode-background > picture.gc13-hero-backdrop > img {
 object-fit:cover!important;transform:scale(max(1,var(--gc-img-zoom,1)))!important;
 animation:none!important;will-change:auto!important;
}
/* Prevent a CSS animation on a large decorative overlay from competing with hero content. */
body .gc16-hero--background > .gc16-hero-bg,
body .gc13-hero-mode-background > .gc13-hero-backdrop{transform:none!important;will-change:auto!important;}
/* Touch screens: retain premium appearance, but avoid expensive persistent hover/3D painting. */
@media (hover:none), (pointer:coarse) {
 body .site-header{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;}
 body :is(.v4-course-card,.program-list-card,.trainer-directory-card,.v4-faculty-card,.gc11-specialty-card,.gc10-identity-card,.gc9-track-card,.gc10-participation-card,.gc-entlaqa-card):hover{transform:none!important;}
 .gc-hero-ring.two,.gc-hero-dot,.motion-on .event-glow-a {animation:none!important;}
}
/* System preference is authoritative; no scrolling or looping decorative motion. */
@media(prefers-reduced-motion:reduce){
 html:focus-within{scroll-behavior:auto!important;}
 body .gc13-hero-mode-background *,body .gc16-hero--background *,
 body .gc12-reveal,body .gc-reveal,body .gc-reveal-ready,
 body .gc-hero-ring,body .gc-hero-dot,body .event-glow-a{
 animation:none!important;transition:none!important;scroll-behavior:auto!important;
 }
 body .gc12-reveal,html.gc-motion body .gc-reveal,body.motion-on.gc-js .gc-reveal-ready{opacity:1!important;}
}


/* GC Academy V13.11: retire legacy reveal animations to avoid duplicate
   `transform`/opacity effects. gc-pro.js alone owns scroll entrances using
   the independent CSS `translate` property, never CSS `transform`. */
body.motion-on .gc12-reveal {animation:none!important;}
html.gc-motion body.motion-on .gc-reveal-ready:is(.program-card,.program-info-card,.event-benefit-grid article){
  opacity:1!important;
}
/* Disabled/reduced motion is never allowed to hide content or animate it.
   Avoid transform:none!important, which would break static card hover layouts. */
body.motion-off .gc12-reveal,body.motion-off .gc-reveal,body.motion-off .gc-reveal-ready{
  opacity:1!important;animation:none!important;transition:none!important;
}
@media (prefers-reduced-motion:reduce){
  body .gc12-reveal,body .gc-reveal,body .gc-reveal-ready{
    opacity:1!important;animation:none!important;transition:none!important;
  }
}

/* GC Academy V13.9 — prevent first-paint flashes in mobile hero text.
 * Card entrances now run once through one observer (gc-pro.js); no hidden-state CSS.
 */
@media (hover:none), (pointer:coarse) {
 body.motion-on .gc9-home-hero .gc9-home-copy,
 body.motion-on .gc9-home-hero .gc9-hero-actions { animation:none!important; }
}

/* GC Academy V13.12 — single-owner scroll reveal, no flash or hover conflicts.
   The tiny pre-translation is armed while the element is still OFFSCREEN.
   Reveal starts as the card enters the viewport; opacity is untouched. */
@keyframes gc12-onepass-rise {
  from { translate:0 16px; }
  to   { translate:0 0; }
}
@media (prefers-reduced-motion:no-preference) {
  body.motion-on .gc12-entry-armed { translate:0 16px; }
  body.motion-on .gc12-entry-armed.gc12-entry-playing {
    animation:gc12-onepass-rise .52s cubic-bezier(.18,.8,.22,1) both!important;
  }
}
body.motion-off .gc12-entry-armed { translate:none!important;animation:none!important; }
@media (prefers-reduced-motion:reduce) {
  body .gc12-entry-armed { translate:none!important;animation:none!important; }
}
/* Course type: clear typography + a relevant semantic icon, AR/EN and mobile. */
body :is(.v4-course-image,.program-list-image) .gc12-type-tag {
  position:absolute!important;inset-block-start:12px!important;top:12px!important;
  inset-inline-start:12px!important;inset-inline-end:auto!important;
  display:inline-flex!important;align-items:center!important;justify-content:center;
  gap:7px!important;box-sizing:border-box;max-width:calc(100% - 24px);
  min-height:35px;padding:6px 12px!important;border-radius:999px!important;
  font-size:clamp(11px,1vw,12px)!important;font-weight:800!important;
  line-height:1.35!important;letter-spacing:0!important;white-space:normal!important;
  text-align:start!important;z-index:5!important;
  color:#fff!important;background:rgba(11,39,83,.94)!important;
  border:1px solid rgba(218,238,255,.35)!important;
  box-shadow:0 5px 18px rgba(3,18,44,.27)!important;
  backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
  direction:inherit;
}
body :is(.v4-course-image,.program-list-image) .gc12-type-tag.gc12-type-tag--scholarship {
  background:linear-gradient(120deg,#ffdf95,#edb847)!important;
  border-color:rgba(123,79,5,.2)!important;color:#102850!important;
}
body .gc12-type-tag .gc12-type-icon { display:inline-flex;flex:0 0 17px;align-items:center;justify-content:center;line-height:1; }
body .gc12-type-tag .gc12-type-icon svg { display:block;width:17px;height:17px;max-width:17px;max-height:17px;stroke-width:1.85; }
body .gc12-type-tag .gc12-type-label { display:inline;min-width:0;font:inherit;line-height:1.35;color:inherit!important; }
@media(max-width:390px) {
 body :is(.v4-course-image,.program-list-image) .gc12-type-tag {padding:6px 10px!important;gap:6px!important;font-size:11px!important;}
}
