/* Fixes and brand hooks for the lifted GenAInstein CSS. Loaded last so it wins. */

/* Upstream forces max-width:1264px on these section containers, making them nearly full-width
   at typical zoom levels. Reset to Bootstrap's standard 1140px so they indent the same as HabitGym. */
.course-trainings-section .container,
.jobs-section .container,
.challenges-section .container {
  box-sizing: border-box;
  max-width: 1140px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

/* ── Hero section: tighten row padding ───────────────────────────────────── */
.top-banner .banner-row { padding: 1vh 0 !important; }

/* ── Hero CTA button: outlined style matching original ───────────────────── */
.banner-text .button-banner a,
.banner-text .button-banner a.offering-btn {
  height: auto !important;
  line-height: 1.4 !important;
  background: transparent !important;
  color: var(--primary-orange) !important;
  border: 2px solid var(--primary-orange) !important;
  border-radius: 6px !important;
  padding: 10px 28px !important;
  font-size: 14px !important;
  font-family: CircularStd-Medium, sans-serif !important;
  font-weight: 600 !important;
}
.banner-text .button-banner a:hover,
.banner-text .button-banner a.offering-btn:hover {
  background: var(--primary-orange) !important;
  color: #fff !important;
}

/* ── Carousel arrows: strip border, push to edges, indent content ────────── */
.banner-slider button.slide-arrow,
.banner-slider .slide-arrow {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  -webkit-appearance: none;
}
.banner-slider button.slide-arrow:focus { outline: none !important; }
/* Keep arrows at the edges of the slider */
.banner-slider .prev-arrow { left: 0 !important; }
.banner-slider .next-arrow { right: 0 !important; }
/* Indent the slide content so text clears both arrows (each arrow is 44px wide) */
.banner-slider-contant { padding: 0 56px !important; }

/* ── Opportunity tiles: left-align text, restore original size ───────────── */
.opportunity-card,
.top-banner .unlock-career-container .opportunity-card {
  align-items: flex-start !important;
  text-align: left !important;
  height: 150px !important;
  min-height: 150px !important;
  max-height: 150px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-top: 12px !important;
}
.card-content {
  padding: 0 14px !important;
  margin-bottom: 45px !important;
}
.opportunity-card h3 {
  font-family: CircularStd-Bold, sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 3px !important;
}
.opportunity-card p {
  font-family: CircularStd-Book, sans-serif !important;
  font-size: 12px !important;
  color: rgba(255,255,255,0.88) !important;
}
.opportunities-grid {
  gap: 12px !important;
}
/* Add top breathing room so tiles don't touch the header */
.unlock-career-container { padding: 18px 0 0 0 !important; }

/* ── Opportunity card gradients: dark left → light right ─────────────────── */
.opportunity-card.habbit_gym       { background: linear-gradient(90deg, #0E8A6E 0%, #1FD1A8 100%) !important; }
.opportunity-card.trainings        { background: linear-gradient(90deg, #E07A10 0%, #FFB84A 100%) !important; }
.opportunity-card.challenges       { background: linear-gradient(90deg, #C94030 0%, #FF7A5A 100%) !important; }
.opportunity-card.jobs             { background: linear-gradient(90deg, #2C4EC8 0%, #7DA8FF 100%) !important; }
.opportunity-card.industrial-projects { background: linear-gradient(90deg, #D4870A 0%, #FFD060 100%) !important; }

/* Brand colour hooks. --portal-primary / --portal-accent are only set when the tenant configures a
   colour; every fallback below is the original GenAInstein value, so an unconfigured brand is unchanged.
   Secondary colour needs no hook: it overrides --primary-orange directly. */
.top-banner .banner-text h5,
.banner-slider-contant .banner-text h5 {
  background: var(--portal-primary, #3B5CCC) !important;
}
.header .nav-menu {
  background: var(--portal-primary, #005478);
}
.habitgym-section .hg3-icon {
  background: var(--portal-accent, #4CA981) !important;
  width: 40px !important;
  height: 40px !important;
}
.habitgym-section .hg3-icon svg,
.habitgym-section .hg3-icon img,
.habitgym-section .hg3-icon .hg3-icon-img {
  width: 22px !important;
  height: 22px !important;
}
.habitgym-section .hg3-btn,
.habitgym-section a.hg3-btn,
.habitgym-section button.hg3-btn {
  background: var(--portal-accent, #4CA981) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  height: 48px !important;
  padding: 14px 32px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  font-family: CircularStd-Medium, sans-serif !important;
  width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  line-height: normal !important;
}
.hg3-ol input[type="radio"] {
  accent-color: var(--portal-accent, #4CA981);
}

/* Card image height: 100px across all sections */
.course-trainings-carousel .course-card-image-container,
.course-trainings-section .course-card-image-container,
.jobs-section .course-card-image-container,
.jobs-section .course-trainings-carousel .course-card-image-container,
.challenges-section .course-card-image-container,
.challenges-section .course-trainings-carousel .course-card-image-container,
.course-card-image-container { height: 100px !important; overflow: hidden !important; }
.course-card-image { width: 100% !important; height: 100% !important; object-fit: cover !important; }

/* Card content padding matching reference */
.course-card-content { padding: 16px !important; }

/* Override consolidated CSS which forces .hg3-body p to 18px !important */
.habitgym-section .hg3-body p { font-size: 15px !important; }
.habitgym-section .hg3-body .hg3-feedback { font-size: 14px !important; }
