/* ============================================================
   ECCI — page-specific styles
   ============================================================ */

/* Section head with right-side link */
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head-row .section-title { margin-bottom: 6px; }

/* ----- Sectors grid ----- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sector-tile {
  background: var(--c-white);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  min-height: 92px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--c-teal-dark);
  position: relative;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.sector-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--c-gold);
  transform: scaleY(0.3);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.sector-tile:hover {
  transform: translateY(-3px);
  border-color: var(--c-gold);
  box-shadow: var(--shadow-card);
}
.sector-tile:hover::before { transform: scaleY(1); }

@media (max-width: 880px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sector-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .sector-tile { min-height: 64px; padding: 12px 14px; font-size: 0.92rem; } }

/* ----- News cards ----- */
.news-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--c-gold);
}
.news-card-img {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card-body .chip { align-self: flex-start; margin-bottom: 14px; }
.news-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.35;
  flex: 0;
}
.news-card-body h3 a { color: var(--c-ink); }
.news-card-body h3 a:hover { color: var(--c-teal); }
.news-card-body p {
  color: var(--c-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.news-card-body time {
  font-size: 0.78rem;
  color: var(--c-muted-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ----- Page hero (interior) ----- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 80px;
  background: linear-gradient(135deg, var(--c-teal-dark) 0%, var(--c-teal) 60%, var(--c-teal-darker) 100%);
  color: var(--c-white);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(212,160,23,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(15,76,92,0.4) 0%, transparent 60%);
  z-index: -1;
}
.page-hero h1 { color: var(--c-white); max-width: 720px; }
.page-hero .lead { color: rgba(255,255,255,0.85); max-width: 680px; margin-top: 12px; }
.page-hero .breadcrumb { margin-bottom: 22px; }
@media (max-width: 880px) {
  .page-hero { padding: calc(var(--header-h-mobile) + 56px) 0 60px; }
}

/* ----- Member directory ----- */
.directory-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.directory-search {
  flex: 1;
  min-width: 280px;
  max-width: 420px;
  position: relative;
}
.directory-search input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  background: var(--c-white);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.directory-search input:focus {
  outline: none;
  border-color: var(--c-teal);
  box-shadow: 0 0 0 4px rgba(15, 76, 92, 0.10);
}
.directory-search svg {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--c-muted);
}
.directory-count { color: var(--c-muted); font-size: 0.92rem; }
.directory-count strong { color: var(--c-teal-dark); }

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.filter-chips button {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  color: var(--c-ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.filter-chips button:hover {
  background: var(--c-cream);
  border-color: var(--c-gold);
}
.filter-chips button.is-active {
  background: var(--c-teal-dark);
  color: var(--c-white);
  border-color: var(--c-teal-dark);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.member-card {
  background: var(--c-white);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.member-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-gold);
  box-shadow: var(--shadow-card-hover);
}
.member-logo {
  width: 90px; height: 90px;
  border-radius: var(--radius-md);
  background: var(--c-cream);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-teal-dark);
  font-size: 1.4rem;
  overflow: hidden;
}
.member-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.member-card h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 6px;
  line-height: 1.3;
}
.member-sector {
  font-size: 0.78rem;
  color: var(--c-gold-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.member-contact {
  font-size: 0.82rem;
  color: var(--c-muted);
  display: flex; flex-direction: column; gap: 4px;
  margin-top: auto;
}
.member-contact a { color: var(--c-teal); }
.member-contact a:hover { color: var(--c-gold-dark); }
.member-pending {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--c-cream);
  color: var(--c-muted);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  align-self: center;
}

@media (max-width: 1024px) { .member-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .member-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .member-grid { grid-template-columns: 1fr; } .member-card { padding: 20px; } }

/* ----- Tier comparison table ----- */
.tier-table-wrap { overflow-x: auto; margin-top: 36px; }
.tier-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border-soft);
  min-width: 720px;
}
.tier-table th, .tier-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--c-border-soft);
  font-size: 0.92rem;
}
.tier-table th {
  background: var(--c-cream);
  font-weight: 600;
  color: var(--c-teal-dark);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0;
}
.tier-table th {
  vertical-align: top;
  padding-top: 28px;
  padding-bottom: 22px;
}
.tier-table th.tier-popular {
  background: var(--c-teal-dark);
  color: var(--c-white);
  position: relative;
}
.tier-table th.tier-popular .tier-badge {
  display: inline-block;
  background: var(--c-gold);
  color: var(--c-teal-dark);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.tier-table td {
  color: var(--c-ink-soft);
}
.tier-table td:first-child { font-weight: 500; color: var(--c-ink); }
.tier-table tr:last-child td { border-bottom: none; }
.tier-table .tier-check { color: var(--c-success); font-size: 1.1rem; font-weight: 700; }
.tier-table .tier-no { color: var(--c-muted-light); }
.tier-table .tier-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--c-teal-dark);
  display: block;
  line-height: 1.15;
}
.tier-table th.tier-popular .tier-price { color: var(--c-gold); }
.tier-table .tier-price small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  font-style: italic;
}
.tier-table th.tier-popular .tier-price small { color: rgba(255,255,255,0.65); }

/* Category table (A–F membership tiers) */
.category-table th { text-align: left; }
.category-table td { vertical-align: middle; padding: 22px 20px; }
.cat-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-teal-dark) 0%, var(--c-teal) 100%);
  color: var(--c-gold);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 76, 92, 0.18);
}
.cat-letter.cat-honorary {
  background: linear-gradient(135deg, var(--c-cream-dark) 0%, var(--c-cream) 100%);
  color: var(--c-teal-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.cat-fee {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--c-teal-dark);
  text-align: right;
  white-space: nowrap;
}

/* ----- Apply form: section headers ----- */
.form-section-h {
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-gold-dark);
  margin: 28px 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-border-soft);
}
.form-section-h:first-of-type { margin-top: 8px; }
.form-section-h4 {
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--c-teal-dark);
  margin: 22px 0 12px;
}

.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 720px) { .form-grid-3 { grid-template-columns: 1fr; } }

/* ----- Radio + checkbox option cards (grid layout, uniform sizing) ----- */
.radio-row, .check-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.radio-row[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.radio-row[data-cols="3"], .check-row[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }

.radio-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  min-height: 60px;
  border: 1.5px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-white);
  color: var(--c-ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  user-select: none;
  text-align: left;
}
.radio-pill input {
  accent-color: var(--c-teal-dark);
  cursor: pointer;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
}
.radio-pill:hover {
  border-color: var(--c-gold);
  background: var(--c-cream);
}
.radio-pill:has(input:checked) {
  border-color: var(--c-teal-dark);
  background: var(--c-teal-dark);
  color: var(--c-white);
  box-shadow: 0 4px 14px rgba(15, 76, 92, 0.18);
}
.radio-pill:has(input:checked) input { accent-color: var(--c-gold); }

/* Mobile: compress option cards — 2 columns, smaller padding, tighter min-height
   minmax(0,1fr) is critical so long labels can't force columns wider than viewport */
@media (max-width: 720px) {
  .radio-row, .check-row,
  .radio-row[data-cols], .check-row[data-cols] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .radio-pill {
    min-height: 50px;
    padding: 10px 12px;
    font-size: 0.84rem;
    line-height: 1.32;
    border-radius: 10px;
    gap: 10px;
    min-width: 0;            /* allow flex children to shrink */
    word-break: break-word;
  }
  .radio-pill input { width: 16px; height: 16px; }
}
@media (max-width: 380px) {
  .radio-row, .check-row,
  .radio-row[data-cols], .check-row[data-cols] {
    grid-template-columns: minmax(0, 1fr);
  }
  .radio-pill { min-height: 44px; padding: 9px 12px; }
}

/* ----- PDF callout ----- */
.pdf-callout {
  background: var(--c-white);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px) clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 28px;
  box-shadow: var(--shadow-card);
}
.pdf-callout h3 {
  font-size: 1.4rem;
  margin: 6px 0 8px;
}
.pdf-callout p {
  color: var(--c-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 520px;
}
.pdf-callout .btn { white-space: nowrap; }
@media (max-width: 720px) {
  .pdf-callout { grid-template-columns: 1fr; gap: 16px; }
  .pdf-callout-actions { display: flex; }
  .pdf-callout-actions .btn { width: 100%; justify-content: center; }
}

/* ----- Form status (success / error) ----- */
.form-status.is-success {
  color: var(--c-success);
  font-weight: 600;
}
.form-status.is-error {
  color: var(--c-error);
  font-weight: 600;
}

/* ----- Apply / Steps ----- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 56px 0;
}
.step {
  text-align: center;
  position: relative;
  padding: 0 12px;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-teal-dark) 0%, var(--c-teal) 100%);
  color: var(--c-gold);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 8px 20px rgba(15, 76, 92, 0.25);
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--c-muted); font-size: 0.92rem; line-height: 1.55; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px; right: -14px;
  width: 28px; height: 1px;
  background: linear-gradient(to right, var(--c-gold), transparent);
}

@media (max-width: 880px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 460px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ----- Apply form card ----- */
.form-card {
  background: var(--c-white);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-md);
  max-width: 880px;
  margin: 0 auto;
}
.form-card h2 { margin-bottom: 8px; }
.form-card .lead { margin-bottom: 32px; }
.form-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.form-status {
  font-size: 0.92rem;
  color: var(--c-muted);
}
.form-status.is-success { color: var(--c-success); font-weight: 500; }

/* ----- Contact info cards ----- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.contact-card {
  background: var(--c-white);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-gold);
  box-shadow: var(--shadow-card);
}
.contact-card .card-icon { margin: 0 auto 18px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.contact-card p, .contact-card a {
  color: var(--c-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.contact-card a { color: var(--c-teal); font-weight: 500; }
.contact-card a:hover { color: var(--c-gold-dark); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border-soft);
  box-shadow: var(--shadow-card);
  margin-top: 32px;
}
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 600px) { .map-wrap iframe { height: 320px; } }

/* ----- Leadership / officials ----- */
.officials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.official-card {
  background: var(--c-white);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.official-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.official-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--c-cream) 0%, var(--c-cream-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--c-teal-dark);
  font-weight: 500;
  letter-spacing: -0.02em;
  position: relative;
}
.official-photo img { width: 100%; height: 100%; object-fit: cover; }
.official-info { padding: 22px 24px 26px; }
.official-role {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold-dark);
  font-weight: 700;
  margin-bottom: 6px;
}
.official-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.official-info p { color: var(--c-muted); font-size: 0.9rem; line-height: 1.55; }
@media (max-width: 880px) { .officials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .officials-grid { grid-template-columns: 1fr; } }

/* ----- Big benefits page tiles ----- */
.benefit-tile {
  background: var(--c-white);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.benefit-tile:hover {
  border-color: var(--c-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.benefit-tile .card-icon { margin-bottom: 0; flex-shrink: 0; }
.benefit-tile h3 { margin-bottom: 8px; font-size: 1.15rem; }
.benefit-tile p { color: var(--c-muted); font-size: 0.95rem; line-height: 1.6; }

@media (max-width: 560px) {
  .benefit-tile { flex-direction: column; padding: 28px 24px; gap: 16px; }
}

/* ----- Accordion (FAQ) ----- */
.acc-item {
  border-bottom: 1px solid var(--c-border-soft);
}
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--c-ink);
  text-align: left;
  font-weight: 500;
  transition: color 0.2s;
}
.acc-head:hover { color: var(--c-teal); }
.acc-head .acc-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-cream);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-left: 18px;
  transition: background 0.25s, transform 0.25s;
}
.acc-head .acc-icon::before {
  content: "+";
  color: var(--c-teal-dark);
  font-size: 1.2rem;
  font-weight: 600;
}
.acc-item.is-open .acc-head .acc-icon { background: var(--c-teal-dark); transform: rotate(45deg); }
.acc-item.is-open .acc-head .acc-icon::before { color: var(--c-gold); }
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.acc-item.is-open .acc-body {
  max-height: 480px;
  padding-bottom: 22px;
}
.acc-body p { color: var(--c-muted); font-size: 0.95rem; line-height: 1.65; }

/* ----- Pomeroon-Supenaam map / region info ----- */
.region-band {
  background: var(--c-cream);
  padding: 56px 0;
  border-top: 1px solid var(--c-border-soft);
}
.region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.region-item h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--c-teal-dark);
  margin-bottom: 4px;
  font-weight: 500;
}
.region-item p {
  font-size: 0.82rem;
  color: var(--c-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
@media (max-width: 720px) { .region-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ----- News list page ----- */
.news-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--c-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--c-border-soft);
  overflow: hidden;
  margin-bottom: 56px;
}
.news-feature-img { aspect-ratio: 4/3; min-width: 0; }
.news-feature-img img { width: 100%; height: 100%; object-fit: cover; }
.news-feature-body {
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.news-feature-body h2 { overflow-wrap: anywhere; word-break: normal; }
.news-feature-body .chip { align-self: flex-start; margin-bottom: 16px; }
.news-feature-body h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 14px;
  line-height: 1.25;
}
.news-feature-body p { color: var(--c-muted); margin-bottom: 18px; }
.news-feature-body time {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted-light);
  font-weight: 600;
  margin-bottom: 18px;
}

@media (max-width: 880px) {
  .news-feature { grid-template-columns: 1fr; }
}

/* ----- About story sections ----- */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 80px;
}
.story-block-meta {
  position: sticky; top: 110px;
}
.story-block-meta h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.15;
}
.story-block-meta .eyebrow { margin-bottom: 14px; }
.story-block-body p {
  color: var(--c-ink-soft);
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.7;
}
.story-block-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 3.2rem;
  line-height: 0.95;
  color: var(--c-gold-dark);
  padding: 6px 12px 0 0;
  font-weight: 500;
}

@media (max-width: 880px) {
  .story-block { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .story-block-meta { position: static; }
}

/* ----- Quote pull ----- */
.pull-quote {
  background: var(--c-teal-dark);
  color: var(--c-cream);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.pull-quote::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 14rem;
  line-height: 0.7;
  color: rgba(212, 160, 23, 0.18);
  position: absolute;
  top: 18px; left: 24px;
  pointer-events: none;
}
.pull-quote blockquote {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.45;
  font-weight: 500;
  font-style: italic;
  color: var(--c-white);
  max-width: 760px;
}
.pull-quote cite {
  display: block;
  margin-top: 22px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--c-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================================
   Gallery + Lightbox
   ============================================================ */
.gallery-stage { margin-top: 16px; }

.gallery-event { margin-bottom: 56px; }
.gallery-event-head { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.gallery-event-head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 4px 0 8px; }
.gallery-event-head p { color: var(--c-muted); font-size: 0.95rem; max-width: 620px; margin: 0 auto; }

/* Masonry-style grid using CSS columns (works everywhere, includes Safari) */
.gallery-grid {
  column-count: 3;
  column-gap: 12px;
}
.gallery-item {
  display: block;
  position: relative;
  width: 100%;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--c-cream-dark);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  cursor: zoom-in;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  text-decoration: none;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: var(--ar-fallback, auto);
  transition: transform 0.5s var(--ease), filter 0.4s var(--ease);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,54,64,0.28) 100%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}
.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(10,54,64,0.18);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item.is-hidden { display: none; }

@media (max-width: 1024px) { .gallery-grid { column-count: 3; column-gap: 10px; } .gallery-item { margin-bottom: 10px; } }
@media (max-width: 720px)  { .gallery-grid { column-count: 2; column-gap: 8px; } .gallery-item { margin-bottom: 8px; border-radius: 8px; } }
@media (max-width: 380px)  { .gallery-grid { column-gap: 6px; } .gallery-item { margin-bottom: 6px; } }

/* Filter chips already styled — minor gallery-page tweaks */
.gallery-stage + .filter-chips,
.filter-chips[data-gallery-filter] { justify-content: center; margin-bottom: 32px; }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6,32,41,0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lbFadeIn 0.25s ease-out;
}
.lightbox.is-open { display: flex; }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

.lb-stage {
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  touch-action: pinch-zoom;
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.22); transform: scale(1.05); }
.lb-close { top: 20px; right: 20px; width: 48px; height: 48px; font-size: 32px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 36px; line-height: 1; }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.05); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

.lb-caption {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(680px, 92%);
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.02em;
}
.lb-counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
}

@media (max-width: 720px) {
  .lightbox { padding: 0; }
  .lb-img { max-height: calc(100vh - 80px); border-radius: 0; }
  .lb-close { top: 12px; right: 12px; width: 44px; height: 44px; font-size: 28px; }
  .lb-prev, .lb-next { display: none; } /* mobile uses swipe */
  .lb-caption { bottom: 44px; font-size: 0.85rem; padding: 0 16px; }
  .lb-counter { bottom: 14px; }
}

body.lb-open { overflow: hidden; }

/* Gallery: load-more pagination per section */
.gallery-grid:not(.is-expanded) .gallery-item:nth-child(n+19) { display: none; }
.gallery-load-more {
  display: block;
  margin: 24px auto 0;
  padding: 14px 32px;
  background: var(--c-white);
  color: var(--c-teal-dark);
  border: 1.5px solid var(--c-teal-dark);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.gallery-load-more:hover { background: var(--c-teal-dark); color: var(--c-gold); transform: translateY(-2px); }
.gallery-load-more svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* Lightbox cross-fade + subtle scale transition */
.lb-img {
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1);
}
.lb-img.is-fading {
  opacity: 0;
  transform: scale(0.96);
}
