:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --ink: #1f2937;
  --muted: #5b6472;
  --line: #d9dde4;
--accent: #C084FC;
  --accent-soft: #f0ebf8;
  --max: 1120px;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.narrow {
  width: min(100% - 2rem, 860px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  font-size: 1.1rem;
}

.hero {
  padding: 4.5rem 0 3rem;
  background: linear-gradient(180deg, #f4f1fa 0%, var(--bg) 100%);
}

.hero-grid, .split, .grid-3, .grid-2 {
  display: grid;
  gap: 1.5rem;
}

.hero-grid { grid-template-columns: 1.4fr 1fr; align-items: center; }
.split { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}

.eyebrow, .meta {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #f4f6f9;
}

.card, .hero-card, .person-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.hero-card {
  background: linear-gradient(180deg, var(--surface), var(--accent-soft));
}

.stack {
  display: grid;
  gap: 1.25rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover { text-decoration: none; opacity: 0.95; }
.button-secondary {
  background: white;
  color: var(--accent);
  border: 1px solid var(--line);
}

.cta-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.pub-list {
  padding-left: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  margin-top: 3rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}

.footer-wrap a { margin-left: 1rem; }
/* MOBILE ONLY */
@media screen and (max-width: 768px) {

  /* show hamburger */
  .nav-toggle {
    display: block !important;
  }

  /* hide full desktop nav */
  .site-nav {
    display: none !important;
  }

  /* when menu opens */
  .site-nav.show {
    display: flex !important;
    flex-direction: column;
  }
}

/* DESKTOP ONLY */
@media screen and (min-width: 769px) {

  /* hide hamburger */
  .nav-toggle {
    display: none !important;
  }

  /* keep desktop nav */
  .site-nav {
    display: flex !important;
  }
}

/* Better spacing for Join page */
.card p {
  margin-bottom: 14px;
}

.card ul {
  margin-bottom: 18px;
}

.card h2 {
  margin-top: 10px;
  margin-bottom: 12px;
  font-size: 1.4rem;
}

/* Cleaner links */
.card a {
  font-weight: 500;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;

}

/* Layout */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 750px;
}

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  background: #5E2D82;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.brand {
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
}

.site-nav a {
  margin-left: 18px;
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: #ffffff;
}

.site-nav .active {
  font-weight: 600;
  color: #ffffff;
}

/* ===== Main Content Area ===== */
.section {
  padding: 50px 0;
}

/* White content background */
.stack {
  background: #ffffff;
  padding: 50px;
  border-radius: 18px;
}

/* ===== Headings ===== */
h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: #111;
}

h2 {
  color: #222;
}

/* ===== Cards ===== */
.card {
  margin-bottom: 50px;
}

/* ===== Year ===== */
.meta {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 5px;
  color: #5E2D82;
}

/* ===== Month ===== */
.month {
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  margin-top: 25px;
  margin-bottom: 8px;
}

/* ===== Text ===== */
p,
li {
  color: #222;
  font-size: 0.96rem;
}

/* ===== Lists ===== */
ul {
  padding-left: 18px;
  margin-top: 0;
}

/* ===== Links ===== */
a {
  color: #5E2D82;
}

a:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 60px;
  padding: 20px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.site-footer a {
  color: rgba(255,255,255,0.9);
}
/* ===== News Page White Content Area ===== */
.news-page .stack {
  background-color: white;
  border-radius: 18px;
  padding: 50px;
  margin-top: 40px;
  margin-bottom: 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* Dark text inside news section */
.news-page h1,
.news-page h2,
.news-page p,
.news-page li {
  color: #222;
}

/* Purple year headings */
.news-page .meta {
  color: #5E2D82;
  border-bottom: 2px solid #e5e5e5;
}

/* Smaller month headings */
.news-page .month {
  color: #666;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #ffffff;
  margin: 0;
}
.hero-image {
  width: 100%;
  max-width: 700px;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  margin: 25px 0;
}
/* ===== Transparent Hero Banner ===== */
.join-hero {
  height: 320px;
  background-image: linear-gradient(
      rgba(94, 45, 130, 0.45),
      rgba(94, 45, 130, 0.45)
    ),
    url("images/ZF.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  margin-bottom: 50px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Hero text */
.join-overlay {
  color: white;
  max-width: 700px;
  padding: 20px;
}

.join-overlay h1 {
  font-size: 3rem;
  margin-bottom: 12px;
  color: white;
}

.join-overlay p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.92);
}

/* ===== Side-by-side cards ===== */
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

/* ===== Card Styling ===== */
.card {
  background: white;
  border: 1px solid #e7e7e7;
  border-radius: 18px;
  padding: 35px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}

/* Purple top accent */
.card {
  border-top: 5px solid #5E2D82;
/* Undergrad full width */
.undergrad-card {
  width: 100%;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .join-grid {
    grid-template-columns: 1fr;
  }

  .join-hero h1 {
    font-size: 2.2rem;
  }
  /* ONLY applies on homepage */
.home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 10%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  z-index: 1000;
}
.site-footer {
  width: 100%;
  text-align: center;

  padding: 8px 0;              /* small, consistent height */
  
  border-top: 1px solid rgba(90, 11, 146, 0.2);

  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  color: #555;

  background: #f8f8f8;

  display: flex;
  justify-content: center;     /* horizontal center */
  align-items: center;         /* vertical center */

  line-height: 1;
}


@media (max-width: 768px) {

  .sidebar {
    background: #f8f8f8 !important;  /* forces your intended color */
    border-right: none;
    border-bottom: 1px solid #eee;

    width: 100%;
    box-sizing: border-box;
  }
  .faculty-contact {
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faculty-contact p {
    margin: 0 0 12px;
}

.faculty-contact strong {
    color: #461D7C;
}

.faculty-contact a {
    color: #461D7C;
    text-decoration: none;
}

.faculty-contact a:hover {
    text-decoration: underline;
}
