/* ============================================================
   CNRL Open House 2026 — Stylesheet
   Modeled after bellinilab.sites.northeastern.edu
   Chiari Malformation Awareness Purple theme
   ============================================================ */

:root {
  --purple:      #6B35A0;
  --purple-dark: #4D2280;
  --purple-light:#f0eaf7;
  --black:       #1a1a1a;
  --text:        #333333;
  --muted:       #666666;
  --white:       #ffffff;
  --gray-bg:     #f7f7f7;
  --border:      #e2e2e2;
  --shadow:      0 1px 4px rgba(0,0,0,0.10);

  --max-width: 1080px;
  --radius:    4px;
  --nav-h:     48px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); text-decoration: underline; }

/* ---- Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===========================================================
   SITE HEADER (white masthead — like Bellini lab)
   =========================================================== */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 22px 28px 18px;
}
.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-logo-mark {
  width: 52px;
  height: 52px;
  background: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-logo-mark span {
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.03em;
}
.site-logo-img {
  height: 64px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.about-logo {
  display: block;
  margin-top: 24px;
  max-width: 192px;
  width: 100%;
  height: auto;
}
.site-title-block {}
.site-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}
.site-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ===========================================================
   NAVIGATION (horizontal bar — like Bellini lab)
   =========================================================== */
#navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--purple);
  height: var(--nav-h);
  border-bottom: 3px solid var(--purple-dark);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
}
.nav-links a {
  display: block;
  padding: 6px 15px;
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.16);
  color: var(--white);
  text-decoration: none;
}
.nav-register {
  background: rgba(255,255,255,0.18) !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
  font-weight: 600 !important;
  color: var(--white) !important;
}
.nav-register:hover {
  background: rgba(255,255,255,0.30) !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===========================================================
   HERO BANNER (full-width image — like Bellini lab featured image)
   =========================================================== */
#hero {
  position: relative;
  height: 440px;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30,10,60,0.30) 0%, rgba(30,10,60,0.72) 100%);
  display: flex;
  align-items: flex-end;
  padding: 40px 48px;
}
.hero-text {
  color: var(--white);
  max-width: 680px;
}
.hero-event-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}
.hero-text h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--white);
}
.hero-meta {
  font-size: 1.0rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  margin-bottom: 20px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-learn {
  display: inline-block;
  background: var(--purple);
  color: var(--white);
  padding: 10px 26px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
}
.btn-learn:hover {
  background: var(--purple-dark);
  color: var(--white);
  text-decoration: none;
}
.btn-register {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.65);
  padding: 10px 26px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
}
.btn-register:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: var(--white);
  text-decoration: none;
}

/* ===========================================================
   SPONSOR BAR
   =========================================================== */
.sponsor-bar {
  background: var(--purple-light);
  border-top: 1px solid #d9ccec;
  border-bottom: 1px solid #d9ccec;
  padding: 10px 28px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
.sponsor-bar a { color: var(--purple); font-weight: 600; }

/* ===========================================================
   SHARED SECTION STYLES
   =========================================================== */
.section { padding: 64px 0; }
.section-white { background: var(--white); }
.section-gray  { background: var(--gray-bg); }

.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--purple);
  display: inline-block;
}
.section-lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
  margin-bottom: 36px;
}

/* ===========================================================
   ABOUT
   =========================================================== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 52px;
  align-items: start;
  margin-top: 32px;
}
.about-text p {
  color: var(--text);
  margin-bottom: 16px;
  font-size: 0.97rem;
}
.about-side {}
.about-photo {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.about-callouts {}
.callout-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.callout-item:last-child { border-bottom: none; }
.callout-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.callout-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--black); margin-bottom: 2px; }
.callout-item p  { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ===========================================================
   SCHEDULE
   =========================================================== */
.schedule-table-wrap {
  overflow-x: auto;
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.schedule-table thead th {
  background: var(--purple);
  color: var(--white);
  padding: 12px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.schedule-table tbody tr {
  border-bottom: 1px solid var(--border);
}
.schedule-table tbody tr:last-child { border-bottom: none; }
.schedule-table tbody td {
  padding: 14px 18px;
  vertical-align: top;
}
.schedule-table td.time {
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  width: 190px;
}
.schedule-table tbody tr:nth-child(odd)  { background: var(--white); }
.schedule-table tbody tr:nth-child(even) { background: var(--gray-bg); }

.row-research td { border-left: 3px solid var(--purple); }
.row-poster  td  { border-left: 3px solid #b08ad4; }
.row-patient td  { border-left: 3px solid #2e9e7e; }

/* ===========================================================
   SPEAKERS
   =========================================================== */
.speaker-group-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 40px 0 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.speaker-group-heading:first-of-type { margin-top: 32px; }

/* ---- Speaker list: horizontal card (Bellini-lab team style) ---- */
.speaker-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.speaker-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.speaker-photo {
  width: 180px;
  height: 225px;
  border-radius: 6px;
  object-fit: cover;
  border: 3px solid var(--purple-light);
  flex-shrink: 0;
}
.speaker-photo-placeholder {
  width: 180px;
  height: 225px;
  border-radius: 6px;
  background: var(--purple-light);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}
.speaker-details h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
}
.speaker-affil {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 8px;
  line-height: 1.4;
}
.speaker-bio-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===========================================================
   POSTERS
   =========================================================== */
.poster-list {
  list-style: none;
  counter-reset: poster;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.poster-list li {
  counter-increment: poster;
  position: relative;
  padding: 16px 16px 16px 52px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.poster-list li::before {
  content: counter(poster);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 24px;
  height: 24px;
  background: var(--purple);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.poster-list li strong { display: block; font-size: 0.92rem; color: var(--black); margin-bottom: 3px; }
.poster-list li em     { font-style: normal; font-size: 0.83rem; color: var(--muted); }

/* ===========================================================
   LOCATION
   =========================================================== */
.location-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
  align-items: start;
}
.location-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple);
  margin-top: 22px;
  margin-bottom: 6px;
}
.location-info h3:first-child { margin-top: 0; }
.location-info p, .location-info li { font-size: 0.92rem; color: var(--text); }
.location-list { padding-left: 18px; }
.location-list li { margin-bottom: 6px; }
.location-map iframe {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

/* ===========================================================
   FOOTER
   =========================================================== */
#footer {
  background: #1e1030;
  color: rgba(255,255,255,0.65);
  padding: 40px 0 32px;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-name { color: var(--white); font-weight: 700; font-size: 1rem; margin-bottom: 5px; }
.footer-affil { font-size: 0.82rem; line-height: 1.5; }
.footer-right { text-align: right; font-size: 0.85rem; }
.footer-right a { color: #c9a8f0; }
.footer-right a:hover { color: var(--white); }
.footer-copy { margin-top: 8px; font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* ===========================================================
   CALLOUT BADGE (replaces emoji icon)
   =========================================================== */
.callout-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--purple);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.2;
  margin-top: 2px;
}

/* ===========================================================
   NEWS
   =========================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
.news-source {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.news-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.news-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  margin: 0;
}
.news-excerpt {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.news-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  margin-top: 4px;
}
.news-link:hover { color: var(--purple-dark); }

/* ===========================================================
   GRANTS
   =========================================================== */
.grant-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}
.grant-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--purple);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.grant-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.grant-funder {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.grant-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.grant-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.4;
}
.grant-desc {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}

/* ===========================================================
   PUBLICATIONS
   =========================================================== */
.pub-list {
  margin-top: 24px;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pub-list li {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
  padding-left: 6px;
}
.pub-list li em {
  font-style: italic;
  color: var(--black);
}

/* ===========================================================
   SPEAKER PLACEHOLDER — initials version
   =========================================================== */
.speaker-photo-placeholder {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.03em;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 820px) {
  .about-layout  { grid-template-columns: 1fr; }
  .about-side    { order: -1; }
  .about-photo   { max-height: 260px; object-fit: cover; width: 100%; }
  .location-layout { grid-template-columns: 1fr; }
  .footer-inner  { flex-direction: column; }
  .footer-right  { text-align: left; }
}

@media (max-width: 680px) {
  .nav-toggle   { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--purple-dark);
    padding: 10px 16px 16px;
    gap: 2px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a   { font-size: 0.95rem; padding: 10px 12px; }

  #hero { height: 320px; }
  .hero-overlay { padding: 24px 24px; }

  .speaker-row   { grid-template-columns: 130px 1fr; gap: 18px; padding: 18px; }
  .speaker-photo, .speaker-photo-placeholder { width: 130px; height: 165px; }

  .poster-list   { grid-template-columns: 1fr; }

  .site-title    { font-size: 1.2rem; }
  .site-logo-mark { width: 40px; height: 40px; }
  .site-logo-img  { height: 48px; }

  .news-grid     { grid-template-columns: 1fr; }
  .grant-header  { flex-direction: column; gap: 2px; }
}
