/* ===== OSFSS design tokens ===== */
:root {
  --navy: #071129;
  --navy-soft: #0d1836;
  --coral: #f96a4a;
  --coral-dark: #e0563a;
  --red-hover: #d6362a;
  --light-blue: #6cb0d4;
  --light-blue-dark: #4d94bb;
  --white: #ffffff;
  --off-white: #fafafa;
  --ink: #1a1a1a;
  --grey: #6b6b6b;
  --border: #d8dee8;
  --max-width: 1180px;

  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--tight { padding: 40px 0; }

.eyebrow {
  color: var(--coral);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.btn {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--red-hover); transform: scale(1.08); }
.btn--join-dark { background: var(--light-blue); }
.btn--join-dark:hover {
  background: var(--light-blue-dark);
  transform: scale(1.08);
  box-shadow: 0 10px 24px -8px rgba(108,176,212,0.7);
}
.btn--outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn--outline:hover { background: var(--white); color: var(--navy); }

/* ===== Header ===== */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 24px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.site-header__logo img { height: 44px; width: auto; }
.site-header__logo { margin-right: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.is-active { border-bottom-color: var(--coral); }
.site-header--solid { position: relative; background: var(--navy); }
.site-header--solid .site-nav a { color: var(--white); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(7,17,41,0.88), rgba(7,17,41,0.72)), var(--navy) url("/assets/img/hero-bg.jpg") center/cover no-repeat;
  color: var(--white);
  padding-top: 185px;
  padding-bottom: 320px;
}
.hero .wrap {
  max-width: none;
  margin: 0;
  padding-left: clamp(24px, 6vw, 100px);
  padding-right: 24px;
}
.hero__content { max-width: 1220px; }
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.3vw, 2.4rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 28px;
  max-width: 900px;
}
.hero__social {
  display: flex;
  gap: 14px;
  margin-top: 40px;
}
.hero__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.hero__social img { width: 18px; height: 18px; transition: filter 0.2s ease; }
.hero__social a:hover,
.site-footer__social a:hover,
.committee-card__social a:hover {
  transform: scale(1.2);
}
.site-footer__social a,
.committee-card__social a {
  display: inline-flex;
  transition: transform 0.2s ease;
}
.hero__social a:hover img,
.site-footer__social a:hover img,
.committee-card__social a:hover img {
  filter: invert(48%) sepia(89%) saturate(1946%) hue-rotate(337deg) brightness(101%) contrast(96%);
}

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 108px 0 36px;
}
.page-hero h1 { font-weight: 300; font-size: 2.2rem; }

/* ===== Feature grid ===== */
.features-section {
  position: relative;
  z-index: 2;
  margin-top: -220px;
  padding-bottom: 0;
}
.features-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 50px -16px rgba(0,0,0,0.25);
  padding: 56px 56px 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: center;
}
.features__intro h2 {
  color: var(--coral);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 20px;
}
.features__intro p { color: #1a1a1a; font-size: 1.05rem; font-family: var(--font-body); margin-bottom: 28px; }
.features__divider {
  width: 2px;
  align-self: stretch;
  background: #16161a;
}
.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 32px;
}
.feature-item__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.feature-item__icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: #16161a;
}
.feature-item h3 {
  font-size: 1.05rem;
  margin: 0;
  color: #b8462f;
}
.feature-item p {
  font-size: 0.92rem;
  margin: 0;
  color: #2c2c2c;
  font-family: var(--font-body);
}

@media (max-width: 900px) {
  .features-card { grid-template-columns: 1fr; padding: 36px 28px; }
  .features__divider { width: 100%; height: 2px; }
  .features__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .features__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; }
}

/* ===== About ===== */
.about-section { border-top: 1px solid var(--border); }
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about__media { position: relative; }
.about__photo-wrap { position: relative; border-radius: 16px; overflow: hidden; }
.about__photo {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 35%;
}
.about__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,17,41,0.35), rgba(7,17,41,0.15));
  pointer-events: none;
}
.about__badge-link {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 45%;
  display: block;
  border-radius: 12px;
  border: 6px solid var(--white);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.about__badge-link:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 40px -10px rgba(0,0,0,0.35);
}
.about__badge { width: 100%; display: block; border-radius: 6px; }
.about__body p { color: var(--grey); font-size: 1.05rem; }
.about__orgs { display: flex; gap: 36px; margin-top: 32px; flex-wrap: wrap; align-items: center; }
.about__orgs a {
  display: inline-flex;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.about__orgs a:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.25);
}
.about__orgs img { height: 96px; width: auto; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__media { margin-bottom: 40px; }
}

/* ===== Partners ===== */
.partners { background: #333338; text-align: center; }
.partners h2 { margin-bottom: 40px; color: var(--white); }
.partners__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}
.partners__card {
  background: var(--white);
  border-radius: 14px;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partners__grid img { max-height: 84px; width: auto; }

/* ===== Term card ===== */
.termcard-block { background: var(--navy); color: var(--white); }
.termcard-block__header { text-align: center; margin-bottom: 36px; }
.termcard-block__header .eyebrow { color: var(--coral); }
.termcard-block__header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; color: var(--white); }
.termcard-block__hint { color: #9db3d6; font-size: 0.9rem; margin-top: 8px; }

.event-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.event-row {
  display: grid;
  grid-template-columns: 150px 1fr 260px;
  gap: 20px;
  align-items: center;
  padding: 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  color: var(--white);
  position: relative;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.event-row:hover {
  background: var(--coral);
  transform: scale(1.02);
  border-radius: 10px;
  box-shadow: 0 10px 24px -10px rgba(249,106,74,0.6);
  z-index: 2;
}
.event-row:hover .event-row__date,
.event-row:hover .event-row__time,
.event-row:hover .event-row__loc { color: var(--white); }
.event-row:hover .event-row__category { background: var(--white); color: var(--coral-dark); }
.event-row__when { display: flex; flex-direction: column; gap: 4px; }
.event-row__date {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: #9db3d6;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.event-row__time { font-size: 0.82rem; color: #b8c6de; }
.event-row__category {
  display: inline-block;
  font-size: 0.68rem;
  font-family: var(--font-heading);
  background: var(--coral);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}
.event-row__title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; }
.event-row__loc { font-size: 0.88rem; color: #b8c6de; text-align: right; }

@media (max-width: 720px) {
  .event-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .event-row__loc { text-align: left; }
}

/* ===== Committee ===== */
.committee { background: var(--white); }
.committee__heading {
  color: var(--coral);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  text-align: center;
  margin-bottom: 12px;
}
.committee__subheading { text-align: center; font-size: 1.3rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.committee__stream-title { text-align: center; font-size: 1.5rem; margin: 36px 0 24px; }
.committee__stream-title:first-of-type { margin-top: 24px; }
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.committee-card {
  text-align: center;
  display: block;
  border-radius: 14px;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.committee-card:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 32px -14px rgba(0,0,0,0.25);
}
.committee-card__photo {
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  background: var(--coral);
}
.committee-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.6rem;
}
.committee-card h4 { font-size: 1.02rem; margin-bottom: 2px; }
.committee-card__role { color: var(--coral); font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.committee-card__course { color: var(--grey); font-size: 0.82rem; margin: 0; }
.committee-card__college { color: var(--grey); font-size: 0.82rem; margin: 0 0 10px; }
.committee-card__social img { width: 20px; height: 20px; margin: 0 auto; transition: filter 0.2s ease; }

/* ===== Mailing list + membership ===== */
.signup-outer { border-top: 1px solid var(--border); }
.signup-outer__heading {
  color: var(--coral);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  text-align: center;
  margin-bottom: 44px;
}
.signup-section {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
}
.signup-section--solo {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
}
.signup-section__divider {
  width: 2px;
  align-self: stretch;
  background: var(--border);
}
@media (max-width: 860px) {
  .signup-section { grid-template-columns: 1fr; }
  .signup-section__divider { width: 100%; height: 2px; margin: 8px 0; }
}
.signup-form h2 { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.form-required { color: #d6362a; font-weight: 700; }
.form-field input,
.form-field select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--grey);
  margin: 18px 0 22px;
}
.form-consent input { margin-top: 4px; }
.form-success {
  display: none;
  margin-top: 14px;
  color: var(--coral-dark);
  font-weight: 600;
}

.committee-cta {
  text-align: center;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.committee-cta h3 {
  color: var(--coral);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 14px;
}
.committee-cta p {
  color: var(--grey);
  max-width: 560px;
  margin: 0 auto 24px;
}
.committee-cta__benefits {
  list-style: none;
  padding: 0;
  margin: 0 auto 28px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.committee-cta__benefits li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
}
.committee-cta__benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
}

/* ===== Signup Modal ===== */
.signup-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.signup-modal[hidden] { display: none; }
.signup-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,5,10,0.7);
}
.signup-modal__panel {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.4);
}
.signup-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--off-white);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.signup-modal__close:hover { background: var(--border); }
.signup-modal__brand {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 72px;
  height: auto;
  pointer-events: none;
  opacity: 0.9;
}
@media (max-width: 560px) {
  .signup-modal__panel { padding: 28px 20px; }
}

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: var(--white); padding: 56px 0 32px; }
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 28px;
}
.site-footer__contact a { color: var(--white); }
.site-footer__contact p { margin: 6px 0; color: #b8c6de; font-size: 0.9rem; }
.site-footer__email { display: flex; align-items: center; gap: 8px; }
.site-footer__email svg { flex-shrink: 0; color: var(--coral); }
.site-footer nav ul { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; flex-wrap: wrap; }
.site-footer nav a { font-size: 0.9rem; color: #b8c6de; }
.site-footer nav a:hover { color: var(--white); }
.site-footer__nav-col { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.site-footer__partners {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-footer__partners img { height: 40px; width: auto; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer__logo img { height: 36px; }
.site-footer__social { display: flex; gap: 12px; }
.site-footer__social img { width: 22px; height: 22px; transition: filter 0.2s ease; }

/* ===== Blog ===== */
.blog-list { display: flex; flex-direction: column; gap: 0; }
.blog-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
}
.blog-card img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; }
.blog-card__meta {
  color: var(--grey);
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.blog-card h2 { font-size: 1.5rem; }
@media (max-width: 720px) {
  .blog-card { grid-template-columns: 1fr; }
}

.post-header { max-width: 780px; margin: 0 auto; text-align: center; }
.post-header h1 { font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.post-header__subheading {
  color: #b8c6de;
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.post-header__meta {
  color: #b8c6de;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.post-header__meta-item { display: inline-flex; align-items: center; gap: 6px; }
.post-header__meta-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.post-cover { margin: 32px auto 40px; max-width: 768px; padding: 0 24px; }
.post-cover img { border-radius: 16px; width: 100%; }
.post-body { max-width: 720px; margin: 0 auto; }
.post-body h2 { margin-top: 2em; font-size: 1.4rem; }
.post-body h3 { margin-top: 1.6em; font-size: 1.15rem; color: var(--coral-dark); }
.post-body p { color: #2c2c2c; margin: 0 0 1.2em; }
.post-body ul, .post-body ol { color: #2c2c2c; }
.post-body a { color: var(--coral-dark); text-decoration: underline; }
.post-back { display: inline-block; margin: 40px auto 0; text-align: center; color: var(--coral); font-weight: 600; }
.post-back-wrap { text-align: center; }
