/* Member roster layout and photo fallbacks; shared site colors come from style.css. */
:root {
  color-scheme: light;
  --navy: #203b83;
  --blue: #244b9b;
  --cyan: #1bb3d0;
  --gold: #e4c952;
  --logo-red: #c83b42;
  --bg: #f6f8fc;
  --ink: #151f3d;
  --muted: #6b7590;
  --line: #e3e8f2;
  --tint: #e6f6fb;
  --card-shadow: 0 1px 2px rgba(21, 31, 61, 0.04), 0 6px 18px rgba(21, 31, 61, 0.06);
  --card-shadow-hover: 0 3px 8px rgba(21, 31, 61, 0.07), 0 14px 30px rgba(21, 31, 61, 0.12);
  --font: "Inter", "Noto Sans Bengali", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 0.95rem/1.6 var(--font);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.9rem;
  transform: translateY(-160%);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 2;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

.header-inner,
.footer-inner {
  display: flex;
  max-width: 1200px;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.55rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand small {
  margin-top: 0.15rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.home-link {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 600;
}

.home-link span {
  padding-left: 0.25rem;
  color: var(--cyan);
}

.page-hero {
  overflow: hidden;
  background: radial-gradient(ellipse at 78% 44%, rgba(31, 181, 216, 0.18), transparent 38%), linear-gradient(120deg, #14245e, #24458e);
  color: #fff;
}

.hero-inner {
  position: relative;
  display: grid;
  width: min(100%, 1200px);
  min-height: 320px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  margin: 0 auto;
  padding: 2.75rem 1.5rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  color: #d6e7fb;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.hero-subtitle {
  max-width: 34rem;
  margin-bottom: 0;
  color: #d9e4fa;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero-math {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
}

.math-ring {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.ring-two {
  inset: 26%;
  border-style: dashed;
  border-color: rgba(220, 201, 111, 0.5);
}

.math-symbol,
.math-equation,
.math-dot {
  position: absolute;
}

.math-symbol {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 2.8rem;
}

.symbol-sigma {
  top: 16%;
  left: 21%;
  color: var(--gold);
}

.symbol-pi {
  right: 17%;
  bottom: 15%;
  color: #7fdfec;
}

.math-equation {
  top: 46%;
  left: 50%;
  width: max-content;
  max-width: 85%;
  padding: 0.6rem 0.8rem;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  background: rgba(17, 32, 82, 0.72);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 0.82rem;
}

.math-dot {
  top: 27%;
  right: 22%;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 7px rgba(31, 181, 216, 0.14);
}

.committee-wrap {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 2rem 1.5rem 4.5rem;
}

.intro {
  max-width: 44rem;
  margin: 0 auto 2.75rem;
  color: var(--muted);
  text-align: center;
}

.committee-section {
  margin-top: 2.65rem;
  scroll-margin-top: 1rem;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  letter-spacing: -0.02em;
}

.member-grid {
  display: flex;
  justify-content: safe center;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0.1rem 0.9rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: #aebcda #e8edf5;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.member-grid:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.member-grid::-webkit-scrollbar {
  height: 8px;
}

.member-grid::-webkit-scrollbar-track {
  border-radius: 99px;
  background: #e8edf5;
}

.member-grid::-webkit-scrollbar-thumb {
  border: 2px solid #e8edf5;
  border-radius: 99px;
  background: #aebcda;
}

.member-card {
  display: grid;
  flex: 0 0 210px;
  min-width: 210px;
  height: 300px;
  grid-template-rows: minmax(0, 1fr) 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--card-shadow);
  scroll-snap-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.member-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.member-card-featured {
  flex-basis: 270px;
  min-width: 270px;
  height: 340px;
  border-color: rgba(36, 75, 155, 0.3);
  box-shadow: 0 4px 12px rgba(23, 43, 110, 0.1), 0 18px 38px rgba(23, 43, 110, 0.12);
}

.member-card-featured .member-photo {
  background: linear-gradient(145deg, #dce9f3, #cad9eb);
}

.member-photo {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #e7edf8, #dce7f2);
}

.member-photo::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 18%;
  background: linear-gradient(transparent, rgba(32, 59, 131, 0.06));
  content: "";
  pointer-events: none;
}

.member-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.member-photo img[hidden] {
  display: none;
}

.photo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(145deg, #e5f5f9, #dce8f5 68%, #cbd7e9);
}

.photo-fallback svg {
  width: min(44%, 112px);
  height: auto;
  aspect-ratio: 1;
  padding: 7%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: linear-gradient(145deg, #2469b5, #18a9c6);
  fill: #fff;
  filter: drop-shadow(0 8px 12px rgba(32, 59, 131, 0.22));
}

.member-photo.is-missing .photo-fallback {
  display: grid;
}

.member-info {
  display: flex;
  height: 88px;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.member-info h3 {
  display: -webkit-box;
  min-height: 2.5em;
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.member-info p {
  display: -webkit-box;
  min-height: 2.4em;
  overflow: hidden;
  margin: 0.2rem 0 0;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 520px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 1rem 2rem;
  }

  .hero-math {
    width: min(70vw, 230px);
  }

  .committee-wrap {
    padding: 1.5rem 1rem 3rem;
  }

  .intro {
    margin-bottom: 2rem;
    text-align: left;
  }

  .committee-section {
    margin-top: 2.1rem;
  }

  .member-card {
    flex-basis: 190px;
    min-width: 190px;
    height: 280px;
  }

  .member-card-featured {
    flex-basis: 235px;
    min-width: 235px;
    height: 320px;
  }

  .member-info {
    padding: 0.45rem 0.65rem;
  }

  .member-info h3 {
    font-size: 0.88rem;
  }

  .member-info p {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .member-card,
  .member-card:hover {
    transform: none;
    transition: none;
  }
}
