/* ==========================================================================
   TALL BIRCH — HOME SECTIONS S1 / S2 / S7   (wave E1, worker E1-SECA)
   Owner: E1-SECA. Loaded by layouts/head.blade.php right after kindy-custom.css
   and kindy-home-sections.css, so equal-specificity rules here win.
   Scope: ONLY S1 "Our core values", S2 "Smarty Programs", S7 CTA band.
   No @font-face / typeface assignments (E0-TOKENS owns the type system);
   no !important fights with kindy-custom.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   S1 — contained-row fix (acceptance G04).
   REF @1440: a contained .vc_row spans the full 1140px container (x=150).
   TB today: the row sits inside the container's 15px side padding
   (1110 @ x=165). Cancel that padding on the row. Bootstrap 3 `.container`
   itself is already exact (1140 @ x=150) and is NOT changed.
   Scoped to `.home-page`, so no other page is affected.
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .home-page .container > .vc_row {
    margin-left: -15px;
    margin-right: -15px;
  }
}

/* S1 cards go 2-up below lg (REF vc_col-md-6 / vc_col-sm-6) — restore the
   REF column rhythm (kindy-custom.css:11 maps vc_custom_1475589305430 = 30px). */
@media (max-width: 1199px) {
  .tb-about .tb-core-values-row > .wpb_column {
    margin-bottom: 30px;
  }
}

/* --------------------------------------------------------------------------
   S2 — REF content-column padding.
   Live REF measurement @1440 on `.vc_custom_1476701028064`:
     padding-top 70px / padding-bottom 50px / padding-left 16px / right 0
   (probe pasted in the E1-SECA artifact). The band's own background
   (#FFF9F2) and margin-bottom (46px) come from `vc_custom_1476698042074`
   in kindy-custom.css:3 — not repeated here.
   -------------------------------------------------------------------------- */
.home-page .tb-programs-band .vc_column-inner.vc_custom_1476701028064 {
  padding: 70px 0 50px 16px;
}

/* S2 icon card rhythm inside the 720px content column. */
.tb-programs-row {
  margin-top: 6px;
}
.tb-programs-row > .wpb_column {
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   S2 — stretch the left "fill" column so its image paints (R2 item 2, client
   defect "Smarty Programs side image is not showing on left side").
   Measured defect (R1 §2 + R3-S2 probe): the fill column
   `.vc_col-sm-4.vc_col-lg-5.vc_col-has-fill` — whose inner carries the fill
   (`kindy-custom.css:16`, `background-size:cover`) — computes height 0, so
   `cover` paints nothing. It sits in `.tb-programs-band` beside the 830px
   content column but is never stretched.
   Fix = Visual Composer's own equal-height idiom (flex + stretch), applied by
   CSS only — no markup classes added, no change to the fill rule or asset.
   Desktop-only: `vc_col-has-fill` is hidden below 1200px via the column's
   `vc_hidden-md vc_hidden-sm vc_hidden-xs` classes, matching REF (lgSpacing).
   Returned widths stay as measured (fill 569 / content 720); only height grows.
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .home-page .tb-programs-band {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .home-page .tb-programs-band > .wpb_column {
    display: flex;
  }
  .home-page .tb-programs-band > .wpb_column > .vc_column-inner {
    width: 100%;
  }
}

/* ==========================================================================
   R6-CORE — client round 3, items 2 (S1), 3 (S2), 5 (S7). Owner: R6-CORE.
   Appended after the E1 + R3-S2 rules so equal-specificity rules here win.
   ========================================================================== */

/* --------------------------------------------------------------------------
   ITEM 2 — S1 "Our core values": four UNIFORM circular cards.
   Owner change request 2026-09-24 (item 2): the four images must be perfectly
   circular, the same size, with the same alignment and spacing across all
   four cards, and the photo fully contained inside the circle —
   `border-radius: 50%` with `object-fit: cover`.
   Measured defect (R5-LEAD-FINDINGS §2): all four cards are 255 wide but the
   four source images have different aspect ratios, so the theme's
   `.stm-action-box__figure_box .stm-action-box__thumbnail` (max-width:125px;
   img max-width:100%; height:auto) renders 125×94 / 125×94 / 125×167 /
   125×79 — and card height = image height + 192 (measured 286/286/359/271).
   Fix = ONE fixed 167×167 image box using the height the previous rule
   already forced (125×167 with `object-fit:cover`), so every image is
   identical in size and position and every card stays 359 tall (row/band
   unchanged: 359/529 → the contained band stays 599). Only the SHAPE
   changes, from a rounded rectangle to a circle. No markup, copy or image
   change.
   Specificity (0,4,1) beats the theme's `.stm-action-box__figure_box
   .stm-action-box__thumbnail img` (0,2,1). The theme's own circular avatar
   idiom is `border-radius:200px` on this same element (main.css:7038/7045);
   the owner asks for the equivalent `border-radius: 50%`.
   -------------------------------------------------------------------------- */
.home-page .tb-about .tb-cv-box .stm-action-box__thumbnail {
  max-width: 167px;
}
.home-page .tb-about .tb-cv-box .stm-action-box__thumbnail img {
  width: 167px;
  height: 167px;
  border-radius: 50%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   ITEM 3 — S2 "Smarty Programs": compact band (830 → ≤660, target 640).
   The band height is the content column's height: vc_column-inner padding
   (70 top / 50 bottom) + h1 block (68 + inline 36 margin) + 3 rows. The box
   height is content-driven: title 26 + title margins 13/14 + descr 4 lines
   ×28 + descr margin 23 = 188. Reduce the vertical rhythm only (title
   margins, descr line-height/margin, row gaps + bottom padding); the 18px
   descr type is kept (reference parity). The icon font-sizes are reduced
   ~20% in the blade array (client: "reduce … icon size"). Result:
   padding 70 + h1(68+36) + row-gap 4 + 3×(132+10) + padding 45 = 649.
   -------------------------------------------------------------------------- */
.home-page .tb-programs-band .vc_column-inner.vc_custom_1476701028064 {
  padding-bottom: 45px;
}
.home-page .tb-programs-band .tb-programs-row {
  margin-top: 4px;
}
.home-page .tb-programs-band .tb-programs-row > .wpb_column {
  margin-bottom: 10px;
}
.home-page .tb-programs-band .stm-icon-box__title {
  margin-top: 4px;
  margin-bottom: 6px;
}
.home-page .tb-programs-band .stm-icon-box__descr {
  line-height: 24px;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   ITEM 5 — S7 Admission CTA band: heading + button on ONE row, band ≤160.
   Measured (R5 §5): the band's `.vc_column-inner` (pad 2/15/45) wraps a
   table-layout `.stm-cta` whose `.stm-cta__action` is a table-cell holding the
   h2 (its own full-width line, margin 0 0 19px 0) and a `.stm-cta__action-body`
   table beside the button — so `sameRow=false` and the band is 215px.
   Fix = centre the CTA on the 1140 container (max-width + margin:auto; the
   15px column padding gives the reference 128 left / 1238 right edges) and
   turn the action into one flex row: heading left, button right, vertically
   centred. The now-empty `.stm-cta__action-descr` collapses (kept in flow so
   an admin-filled body still renders). Result: 2 + (10+66+9) + 45 = 132.
   Content, link and the 200×50 button are unchanged.
   -------------------------------------------------------------------------- */
.home-page .tb-cta-band .stm-cta {
  max-width: 1140px;
  margin: 0 auto;
}
.home-page .tb-cta-band .stm-cta__content {
  display: block;
}
.home-page .tb-cta-band .stm-cta__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  padding: 10px 15px 9px;
}
.home-page .tb-cta-band .stm-cta__action-title {
  margin: 0;
}
.home-page .tb-cta-band .stm-cta__action-body {
  display: flex;
  align-items: center;
  width: auto;
}
.home-page .tb-cta-band .stm-cta__action-descr {
  display: block;
  width: auto;
  padding-right: 0;
}
.home-page .tb-cta-band .stm-cta__action-btn {
  display: block;
  padding-top: 0;
}
/* Below the tablet breakpoint the 42px heading + 200px button no longer fit on
   one line (measured @375: heading 164 + button 200 > 345 content → the button
   ran 19px past the viewport and was clipped by the column's overflow:hidden).
   Stack them as the band was before (heading, then the button right-aligned). */
@media (max-width: 767px) {
  .home-page .tb-cta-band .stm-cta__action {
    flex-wrap: wrap;
    row-gap: 14px;
  }
  .home-page .tb-cta-band .stm-cta__action-title {
    flex: 1 1 100%;
  }
  .home-page .tb-cta-band .stm-cta__action-body {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   R11-S2 — client round 4, defect D2 ("Smarty Programs 992–1199px artifact").
   Owner: R11-S2. Appended last so equal-specificity rules here win.
   ========================================================================== */

/* --------------------------------------------------------------------------
   ITEM D2 — S2 "Smarty Programs" at 992–1199px.
   Cause (R8-A1 §4b / R9-PLAN §4 D2, re-measured before the fix): the theme's
   md block loads `.stm-icon-box_style-4 { padding: 40px 20px; }`
   (themes/smarty/assets/css/kindergarten/main.css:12685-12686, inside
   `@media (min-width:992px) and (max-width:1199px)` at :12671). R6-CORE's
   compaction above is desktop-only, so at 1024 the box gains 40px top + 40px
   bottom → measured box 188 / band 824, vs the accepted box 132 / band 656
   at 1366.
   Fix = cancel the 40px vertical padding on the S2 boxes only. The theme rule
   is page-wide; scoping to `.home-page .tb-programs-band` leaves every other
   `.stm-icon-box_style-4` consumer untouched. Horizontal padding (20px) is not
   part of the defect and is left as-is.
   Second sub-defect: the inner `.tb-programs-row` (a Visual Composer
   `vc_inner`/`vc_row`) carries the framework's `margin-left/right:-15px`, so
   the right `.vc_col-sm-6`'s border box ran 15px past the viewport
   (measured right edge 1039 @1024). Removing those negative margins — this
   band only — brings the column edge back to the viewport (1024).
   Desktop (≥1200) and 768 are NOT in this media block and are unchanged.
   -------------------------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1199px) {
  .home-page .tb-programs-band .stm-icon-box_style-4 {
    padding-top: 0;
    padding-bottom: 0;
  }
  .home-page .tb-programs-band .tb-programs-row {
    margin-left: 0;
    margin-right: 0;
  }
}
