/* ── Variables ───────────────────────────────────── */
:root {
  --mit-red:    #A31F34;
  --mit-gray:   #8A8B8C;
  --mit-silver: #C2C0BF;
  --light-bg:   #f9f9f9;
}

/* ── Global ──────────────────────────────────────── */
body {
  font-family: 'Montserrat', sans-serif;
  color: #222;
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bitter', serif;
}

/* ── Navbar ──────────────────────────────────────── */
.navbar {
  background-color: var(--mit-red);
  padding: 0.8rem 0;
}

.nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.95rem;
  font-family: 'Montserrat', sans-serif;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
  text-decoration: underline;
}

.navbar-brand {
  padding: 0;
  margin-right: 1.5rem;
}

.navbar-brand img {
  height: 34px;
  width: auto;
  display: block;
}

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  background-color: var(--light-bg);
  border-top: 1px solid #ddd;
  padding: 2rem 0;
  margin-top: 4rem;
  font-size: 0.85rem;
  color: var(--mit-gray);
  text-align: center;
}

/* ── Home Page ───────────────────────────────────── */
.home-hero {
  padding: 3rem 0 2rem 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 2rem;
}

.home-hero h1 {
  color: var(--mit-red);
  font-size: 2.2rem;
  font-weight: 700;
}

/* ── Section Headers (shared) ────────────────────── */
.section-header {
  color: var(--mit-red);
  font-weight: 700;
  margin: 2.5rem 0 1rem 0;
  font-size: 1.3rem;
  border-bottom: 2px solid var(--mit-red);
  padding-bottom: 0.3rem;
}

/* ── People Page ─────────────────────────────────── */

/* PI Block */
.pi-section {
  margin-bottom: 2rem;
}

.pi-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}


.pi-credentials {
  list-style: none;
  padding: 0;
  font-size: 0.95rem;
  line-height: 2;
  color: #444;
}

.pi-links {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.pi-links a {
  margin-right: 0.5rem;
}

/* Member Rows */
.member-row {
  padding: 1.5rem 0;
}

.member-row img {
  max-width: 100%;
  height: auto;
}

.member-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 0;
}

.member-photo-col img {
  width: 260px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

}

.structure-img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}


/* ── People Page — Mobile ────────────────────────── */
@media (max-width: 767px) {
  .member-photo-col img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

    .pi-photo {
    max-width: 100%;
    height: auto;
  }

  .structure-img {
    width: auto;
    max-width: 100%;
    max-height: 240px;
	object-fit: contain;
  }
}



/* Alumni */
.alumni-list {
  list-style: none;
  padding: 0;
  columns: 2;
  font-size: 0.9rem;
  line-height: 2.2;
  color: #555;
}

/* ── Publications Page ───────────────────────────── */
.pub-entry {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.pub-entry:last-child {
  border-bottom: none;
}

.pub-title {
  font-weight: 700;
  color: #222;
  font-size: 0.95rem;
}

.pub-authors {
  font-size: 0.9rem;
  color: #444;
}

.pub-journal {
  color: var(--mit-gray);
  font-style: italic;
  font-size: 0.9rem;
}

.pub-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.pub-links a {
  font-size: 0.82rem;
  color: white;
  background-color: var(--mit-red);
  padding: 2px 10px;
  border-radius: 4px;
  text-decoration: none;
}

.pub-links a:hover {
  background-color: #7a1728;
  text-decoration: none;
}

/* ── Join Page ───────────────────────────────────── */
.join-section {
  margin-bottom: 2.5rem;
}

.join-section h3 {
  color: var(--mit-red);
  font-weight: 700;
}

/* ── Site Banner (all pages) ─────────────────────── */
.site-banner {
  background-image: url('/assets/img/heading-structure.png');
  background-size: 65%;
  background-repeat: no-repeat;
  background-position: right center;
  background-color: #fff;
  height: 180px;
  position: relative;
}

.site-banner-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: flex-start;   /* was center → now top */
  padding-top: 1.25rem;
}

.site-banner-title {
  color: #000;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.03em;
}

}

/* ── Carousel ────────────────────────────────────── */
.carousel {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  background-color: white !important;
}

.carousel-inner {
  background-color: white !important;
}

.carousel-item {
  background-color: white !important;
}

.carousel-img {
  height: 420px;
  object-fit: contain;
  background-color: white !important;
}

.carousel-control-prev,
.carousel-control-next {
  width: 6%;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--mit-red);
}
/* ── Home Intro ──────────────────────────────────── */
.home-intro {
  margin-top: 1rem;
}

.home-intro h2 {
  color: var(--mit-red);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.home-intro p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.8;
}

.home-links h5 {
  color: var(--mit-red);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.home-links ul {
  list-style: none;
  padding: 0;
}

.home-links li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.home-links li:last-child {
  border-bottom: none;
}

/* ── Home Row ────────────────────────────────────── */
.home-row {
  gap: 0;
}

.home-intro {
  padding-left: 2rem;
}

.home-intro h2 {
  color: var(--mit-red);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.home-intro p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ── Resource Buttons ────────────────────────────── */
.resource-btn {
  font-size: 0.82rem;
  color: white;
  background-color: var(--mit-red);
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

.resource-btn:hover {
  background-color: #7a1728;
  color: white;
  text-decoration: none;
}