/* ---------- Global layout & typography ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 20px;          /* increase base font size here */
  line-height: 1.5; 
  color: #222;
  background-color: #ffffff;
}

li {
  margin-bottom: 0.6rem;   /* adjust spacing as you like */
}

a {
  color: #1640a4;
  text-decoration: none;
}

a:hover {
  color: #1640a4;
  text-decoration: underline;
}


/* ---------- Section blocks (About me, Regulation, Research, Teaching, Other) ---------- */

.section-block {
  margin-top: 3rem;
  margin-bottom: 3rem;
  text-align: justify;        /* center text under photo */

}

.section-header {
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-divider {
  height: 5px;
  width: 100%;
  background-color: #065c95; 
  margin-bottom: 1.5rem;
} 

/* ---------- Site header & navigation ---------- */
.site-header {
  position: sticky;     /* keep header visible while scrolling */
  top: 0;
  z-index: 1000;        /* stay above page content */
  background-color: #f7efe5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2.5rem;
  border-bottom: 1px solid #eee;
}

.site-title a {
  font-weight: 600;
  font-size: 1.5rem;
  color: #1640a4;
}

/* make each nav item look like a button */
.site-nav a {
  display: inline-block;
  margin-left: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  border: 1px solid #1640a4;
  background-color: #ffffff;
  color: #1640a4;
  font-size: 0.95rem;
  text-decoration: none;
}

/* hover effect for buttons */
.site-nav a:hover {
  background-color: #1640a4;
  color: #ffffff;
  text-decoration: none;   /* override global underline-on-hover */
}

/* ---------- Main content container ---------- */
.content {
  max-width: 1200px;   /* wider main column */
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;  /* slightly more side padding */
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

/* ---------- "About me" section (photo + bio) ---------- */

.intro {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;   /* ← forces equal-height columns */
  margin-bottom: 2.5rem;
}

/* LEFT COLUMN: photo + name + title */
.intro-left {
  flex: 0 0 480px; 
  text-align: center; 
}

/* photo */
.intro-photo-img {
  width: 100%;
  border-radius: 4px;
}

/* RIGHT COLUMN: bio text */
.intro-text {
  margin-top: -1rem;
  font-size: 1rem;
  text-align: justify;
}

/* ---------- Two-column summary (Interests & Education) ---------- */

.summary-two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  /* flex-direction: column; */
} 

.summary-col {
  flex: 1 1 300px;
}

.summary-col h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.summary-col ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
}

.summary-col li {
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

/* ---------- Regulation section styles ---------- */

.regulation-figure {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.regulation-img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.regulation-caption {
  margin-top: 0.6rem;
  text-align: justify;
}

/* ---------- Research section styles ---------- */

.paper-section {
  margin-top: 1.5rem;
}

.paper-links {
  margin: 0.2rem 0 0.4rem;
  font-size: 0.9rem;
  margin-right: 0.4rem;
}

.wip-list {
  list-style: disc;
  padding-left: 1.2rem;
}

/* ---------- Teaching section styles ---------- */

.teaching-section {
  margin-top: 1.5rem;
}

.course {
  margin-bottom: 1.8rem;
}

.course-meta {
  margin: 0.2rem 0 0.4rem;
  color: #555;
  font-size: 0.95rem;
}

.course-links {
  margin: 0.5rem 0 0;
}

.course-links a {
  margin-right: 0.4rem;
}

.past-courses {
  list-style: disc;
  padding-left: 1.2rem;
}

/* ---------- Other / News ---------- */

.news-list {
  list-style: disc;
  padding-left: 1.2rem;
}

/* ---------- Contact / misc (if reused) ---------- */

.contact-block {
  margin-bottom: 1.5rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid #eee;
  padding: 1rem 2.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

/* ---------- Responsive adjustments ---------- */

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    margin-top: 0.5rem;
  }

  .site-nav a {
    margin-left: 0;
    margin-right: 0.9rem;
  }
}
