/* ============================================================
   EDGELL LAB — Main Stylesheet
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #222;
  background: #f5f2ee;
}

a { color: #4F2683; text-decoration: underline; }
a:hover { color: #7B52B8; }

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #1a1a1a;
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Header --- */
.site-header {
  background: #6c6c6c;
  border-bottom: 2px solid #555555;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.lab-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.lab-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0d4f5;
  letter-spacing: 0.5px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.affil-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.affil-logo--invert {
  filter: brightness(0) invert(1);
}

.header-social a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* --- Navigation --- */
.site-nav {
  background: #3a1a6e;
  border-top: 1px solid #2e1258;
}

.site-nav ul {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #f0eaff;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
  margin: 0.4rem 0;
}

.site-nav a:hover,
.site-nav a.active {
  background: #f5c842;
  color: #1a1a1a;
}

/* --- Main Content --- */
.site-main {
  min-height: calc(100vh - 200px);
}

/* --- Home Page --- */
.home-top {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 1rem;
}

/* Research blurb + image side by side */
.home-research {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.research-text h2 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  color: #1a1a1a;
}

.research-text p {
  margin-bottom: 1rem;
}

.research-image {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.research-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* News directly below research text */
.home-news {
  margin-top: 1.5rem;
}

.home-news h2 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

/* News */
.news-list {
  list-style: none;
  padding: 0;
}

.news-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #d4c9bb;
  padding-left: 1rem;
  position: relative;
}

.news-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #4F2683;
  font-weight: bold;
}

/* Latest Publications on Home */
.latest-pubs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.latest-pubs h2 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid #d4c9bb;
}

.pub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.pub-card {
  background: #fff;
  border: 1px solid #d4c9bb;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.pub-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.pub-card img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  background: #fff;
  padding: 0.5rem;
}

.pub-card-body {
  padding: 1rem;
}

.pub-card-body h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.pub-card-body p {
  font-size: 0.85rem;
  color: #666;
}

/* --- Inner Pages --- */
.page-content {
  padding: 3rem 0;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #d4c9bb;
}

/* --- Publications Page --- */
.scholar-link {
  font-size: 0.9rem;
  color: #222;
  margin-bottom: 1.5rem;
}

.scholar-link a {
  color: #222;
  font-weight: 600;
}
.pub-list { list-style: none; padding: 0; }

.pub-entry {
  padding: 1.25rem 0;
  border-bottom: 1px solid #d4c9bb;
}

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

.pub-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

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

.pub-journal {
  font-size: 0.9rem;
  font-style: italic;
  color: #666;
}

.pub-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
}

.pub-year-heading {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
  color: #4F2683;
}

/* --- People Page --- */
.pi-section {
  margin-bottom: 1rem;
}

.pi-photos {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
}

.lab-photo-card {
  text-align: center;
}

.lab-photo-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  object-fit: cover;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.person-card {
  text-align: center;
}

.person-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #d4c9bb;
  margin-bottom: 0.75rem;
}

.person-card .person-photo-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #d4c9bb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 2.5rem;
  color: #888;
}

.person-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.person-role {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

.person-links a {
  font-size: 0.8rem;
  margin: 0 0.3rem;
}

/* Student of the Month */
.student-of-month {
  margin-top: 1.5rem;
}

.sotm-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #4F2683;
  margin-bottom: 0.4rem;
  width: 180px;
  text-align: center;
}

.student-of-month img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  display: block;
}

/* Alumni list */
.alumni-list {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
}

.alumni-list li {
  padding: 0.3rem 0;
  break-inside: avoid;
}

.alumni-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.alumni-role {
  font-size: 0.9rem;
  color: #666;
}

.people-section-heading {
  font-size: 1.4rem;
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #d4c9bb;
}

/* --- Research Page --- */
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.research-item a {
  text-decoration: none;
  display: block;
}

.research-item a:hover img {
  box-shadow: 0 6px 20px rgba(79,38,131,0.3);
  transform: translateY(-3px);
  transition: all 0.2s ease;
}

.research-item h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 0.75rem;
  margin-bottom: 0;
  color: #4F2683;
  text-transform: lowercase;
}

.research-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.research-description {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid #d4c9bb;
}

.research-description h2 {
  font-size: 1.4rem;
  color: #4F2683;
  margin-bottom: 1rem;
  text-transform: lowercase;
}

.research-description p {
  max-width: 800px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .research-grid {
    grid-template-columns: 1fr;
  }
  .research-item img {
    height: 200px;
  }
}

/* --- Contact Page --- */
.contact-info { margin-bottom: 2rem; }
.contact-info p { margin-bottom: 0.5rem; }
.contact-info strong {
  font-family: 'Montserrat', sans-serif;
}

/* --- Footer --- */
.site-footer {
  background: #e8e0d4;
  border-top: 2px solid #d4c9bb;
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.85rem;
  color: #666;
}

.site-footer p { margin-bottom: 0.25rem; }
.site-footer a { color: #4F2683; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .home-research {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .lab-name { font-size: 1.4rem; }
  .header-logos { display: none; }
  .site-nav ul { flex-wrap: wrap; }
}
