/* ============================================================
   TBB Homepage — Page-Specific Styles
   Sections: Hero · Ticker · Offers · Jobs · Learning ·
             Calculators · News Feed · Community · About
   Breakpoints: 480 / 768 / 1024 / 1280 px
   ============================================================ */

/* ── Typography scale: body text 1.5×, headings at original size ── */
.tbb-home {
  --tbb-text-xs:   1.125rem;   /* 0.75  × 1.5 */
  --tbb-text-sm:   1.3125rem;  /* 0.875 × 1.5 */
  --tbb-text-base: 1.5rem;     /* 1     × 1.5 */
  --tbb-text-lg:   1.6875rem;  /* 1.125 × 1.5 */
  --tbb-text-xl:   1.875rem;   /* 1.25  × 1.5 */
  /* Heading sizes restored to original values */
  --tbb-text-2xl:  clamp(1.25rem, 2.5vw, 1.5rem);
  --tbb-text-3xl:  clamp(1.5rem,  3vw,   1.875rem);
  --tbb-text-4xl:  clamp(1.75rem, 3.5vw, 2.25rem);
  --tbb-text-5xl:  clamp(2rem,    4.5vw, 3rem);
  --tbb-text-6xl:  clamp(2.25rem, 5.5vw, 3.75rem);
}

/* ── Hero buttons and trust stats: keep at original sizes ── */
.tbb-hero__cta-row .tbb-btn     { font-size: 1rem; }
.tbb-hero__cta-row .tbb-btn--lg { font-size: 1.125rem; }
.tbb-hero__trust-stat strong    { font-size: 0.875rem; }
.tbb-hero__trust-stat span      { font-size: 0.6875rem; }

/* ────────────────────────────────────────────────────────────
   HERO
   ──────────────────────────────────────────────────────────── */
.tbb-hero {
  position: relative;
  background: linear-gradient(
    to bottom,
    var(--tbb-blue-950) 0%,
    var(--tbb-blue-950) 40%,
    var(--tbb-blue-900) 65%,
    var(--tbb-blue-700) 85%,
    var(--tbb-blue-500) 100%
  );
  padding-top:    var(--tbb-s-24);
  padding-bottom: var(--tbb-s-16);
  overflow: hidden;
  color: var(--tbb-white);
}

.tbb-hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.tbb-hero__bg-glow-1 {
  position: absolute;
  top: 50%; right: -80px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,.12) 0%, transparent 70%);
  pointer-events: none;
}
.tbb-hero__bg-glow-2 {
  position: absolute;
  bottom: -80px; left: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,64,175,.35) 0%, transparent 70%);
  pointer-events: none;
}

/* Two-column layout */
.tbb-hero__layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: var(--tbb-s-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── Hero copy ── */
.tbb-hero__pill {
  display:       inline-flex;
  align-items:   center;
  gap:           var(--tbb-s-2);
  padding:       var(--tbb-s-2) var(--tbb-s-4);
  border-radius: var(--tbb-r-full);
  background:    rgba(255,255,255,.12);
  border:        1px solid rgba(255,255,255,.2);
  font-size:     var(--tbb-text-sm);
  font-weight:   var(--tbb-weight-medium);
  margin-bottom: var(--tbb-s-6);
  color:         var(--tbb-blue-200);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.tbb-hero__pill-icon { font-size: 1.1em; color: var(--tbb-blue-300); }

.tbb-hero__title {
  font-size:      var(--tbb-text-6xl);
  font-weight:    var(--tbb-weight-extrabold);
  line-height:    var(--tbb-leading-tight);
  color:          var(--tbb-white);
  letter-spacing: -0.03em;
  margin: 0 0 var(--tbb-s-6);
}
.tbb-hero__title-em {
  display:    block;
  background: linear-gradient(90deg, #93c5fd, #60a5fa, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tbb-hero__desc {
  font-size:   var(--tbb-text-xl);
  line-height: var(--tbb-leading-relaxed);
  color:       var(--tbb-blue-200);
  max-width:   560px;
  margin: 0 0 var(--tbb-s-8);
}

.tbb-hero__cta-row {
  display:       flex;
  flex-wrap:     wrap;
  gap:           var(--tbb-s-3);
  margin-bottom: var(--tbb-s-10);
}

/* Trust bar */
.tbb-hero__trust {
  display:     flex;
  align-items: center;
  gap:         var(--tbb-s-5);
  flex-wrap:   wrap;
}
.tbb-hero__trust-stat strong {
  display:     block;
  font-size:   var(--tbb-text-lg);
  font-weight: var(--tbb-weight-extrabold);
  color:       var(--tbb-white);
  line-height: 1.1;
}
.tbb-hero__trust-stat span {
  font-size:  var(--tbb-text-xs);
  color:      var(--tbb-blue-300);
  margin-top: 2px;
  display:    block;
}
.tbb-hero__trust-sep {
  width:       1px;
  height:      28px;
  background:  rgba(255,255,255,.2);
  flex-shrink: 0;
}

/* ── Platform preview cards (2 × 2 grid) ── */
.tbb-hero__preview {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   12px;
  position:              relative;
  z-index:               1;
}

.tbb-pcard {
  background:      rgba(255,255,255,.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border:          1px solid rgba(255,255,255,.14);
  border-radius:   var(--tbb-r-2xl);
  padding:         var(--tbb-s-5);
  animation:       tbb-float 6s ease-in-out infinite;
}

.tbb-pcard--1 { animation-delay: 0s;    }
.tbb-pcard--2 { animation-delay: 1.5s;  }
.tbb-pcard--3 { animation-delay: 3s;    }
.tbb-pcard--4 { animation-delay: 4.5s;  }

@keyframes tbb-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.tbb-pcard__hd {
  display:       flex;
  align-items:   center;
  gap:           var(--tbb-s-2);
  margin-bottom: var(--tbb-s-4);
  padding-bottom: var(--tbb-s-3);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.tbb-pcard__hd > span {
  flex:        1;
  font-size:   0.8125rem;
  font-weight: var(--tbb-weight-semibold);
  color:       rgba(255,255,255,.85);
}
.tbb-pcard__ico {
  font-size:   1.1rem;
  flex-shrink: 0;
}

/* Per-platform accent colours */
.tbb-pcard--jobs    .tbb-pcard__ico { color: var(--tbb-blue-300); }
.tbb-pcard--courses .tbb-pcard__ico { color: #c4b5fd; }
.tbb-pcard--tools   .tbb-pcard__ico { color: #5eead4; }
.tbb-pcard--news    .tbb-pcard__ico { color: #fdba74; }

.tbb-pcard__badge {
  font-size:    0.6875rem;
  font-weight:  var(--tbb-weight-bold);
  padding:      2px 8px;
  border-radius: var(--tbb-r-full);
  white-space:  nowrap;
  flex-shrink:  0;
}
.tbb-pcard--jobs    .tbb-pcard__badge { color: var(--tbb-blue-300); background: rgba(59,130,246,.15); }
.tbb-pcard--courses .tbb-pcard__badge { color: #c4b5fd;             background: rgba(139,92,246,.15); }
.tbb-pcard--tools   .tbb-pcard__badge { color: #5eead4;             background: rgba(20,184,166,.15); }
.tbb-pcard--news    .tbb-pcard__badge { color: #fdba74;             background: rgba(249,115,22,.15); }

.tbb-pcard__badge--live {
  color:      #fca5a5 !important;
  background: rgba(239,68,68,.2) !important;
  letter-spacing: .06em;
  animation:  tbb-blink 1.8s ease-in-out infinite;
}
@keyframes tbb-blink {
  0%, 100% { opacity: 1;   }
  50%       { opacity: 0.5; }
}

.tbb-pcard__list {
  display:        flex;
  flex-direction: column;
  gap:            var(--tbb-s-2);
}
.tbb-pcard__item {
  display:     flex;
  align-items: center;
  gap:         var(--tbb-s-2);
  font-size:   0.75rem;
  color:       rgba(255,255,255,.6);
  line-height: 1.3;
}
.tbb-pcard__dot {
  width:        6px;
  height:       6px;
  border-radius: 50%;
  flex-shrink:   0;
  background:    var(--tbb-blue-400);
}
.tbb-pcard__dot--purple { background: #a78bfa; }
.tbb-pcard__dot--teal   { background: #2dd4bf; }
.tbb-pcard__dot--orange { background: #fb923c; }

/* ── Hero wave ── */
.tbb-hero__wave {
  display:    block;
  width:      100%;
  height:     72px;
  overflow:   hidden;
  position:   relative;
  z-index:    1;
  margin-top: var(--tbb-s-4);
}
.tbb-hero__wave svg {
  display: block;
  width:   100%;
  height:  100%;
}


/* ────────────────────────────────────────────────────────────
   WHAT WE OFFER
   ──────────────────────────────────────────────────────────── */
.tbb-offers { background: var(--tbb-gray-50); }

.tbb-offers__grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   var(--tbb-s-6);
}

.tbb-offer-card {
  background:    var(--tbb-white);
  border-radius: var(--tbb-r-2xl);
  padding:       var(--tbb-s-8);
  border:        1px solid var(--tbb-gray-200);
  transition:    all var(--tbb-t-base);
  display:       flex;
  flex-direction: column;
  gap:           var(--tbb-s-4);
  position:      relative;
  overflow:      hidden;
}
.tbb-offer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--tbb-r-2xl) var(--tbb-r-2xl) 0 0;
  opacity: 0;
  transition: opacity var(--tbb-t-base);
}
.tbb-offer-card:hover            { transform: translateY(-4px); box-shadow: var(--tbb-shadow-lg); border-color: transparent; }
.tbb-offer-card:hover::before    { opacity: 1; }

.tbb-offer-card--blue   { --offer-color: var(--tbb-blue-600);  --offer-bg: var(--tbb-blue-50);     }
.tbb-offer-card--purple { --offer-color: var(--tbb-purple);    --offer-bg: var(--tbb-purple-light); }
.tbb-offer-card--teal   { --offer-color: var(--tbb-teal);      --offer-bg: var(--tbb-teal-light);   }
.tbb-offer-card--orange { --offer-color: var(--tbb-orange);    --offer-bg: var(--tbb-orange-light); }

.tbb-offer-card--blue::before   { background: var(--tbb-blue-600); }
.tbb-offer-card--purple::before { background: var(--tbb-purple);   }
.tbb-offer-card--teal::before   { background: var(--tbb-teal);     }
.tbb-offer-card--orange::before { background: var(--tbb-orange);   }

.tbb-offer-card__icon-wrap {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:  3.5rem; height: 3.5rem;
  border-radius: var(--tbb-r-xl);
  background: var(--offer-bg);
  color:      var(--offer-color);
  font-size:  1.5rem;
  flex-shrink: 0;
}
.tbb-offer-card__title { font-size: var(--tbb-text-xl); font-weight: var(--tbb-weight-bold); color: var(--tbb-gray-900); margin: 0; }
.tbb-offer-card__desc  { font-size: var(--tbb-text-base); line-height: var(--tbb-leading-relaxed); color: var(--tbb-gray-500); flex: 1; margin: 0; }
.tbb-offer-card__link  {
  display: inline-flex; align-items: center; gap: var(--tbb-s-1);
  font-size: var(--tbb-text-sm); font-weight: var(--tbb-weight-semibold);
  color: var(--offer-color); text-decoration: none; margin-top: auto;
  transition: gap var(--tbb-t-fast);
}
.tbb-offer-card__link:hover { gap: var(--tbb-s-2); color: var(--offer-color); }

/* ────────────────────────────────────────────────────────────
   LIFE SCIENCE JOBS
   ──────────────────────────────────────────────────────────── */
.tbb-jobs { background: var(--tbb-white); }

.tbb-roles__grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   var(--tbb-s-4);
  margin-bottom:         var(--tbb-s-12);
}

.tbb-role-card {
  display:     grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap:         var(--tbb-s-4);
  padding:     var(--tbb-s-5) var(--tbb-s-6);
  border-radius: var(--tbb-r-xl);
  border:        1px solid var(--tbb-gray-200);
  background:    var(--tbb-white);
  text-decoration: none;
  color:           var(--tbb-gray-800);
  transition:      all var(--tbb-t-base);
}
.tbb-role-card:hover {
  border-color: var(--tbb-blue-400);
  background:   var(--tbb-blue-50);
  box-shadow:   var(--tbb-shadow-md);
  transform:    translateX(4px);
  color:        var(--tbb-gray-900);
}

.tbb-role-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--tbb-r-lg);
  background: var(--tbb-blue-50); color: var(--tbb-blue-600); font-size: 1.25rem;
  flex-shrink: 0;
  transition: background var(--tbb-t-fast), color var(--tbb-t-fast);
}
.tbb-role-card:hover .tbb-role-card__icon { background: var(--tbb-blue-600); color: var(--tbb-white); }

.tbb-role-card__title { font-size: var(--tbb-text-base); font-weight: var(--tbb-weight-semibold); color: var(--tbb-gray-900); margin: 0 0 var(--tbb-s-1); }
.tbb-role-card__desc  { font-size: var(--tbb-text-sm); color: var(--tbb-gray-500); line-height: var(--tbb-leading-snug); margin: 0; }

.tbb-role-card__count        { text-align: center; flex-shrink: 0; }
.tbb-role-card__count strong { display: block; font-size: var(--tbb-text-lg); font-weight: var(--tbb-weight-bold); color: var(--tbb-blue-600); line-height: 1; }
.tbb-role-card__count span   { font-size: var(--tbb-text-xs); color: var(--tbb-gray-400); }

.tbb-role-card__arrow { color: var(--tbb-gray-400); font-size: 1.1rem; transition: color var(--tbb-t-fast), transform var(--tbb-t-fast); }
.tbb-role-card:hover .tbb-role-card__arrow { color: var(--tbb-blue-600); transform: translateX(3px); }

.tbb-role-card--coming-soon { opacity: .65; cursor: default; pointer-events: none; }
.tbb-role-card--coming-soon:hover { border-color: var(--tbb-gray-200); background: var(--tbb-white); }
.tbb-role-card--coming-soon:hover .tbb-role-card__icon { background: var(--tbb-blue-50); color: var(--tbb-blue-600); }
.tbb-role-card__count--soon { display: flex; align-items: center; justify-content: center; }

.tbb-jobs__cta      { text-align: center; padding-top: var(--tbb-s-4); }
.tbb-jobs__cta-note { margin-top: var(--tbb-s-3); font-size: var(--tbb-text-sm); color: var(--tbb-gray-400); }

/* ────────────────────────────────────────────────────────────
   COURSES & QUIZZES
   ──────────────────────────────────────────────────────────── */
.tbb-learning {
  background: linear-gradient(180deg, var(--tbb-blue-50) 0%, var(--tbb-white) 100%);
}

/* Stats bar */
.tbb-stats-bar {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   var(--tbb-s-4);
  background:            linear-gradient(135deg, var(--tbb-blue-900), var(--tbb-blue-700));
  border-radius:         var(--tbb-r-2xl);
  padding:               var(--tbb-s-10) var(--tbb-s-8);
  margin-bottom:         var(--tbb-s-12);
  box-shadow:            var(--tbb-shadow-blue-lg);
}

.tbb-stat { text-align: center; position: relative; }
.tbb-stat:not(:last-child)::after {
  content: ''; position: absolute;
  top: 10%; right: 0; height: 80%; width: 1px;
  background: rgba(255,255,255,.15);
}
.tbb-stat__value { display: block; font-size: var(--tbb-text-5xl); font-weight: var(--tbb-weight-extrabold); color: var(--tbb-white); line-height: 1; letter-spacing: -0.02em; }
.tbb-stat__label { display: block; margin-top: var(--tbb-s-2); font-size: var(--tbb-text-sm); color: var(--tbb-blue-300); font-weight: var(--tbb-weight-medium); }

/* Course cards */
.tbb-courses__grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   var(--tbb-s-6);
  margin-bottom:         var(--tbb-s-10);
}

.tbb-course-card {
  background: var(--tbb-white); border: 1px solid var(--tbb-gray-200); border-radius: var(--tbb-r-2xl);
  padding: var(--tbb-s-6) var(--tbb-s-8); display: flex; flex-direction: column; gap: var(--tbb-s-4);
  transition: all var(--tbb-t-base);
}
.tbb-course-card:hover { box-shadow: var(--tbb-shadow-lg); border-color: var(--tbb-blue-200); transform: translateY(-3px); }

.tbb-course-card__top   { margin: 0; }
.tbb-course-card__title { font-size: var(--tbb-text-xl); font-weight: var(--tbb-weight-bold); color: var(--tbb-gray-900); margin: 0; line-height: var(--tbb-leading-snug); }
.tbb-course-card__desc  { font-size: var(--tbb-text-sm); line-height: var(--tbb-leading-relaxed); color: var(--tbb-gray-500); flex: 1; margin: 0; }
.tbb-course-card__meta  { display: flex; align-items: center; gap: var(--tbb-s-2); font-size: var(--tbb-text-sm); font-weight: var(--tbb-weight-medium); color: var(--tbb-blue-600); }
.tbb-course-card__actions { display: flex; gap: var(--tbb-s-2); margin-top: auto; }

.tbb-learning__cta { text-align: center; }

/* ────────────────────────────────────────────────────────────
   LAB CALCULATORS
   ──────────────────────────────────────────────────────────── */
.tbb-calc-section { background: var(--tbb-gray-50); }

.tbb-calc__grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   var(--tbb-s-4);
  margin-bottom:         var(--tbb-s-10);
}

.tbb-calc-card {
  display: flex; align-items: center; gap: var(--tbb-s-4);
  padding: var(--tbb-s-5) var(--tbb-s-6);
  background: var(--tbb-white); border: 1px solid var(--tbb-gray-200); border-radius: var(--tbb-r-xl);
  text-decoration: none; color: var(--tbb-gray-800); transition: all var(--tbb-t-base);
}
.tbb-calc-card:hover { border-color: var(--tbb-blue-400); box-shadow: var(--tbb-shadow-md); transform: translateY(-2px); color: var(--tbb-gray-900); }

.tbb-calc-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: var(--tbb-r-lg);
  background: var(--tbb-blue-50); color: var(--tbb-blue-600); font-size: 1.25rem;
  flex-shrink: 0; transition: all var(--tbb-t-fast);
}
.tbb-calc-card:hover .tbb-calc-card__icon { background: var(--tbb-blue-600); color: var(--tbb-white); }

.tbb-calc-card__body  { flex: 1; }
.tbb-calc-card__title { font-size: var(--tbb-text-base); font-weight: var(--tbb-weight-semibold); color: var(--tbb-gray-900); margin: 0 0 var(--tbb-s-1); }
.tbb-calc-card__desc  { font-size: var(--tbb-text-sm); color: var(--tbb-gray-500); margin: 0; line-height: var(--tbb-leading-snug); }

.tbb-calc-card__arrow { color: var(--tbb-gray-400); font-size: 1rem; flex-shrink: 0; transition: color var(--tbb-t-fast), transform var(--tbb-t-fast); }
.tbb-calc-card:hover .tbb-calc-card__arrow { color: var(--tbb-blue-600); transform: translateX(3px); }

.tbb-calc__cta { text-align: center; }

/* ────────────────────────────────────────────────────────────
   LIFE SCIENCE NEWS FEED
   ──────────────────────────────────────────────────────────── */
.tbb-newsfeed {
  background: linear-gradient(180deg, var(--tbb-white) 0%, var(--tbb-gray-50) 100%);
}

/* Live pill in eyebrow */
.tbb-live-pill {
  display:       inline-flex;
  align-items:   center;
  gap:           5px;
  background:    #fef2f2;
  color:         #dc2626;
  font-size:     0.625rem;
  font-weight:   var(--tbb-weight-bold);
  letter-spacing: .08em;
  padding:       2px var(--tbb-s-2);
  border-radius: var(--tbb-r-full);
  border:        1px solid #fecaca;
  margin-right:  var(--tbb-s-2);
  vertical-align: middle;
  text-transform: uppercase;
}
.tbb-live-pill__dot {
  width:        5px;
  height:       5px;
  border-radius: 50%;
  background:   #ef4444;
  flex-shrink:  0;
  animation:    tbb-blink 1.5s ease-in-out infinite;
}

/* Category filter row */
.tbb-news-filters {
  display:       flex;
  flex-wrap:     wrap;
  gap:           var(--tbb-s-2);
  margin-bottom: var(--tbb-s-8);
}

.tbb-news-filter {
  padding:       5px var(--tbb-s-4);
  border:        1px solid var(--tbb-gray-200);
  border-radius: var(--tbb-r-full);
  background:    var(--tbb-white);
  font-size:     var(--tbb-text-sm);
  font-weight:   var(--tbb-weight-medium);
  color:         var(--tbb-gray-600);
  cursor:        pointer;
  transition:    all var(--tbb-t-fast);
  line-height:   1;
}
.tbb-news-filter:hover {
  border-color: var(--tbb-blue-300);
  color:        var(--tbb-blue-700);
  background:   var(--tbb-blue-50);
}
.tbb-news-filter.is-active {
  background:   var(--tbb-blue-600);
  border-color: var(--tbb-blue-600);
  color:        var(--tbb-white);
}

/* News card grid */
.tbb-news__grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   var(--tbb-s-6);
  margin-bottom:         var(--tbb-s-10);
}

/* Individual news card */
.tbb-news-card {
  background:    var(--tbb-white);
  border:        1px solid var(--tbb-gray-200);
  border-radius: var(--tbb-r-2xl);
  overflow:      hidden;
  display:       flex;
  flex-direction: column;
  transition:    all var(--tbb-t-base);
}
.tbb-news-card:hover {
  box-shadow:   var(--tbb-shadow-lg);
  transform:    translateY(-4px);
  border-color: transparent;
}

/* Coloured accent bar using per-card CSS variable */
.tbb-news-card--purple { --news-color: var(--tbb-purple);    --news-bg: var(--tbb-purple-light); }
.tbb-news-card--blue   { --news-color: var(--tbb-blue-600);  --news-bg: var(--tbb-blue-50);      }
.tbb-news-card--teal   { --news-color: var(--tbb-teal);      --news-bg: var(--tbb-teal-light);   }
.tbb-news-card--green  { --news-color: var(--tbb-green);     --news-bg: var(--tbb-green-light);  }
.tbb-news-card--orange { --news-color: var(--tbb-orange);    --news-bg: var(--tbb-orange-light); }

.tbb-news-card__accent {
  height:     4px;
  background: var(--news-color);
  flex-shrink: 0;
}

.tbb-news-card__body {
  padding:        var(--tbb-s-6);
  flex:           1;
  display:        flex;
  flex-direction: column;
  gap:            var(--tbb-s-3);
}

.tbb-news-card__meta {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             var(--tbb-s-2);
}
.tbb-news-card__date {
  font-size: var(--tbb-text-xs);
  color:     var(--tbb-gray-400);
  white-space: nowrap;
}

.tbb-news-card__title {
  font-size:   var(--tbb-text-base);
  font-weight: var(--tbb-weight-bold);
  color:       var(--tbb-gray-900);
  line-height: var(--tbb-leading-snug);
  margin:      0;
  display:     -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:    hidden;
}
.tbb-news-card:hover .tbb-news-card__title { color: var(--news-color); }

.tbb-news-card__excerpt {
  font-size:   var(--tbb-text-sm);
  line-height: var(--tbb-leading-relaxed);
  color:       var(--tbb-gray-500);
  margin:      0;
  flex:        1;
  display:     -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:    hidden;
}

.tbb-news-card__footer {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             var(--tbb-s-2);
  padding-top:     var(--tbb-s-3);
  border-top:      1px solid var(--tbb-gray-100);
  margin-top:      auto;
}
.tbb-news-card__source {
  display:     flex;
  align-items: center;
  gap:         var(--tbb-s-1);
  font-size:   var(--tbb-text-xs);
  font-weight: var(--tbb-weight-semibold);
  color:       var(--tbb-gray-600);
  overflow:    hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tbb-news-card__source .tbb-icon { font-size: .75rem; color: var(--tbb-gray-400); flex-shrink: 0; }
.tbb-news-card__time { font-size: var(--tbb-text-xs); color: var(--tbb-gray-400); white-space: nowrap; flex-shrink: 0; }

/* "Read article" link at card bottom */
.tbb-news-card__link {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         var(--tbb-s-4) var(--tbb-s-6);
  font-size:       var(--tbb-text-sm);
  font-weight:     var(--tbb-weight-semibold);
  color:           var(--news-color);
  text-decoration: none;
  border-top:      1px solid var(--tbb-gray-100);
  background:      transparent;
  transition:      background var(--tbb-t-fast), padding-right var(--tbb-t-fast);
}
.tbb-news-card__link:hover {
  background:    var(--news-bg);
  padding-right: var(--tbb-s-5);
  color:         var(--news-color);
}
.tbb-news-card__link .tbb-icon { transition: transform var(--tbb-t-fast); }
.tbb-news-card__link:hover .tbb-icon { transform: translateX(3px); }

/* News CTA */
.tbb-news__cta      { text-align: center; }
.tbb-news__cta-note { margin-top: var(--tbb-s-3); font-size: var(--tbb-text-sm); color: var(--tbb-gray-400); }

/* ────────────────────────────────────────────────────────────
   COMMUNITY
   ──────────────────────────────────────────────────────────── */
.tbb-community { background: var(--tbb-white); }

.tbb-channels__grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   var(--tbb-s-5);
  margin-bottom:         var(--tbb-s-12);
}

.tbb-channel-card {
  display: flex; flex-direction: column; gap: var(--tbb-s-4);
  padding: var(--tbb-s-6); border-radius: var(--tbb-r-2xl);
  border: 1px solid var(--tbb-gray-200); background: var(--tbb-white);
  text-decoration: none; color: var(--tbb-gray-800);
  transition: all var(--tbb-t-base); position: relative; overflow: hidden;
}
.tbb-channel-card--green  { --ch-color: #16a34a; --ch-light: #f0fdf4; }
.tbb-channel-card--blue   { --ch-color: var(--tbb-blue-600); --ch-light: var(--tbb-blue-50); }
.tbb-channel-card--purple { --ch-color: var(--tbb-purple); --ch-light: var(--tbb-purple-light); }
.tbb-channel-card--orange { --ch-color: var(--tbb-orange); --ch-light: var(--tbb-orange-light); }

.tbb-channel-card:hover {
  border-color: var(--ch-color); background: var(--ch-light);
  transform: translateY(-4px); box-shadow: var(--tbb-shadow-lg); color: var(--tbb-gray-900);
}

.tbb-channel-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: var(--tbb-r-lg);
  background: #25d366; color: var(--tbb-white); font-size: 1.5rem;
}
.tbb-channel-card__title   { font-size: var(--tbb-text-lg); font-weight: var(--tbb-weight-bold); color: var(--tbb-gray-900); margin: 0; }
.tbb-channel-card__desc    { font-size: var(--tbb-text-sm); line-height: var(--tbb-leading-relaxed); color: var(--tbb-gray-500); margin: 0; flex: 1; }
.tbb-channel-card__members { display: flex; align-items: center; gap: var(--tbb-s-1); font-size: var(--tbb-text-xs); font-weight: var(--tbb-weight-medium); color: var(--tbb-gray-400); margin-top: var(--tbb-s-1); }
.tbb-channel-card__join    {
  display: flex; align-items: center; gap: var(--tbb-s-1);
  font-size: var(--tbb-text-sm); font-weight: var(--tbb-weight-semibold);
  color: var(--ch-color); margin-top: auto; transition: gap var(--tbb-t-fast);
}
.tbb-channel-card:hover .tbb-channel-card__join { gap: var(--tbb-s-2); }

/* Employer strip */
.tbb-employer-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--tbb-s-8); padding: var(--tbb-s-10) var(--tbb-s-12);
  border-radius: var(--tbb-r-3xl);
  background: linear-gradient(135deg, var(--tbb-blue-900), var(--tbb-blue-700));
  margin-bottom: var(--tbb-s-16); position: relative; overflow: hidden;
}
.tbb-employer-strip::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,.05); pointer-events: none;
}
.tbb-employer-strip__title { font-size: var(--tbb-text-2xl); font-weight: var(--tbb-weight-bold); color: var(--tbb-white); margin: 0 0 var(--tbb-s-2); }
.tbb-employer-strip__desc  { font-size: var(--tbb-text-base); color: var(--tbb-blue-300); margin: 0; max-width: 480px; line-height: var(--tbb-leading-relaxed); }
.tbb-employer-strip__actions { display: flex; gap: var(--tbb-s-3); flex-shrink: 0; }

/* Testimonials */
.tbb-testimonials__heading { font-size: var(--tbb-text-3xl); font-weight: var(--tbb-weight-bold); color: var(--tbb-gray-900); text-align: center; margin: 0 0 var(--tbb-s-8); }

.tbb-testimonials__grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   var(--tbb-s-6);
}

.tbb-testimonial {
  background: var(--tbb-white); border: 1px solid var(--tbb-gray-200); border-radius: var(--tbb-r-2xl);
  padding: var(--tbb-s-8); display: flex; flex-direction: column; gap: var(--tbb-s-4);
  transition: all var(--tbb-t-base);
}
.tbb-testimonial:hover { box-shadow: var(--tbb-shadow-lg); transform: translateY(-3px); border-color: var(--tbb-blue-200); }

.tbb-testimonial__stars  { display: flex; gap: 2px; }
.tbb-star                { color: #f59e0b; font-size: 1rem; }
.tbb-testimonial__quote  { font-size: var(--tbb-text-base); line-height: var(--tbb-leading-relaxed); color: var(--tbb-gray-700); font-style: italic; flex: 1; margin: 0; }
.tbb-testimonial__author { display: flex; align-items: center; gap: var(--tbb-s-3); margin-top: auto; padding-top: var(--tbb-s-4); border-top: 1px solid var(--tbb-gray-100); }
.tbb-testimonial__avatar {
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--tbb-blue-500), var(--tbb-blue-700));
  color: var(--tbb-white); font-size: var(--tbb-text-lg); font-weight: var(--tbb-weight-bold); flex-shrink: 0;
}
.tbb-testimonial__meta strong { display: block; font-size: var(--tbb-text-sm); font-weight: var(--tbb-weight-semibold); color: var(--tbb-gray-900); }
.tbb-testimonial__meta span   { display: block; font-size: var(--tbb-text-xs); color: var(--tbb-gray-400); margin-top: 2px; }

/* ────────────────────────────────────────────────────────────
   ABOUT
   ──────────────────────────────────────────────────────────── */
.tbb-about {
  background: linear-gradient(180deg, var(--tbb-white) 0%, var(--tbb-blue-50) 100%);
}

.tbb-about__layout {
  display:               grid;
  grid-template-columns: 1fr 480px;
  gap:                   var(--tbb-s-16);
  align-items:           start;
}
.tbb-about__title  { font-size: var(--tbb-text-5xl); font-weight: var(--tbb-weight-extrabold); color: var(--tbb-gray-900); margin: var(--tbb-s-3) 0 var(--tbb-s-6); line-height: var(--tbb-leading-tight); letter-spacing: -0.02em; }
.tbb-about__lead   { font-size: var(--tbb-text-lg); line-height: var(--tbb-leading-relaxed); color: var(--tbb-gray-700); margin: 0 0 var(--tbb-s-4); }
.tbb-about__text   { font-size: var(--tbb-text-base); line-height: var(--tbb-leading-relaxed); color: var(--tbb-gray-500); margin: 0 0 var(--tbb-s-8); }
.tbb-about__actions { display: flex; gap: var(--tbb-s-4); flex-wrap: wrap; }

.tbb-about__values  { display: flex; flex-direction: column; gap: var(--tbb-s-1); }

.tbb-value-item {
  display: flex; align-items: flex-start; gap: var(--tbb-s-4);
  padding: var(--tbb-s-5) var(--tbb-s-6); border-radius: var(--tbb-r-xl);
  background: var(--tbb-white); border: 1px solid var(--tbb-gray-200);
  transition: all var(--tbb-t-base);
}
.tbb-value-item:hover { border-color: var(--tbb-blue-300); background: var(--tbb-blue-50); transform: translateX(4px); }

.tbb-value-item__icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: var(--tbb-r-lg);
  background: var(--tbb-blue-100); color: var(--tbb-blue-700); font-size: 1.1rem;
  flex-shrink: 0; transition: all var(--tbb-t-fast);
}
.tbb-value-item:hover .tbb-value-item__icon { background: var(--tbb-blue-600); color: var(--tbb-white); }

.tbb-value-item__title { font-size: var(--tbb-text-base); font-weight: var(--tbb-weight-semibold); color: var(--tbb-gray-900); margin: 0 0 var(--tbb-s-1); }
.tbb-value-item__desc  { font-size: var(--tbb-text-sm); line-height: var(--tbb-leading-relaxed); color: var(--tbb-gray-500); margin: 0; }

/* ────────────────────────────────────────────────────────────
   SCROLL-REVEAL
   ──────────────────────────────────────────────────────────── */
.tbb-reveal           { opacity: 0; transform: translateY(20px); transition: opacity var(--tbb-t-slow), transform var(--tbb-t-slow); }
.tbb-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 1280px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .tbb-hero__layout   { grid-template-columns: 1fr 400px; gap: var(--tbb-s-12); }
  .tbb-offers__grid   { grid-template-columns: repeat(2, 1fr); }
  .tbb-channels__grid { grid-template-columns: repeat(2, 1fr); }
  .tbb-news__grid     { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 1024px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .tbb-hero__layout {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-inline: auto;
    text-align: center;
  }
  .tbb-hero__preview {
    display: none;
  }
  .tbb-hero__cta-row,
  .tbb-hero__trust { justify-content: center; }
  .tbb-hero__desc  { margin-inline: auto; }

  .tbb-roles__grid  { grid-template-columns: repeat(2, 1fr); }
  .tbb-calc__grid   { grid-template-columns: repeat(2, 1fr); }
  .tbb-news__grid   { grid-template-columns: repeat(2, 1fr); }

  .tbb-about__layout { grid-template-columns: 1fr; gap: var(--tbb-s-10); }
  .tbb-about__title  { font-size: var(--tbb-text-4xl); }

  .tbb-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .tbb-stat:nth-child(2)::after,
  .tbb-stat:nth-child(4)::after { display: none; }

  .tbb-employer-strip { flex-direction: column; text-align: center; }
  .tbb-employer-strip__actions { justify-content: center; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 768px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .tbb-hero { padding-top: var(--tbb-s-16); padding-bottom: var(--tbb-s-16); }
  .tbb-hero__title    { font-size: var(--tbb-text-5xl); }
  .tbb-hero__cta-row  { flex-direction: column; align-items: center; }
  .tbb-hero__cta-row .tbb-btn { width: 100%; max-width: 320px; justify-content: center; }
  .tbb-hero__trust    { gap: var(--tbb-s-4); }
  .tbb-hero__trust-sep { display: none; }

  .tbb-offers__grid   { grid-template-columns: 1fr; }
  .tbb-roles__grid    { grid-template-columns: 1fr; }
  .tbb-role-card      { grid-template-columns: auto 1fr auto; }
  .tbb-role-card__arrow { display: none; }

  .tbb-stats-bar      { grid-template-columns: repeat(2, 1fr); padding: var(--tbb-s-6); gap: var(--tbb-s-6); }
  .tbb-stat__value    { font-size: var(--tbb-text-4xl); }

  .tbb-courses__grid  { grid-template-columns: 1fr; }
  .tbb-calc__grid     { grid-template-columns: 1fr; }
  .tbb-news__grid     { grid-template-columns: 1fr; }
  .tbb-channels__grid { grid-template-columns: 1fr; }
  .tbb-testimonials__grid { grid-template-columns: 1fr; }

  .tbb-employer-strip  { padding: var(--tbb-s-8); }
  .tbb-employer-strip__actions { flex-direction: column; width: 100%; }
  .tbb-employer-strip__actions .tbb-btn { width: 100%; justify-content: center; }

}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 480px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .tbb-hero__title    { font-size: clamp(1.875rem, 8vw, 2.25rem); }
  .tbb-hero__pill     { display: none; }
  .tbb-hero__trust    { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: var(--tbb-s-3) var(--tbb-s-5); }

  .tbb-stats-bar      { grid-template-columns: 1fr 1fr; }
  .tbb-stat::after    { display: none; }

  .tbb-news-filters   { gap: var(--tbb-s-1); }
  .tbb-news-filter    { font-size: var(--tbb-text-xs); padding: 4px var(--tbb-s-3); }

  .tbb-section-header { margin-bottom: var(--tbb-s-8); }

  .tbb-about__actions { flex-direction: column; }
  .tbb-about__actions .tbb-btn { width: 100%; justify-content: center; }

}

/* ════════════════════════════════════════════════════════════
   MOBILE PERFORMANCE — disable GPU-heavy effects on small screens
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Remove backdrop-filter blur — GPU-intensive on mobile */
  .tbb-hero__pill {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* Stop blinking dot animations */
  .tbb-pcard__badge--live {
    animation: none;
    opacity: 1;
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .tbb-reveal, .tbb-pcard,
  .tbb-live-pill__dot, .tbb-pcard__badge--live {
    animation: none !important;
    transition: none !important;
  }
  .tbb-reveal { opacity: 1; transform: none; }
}
