/* =========================
   Base Reset + Typography
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  color: #222;
  background-color: #fafafa;
}

/* =========================
   Layout
   ========================= */

.container {
  max-width: 1200px;   /* wider reading area */
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

/* =========================
   Header + Navigation
   ========================= */

header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 1.5rem 1.25rem 1rem 1.25rem;
}

header h1 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

header h1 a {
  text-decoration: none;
  color: #111;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

nav a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

nav a:hover {
  color: #000;
  border-bottom-color: #000;
}

/* =========================
   Typography
   ========================= */

h1, h2, h3, h4 {
  line-height: 1.3;
  color: #111;
  margin-top: 2rem;
}

h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 0.3rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 1rem 0;
}

ul {
  padding-left: 1.3rem;
}

li {
  margin-bottom: 0.5rem;
}

/* =========================
   Links
   ========================= */

a {
  color: #1a5fb4;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   Research List Styling
   ========================= */

li strong {
  color: #111;
}

em {
  color: #555;
}

/* =========================
   Footer
   ========================= */

footer {
  margin-top: 3rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #e5e5e5;
  background: #ffffff;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  header h1 {
    font-size: 1.4rem;
  }

  nav ul {
    gap: 0.8rem;
  }

  .container {
    padding: 1.5rem 1rem 2.5rem 1rem;
  }
}

.about-flex {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 1rem;
}

.about-image img {
  width: 200px;
  max-width: 100%;
  border-radius: 8px;
}

.about-text {
  flex: 1;
}

/* Mobile: stack image above text */
@media (max-width: 640px) {
  .about-flex {
    flex-direction: column;
  }

  .about-image img {
    width: 160px;
  }
}

/* img.about-photo {
  float: left;
  width: 300px;
  height: auto;
  margin-right: 1.5rem;
  margin-bottom: 0.8rem;
  border-radius: 8px;
}

.about-photo {
  float: left;
  width: 400px;     
  height: auto;
  margin-right: 1.75rem;
  margin-bottom: 1rem;
  border-radius: 10px;
} 
*/


@media (max-width: 640px) {
  img.about-photo {
    float: none;
    display: block;
    margin: 0 auto 1rem auto;
    width: 160px !important;
    max-width: 160px !important;
  }
}

.container img.about-photo {
  float: left;
  width: 400px;
  height: auto;
}
.download-button {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  background-color: #1a5fb4;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.download-button:hover {
  background-color: #144a8a;
}



.paper {
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8e8e8;
}

.paper strong {
  font-size: 1.05rem;
  color: #111;
}

.paper em {
  color: #444;
}

.paper-button {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.9rem;
  text-decoration: none;
  background-color: #f2f4f7;
  border-radius: 5px;
  color: #1a5fb4;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.paper-button:hover {
  background-color: #e4e8ee;
}
