/* =============================================
   learnmoore.org — shared stylesheet
   Clean, minimal academic design
   Berkeley palette: blue #003262, gold #FDB515
   ============================================= */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
  background: #fff;
}

a {
  color: #003262;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

a:hover {
  color: #0057a0;
  border-bottom-color: #0057a0;
}

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

/* --- Layout --- */
.site-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header & Nav --- */
.site-header {
  background: #003262;
  color: #fff;
  padding: 0 1.5rem;
}

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

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.site-title-text > span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: #c9d6e3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.site-nav a {
  color: #c9d6e3;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 3px;
  border: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Gold accent bar under header */
.header-accent {
  height: 3px;
  background: #FDB515;
}

/* --- Main content --- */
.site-main {
  padding: 2.5rem 0 4rem;
}

/* --- Page title --- */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #003262;
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #e8ecf0;
}

/* --- Home page --- */
.home-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.home-hero-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.home-hero-text h1 {
  font-size: 1.6rem;
  color: #003262;
  margin-bottom: 0.25rem;
}

.home-hero-text .subtitle {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.home-hero-text p {
  margin-bottom: 0.85rem;
  font-size: 0.97rem;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.home-links a {
  font-size: 0.85rem;
  background: #f0f4f8;
  color: #003262;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  border: 1px solid #d0dae5;
  font-weight: 500;
  transition: background 0.15s;
}

.home-links a:hover {
  background: #003262;
  color: #fff;
  border-color: #003262;
}

/* --- People page --- */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.person-card {
  display: flex;
  flex-direction: column;
}

.person-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  background: #e8ecf0;
  margin-bottom: 0.7rem;
}

.person-card .person-name {
  font-weight: 700;
  font-size: 0.97rem;
  color: #003262;
}

.person-card .person-role {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.4rem;
}

.person-card .person-bio {
  font-size: 0.84rem;
  color: #444;
  line-height: 1.5;
}

/* PI card (special) */
.pi-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: #f5f8fb;
  border-left: 4px solid #003262;
  border-radius: 0 4px 4px 0;
  margin-bottom: 2rem;
}

.pi-card img {
  width: 120px;
  min-width: 120px;
  border-radius: 4px;
}

.pi-card .pi-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.pi-card .pi-links a {
  font-size: 0.82rem;
  background: #003262;
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  border: none;
}

.pi-card .pi-links a:hover {
  background: #0057a0;
}

/* Alumni section */
.alumni-section h2 {
  font-size: 1.2rem;
  color: #003262;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e8ecf0;
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.3rem 1rem;
}

.alumni-item {
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.alumni-item .alumni-name {
  font-weight: 600;
  color: #222;
}

.alumni-item .alumni-role {
  color: #666;
}

.alumni-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  margin-bottom: 0.3rem;
  display: block;
  background: #e8ecf0;
}

/* --- Research page --- */
.research-list {
  list-style: none;
  padding: 0;
}

.research-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #efefef;
  font-size: 0.93rem;
  line-height: 1.6;
}

.research-list li:last-child {
  border-bottom: none;
}

.research-list a {
  color: #003262;
}

.research-list em {
  color: #444;
}

/* --- Press page --- */
.press-list {
  list-style: none;
  padding: 0;
}

.press-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #efefef;
  font-size: 0.92rem;
}

.press-list li:last-child {
  border-bottom: none;
}

/* --- Books page --- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

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

.book-card .book-title {
  font-weight: 700;
  font-size: 1rem;
  color: #003262;
  margin-bottom: 0.2rem;
}

.book-card .book-authors {
  font-size: 0.83rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.book-card a.book-link {
  display: inline-block;
  font-size: 0.82rem;
  background: #003262;
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  border: none;
}

.book-card a.book-link:hover {
  background: #0057a0;
}

/* --- Opportunities page --- */
.testimonials {
  margin: 1.5rem 0;
}

.testimonial {
  background: #f5f8fb;
  border-left: 3px solid #FDB515;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.9rem;
  font-style: italic;
  color: #444;
}

.testimonial .attribution {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.82rem;
  color: #003262;
  margin-top: 0.5rem;
}

.responsibilities-list {
  list-style: disc;
  padding-left: 1.4rem;
  margin: 0.5rem 0 1.2rem;
  font-size: 0.93rem;
}

.responsibilities-list li {
  margin-bottom: 0.25rem;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #003262;
  margin: 1.8rem 0 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #e8ecf0;
}

.cta-button {
  display: inline-block;
  background: #003262;
  color: #fff !important;
  padding: 0.55rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none !important;
  margin-top: 0.5rem;
  transition: background 0.15s;
}

.cta-button:hover {
  background: #0057a0 !important;
}

/* --- Teaching page --- */
.course-block {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e8ecf0;
}

.course-block:last-child {
  border-bottom: none;
}

.course-block h2 {
  font-size: 1.1rem;
  color: #003262;
  margin-bottom: 0.6rem;
}

.course-block h2 a {
  color: #003262;
  font-weight: 700;
}

.course-block p {
  font-size: 0.93rem;
  margin-bottom: 0.7rem;
}

.course-block ul {
  list-style: disc;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  margin-top: 0.4rem;
}

.course-block ul li {
  margin-bottom: 0.2rem;
}

/* --- Footer --- */
.site-footer {
  background: #f5f8fb;
  border-top: 1px solid #e0e6ec;
  padding: 1rem 1.5rem;
  font-size: 0.82rem;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-logo {
  height: 56px;
  width: auto;
  flex-shrink: 0;
}

.site-footer a {
  color: #888;
  border: none;
}

.site-footer a:hover {
  color: #003262;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .home-hero {
    flex-direction: column;
  }

  .home-hero-photo {
    width: 120px;
  }

  .pi-card {
    flex-direction: column;
  }

  .pi-card img {
    width: 100px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding: 0.3rem 0.5rem;
  }

  .person-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
