/* ==========================================================================
   Akshaya Patra USA — Boston Chapter
   OPTION B — "Bold Modern"
   Fonts: Playfair Display (display headings) + Nunito Sans (UI & body)
   Palette: APUSA navy / maroon / saffron, high-contrast, card-driven
   All styles namespaced under .apb — safe to drop into WordPress.
   ========================================================================== */

.apb {
  /* ---- Brand palette ---- */
  --apb-saffron:      #F7A81B;
  --apb-saffron-dark: #DF8C08;
  --apb-saffron-soft: #FFF3DA;
  --apb-maroon:       #8E1B18;
  --apb-maroon-dark:  #6C110F;
  --apb-navy:         #123C69;
  --apb-navy-dark:    #0C2B4D;
  --apb-teal:         #0E7C86;

  --apb-ink:    #14181F;
  --apb-body:   #4C5665;
  --apb-muted:  #7C8698;
  --apb-line:   #E4E7EC;
  --apb-tint:   #F5F7FA;
  --apb-cream:  #FFF9EF;

  /* ---- Type ---- */
  --apb-font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --apb-font-body: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;

  --apb-r:    14px;
  --apb-r-lg: 22px;
  --apb-shadow-sm: 0 2px 10px rgba(20, 24, 31, .06);
  --apb-shadow:    0 16px 40px rgba(20, 24, 31, .12);

  --apb-max: 1220px;

  font-family: var(--apb-font-body);
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--apb-body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.apb *, .apb *::before, .apb *::after { box-sizing: border-box; }
.apb img { max-width: 100%; display: block; }

.apb h1, .apb h2, .apb h3, .apb h4 {
  font-family: var(--apb-font-head);
  font-weight: 700;
  color: var(--apb-ink);
  line-height: 1.18;
  margin: 0 0 .5em;
}

.apb p { margin: 0 0 1em; }
.apb p:last-child { margin-bottom: 0; }
.apb a { color: var(--apb-navy); text-decoration: none; }
.apb a:hover { color: var(--apb-maroon); }
.apb ul { margin: 0; padding: 0; list-style: none; }

/* ------------------------------------------------------------ Layout bits */
.apb__wrap { width: 100%; max-width: var(--apb-max); margin: 0 auto; padding: 0 24px; }

.apb__section { padding: 62px 0; position: relative; }
.apb__section--tight { padding: 48px 0; }
.apb__section--tint { background: var(--apb-tint); }
.apb__section--cream { background: var(--apb-cream); }

.apb__head {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: center;   /* heading and sub-copy read as one line */
  margin-bottom: 24px;
}
.apb__head--center { display: block; max-width: 700px; margin: 0 auto 30px; text-align: center; }

.apb__chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--apb-navy);
  background: rgba(18, 60, 105, .07);
  padding: 6px 13px; border-radius: 4px;
  margin-bottom: 10px;
}
.apb__chip::before { content: ''; width: 16px; height: 2px; background: var(--apb-saffron); }

.apb__title { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 0; }
.apb__title em { font-style: italic; color: var(--apb-maroon); }
.apb__title--underline { padding-bottom: 16px; position: relative; }
.apb__title--underline::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 72px; height: 5px; background: var(--apb-saffron); border-radius: 3px;
}
.apb__head--center .apb__title--underline::after { left: 50%; transform: translateX(-50%); }

.apb__lede { font-size: 16.5px; }
.apb__head--center .apb__lede { max-width: 600px; margin: 14px auto 0; }

/* team heading — single line, smaller */
.apb__title--sm { font-size: clamp(21px, 2.3vw, 30px); }
.apb__title--sm.apb__title--underline { padding-bottom: 10px; }
.apb__title--sm.apb__title--underline::after { width: 58px; height: 4px; }
@media (min-width: 900px) {
  .apb__title--nowrap { white-space: nowrap; }
}


/* --------------------------------------------------------------- Buttons */
.apb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--apb-font-body);
  font-size: 14.5px; font-weight: 800; letter-spacing: .01em; line-height: 1;
  padding: 15px 28px;
  border: 2px solid transparent; border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}
.apb-btn:hover { transform: translateY(-2px); }
.apb-btn:focus-visible { outline: 3px solid var(--apb-navy); outline-offset: 3px; }

.apb .apb-btn--primary {
  background: var(--apb-saffron); color: #2A1B00;
  box-shadow: 0 10px 24px rgba(223, 140, 8, .3);
}
.apb .apb-btn--primary:hover { background: var(--apb-saffron-dark); color: #2A1B00; }

.apb .apb-btn--navy { background: var(--apb-navy); color: #fff; }
.apb .apb-btn--navy:hover { background: var(--apb-navy-dark); color: #fff; }

.apb .apb-btn--maroon { background: var(--apb-maroon); color: #fff; }
.apb .apb-btn--maroon:hover { background: var(--apb-maroon-dark); color: #fff; }

.apb .apb-btn--outline { background:var(--apb-maroon); color:#fff; border-color: var(--apb-line); }
.apb .apb-btn--outline:hover { border-color: var(--apb-navy); color:#fff; }


.apb-btn--sm { padding: 11px 20px; font-size: 13.5px; }
.apb-btn--block { width: 100%; }

.apb .apb-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 14.5px; color: var(--apb-maroon);
}
.apb .apb-link i { font-style: normal; transition: transform .2s ease; }
.apb .apb-link:hover i { transform: translateX(4px); }

/* ================ BANNER — 300px, matching the Youth Ambassadors page ==========
   Deep royal-blue field, gold eyebrow with leading dash, sans-bold headline with a
   gold italic serif accent, two pill buttons, tinted photo filling the right side.
   ---------------------------------------------------------------------------- */
.apb-banner {
  --apb-banner-blue:      #1D3E8F;
  --apb-banner-blue-dark: #16337A;
  --apb-banner-gold:      #F5B324;

  position: relative;
  min-height: 300px;      /* 300px tall in practice; grows only if the copy
                             genuinely needs it, instead of clipping */
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 26px 0;
  background: var(--apb-banner-blue);
  color: #fff;
}

/* photo fills the right half, hard vertical edge, blue tint over it */
.apb-banner__media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 48%;
}
.apb-banner__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.apb-banner__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(29,62,143,.96) 0%, rgba(29,62,143,.52) 9%, rgba(29,62,143,.40) 42%, rgba(29,62,143,.34) 100%);
}

.apb-banner__inner { position: relative; width: 100%; }
.apb-banner__copy { max-width: 56%; }

.apb-banner__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--apb-font-body);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--apb-banner-gold);
  margin-bottom: 14px;
}
.apb-banner__eyebrow::before {
  content: '';
  width: 34px; height: 2px;
  background: var(--apb-banner-gold);
  flex: none;
}

.apb-banner h1 {
  font-family: var(--apb-font-body);
  font-weight: 800;
  color: #fff;
  font-size: clamp(27px, 3.2vw, 42px);
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0 0 12px;
}
.apb-banner h1 em {
  font-family: var(--apb-font-head);
  font-style: italic;
  font-weight: 700;
  color: var(--apb-banner-gold);
}

.apb-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* pill buttons, as on the youth page */
.apb .apb-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--apb-font-body);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  transition: all .2s ease;
}
.apb .apb-pill i { font-style: normal; transition: transform .2s ease; }
.apb .apb-pill:hover i { transform: translateX(4px); }
.apb .apb-pill:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.apb .apb-pill--gold {
  background: var(--apb-banner-gold);
  color: #23180A;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
      text-decoration: none;
}
.apb .apb-pill--gold:hover { background: #FFC13F; color: #23180A; transform: translateY(-2px); }

.apb .apb-pill--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
  text-decoration: none;
}
.apb .apb-pill--ghost:hover { background: #fff; color: var(--apb-banner-blue); border-color: #fff; }

/* ================================================================== TEAM */
.apb-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.apb-filter {
  font-family: var(--apb-font-body);
  font-size: 13.5px; font-weight: 800;
  color: var(--apb-body);
  background: #fff; border: 1.5px solid var(--apb-line);
  border-radius: 999px; padding: 11px 20px; cursor: pointer;
  transition: all .18s ease;
}
.apb-filter span { font-size: 12px; color: var(--apb-muted); margin-left: 6px; }
.apb-filter:hover { border-color: var(--apb-navy); color: var(--apb-navy); }
.apb-filter.is-active { background: var(--apb-navy); border-color: var(--apb-navy); color: #fff; }
.apb-filter.is-active span { color: rgba(255,255,255,.7); }

.apb-team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

.apb-member {
  position: relative;
  background: #fff;
  border: 1px solid var(--apb-line);
  border-radius: var(--apb-r);
  overflow: hidden;
  box-shadow: var(--apb-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.apb-member.is-hidden { display: none; }
.apb-member:hover { transform: translateY(-6px); box-shadow: var(--apb-shadow); }

.apb-member__photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--apb-tint); }
.apb-member__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform .6s ease;
}
.apb-member:hover .apb-member__photo img { transform: scale(1.06); }

.apb-member__body {
  padding: 14px 14px 16px;
  border-top: 1px solid var(--apb-line);
}
.apb .apb-member__name { font-size: 16.5px; color: var(--apb-ink); margin-bottom: 3px; }
.apb-member__role {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--apb-muted); margin: 0;
}

.apb-team__empty { display: none; text-align: center; padding: 36px 0; color: var(--apb-muted); }
.apb-team__empty.is-shown { display: block; }

/* ================================================================ EVENTS */
.apb-events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.apb-event {
  background: #fff; border: 1px solid var(--apb-line);
  border-radius: var(--apb-r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.apb-event:hover { transform: translateY(-6px); box-shadow: var(--apb-shadow); }

.apb-event__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.apb-event__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.apb-event:hover .apb-event__media img { transform: scale(1.05); }

.apb-event__date {
  position: absolute; top: 14px; left: 14px;
  background: #fff; border-radius: 12px; padding: 9px 14px; text-align: center;
  box-shadow: var(--apb-shadow-sm); line-height: 1;
}
.apb-event__date b { display: block; font-family: var(--apb-font-head); font-size: 23px; color: var(--apb-maroon); }
.apb-event__date span { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--apb-muted); }

.apb-event__pill {
  position: absolute; top: 14px; right: 14px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--apb-saffron); color: #2A1B00;
  padding: 6px 12px; border-radius: 999px;
}

.apb-event__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.apb-event__body h3 { font-size: 22px; margin-bottom: 8px; }
.apb-event__meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 13.5px; color: var(--apb-muted); margin-bottom: 12px;
}
.apb-event__body p { font-size: 15px; margin-bottom: 20px; }
.apb-event__body .apb-btn { margin-top: auto; align-self: flex-start; }

/* ========================================================== GET INVOLVED */
.apb-involve { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.apb-involve__card {
  position: relative;
  background: #fff; border: 1px solid var(--apb-line);
  border-radius: var(--apb-r-lg); padding: 34px 30px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.apb-involve__card:hover { transform: translateY(-6px); box-shadow: var(--apb-shadow); border-color: rgba(247,168,27,.6); }
.apb-involve__card h3 { font-size: 23px; margin-bottom: 10px; }
.apb-involve__card p { font-size: 15px; margin-bottom: 22px; }
/* buttons line up across the row however long the copy runs */
.apb-involve__card .apb-btn { margin-top: auto; text-decoration: none;}

/* ================================================================ FOOTER */
.apb-foot { padding: 32px 0; background: var(--apb-tint); border-top: 1px solid var(--apb-line); }
.apb-foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.apb-foot__name { font-family: var(--apb-font-head); font-size: 19px; color: var(--apb-ink); }
.apb-foot__name span { display: block; font-family: var(--apb-font-body); font-size: 13px; color: var(--apb-muted); }
.apb-foot__links { display: flex; flex-wrap: wrap; gap: 10px; }
.apb-foot__links a {
  font-size: 13.5px; font-weight: 700;
  background: #fff; border: 1px solid var(--apb-line);
  border-radius: 999px; padding: 9px 16px; color: var(--apb-body);
  transition: all .18s ease;
}
.apb-foot__links a:hover { color: var(--apb-navy); border-color: var(--apb-navy); transform: translateY(-2px); }

/* ================================================================ REVEAL */
.apb-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.apb-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .apb-reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================ RESPONSIVE */
@media (max-width: 1240px) {
  .apb-team { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1040px) {
  .apb-team { grid-template-columns: repeat(3, 1fr); }
  .apb__head { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .apb-events, .apb-involve { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .apb__section { padding: 50px 0; }
}

@media (max-width: 620px) {
  .apb__wrap { padding: 0 18px; }
  .apb-team { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .apb .apb-member__name { font-size: 15px; }
  .apb-member__role { font-size: 10px; letter-spacing: .06em; }
  .apb-member__body { padding: 12px 12px 14px; }
  .apb-events, .apb-involve { grid-template-columns: 1fr; }
  .apb-foot__inner { flex-direction: column; align-items: flex-start; }
}

/* banner responsive — keeps the 300px height, photo drops behind the copy */
/* keep both banner pills on one row (and the banner at 300px) on laptops */
@media (max-width: 1100px) {
  .apb-banner__copy { max-width: 68%; }
  .apb .apb-pill { padding: 12px 20px; font-size: 13.5px; }
}

@media (max-width: 900px) {
  .apb-banner__copy { max-width: 72%; }
  .apb-banner__media { width: 42%; }
}
@media (max-width: 680px) {
  .apb-banner { padding: 32px 0; }
  .apb .apb-pill { white-space: normal; }
  .apb-banner__copy { max-width: 100%; }
  .apb-banner__media { width: 100%; }
  .apb-banner__media::after {
    background: linear-gradient(90deg, rgba(29,62,143,.94) 0%, rgba(29,62,143,.84) 100%);
  }
  .apb-banner__eyebrow { font-size: 11px; letter-spacing: .14em; gap: 10px; }
  .apb-banner__eyebrow::before { width: 22px; }
  .apb-banner h1 { font-size: 25px; }
  .apb-banner__sub { font-size: 14px; margin-bottom: 18px; }
  .apb-banner__actions { gap: 10px; }
  .apb .apb-pill { padding: 13px 22px; font-size: 13.5px; flex: 1 1 100%; }
}

/* placeholder block for a team member / event with no photo yet */
.apb .apb-ph { display: block; width: 100%; height: 100%; background:
  linear-gradient(180deg, var(--apb-tint) 0%, #E4E8EE 100%); }
.apb-member__photo .apb-ph::after,
.apb-event__media .apb-ph::after {
  content: ''; position: absolute; left: 50%; top: 44%;
  width: 38%; aspect-ratio: 1; transform: translate(-50%,-50%);
  border-radius: 50%; background: rgba(124,134,152,.32);
}
.apb-member__photo, .apb-event__media { position: relative; }
.apusa-footer__give {display:none!important;}