/* Scoped to /leadership/ (.page-id-231) only. Hero (acf/hero) is shared by 5
   pages and leadership-grid is this page's own block but shares the same
   Bootstrap ".container" class as the hero — both just use centered,
   fixed-max-width Bootstrap columns instead of Figma's 8.42% (115px of the
   1366px canvas) left/right inset used everywhere else on the site.

   Overriding both containers' padding together keeps the red headline
   ("Impulsando a Rich's...") aligned with the leader cards below it (same
   container, so they move together) while also matching the hero title
   above it — without touching any leader name/title/photo content. */
/* max-width/margin reset applies at every width, not just >=769px:
   Bootstrap's own ".container" rule sets max-width:720px (>=768px) or
   540px (>=576px) *plus* margin-left/right:auto to center that narrower
   box — at exactly 768px wide that auto-margin alone computes to 24px,
   which stacked with the 24px padding below (both fire at once at that
   exact boundary) pushed the title to 48px instead of 24px. Resetting
   max-width/margin unconditionally removes Bootstrap's centering so only
   this file's own padding ever determines the offset, at any width. */
.page-id-231 .hero .container,
.page-id-231 .leadership-style.container {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

@media (min-width: 769px) {
    .page-id-231 .hero .container,
    .page-id-231 .leadership-style.container {
        padding-left: 8.4%;
        padding-right: 8.4%;
    }
}

/* Mobile: Bootstrap's default container padding here is a flat 12px
   (half of its 1.5rem gutter) at every width below 576px. Matches the 24px
   used by every other section on the site at mobile widths instead. */
@media (max-width: 768px) {
    .page-id-231 .hero .container,
    .page-id-231 .leadership-style.container {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* The shared ".block-title" class (used by 33 block templates) carries
       its own mobile margin-left — 15px here — on top of this container's
       padding, offsetting the headline from the card grid below it even
       though both share the same container. Zeroed out, scoped to this
       page's instance only. */
    .page-id-231 .title-leadership {
        margin-left: 0;
    }
}
