
/* ============================================================
   GBERP Modern — Front Page + Course Template
   A premium, dark-toned hero with light content sections.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root{
  --gberp-bg: #0b1020;
  --gberp-surface: #0f1730;
  --gberp-text: #e9ecf5;
  --gberp-muted: #b6bfd8;
  --gberp-border: rgba(255,255,255,.10);
  --gberp-primary: #7c5cff;
  --gberp-primary-light: #a78bfa;
  --gberp-primary-2: #2dd4bf;
  --gberp-accent: #f472b6;
  --gberp-shadow: 0 18px 60px rgba(0,0,0,.35);
  --gberp-radius: 18px;
  --gberp-radius-sm: 12px;
  --gberp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --gberp-content-w: 1200px;
  --gberp-section-gap: clamp(48px, 7vw, 96px);
  --gberp-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Global overflow guard ---------- */
html{ overflow-x: hidden; }

/* ---------- Global resets for modern pages ---------- */

/* ── Transparent header (all pages) ── */
.site-header,
#masthead{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.ast-primary-header-bar,
.main-header-bar{
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: none !important;
}

.ast-above-header-bar{
  background: transparent !important;
}

.ast-below-header-bar{
  background: transparent !important;
}

/* Keep nav text visible on the dark hero */
.main-header-menu > .menu-item > .menu-link,
.ast-header-html-1,
.ast-header-html-2,
.ast-masthead-custom-menu-items,
.site-branding .site-title a,
.site-branding .site-description,
.ast-builder-menu-1 .menu-link{
  color: #ffffff !important;
}

.main-header-menu > .menu-item:hover > .menu-link,
.main-header-menu > .menu-item.current-menu-item > .menu-link{
  color: var(--gberp-primary-2) !important;
}

/* Mobile toggle (hamburger) icon in white */
.ast-mobile-menu-trigger-minimal,
.ast-button-wrap .ast-mobile-menu-buttons-minimal .menu-toggle,
.ast-header-break-point .ast-mobile-menu-buttons-fill .menu-toggle,
.ast-mobile-menu-buttons-outline .menu-toggle{
  color: #ffffff !important;
  border-color: rgba(255,255,255,.3) !important;
}

/* Hamburger SVG icon fill */
[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg,
.ast-button-wrap .menu-toggle .ast-mobile-svg{
  fill: #ffffff !important;
}

/* "Menu" text label next to hamburger */
[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-wrap .mobile-menu,
.ast-button-wrap .menu-toggle .mobile-menu{
  color: #ffffff !important;
}

/* Toggle button background for fill/outline styles */
.ast-button-wrap .menu-toggle.ast-mobile-menu-trigger-fill{
  background: rgba(255,255,255,.1) !important;
}
.ast-button-wrap .menu-toggle.ast-mobile-menu-trigger-outline{
  border-color: rgba(255,255,255,.3) !important;
}

/* Sub-menus keep a solid background so they stay readable */
.main-header-menu .sub-menu{
  background: #0f1730 !important;
  border: 1px solid rgba(255,255,255,.08);
}

.main-header-menu .sub-menu .menu-link{
  color: var(--gberp-text) !important;
}

.main-header-menu .sub-menu .menu-item:hover > .menu-link{
  color: var(--gberp-primary-2) !important;
}

/* ── Mobile popup / off-canvas / dropdown menu ── */
.ast-mobile-popup-drawer,
.ast-mobile-header-content,
.ast-mobile-popup-content,
.ast-mobile-popup-header{
  background: #0f1730 !important;
}

.ast-mobile-popup-drawer .menu-link,
.ast-mobile-header-content .menu-link,
.ast-mobile-popup-content .menu-link,
.ast-mobile-popup-drawer .menu-item > .ast-menu-toggle,
.ast-mobile-header-content .menu-item > .ast-menu-toggle{
  color: var(--gberp-text) !important;
}

.ast-mobile-popup-drawer .menu-item:hover > .menu-link,
.ast-mobile-header-content .menu-item:hover > .menu-link,
.ast-mobile-popup-drawer .current-menu-item > .menu-link,
.ast-mobile-header-content .current-menu-item > .menu-link{
  color: var(--gberp-primary-2) !important;
}

/* Close button in mobile popup */
.ast-mobile-popup-drawer .menu-toggle-close,
.menu-toggle-close .ast-close-svg{
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* Mobile menu border separators */
.ast-mobile-popup-drawer .main-header-menu,
.ast-mobile-header-content .main-header-menu{
  border-color: rgba(255,255,255,.08) !important;
}

.ast-mobile-popup-drawer .menu-item,
.ast-mobile-header-content .menu-item{
  border-color: rgba(255,255,255,.08) !important;
}

/* Dropdown arrow/chevron SVG */
.ast-mobile-popup-drawer .ast-menu-toggle svg,
.ast-mobile-header-content .ast-menu-toggle svg{
  fill: var(--gberp-muted) !important;
}

/* ============================
   PAGE BANNER (non-front, non-course pages)
   ============================ */
.gberp-page-banner{
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 120px) clamp(18px, 4vw, 40px) clamp(32px, 4vw, 56px);
  text-align: center;
  color: #fff;
  background-color: #0b1020;
  background-size: cover;
  background-position: center;
}

.gberp-page-banner::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,16,32,.50), rgba(11,16,32,.85));
  pointer-events: none;
}

.gberp-page-banner__inner{
  position: relative;
  z-index: 1;
  max-width: var(--gberp-content-w);
  margin: 0 auto;
}

.gberp-page-banner__title{
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: #fff;
}

.gberp-page-banner__desc{
  margin: 10px 0 0;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.6;
  color: rgba(255,255,255,.7);
}

/* Breadcrumb-style subtitle (optional) */
.gberp-page-banner__breadcrumb{
  margin: 12px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,.5);
}
.gberp-page-banner__breadcrumb a{
  color: rgba(255,255,255,.65);
  text-decoration: none;
}
.gberp-page-banner__breadcrumb a:hover{
  color: #fff;
}

.gberp-front,
.gberp-course{
  font-family: var(--gberp-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gberp-front{
  margin: 0;
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}

/* ============================
   HERO
   ============================ */

/* Full-bleed hero background only, content stays boxed */
.gberp-hero{
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.gberp-hero::before{
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: var(--gberp-hero-bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  pointer-events: none;
}

.gberp-hero__overlay,
.gberp-hero__inner,
.gberp-hero__content{
  position: relative;
  z-index: 1;
}

.gberp-hero{
  background: none !important;
}

/* ---------- Slider-as-background layer (full-bleed) ---------- */
.gberp-hero__slider{
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Let the slider plugin manage its own heights via JS.
   Just ensure it fills the width and images cover.     */
.gberp-hero__slider > *{
  width: 100% !important;
  max-width: 100% !important;
}

.gberp-hero__slider img{
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* When slider is active, hide the ::before fallback image */
.gberp-hero.has-slider::before{
  display: none;
}

.gberp-hero{
  --gberp-hero-offset: 92px;
  --gberp-hero-bottom-pad: clamp(28px, 4vw, 56px);
  --gberp-hero-bg:
    radial-gradient(1200px 600px at 10% 10%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(45,212,191,.25), transparent 60%),
    linear-gradient(180deg, #0b1020 0%, #070a14 100%);
  position: relative;
  /* Desktop: fixed 680px. Tablet/mobile: follow the slider image ratio
     with a floor so text overlay stays readable.                     */
  min-height: 680px;
  display: grid;
  align-items: end;
  padding: calc(clamp(42px, 6vw, 84px) + var(--gberp-hero-offset)) 18px var(--gberp-hero-bottom-pad);
  color: var(--gberp-text);
  overflow: hidden;
  background-image: var(--gberp-hero-bg);
  background-size: cover;
  background-position: center top;
  border-bottom: 1px solid var(--gberp-border);
}

/* Animated floating orbs behind hero content */
.gberp-hero__orbs{
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.gberp-hero__orb{
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  will-change: transform;
  animation: gberp-float 18s var(--gberp-ease) infinite alternate;
}

.gberp-hero__orb--1{
  width: 480px; height: 480px;
  background: var(--gberp-primary);
  top: -10%; left: -5%;
  animation-duration: 22s;
}

.gberp-hero__orb--2{
  width: 360px; height: 360px;
  background: var(--gberp-primary-2);
  bottom: -8%; right: -4%;
  animation-duration: 18s;
  animation-delay: -6s;
}

.gberp-hero__orb--3{
  width: 260px; height: 260px;
  background: var(--gberp-accent);
  top: 40%; left: 55%;
  animation-duration: 24s;
  animation-delay: -12s;
  opacity: .2;
}

@keyframes gberp-float{
  0%  { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
  100%{ transform: translate(-20px, 15px) scale(.95); }
}

/* Astra container reset — page-builder layout makes .ast-container
   100% wide, so the hero just fills its parent naturally.
   Safety net in case dynamic CSS still adds constraints. */
.ast-container .gberp-hero,
.ast-page-builder-template .site-content > .ast-container .gberp-hero{
  width: 100%;
  max-width: none !important;
  box-sizing: border-box;
}

/* Also ensure the Astra container itself has no residual constraints
   on the front page (belt-and-suspenders with the PHP filter). */
body.home .site-content > .ast-container,
body.page-template-front-page .site-content > .ast-container,
body.ast-page-builder-template .site-content > .ast-container{
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.gberp-hero__overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,16,32,.20) 0%, rgba(11,16,32,.68) 100%),
    radial-gradient(800px 480px at 30% 20%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(700px 420px at 80% 30%, rgba(45,212,191,.14), transparent 60%);
  pointer-events: none;
}

.gberp-hero__inner{
  position: relative;
  max-width: var(--gberp-content-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 28px;
  justify-items: center;
}

.gberp-hero__content{
  max-width: 680px;
  width: min(680px, 100%);
  background: rgba(11,16,32,.35);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: calc(var(--gberp-radius) + 4px);
  padding: 28px 28px 24px;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  text-align: center;
  margin-bottom: 0;
}

.gberp-hero__content.is-cta-only{
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

.gberp-hero__content.is-cta-only .gberp-hero__cta{
  margin-top: 0;
}

.gberp-hero__cta{ justify-content: center; }

/* Between 721px and 1540px — hero scales with the image ratio */
@media (max-width: 1540px){
  .gberp-hero{
    --gberp-hero-offset: 60px;
    min-height: 0 !important;
    aspect-ratio: 1920 / 680;
    padding-top: calc(clamp(32px, 5vw, 60px) + var(--gberp-hero-offset));
  }
}

@media (max-width: 820px){
  .gberp-hero__inner{ justify-items: stretch; }
  .gberp-hero__content{ max-width: none; }
}

/* Below 720px the slider images become shorter than the hero.
   Let the hero shrink to match the image aspect ratio. */
@media (max-width: 720px){
  .gberp-hero{
    --gberp-hero-offset: 48px;
    min-height: 0 !important;
    aspect-ratio: 1920 / 680;
    padding-top: calc(clamp(24px, 4vw, 48px) + var(--gberp-hero-offset));
  }
  .gberp-hero__cta .gberp-btn--ghost{
    display: none;
  }
}

@media (max-width: 540px){
  .gberp-hero{
    --gberp-hero-offset: 36px;
    min-height: 0 !important;
    /* Use a taller ratio on mobile so the hero isn't too thin.
       16/9 gives ~304px at 540px, ~225px at 400px, ~180px at 320px */
    aspect-ratio: 16 / 9;
    padding-left: 12px;
    padding-right: 12px;
  }
  /* Force FlexSlider internals to fill the taller hero on mobile */
  .gberp-hero__slider .flexslider,
  .gberp-hero__slider .flex-viewport,
  .gberp-hero__slider .slides,
  .gberp-hero__slider .slides > li{
    height: 100% !important;
  }
  .gberp-hero__slider img{
    height: 100% !important;
    object-fit: cover;
  }
  .gberp-hero__content{
    padding: 16px 14px 14px;
  }
  .gberp-hero__cta{
    display: none !important;
  }
}

.gberp-hero__kicker{
  margin: 0 0 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  color: var(--gberp-primary-2);
}

.gberp-hero__title{
  margin: 0 0 12px;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.02em;
}

.gberp-hero__subtitle{
  margin: 0;
  max-width: 58ch;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
  color: rgba(233,236,245,.80);
}

.gberp-hero__cta{
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Shared button styles ---------- */
.gberp-btn{
  appearance: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .25s var(--gberp-ease), box-shadow .25s var(--gberp-ease), background-color .25s var(--gberp-ease), border-color .25s var(--gberp-ease), color .25s var(--gberp-ease);
  will-change: transform;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gberp-btn--primary{
  background: rgba(255,255,255,.97);
  border-color: rgba(11,16,32,.18);
  box-shadow: 0 14px 40px rgba(0,0,0,.24);
}

.gberp-hero a.gberp-btn,
.gberp-hero a.gberp-btn:visited,
a.gberp-btn,
a.gberp-btn:visited{
  text-decoration: none;
}

.gberp-hero a.gberp-btn--primary,
.gberp-hero a.gberp-btn--primary:visited{
  color: #0b1020;
}

.gberp-btn--ghost{
  background: rgba(11,16,32,.78);
  border-color: rgba(255,255,255,.50);
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
}

.gberp-hero a.gberp-btn--ghost,
.gberp-hero a.gberp-btn--ghost:visited{
  color: #ffffff;
}

/* Subtle shine sweep */
.gberp-btn::before{
  content: "";
  position: absolute;
  inset: -40% -60%;
  transform: translateX(-70%) rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.20), transparent);
  opacity: 0;
  transition: opacity .25s var(--gberp-ease), transform .65s var(--gberp-ease);
  pointer-events: none;
}

.gberp-btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
}
.gberp-btn:hover::before{ opacity: 1; transform: translateX(50%) rotate(18deg); }
.gberp-btn:active{ transform: translateY(-1px); }
.gberp-btn:focus-visible{ outline: 3px solid rgba(124,92,255,.40); outline-offset: 3px; }

.gberp-hero a.gberp-btn--primary:hover,
.gberp-hero a.gberp-btn--primary:focus-visible{
  color: #0b1020;
  background: #ffffff;
  border-color: rgba(11,16,32,.30);
  box-shadow: 0 22px 65px rgba(0,0,0,.30);
}

.gberp-hero a.gberp-btn--ghost:hover,
.gberp-hero a.gberp-btn--ghost:focus-visible{
  color: #ffffff;
  background: rgba(11,16,32,.92);
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 22px 65px rgba(0,0,0,.36);
}

/* ============================
   TRUST / OLD COMPATIBILITY
   ============================ */
.gberp-trust{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--gberp-border);
  border-radius: var(--gberp-radius);
  padding: 14px;
  backdrop-filter: blur(12px);
}
.gberp-trust__title{ font-weight: 900; font-size: 14px; margin-bottom: 2px; }
.gberp-trust__text{ color: rgba(233,236,245,.75); font-size: 13px; }
@media (max-width: 820px){ .gberp-trust{ grid-template-columns: 1fr; } }

/* ============================
   SECTIONS (light bg)
   ============================ */
.gberp-section{
  max-width: var(--gberp-content-w);
  margin: 0 auto;
  padding: var(--gberp-section-gap) 18px;
}

.gberp-section__head{
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
  text-align: center;
}

.gberp-section__title{
  margin: 0;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #111827;
}

.gberp-section__badge{
  display: inline-block;
  margin: 0 auto 8px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(124,92,255,.12), rgba(45,212,191,.12));
  color: var(--gberp-primary);
  border: 1px solid rgba(124,92,255,.15);
}

.gberp-section__desc{
  margin: 0 auto;
  max-width: 56ch;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  color: #6b7280;
}

.gberp-front .gberp-section__desc{ color: #6b7280; }

/* Alternating section background */
.gberp-section--alt{
  position: relative;
}
.gberp-section--alt::before{
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border-top: 1px solid rgba(0,0,0,.04);
  border-bottom: 1px solid rgba(0,0,0,.04);
}

/* ============================
   FEATURES GRID
   ============================ */
.gberp-features{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gberp-feature{
  padding: 28px 24px;
  border-radius: var(--gberp-radius);
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 24px rgba(0,0,0,.04);
  transition: transform .3s var(--gberp-ease), box-shadow .3s var(--gberp-ease), border-color .3s var(--gberp-ease);
  text-align: center;
}

.gberp-feature:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.08);
  border-color: rgba(124,92,255,.15);
}

.gberp-feature__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  margin-bottom: 16px;
  font-size: 26px;
  background: linear-gradient(135deg, rgba(124,92,255,.10), rgba(45,212,191,.10));
  color: var(--gberp-primary);
}

.gberp-feature__title{
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.gberp-feature__text{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
}

@media (max-width: 820px){
  .gberp-features{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px){
  .gberp-features{ grid-template-columns: 1fr; }
}

/* ============================
   COURSE CARDS GRID
   ============================ */
.gberp-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1024px){
  .gberp-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .gberp-grid{ grid-template-columns: 1fr; }
}

.gberp-card{
  display: grid;
  grid-template-rows: 190px 1fr;
  border-radius: var(--gberp-radius);
  overflow: clip;
  border: 1px solid rgba(0,0,0,.07);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 24px rgba(10,18,40,.06);
  transition: transform .3s var(--gberp-ease), box-shadow .3s var(--gberp-ease), border-color .3s var(--gberp-ease);
}

.gberp-card__media{
  position: relative;
  background:
    radial-gradient(700px 220px at 20% 20%, rgba(124,92,255,.28), transparent 55%),
    radial-gradient(520px 220px at 80% 20%, rgba(45,212,191,.18), transparent 55%),
    linear-gradient(135deg, #0b1020, #131b37);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Shimmer overlay on card image */
.gberp-card__media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255,255,255,.06) 50%,
    transparent 60%
  );
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity .4s ease;
}
.gberp-card:hover .gberp-card__media::after{
  opacity: 1;
  animation: gberp-shimmer 1.6s ease forwards;
}

@keyframes gberp-shimmer{
  0%  { background-position: 100% 100%; }
  100%{ background-position: 0% 0%; }
}

.gberp-card__body{
  padding: 20px 20px 22px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.gberp-card__title{
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
}

.gberp-card__excerpt{
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #6b7280;
}

.gberp-card__link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--gberp-primary);
  margin-top: 4px;
  transition: gap .25s var(--gberp-ease);
}

.gberp-card__link::after{
  content: "\2192";
  transition: transform .25s var(--gberp-ease);
}

.gberp-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(10,18,40,.12);
  border-color: rgba(124,92,255,.16);
}

.gberp-card:hover .gberp-card__link{ gap: 10px; }
.gberp-card:hover .gberp-card__link::after{ transform: translateX(3px); }
.gberp-card:focus-visible{ outline: 3px solid rgba(124,92,255,.35); outline-offset: 3px; }

/* ============================
   CTA BANNER
   ============================ */
.gberp-cta-banner{
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--gberp-radius) + 6px);
  padding: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 56px);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(900px 450px at 20% 20%, rgba(124,92,255,.50), transparent 55%),
    radial-gradient(700px 380px at 85% 65%, rgba(45,212,191,.35), transparent 55%),
    linear-gradient(135deg, #12083a, #1e1260, #0d1428);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 24px 72px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.06);
}

/* Decorative shimmer line */
.gberp-cta-banner::before{
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 140%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(124,92,255,.5) 30%, rgba(45,212,191,.5) 70%, transparent 100%);
}

/* Subtle animated glow */
.gberp-cta-banner::after{
  content: "";
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.12), transparent 65%);
  pointer-events: none;
  animation: gberp-float 20s var(--gberp-ease) infinite alternate;
}

.gberp-cta-banner__inner{
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  justify-items: center;
}

.gberp-cta-banner__title{
  margin: 0;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: #fff;
}

.gberp-cta-banner__text{
  margin: 0;
  max-width: 50ch;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  color: rgba(255,255,255,.75);
}

.gberp-cta-banner .gberp-btn--primary{
  margin-top: 6px;
  background: #fff;
  color: #0b1020;
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
}

.gberp-cta-banner .gberp-btn--primary:hover{
  background: #fff;
  color: #0b1020;
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
}

/* ============================
   PROSE (page content)
   ============================ */
.gberp-prose{
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.75;
  color: #374151;
}
.gberp-prose h2,
.gberp-prose h3{
  margin: 2em 0 .5em;
  color: #111827;
}
.gberp-prose a{ color: var(--gberp-primary); text-decoration-color: rgba(124,92,255,.3); }
.gberp-prose a:hover{ text-decoration-color: var(--gberp-primary); }

/* ============================
   COURSE TEMPLATE
   ============================ */

.gberp-course{
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

.gberp-course__body{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.gberp-course-hero{
  overflow: hidden;
  position: relative;
  width: 100%;
  min-height: clamp(220px, 30vw, 400px);
  margin-bottom: 28px;
  padding: clamp(24px, 5vw, 56px) clamp(16px, 3vw, 48px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-image:
    radial-gradient(1000px 420px at 20% 20%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(900px 420px at 80% 25%, rgba(45,212,191,.22), transparent 60%),
    linear-gradient(135deg, #0b1020, #131b37);
}

.gberp-course-hero.has-bg{
  background-size: cover;
  background-position: center;
}

.gberp-course-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,16,32,.55), rgba(11,16,32,.90));
  pointer-events: none;
}

.gberp-course-hero__inner{
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: clamp(50px, 8vw, 100px);
  padding-left: 16px;
  padding-right: 16px;
  justify-items: center;
  box-sizing: border-box;
}

.gberp-course-hero__title{
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
  text-transform: capitalize;
}

.gberp-course-hero__meta{
  color: rgba(255,255,255,.75);
  font-weight: 600;
  font-size: 15px;
}

.gberp-course-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}

.gberp-course-layout.is-left{
  grid-template-columns: 280px minmax(0, 1fr);
}

.gberp-course-main .wp-block-uagb-image__figure {display: none;}
/* Hide only the first UAGB root container (title block) — preserve the contact form below */
.gberp-course-main .entry-content > .wp-block-uagb-container.uagb-is-root-container:first-child {display: none;}

@media (max-width: 980px){
  .gberp-course-layout,
  .gberp-course-layout.is-left{ grid-template-columns: 1fr; }

  /* Push left sidebar below content on mobile/tablet */
  .gberp-course-layout.is-left .gberp-course-aside{
    order: 2;
  }
  .gberp-course-layout.is-left #primary{
    order: 1;
  }

  .gberp-course__body{
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 540px){
  .gberp-course__body{
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 40px;
  }

  .gberp-course-hero__title{
    font-size: clamp(22px, 5.5vw, 32px);
  }

  .gberp-course-main{
    padding: 16px;
    border-radius: var(--gberp-radius-sm);
  }
}

.gberp-course-main{
  background: #fff;
  border-radius: var(--gberp-radius);
  border: 1px solid rgba(0,0,0,.07);
  padding: clamp(22px, 3vw, 40px);
  box-shadow: 0 4px 24px rgba(10,18,40,.05);
}

.gberp-course-main .entry-content{
  margin-top: 12px;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Prevent any child from blowing out the container width */
.gberp-course-main .entry-content img,
.gberp-course-main .entry-content iframe,
.gberp-course-main .entry-content video,
.gberp-course-main .entry-content table,
.gberp-course-main .entry-content pre,
.gberp-course-main .entry-content figure{
  max-width: 100%;
  height: auto;
}

.gberp-course-main .entry-content table{
  display: block;
  overflow-x: auto;
}

.gberp-course-main .entry-content pre{
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Override Astra's dynamic width on #primary inside our grid */
.gberp-course-layout #primary{
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.gberp-course-aside{
  position: sticky;
  top: 92px;
}

/* ── Sidebar widget styling ── */
.gberp-course-aside .widget{
  background: #fff;
  border-radius: var(--gberp-radius);
  border: 1px solid rgba(0,0,0,.07);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(10,18,40,.04);
}

.gberp-course-aside .widget-title,
.gberp-course-aside .wp-block-heading{
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #111827;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gberp-primary);
}

.gberp-course-aside .widget ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

.gberp-course-aside .widget ul li{
  margin: 0;
  padding: 0;
}

.gberp-course-aside .widget ul li a{
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.gberp-course-aside .widget ul li a:hover,
.gberp-course-aside .widget ul li.current-menu-item > a,
.gberp-course-aside .widget ul li.current_page_item > a{
  background: rgba(124,92,255,.08);
  color: var(--gberp-primary);
}

/* Nested sub-items */
.gberp-course-aside .widget ul ul{
  margin-left: 12px;
  padding-left: 10px;
  border-left: 1px solid rgba(0,0,0,.06);
}

.gberp-course-aside .widget ul ul li a{
  font-size: 13px;
  padding: 7px 10px;
}
@media (max-width: 980px){
  .gberp-course-aside{ position: static; }
}

/* ── Form submit button (Contact Form 7 etc.) ── */
.gberp-course-main input[type="submit"],
.gberp-course-main .wpcf7-submit,
.gberp-course-main button[type="submit"]{
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--gberp-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, var(--gberp-primary), #6341e0);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(124,92,255,.25);
  transition: transform .25s var(--gberp-ease), box-shadow .25s var(--gberp-ease);
}

/* Shine sweep on hover */
.gberp-course-main input[type="submit"]::before,
.gberp-course-main .wpcf7-submit::before,
.gberp-course-main button[type="submit"]::before{
  content: "";
  position: absolute;
  inset: -40% -60%;
  transform: translateX(-70%) rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  opacity: 0;
  transition: opacity .25s var(--gberp-ease), transform .6s var(--gberp-ease);
  pointer-events: none;
}

.gberp-course-main input[type="submit"]:hover,
.gberp-course-main .wpcf7-submit:hover,
.gberp-course-main button[type="submit"]:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(124,92,255,.35);
}

.gberp-course-main input[type="submit"]:hover::before,
.gberp-course-main .wpcf7-submit:hover::before,
.gberp-course-main button[type="submit"]:hover::before{
  opacity: 1;
  transform: translateX(50%) rotate(18deg);
}

.gberp-course-main input[type="submit"]:active,
.gberp-course-main .wpcf7-submit:active,
.gberp-course-main button[type="submit"]:active{
  transform: translateY(-1px);
}

.gberp-course-main input[type="submit"]:focus-visible,
.gberp-course-main .wpcf7-submit:focus-visible,
.gberp-course-main button[type="submit"]:focus-visible{
  outline: 3px solid rgba(124,92,255,.40);
  outline-offset: 3px;
}

/* ============================
   REVEAL ANIMATION
   ============================ */
[data-reveal]{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--gberp-ease), transform .6s var(--gberp-ease);
}

/* Stagger children in grids */
[data-reveal-delay="1"]{ transition-delay: .08s; }
[data-reveal-delay="2"]{ transition-delay: .16s; }
[data-reveal-delay="3"]{ transition-delay: .24s; }
[data-reveal-delay="4"]{ transition-delay: .32s; }
[data-reveal-delay="5"]{ transition-delay: .40s; }
[data-reveal-delay="6"]{ transition-delay: .48s; }
[data-reveal-delay="7"]{ transition-delay: .56s; }
[data-reveal-delay="8"]{ transition-delay: .64s; }

.is-revealed{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity: 1; transform: none; transition: none; }
}

/* ============================
   RESPONSIVE FINE-TUNING
   ============================ */
@media (max-width: 480px){
  .gberp-hero{
    min-height: 520px;
    padding-top: calc(clamp(28px, 5vw, 48px) + 72px);
  }
  .gberp-hero__content{ padding: 18px 16px 16px; }
  .gberp-hero__cta{
    flex-direction: column;
    align-items: stretch;
  }
  .gberp-btn{ justify-content: center; }
  .gberp-section{ padding-left: 14px; padding-right: 14px; }
  .gberp-card{ grid-template-rows: 160px 1fr; }
}
