/* Single Flexbox system for program hubs. Maps to Elementor containers + widgets. */

.fbtl-hub {
  --navy: #092242;
  --green: #00AB3B;
  --lime: #C9DB00;
  --muted: #64748b;
  --border: #e2e8f0;
  --soft: #f8fafc;
  --tint: #e6f9ed;
  --radius: 12px;
  --sans: "Inter", "DM Sans", "Plus Jakarta Sans", sans-serif;
  --serif: "Playfair Display", "DM Serif Display", serif;
  color: var(--navy);
  font-family: var(--sans);
  background: #fff;
}

.fbtl-hub,
.fbtl-hub .e-con,
.fbtl-hub .e-con-inner,
.fbtl-hub .elementor-widget,
.fbtl-hub .elementor-widget-container {
  min-width: 0;
}

.fbtl-hub.e-con,
.fbtl-hub .e-con {
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
}

.fbtl-hub .elementor-heading-title,
.fbtl-hub .elementor-widget-text-editor,
.fbtl-hub .elementor-widget-text-editor p {
  margin: 0;
  color: inherit;
  font-family: inherit;
}

.fbtl-hub .elementor-widget-text-editor p + p {
  margin-top: 12px;
}

.fbtl-hub h1.elementor-heading-title,
.fbtl-hub .elementor-widget-heading h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.08;
  font-weight: 800;
}

.fbtl-hub h2.elementor-heading-title,
.fbtl-hub .elementor-widget-heading h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
}

.fbtl-hub h3.elementor-heading-title,
.fbtl-hub .elementor-widget-heading h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 800;
}

.fbtl-kicker,
.fbtl-hub .fbtl-kicker,
.fbtl-hub .elementor-widget-text-editor .fbtl-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fbtl-muted,
.fbtl-hub .fbtl-muted {
  color: var(--muted);
  line-height: 1.65;
}

.fbtl-hub-hero,
.fbtl-hub-section,
.fbtl-hub-band,
.fbtl-hub-cta {
  width: 100%;
  padding: 64px 5%;
}

.fbtl-hub-hero .e-con-inner,
.fbtl-hub-section .e-con-inner,
.fbtl-hub-band .e-con-inner,
.fbtl-hub-cta .e-con-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.fbtl-hub-hero {
  background: #fff;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.fbtl-hub-hero-split {
  text-align: left;
}

.fbtl-hub-hero-dark {
  background: var(--navy);
  color: #fff;
  border-bottom: 0;
  min-height: 70vh;
}

.fbtl-hub-hero-dark .elementor-heading-title,
.fbtl-hub-hero-dark .elementor-widget-text-editor,
.fbtl-hub-hero-dark .elementor-widget-text-editor p {
  color: #fff;
}

.fbtl-hub-band {
  background: var(--soft);
  border-bottom: 1px solid var(--border);
}

.fbtl-hub-tint {
  background: var(--tint);
  padding: 22px 5%;
  text-align: center;
}

.fbtl-hub-cta {
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.fbtl-hub-cta .elementor-heading-title,
.fbtl-hub-cta .elementor-widget-text-editor,
.fbtl-hub-cta .elementor-widget-text-editor p {
  color: #fff;
}

.fbtl-hub-panel {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}

.fbtl-hub-panel .elementor-heading-title,
.fbtl-hub-panel .elementor-widget-text-editor,
.fbtl-hub-panel .elementor-widget-text-editor p {
  color: #fff;
}

.fbtl-hub-card,
.fbtl-hub a.fbtl-card,
.fbtl-hub .fbtl-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(9, 34, 66, 0.04);
}

.fbtl-hub .fbtl-card img,
.fbtl-hub-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

.fbtl-actions,
.fbtl-hub .fbtl-actions .e-con-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fbtl-hub-hero .fbtl-actions .e-con-inner,
.fbtl-hub-cta .fbtl-actions .e-con-inner {
  justify-content: center;
}

.fbtl-hub-hero-split .fbtl-actions .e-con-inner {
  justify-content: flex-start;
}

.fbtl-hub .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--navy);
  color: #fff;
  fill: currentColor;
}

.fbtl-hub .fbtl-btn-primary .elementor-button,
.fbtl-hub .elementor-element.fbtl-btn-primary .elementor-button {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.fbtl-hub .fbtl-btn-navy .elementor-button,
.fbtl-hub .elementor-element.fbtl-btn-navy .elementor-button {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.fbtl-hub .fbtl-btn-lime .elementor-button,
.fbtl-hub .elementor-element.fbtl-btn-lime .elementor-button {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--navy);
}

.fbtl-hub .fbtl-btn-outline .elementor-button,
.fbtl-hub .elementor-element.fbtl-btn-outline .elementor-button {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.fbtl-hub-hero-dark .fbtl-btn-outline .elementor-button,
.fbtl-hub-cta .fbtl-btn-outline .elementor-button {
  border-color: #fff;
  color: #fff;
}

.fbtl-hub .elementor-button:hover {
  transform: translateY(-1px);
}

.fbtl-video,
.fbtl-hub .elementor-widget-video .elementor-wrapper {
  display: block;
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.fbtl-hub-hero-split .elementor-widget-video .elementor-wrapper {
  max-width: none;
}

.fbtl-hub .elementor-widget-video .elementor-custom-embed {
  position: relative;
  height: 0 !important;
  padding-bottom: 56.25% !important;
}

.fbtl-hub .elementor-widget-video iframe,
.fbtl-hub .fbtl-video iframe,
.fbtl-hub iframe[src*="youtube"] {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border: 0;
}

.fbtl-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 14px;
}

.fbtl-step-num,
.fbtl-hub .fbtl-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 10px;
}

.fbtl-hub .fbtl-cards > .e-con-inner > .e-con,
.fbtl-hub .fbtl-row > .e-con-inner > .e-con,
.fbtl-hub .fbtl-steps > .e-con-inner > .e-con {
  flex: 1 1 200px;
}

.fbtl-hub ul {
  margin: 12px 0 0;
  padding-left: 1.1em;
  line-height: 1.7;
}

.fbtl-hub .elementor-widget-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.fbtl-court {
  position: relative;
}

.fbtl-court img {
  width: 100%;
  height: auto;
  display: block;
}

.fbtl-court nav {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.fbtl-court nav a {
  display: block;
}

.fbtl-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--tint);
  color: var(--green);
}

.fbtl-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 5%;
  border-bottom: 1px solid var(--border);
}

.fbtl-filter button,
.fbtl-filter .filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.fbtl-filter .active,
.fbtl-filter button.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

@media (max-width: 900px) {
  .fbtl-hub-hero-split > .e-con-inner,
  .fbtl-hub-hero-split.e-con,
  .fbtl-hub .fbtl-row > .e-con-inner,
  .fbtl-hub .fbtl-row.e-con,
  .fbtl-hub .fbtl-cards.e-con,
  .fbtl-hub .fbtl-cards > .e-con-inner,
  .fbtl-hub .fbtl-steps.e-con,
  .fbtl-hub .fbtl-steps > .e-con-inner {
    flex-direction: column !important;
    flex-wrap: wrap;
  }

  .fbtl-hub .fbtl-cards > .e-con-inner > .e-con,
  .fbtl-hub .fbtl-row > .e-con-inner > .e-con,
  .fbtl-hub .fbtl-steps > .e-con-inner > .e-con,
  .fbtl-hub .fbtl-cards.e-con > .e-con,
  .fbtl-hub .fbtl-row.e-con > .e-con,
  .fbtl-hub .fbtl-steps.e-con > .e-con {
    flex: 1 1 100%;
    width: 100%;
  }

  .fbtl-hub-hero,
  .fbtl-hub-section,
  .fbtl-hub-band,
  .fbtl-hub-cta {
    padding: 48px 5%;
  }
}

@media (max-width: 640px) {
  .fbtl-hub .elementor-button {
    width: 100%;
    justify-content: center;
  }

  .fbtl-filter button,
  .fbtl-filter .filter-btn {
    flex: 1 1 calc(50% - 8px);
  }
}
