/* Loaded only by the Intensive Bootcamp detail view. */
#hero .ib-hero-badges,
#hero .ib-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}
#hero .ib-hero-badges > * {
  max-width: 100%;
  overflow-wrap: anywhere;
}
#hero .ib-hero-badges .ai-badge {
  width: auto;
  padding: 6px 12px;
  border-radius: 50rem;
  gap: 6px;
}
#hero .ib-hero-badges .ai-badge .subtitle-bold {
  font-size: 14px;
}
#hero .ib-hero-badges svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.ib-compact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.ib-compact-button i { font-size: 14px; }
.ib-consultation-button { color: #198754; }
.ib-consultation-button:hover,
.ib-consultation-button:focus-visible { color: #146c43; background: #eaf6ee; }
.ib-compact-button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.ib-compact-button:active { background: #f0f0f0; }
.ib-navbar-consultation { margin-left: 10px; flex-shrink: 0; }
#nav-tab-overview-guest .nav-tabs { max-width: 100%; overscroll-behavior-x: contain; }
#nav-tab-overview-guest .nav-link { flex: 0 0 auto; }
/* Contain the existing decorative image's negative right offset. */
#hero { overflow: clip; }
@media (min-width: 992px) {
  #hero .desktop > .ib-hero-actions { max-width: 50%; }
  .navbar:has(.ib-navbar-consultation) .navbar-brand { width: auto !important; margin-right: 20px; }
  .navbar:has(.ib-navbar-consultation) .navbar-other { width: auto !important; }
  .navbar:has(.ib-navbar-consultation) .navbar-collapse { min-width: 0; }
  .navbar:has(.ib-navbar-consultation) .navbar-collapse > .navbar-nav { margin-left: 0 !important; }
}
@media (max-width: 991px) {
  #hero .hero-size { max-height: none; }
  #hero .hero-content { min-width: 0; }
  .ib-navbar-consultation { margin: 8px 0; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar:has(.ib-navbar-consultation) > .container {
    flex-wrap: wrap !important;
    height: auto !important;
    min-height: 70px;
    row-gap: 8px;
    padding-bottom: 8px;
  }
  .navbar:has(.ib-navbar-consultation) .navbar-other { flex-basis: 100%; }
}

/* Keep the real mobile header in view; the theme clones the desktop navbar. */
.ib-wa-label-short { display: none; }
.ib-intensive-detail #sticky-banner {
  height: auto;
  min-height: 130px;
  box-sizing: border-box;
  padding: 12px 0;
}
.ib-intensive-detail #sticky-banner > .container { min-width: 0; gap: 16px; }
.ib-intensive-detail #sticky-banner .sticky-banner-content { min-width: 0; flex: 1; }
.ib-intensive-detail #sticky-banner .sticky-banner-button { gap: 12px; flex-wrap: wrap; min-width: 0; }
.ib-intensive-detail #nav-tab-overview-guest .nav-tabs {
  overflow-y: hidden;
  padding-bottom: 2px;
  scroll-padding-inline: 8px;
}
.ib-intensive-detail #nav-tab-overview-guest .nav-link { white-space: nowrap; line-height: 1.5; }
@media (max-width: 991px) {
  .ib-intensive-detail .navbar.banner--clone { display: none !important; }
  .ib-mobile-header > .navbar > .container { gap: 8px; padding-inline: 12px; }
  .ib-mobile-header .navbar-brand { width: auto !important; flex: 0 1 115px; margin: 0; min-width: 0; }
  .ib-mobile-header .navbar-brand img { width: 100%; max-width: 115px; height: auto; }
  .ib-mobile-header .navbar-other { width: auto !important; flex: 0 0 auto; margin-left: 0 !important; }
  .ib-mobile-header .navbar-other > .navbar-nav { gap: 0; }
  .ib-mobile-header .ib-mobile-consultation { margin-left: auto; flex: 0 0 auto; }
  .ib-mobile-header .ib-mobile-consultation .ib-compact-button { font-size: 12px; padding-inline: 8px; gap: 4px; }
  .ib-mobile-header .ib-wa-label-full { display: none; }
  .ib-mobile-header .ib-wa-label-short { display: inline; }
  .ib-mobile-header .navbar-hamburger { margin-left: 0 !important; }
  #hero .mobile .hero-company { height: auto !important; min-height: 120px; max-height: none !important; }
  #hero .mobile { padding-bottom: 24px; }
  .ib-intensive-detail #sticky-banner { min-height: 0; padding: 12px; }
  .ib-intensive-detail #sticky-banner > .container { gap: 12px; padding-inline: 0; }
  .ib-intensive-detail #sticky-banner .sticky-banner-content { flex: auto; }
  .ib-intensive-detail #sticky-banner .sticky-banner-button { width: 100%; }
  .ib-intensive-detail #sticky-banner .sticky-banner-cta { min-width: 0; }
}
@media (max-width: 359px) {
  .ib-mobile-header .navbar-brand { flex-basis: 100px; }
  .ib-mobile-header > .navbar > .container { gap: 6px; padding-inline: 10px; }
}

/* Mobile refinement: keep tap height while reducing visual weight. */
@media (max-width: 767px) {
  #hero .ib-hero-actions { flex-wrap: nowrap; gap: 8px; }
  #hero .ib-hero-actions .ib-hero-cta {
    flex: 0 0 auto;
    font-size: 12px;
    padding-inline: 10px;
    gap: 5px;
  }
  #hero .ib-hero-actions .ib-hero-cta i { font-size: 13px; }
  .ib-intensive-detail #nav-tab-overview-guest .nav-link {
    font-size: 12px !important;
    padding: 10px 10px;
  }

}

/* Clickable arrows sit outside the scrolling labels when needed at any size. */
.ib-intensive-detail .ib-tab-arrow { display: none; }
@media (max-width: 991px) {
  .ib-intensive-detail #sticky-banner .sticky-banner-button {
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 8px !important;
  }
  .ib-intensive-detail #sticky-banner .sticky-banner-cta { flex: 1 1 0; width: 0; }
  .ib-intensive-detail #sticky-banner .sticky-banner-cta button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 38px;
    min-height: 38px;
    padding: 6px 4px;
    font-size: clamp(11px, 3vw, 13px) !important;
    line-height: 18px;
    white-space: nowrap;
    min-width: 0;
  }
  .ib-intensive-detail #sticky-banner .sticky-banner-cta button svg { width: 14px; height: 14px; flex-shrink: 0; }
}

.ib-intensive-detail #nav-tab-overview-guest > .container { position: relative; }
.ib-intensive-detail #nav-tab-overview-guest.ib-tabs-overflow > .container { padding-inline: 44px !important; }
.ib-intensive-detail .ib-tabs-overflow .ib-tab-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #777;
  cursor: pointer;
}
.ib-intensive-detail .ib-tab-arrow-left { left: 4px; }
.ib-intensive-detail .ib-tab-arrow-right { right: 4px; }
.ib-intensive-detail .ib-tab-arrow span { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; }
.ib-intensive-detail .ib-tab-arrow-left span { transform: rotate(135deg); }
.ib-intensive-detail .ib-tab-arrow-right span { transform: rotate(-45deg); }
.ib-intensive-detail .ib-tab-arrow:disabled { visibility: hidden; }
.ib-intensive-detail .ib-tab-arrow:hover:not(:disabled) { background: #f7f7f7; }
.ib-intensive-detail .ib-tab-arrow:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }

@media (min-width: 768px) and (max-width: 991px) {
  .ib-intensive-detail #nav-tab-overview-guest .nav-link { font-size: 13px !important; padding: 10px 12px; }
}

/* Original navbar flow is retained; only the mobile program strip is compact. */
@media (max-width: 991px) {
  .ib-intensive-detail #sticky-banner { padding: 5px 12px; }
  .ib-intensive-detail #sticky-banner > .container { gap: 6px; }
  .ib-intensive-detail #sticky-banner .sticky-banner-content > p {
    font-size: 15px !important;
    line-height: 1.2;
    margin-bottom: 4px;
  }
  .ib-intensive-detail #sticky-banner .sticky-banner-content > .h2-bold { display: block; line-height: normal !important; }
  .ib-intensive-detail #sticky-banner .sticky-banner-content > .h2-bold > .d-flex {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px !important;
  }
  .ib-intensive-detail #sticky-banner .sticky-banner-content > .h2-bold > .d-flex > .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0 !important;
  }
  .ib-intensive-detail #sticky-banner .sticky-banner-content .h2-bold { font-size: 18px !important; line-height: 1.2 !important; }
  .ib-intensive-detail #sticky-banner .sticky-banner-content .body-m-medium { font-size: 10px !important; line-height: 1.2 !important; }
  .ib-intensive-detail #sticky-banner .sticky-banner-button { margin-top: 0 !important; }
  .ib-intensive-detail #sticky-banner .sticky-countdown-vertical { padding: 3px 5px; margin-top: 0; }
  .ib-intensive-detail #sticky-banner .sticky-countdown-timer-vertical { gap: 3px; }
  .ib-intensive-detail #sticky-banner .sticky-time-box-vertical { min-width: 24px; padding: 2px 3px; }
  .ib-intensive-detail #sticky-banner .sticky-time-box-vertical span:first-child { font-size: 11px; line-height: 1.2; }
  .ib-intensive-detail #sticky-banner .sticky-unit-vertical { font-size: 9px; line-height: 1.2; }
  .ib-intensive-detail #nav-tab-overview-guest > .container { padding-block: 4px !important; }
  .ib-intensive-detail #nav-tab-overview-guest .nav-tabs { padding-bottom: 0; }
  .ib-intensive-detail #nav-tab-overview-guest .nav-link { min-height: 36px; padding-block: 6px; line-height: 20px; }
}
@media (max-width: 359px) {
  .ib-intensive-detail #sticky-banner .sticky-banner-content > p { font-size: 14px !important; }
}

/* Reuse the Career Acceleration .btn variants; only sizing is local. */
#hero .ib-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-height: 38px;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}
.ib-intensive-detail #sticky-banner .ib-sticky-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-height: 46px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}
@media (max-width: 991px) {
  .ib-intensive-detail #sticky-banner .sticky-banner-button { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ib-intensive-detail #sticky-banner .sticky-banner-cta { width: 100%; min-width: 0; }
  .ib-intensive-detail #sticky-banner .ib-sticky-register { grid-column: 1 / -1; height: 38px; min-height: 38px; padding: 6px 4px; font-size: clamp(11px, 3vw, 13px); line-height: 18px; }
}
@media (max-width: 767px) {
  #hero .ib-hero-cta { font-size: 12px; padding-inline: 10px; }
}
@media (min-width: 430px) and (max-width: 991px) {
  .ib-intensive-detail #sticky-banner .sticky-banner-button { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ib-intensive-detail #sticky-banner .ib-sticky-register { grid-column: auto; }
}
@media (min-width: 430px) and (max-width: 575px) {
  .ib-intensive-detail #sticky-banner .sticky-banner-cta button,
  .ib-intensive-detail #sticky-banner .ib-sticky-register { font-size: 11px !important; }
}

#hero .ib-hero-cta,
.ib-intensive-detail #sticky-banner .ib-sticky-register { border-radius: 8px; }
@media (max-width: 991px) {
  .ib-intensive-detail #sticky-banner .sticky-banner-button:not(:has([data-bs-target])) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ib-intensive-detail #sticky-banner .sticky-banner-button:not(:has([data-bs-target])) .ib-sticky-register { grid-column: auto; }
}

/* Desktop: align the direct CTA anchor with the two wrapped buttons. */
@media (min-width: 992px) {
  .ib-intensive-detail #sticky-banner .sticky-banner-button { align-items: center; flex-wrap: nowrap; }
  .ib-intensive-detail #sticky-banner .ib-sticky-register { font-size: 16px; }
}

/* A single CTA group stays in the desktop row and docks below on mobile. */
.ib-intensive-detail .ib-sticky-actions { display: contents; }
.ib-intensive-detail .ib-sticky-bottom-space { flex: none; }
.ib-intensive-detail #sticky-banner .button-sylabus,
.ib-intensive-detail #sticky-banner .button-blue,
.ib-intensive-detail #sticky-banner .ib-sticky-register {
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.ib-intensive-detail #sticky-banner .ib-sticky-register { transform: none; }
.ib-intensive-detail #sticky-banner .button-sylabus svg path { transition: fill 200ms ease; }
.ib-intensive-detail #sticky-banner .button-sylabus:focus-visible,
.ib-intensive-detail #sticky-banner a:focus-visible > .button-sylabus { background: #4a90e2; color: #fff; border-color: #4a90e2; }
.ib-intensive-detail #sticky-banner .button-sylabus:focus-visible svg path,
.ib-intensive-detail #sticky-banner a:focus-visible > .button-sylabus svg path { fill: #fff; }
.ib-intensive-detail #sticky-banner .button-blue:focus-visible,
.ib-intensive-detail #sticky-banner a:focus-visible > .button-blue,
.ib-intensive-detail #sticky-banner .ib-sticky-register:focus-visible { background: #2378dc; color: #fff; border-color: #2378dc; }
.ib-intensive-detail #sticky-banner .button-sylabus:focus-visible,
.ib-intensive-detail #sticky-banner .button-blue:focus-visible,
.ib-intensive-detail #sticky-banner .sticky-banner-cta:focus-visible { outline: 2px solid #2378dc; outline-offset: 2px; }
@media (hover: hover) {
  .ib-intensive-detail #sticky-banner .button-sylabus:hover { background: #4a90e2; color: #fff; border-color: #4a90e2; }
  .ib-intensive-detail #sticky-banner .button-sylabus:hover svg path { fill: #fff; }
  .ib-intensive-detail #sticky-banner .button-blue:hover,
  .ib-intensive-detail #sticky-banner .ib-sticky-register:hover { background: #2378dc; color: #fff; border-color: #2378dc; }
}
@media (hover: none) {
  .ib-intensive-detail #sticky-banner .ib-sticky-register:hover:not(:focus-visible) { background: #4a90e2; color: #fff; border-color: #4a90e2; }
}
@media (max-width: 991px) {
  .ib-intensive-detail #nav-tab-overview-guest { display: none !important; }
  .ib-intensive-detail #sticky-banner .sticky-banner-button { grid-template-columns: minmax(0, 1fr); }
  .ib-intensive-detail #sticky-banner .sticky-banner-button:not(:has([data-bs-target])) { display: contents !important; }
  .ib-intensive-detail #sticky-banner .sticky-banner-button > .sticky-banner-cta { grid-column: 1 / -1; }
  .ib-intensive-detail .ib-sticky-actions {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
  }
  .ib-intensive-detail #sticky-banner.fixed-sticky .ib-sticky-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ib-intensive-detail #sticky-banner .ib-sticky-actions > .sticky-banner-cta { grid-column: auto; width: 100%; min-width: 0; }
}

/* Only the Intensive Bootcamp mobile sidebar consultation action. */
@media (max-width: 991px) {
  .ib-intensive-detail #mySidebarMobile .ib-navbar-consultation { margin-block: .25rem; }
  .ib-intensive-detail #mySidebarMobile .ib-consultation-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px;
    gap: 8px;
    border: 2px solid #198754;
    border-radius: .4rem;
    color: #198754;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
    transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
  }
  .ib-intensive-detail #mySidebarMobile .ib-consultation-button i { flex-shrink: 0; font-size: 18px; line-height: 1; }
  .ib-intensive-detail #mySidebarMobile .ib-consultation-button:hover,
  .ib-intensive-detail #mySidebarMobile .ib-consultation-button:focus-visible { color: #146c43 !important; border-color: #146c43; background: #eaf6ee; }
  .ib-intensive-detail #mySidebarMobile .ib-consultation-button:active { color: #0f5132 !important; border-color: #146c43; background: #d1e7dd; }
  .ib-intensive-detail #mySidebarMobile .ib-consultation-button:focus-visible { outline: 2px solid #198754; outline-offset: 2px; }
}
