/* ==========================================================================
   TALL BIRCH — HOME SECTIONS (wave 2026-09-10, Agent B)
   Owner: Agent B (About Us containment + Empowering Futures + Choose A Service)
   RULES: no typeface assignments (Carlito type system is frozen elsewhere).
          Namespace: .tb-about-* , .tb-pillar-* , .tb-svc-*
   Loads after kindy-custom.css (see head.blade.php), so equal-specificity
   rules here win where the older navy service colours need updating.
   ========================================================================== */

/* ---------------------------------------------------------------------
   TASK 1 — ABOUT US: proper containment.
   A Bootstrap 3 .container wrapper was added around the section .vc_row in
   home.blade.php. The container supplies the theme max-width + 15px gutters;
   the vc_row's -15px margins cancel those, so the section no longer bleeds
   past the viewport and the 4 core-value cards sit on even gutters.
   --------------------------------------------------------------------- */
.tb-about .tb-core-values-row { margin-top: 8px; margin-bottom: 0; }
.tb-about .tb-cv-box { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   TASK 2 — EMPOWERING FUTURES: colourful 4-up pillar cards
   Reference "Our core values" colourful-card idiom. Tint band kept.
   --------------------------------------------------------------------- */
.tb-pillars-row { margin-top: 8px; }
.tb-pillar {
  padding-left: 13px;
  padding-right: 13px;
  margin-bottom: 26px;
}
.tb-pillar-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 116px;
  padding: 26px 18px 22px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(20, 38, 94, 0.08);
  color: #14265e;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* coloured accent cap — distinct per pillar (reference palette) */
.tb-pillar-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 5px;
  border-radius: 0 0 4px 4px;
  background-color: #14265e;
}
/* supporting line under each pillar title (DB-driven, module `philosophy` details) */
.tb-pillar-desc {
  margin: 12px 2px 0;
  text-align: center;
  color: #595959;
  font-size: 14px;
  line-height: 22px;
}
.tb-pillar:hover .tb-pillar-badge {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(20, 38, 94, 0.14);
}
.tb-pillar--1 .tb-pillar-badge::before { background-color: #95cc47; }
.tb-pillar--2 .tb-pillar-badge::before { background-color: #62abf5; }
.tb-pillar--3 .tb-pillar-badge::before { background-color: #ffaf40; }
.tb-pillar--4 .tb-pillar-badge::before { background-color: #bd66ff; }

/* ---------------------------------------------------------------------
   TASK 3 — CHOOSE A SERVICE: colourful per-item accents
   (section also wrapped in .container like Task 1)
   --------------------------------------------------------------------- */
/* .tb-services-row { margin-top: 8px; } — REMOVED 2026-09-15 (client round 3, item 8): the X2
   "Choose A Service / School Offerings" band and its partial tb_services.blade.php were deleted, and the
   rule matched nothing in the rendered page (grep of the rendered HTML for `tb-services-row` = 0 hits). */

/* Distinct icon colours — override the navy defaults in kindy-custom.css.
   This file loads after it and matches its selector specificity. */
div.stm-icon-box__ic-container.tb-svc-ic--1 { color: #95cc47; }
div.stm-icon-box__ic-container.tb-svc-ic--2 { color: #62abf5; }
div.stm-icon-box__ic-container.tb-svc-ic--3 { color: #ffaf40; }

/* Tinted circular icon plate behind the glyph. Beats the theme's
   `.stm-icon-box_style-4.stm-icon-box_ic-pos_left .stm-icon-box__ic-container`
   (equal specificity, later source). */
.tb-svc-box .stm-icon-box__ic-container.tb-svc-ic {
  width: 92px;
  height: 92px;
  min-width: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(20, 38, 94, 0.06);
  transition: background-color 0.3s ease;
}

/* Card accents */
.tb-svc-box {
  background-color: #ffffff;
  border-radius: 10px;
  border-top: 4px solid #14265e;
  padding: 26px 24px 22px;
  box-shadow: 0 4px 16px rgba(20, 38, 94, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tb-svc-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(20, 38, 94, 0.12);
}
.tb-svc-box.tb-svc-box--1 { border-top-color: #95cc47; }
.tb-svc-box.tb-svc-box--2 { border-top-color: #62abf5; }
.tb-svc-box.tb-svc-box--3 { border-top-color: #ffaf40; }
.tb-svc-box.tb-svc-box--1 .tb-svc-ic { background-color: rgba(149, 204, 71, 0.14); }
.tb-svc-box.tb-svc-box--2 .tb-svc-ic { background-color: rgba(98, 171, 245, 0.14); }
.tb-svc-box.tb-svc-box--3 .tb-svc-ic { background-color: rgba(255, 175, 64, 0.16); }
.tb-svc-box.tb-svc-box--1:hover .tb-svc-ic { background-color: rgba(149, 204, 71, 0.26); }
.tb-svc-box.tb-svc-box--2:hover .tb-svc-ic { background-color: rgba(98, 171, 245, 0.26); }
.tb-svc-box.tb-svc-box--3:hover .tb-svc-ic { background-color: rgba(255, 175, 64, 0.28); }

/* ---------------------------------------------------------------------
   HOME §5 — SCHOOL FUNCTIONS & ANNUAL EVENTS: card photographs.
   The card now uses the theme's own post_view_grid thumb idiom
   (.entry-body > .entry-thumbnail-container > .entry-thumbnail > a > img),
   which main.css already styles (img max-width:100%, height:auto,
   border-radius 25px 25px 0 0). These rules only add the card chrome the
   home row needs (white card, rounded, clipped thumb, spacing).
   --------------------------------------------------------------------- */
.tb-function-card {
  background-color: #ffffff;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(20, 38, 94, 0.07);
  margin-bottom: 30px;
  height: 100%;
}
.tb-function-card .entry-thumbnail {
  overflow: hidden;
}
.tb-function-card .entry-thumbnail img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.tb-function-card .entry-details {
  padding: 20px 22px 22px;
}
.tb-function-card .entry-title {
  margin: 0 0 10px;
}
.tb-function-card .entry-summary p {
  margin: 0;
  color: #595959;
  line-height: 24px;
}
