/* Homepage: photo slides and stats rows of any length (content from Appearance > Homepage) */

/* Photo slides: full-bleed image under a maroon gradient so white text stays legible */
.hero__slide--photo { background: var(--maroon-dark); }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.04); transition: transform 7s ease-out; }
.hero__slide.is-active .hero__photo { transform: scale(1); }
.hero__slide--photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(94, 6, 6, .92) 0%, rgba(127, 9, 9, .72) 38%, rgba(94, 6, 6, .2) 75%, rgba(0, 0, 0, .1) 100%), linear-gradient(0deg, rgba(0, 0, 0, .35), transparent 35%); }
.hero__slide--photo .hero__content { position: relative; z-index: 1; }
.hero__slide--photo .hero__title { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero__content > * { max-width: 680px; }
.hero__button { margin-top: 18px; }

/* Stats: the row adapts to how many stats are set */
.stats--1 { grid-template-columns: 1fr; }
.stats--2 { grid-template-columns: repeat(2, 1fr); }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stats--5 { grid-template-columns: repeat(5, 1fr); }
.stats--6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1100px) {
    .stats--5, .stats--6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
    .hero__slide--photo::after { background: linear-gradient(90deg, rgba(94, 6, 6, .9), rgba(127, 9, 9, .7)); }
    .stats--3, .stats--5, .stats--6 { grid-template-columns: repeat(2, 1fr); }
    .stats--1 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__photo { transition: none; transform: none; }
}

/* Managing council */
.council { background: var(--white); }
.council__org { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin: 0 0 40px; padding: 20px 28px; border: 1px solid #e6d3d3; border-left: 6px solid var(--maroon); border-radius: var(--radius); background: linear-gradient(90deg, #fff8f2, var(--white) 60%); }
.council__logo { width: 120px; }
.council__org-name { margin: 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; color: var(--maroon); letter-spacing: .02em; }
.council__org-reg { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.council__org-contact { display: grid; gap: 6px; font-size: 14px; }
.council__org-contact span { color: var(--maroon); margin-right: 4px; }
.council__org-contact a { text-decoration: none; color: var(--maroon); font-weight: 500; }
.council__org-contact a:hover { text-decoration: underline; }

.council__lead { display: flex; justify-content: center; margin-bottom: 28px; }
.council__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }

.council-card { height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 18px 24px; background: var(--white); border: 1px solid #ececec; border-top: 4px solid var(--maroon); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0, 0, 0, .06); transition: transform .2s, box-shadow .2s; }
.council-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, .1); }
.council-card__avatar { width: 92px; height: 92px; border-radius: 50%; padding: 4px; background: linear-gradient(135deg, var(--gold), #d99a00); flex-shrink: 0; }
.council-card__avatar img, .council-card__avatar span { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--white); }
.council-card__avatar img { object-fit: cover; }
.council-card__avatar span { display: grid; place-items: center; background: linear-gradient(160deg, var(--maroon-light), var(--maroon-dark)); color: var(--white); font-size: 28px; font-weight: 600; letter-spacing: .04em; }
.council-card__role { margin: 6px 0 0; padding: 3px 12px; border-radius: 999px; background: #fdf3d7; color: var(--maroon); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.council-card__name { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.35; }

.council-card--featured { width: min(100%, 360px); padding: 34px 24px 30px; background: linear-gradient(160deg, var(--maroon-light), var(--maroon-dark)); border: 0; color: var(--white); }
.council-card--featured .council-card__avatar { width: 124px; height: 124px; }
.council-card--featured .council-card__avatar span { font-size: 38px; background: var(--white); color: var(--maroon); }
.council-card--featured .council-card__role { background: var(--gold); color: var(--maroon-dark); }
.council-card--featured .council-card__name { color: var(--white); font-size: 22px; }

@media (max-width: 900px) {
    .council__org { grid-template-columns: auto 1fr; }
    .council__grid { grid-template-columns: repeat(2, 1fr); }
    .council__org-contact { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .council__org { grid-template-columns: 1fr; text-align: center; padding: 18px; }
    .council__logo { margin: 0 auto; }
    .council__org-contact { justify-items: center; }
    .council__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .council-card { padding: 20px 10px 18px; }
    .council-card__avatar { width: 72px; height: 72px; }
    .council-card__avatar span { font-size: 22px; }
    .council-card__name { font-size: 15px; }
    .council-card__role { font-size: 10px; letter-spacing: .08em; }
}
