:root {
  --color-light-blue: #e1eaf0;
  --color-mid-blue: #a9c8d0;
  --color-navy: #162f56;
  --color-black: #000000;
  --color-cream: #fff9ef;
  --color-yellow: #eebf34;
  --color-white: #ffffff;
  --color-light-grey: #f4f6f8;

  --pad: clamp(12px, 2vw, 28px);
  --gap: clamp(12px, 2vw, 24px);
  --card-min-featured: 320px;
}

/* ── Header ───────────────────────────────────────────────── */
.contact-header {
  width: 100%;
  background: var(--color-white);
}

.header-image-container {
  max-width: 1100px;
  margin: 20px auto;
}

.header-image {
  width: 100%;
  height: auto;
  display: block;
}

.contact-header-title {
  background: var(--color-white);
  text-align: center;
  padding: 36px 20px 48px;
}

.contact-header-title h1 {
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--color-black);
  margin: 0;
  letter-spacing: -0.01em;
}

/* ── Current Board ────────────────────────────────────────── */
.current-board-section {
  background-color: var(--color-light-blue);
  padding: 64px var(--pad) 80px;
}

.board-section-title {
  text-align: center;
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: var(--gap);
  color: var(--color-black);
}

.board-featured {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min-featured)), 1fr));
  margin-bottom: var(--gap);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.board-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  justify-content: center;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

.board-featured .profile-card { height: 100%; }
.board-featured .profile-info { flex: 1; }

.board-grid .profile-card {
  flex: 0 1 calc(33.333% - (var(--gap) * 0.67));
}

.board-grid .profile-info { flex: 1; }

/* ── Profile Card ─────────────────────────────────────────── */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--color-mid-blue);
  margin-bottom: 0.6em;
  width: 100%;
}

.profile-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-light-blue);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.profile-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-mid-blue);
}

.profile-info {
  width: 100%;
  background: var(--color-white);
  margin-top: 0.8em;
  padding: 0.9em 1em;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.profile-info h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.4em;
}

.profile-description {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--color-black);
  opacity: 0.7;
  margin-bottom: 0.6em;
  word-break: break-word;
  flex: 1;
}

.profile-contact { margin-top: auto; }

.profile-contact p {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--color-black);
  opacity: 0.7;
  margin-bottom: 0.3em;
  word-break: break-word;
}

.profile-info a {
  color: var(--color-black);
  text-decoration: none;
  font-weight: 500;
}

.profile-contact p:has(a:hover) {
  opacity: 1;
}

.profile-info a:hover {
  color: var(--color-navy);
  text-decoration: none;
}

.no-board-message {
  text-align: center;
  padding: 48px;
  color: var(--color-black);
  opacity: 0.6;
  font-size: 1.1rem;
}

/* ── Section Divider ──────────────────────────────────────── */
.section-divider {
  background-color: var(--color-mid-blue);
  padding: 42px 20px;
  text-align: center;
}

.section-divider h2 {
  color: var(--color-white);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}

/* ── Previous Boards ──────────────────────────────────────── */
.previous-boards-section {
  background-color: var(--color-light-grey);
  padding: 60px 40px 72px;
}

.previous-boards-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.previous-board-card {
  background: var(--color-white);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.previous-board-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.previous-board-placeholder {
  width: 100%;
  height: 220px;
  background: var(--color-light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-mid-blue);
}

.previous-board-info {
  padding: 20px 22px;
  text-align: center;
  border-top: 3px solid var(--color-light-blue);
}

.previous-board-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 6px;
}

.previous-board-info p {
  font-size: 0.875rem;
  color: var(--color-mid-blue);
  margin: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .board-grid .profile-card {
    flex: 0 1 calc(50% - (var(--gap) * 0.5));
  }
}

@media (max-width: 640px) {
  .header-image-container { margin: 12px; }
  .contact-header-title h1 { font-size: 1.7rem; }
  .contact-header-title { padding: 28px 20px 36px; }
  .board-grid .profile-card { flex: 0 1 100%; }
  .previous-boards-section { padding: 40px 16px 52px; }
  .previous-boards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
