/* ---------- Color Variables ---------- 
#3E0F8D
#9564DD
#E4DA72
*/

:root {
  --dark: #0A7C6E;
  --background: #EFE3CA;
  --title: #0A7C6E;
  --highlight: #8ACBD0;
  --white: #ffffff;
  --text: #222222;
}

/* ---------- Basic Page Styling ---------- */

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
}

a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Navigation Bar ---------- */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 1rem 2rem;
  background-color: var(--dark);
  border-bottom: 4px solid var(--highlight);
}

.site-name a {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--background);
}

.site-name a:hover {
  color: var(--highlight);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;

  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--background);
  font-size: 0.95rem;
  font-weight: normal;
}

.nav-links a:hover {
  color: var(--highlight);
  text-decoration: none;
}

/* ---------- Main Container ---------- */

.container {
  max-width: 950px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

/* ---------- Headings ---------- */

h1 {
  color: var(--dark);
  font-size: 2rem;
  margin-top: 0;
}

h2,
h3 {
  color: var(--title);
}

h2 {
  font-size: 1.5rem;
}

/* ---------- Homepage Intro Section ---------- */

.intro-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.photo-box {
  flex: 0 0 250px;
}

.photo-box img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  display: block;

  border-radius: 4px;
  border: 4px solid var(--highlight);
  background-color: var(--highlight);
}

.about-box {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.35);
  padding: 1.5rem;
  border-left: 6px solid var(--highlight);
}

/* ---------- News Section ---------- */

.news-section {
  background-color: rgba(255, 255, 255, 0.35);
  border-top: 4px solid var(--highlight);
  padding: 1.5rem;
  margin-top: 2rem;
}

.news-section h2 {
  margin-top: 0;
}

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

.news-list li {
  margin-bottom: 0.75rem;
}

.news-date {
  font-weight: bold;
  color: var(--dark);
}

/* ---------- Highlight Box ---------- */

.highlight-box {
  background-color: var(--highlight);
  color: var(--dark);
  padding: 1rem;
  border-radius: 4px;
  margin: 1.5rem 0;
}

/* ---------- Buttons / Links  ---------- */

.button-link {
  display: inline-block;
  background-color: var(--dark);
  color: var(--background);
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.button-link:hover {
  background-color: var(--highlight);
  color: var(--dark);
  text-decoration: none;
}

/* ---------- Mobile ---------- */

@media screen and (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .intro-section {
    flex-direction: column;
  }

  .photo-box {
    flex: none;
  }

  .photo-box img {
    width: 220px;
    height: 220px;
  }

  .about-box {
    padding: 1rem;
  }
}

/* ---------- Research Page ---------- */

.page-intro {
  background-color: rgba(255, 255, 255, 0.35);
  padding: 1.5rem;
  border-left: 6px solid var(--highlight);
  margin-bottom: 2.5rem;
}

.publications-section {
  margin-top: 2rem;
}

.publication {
  background-color: rgba(255, 255, 255, 0.35);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 6px solid var(--highlight);
}

.publication-title {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--dark);
  font-size: 1.25rem;
}

.publication-title a {
  color: var(--dark);
}

.publication-title a:hover {
  color: var(--title);
  text-decoration: none;
}

.publication-meta {
  margin: 0.25rem 0;
  color: var(--text);
}

.publication-authors {
  font-weight: bold;
}

.publication-venue {
  font-style: italic;
}

.publication-date {
  color: var(--dark);
}

.publication-abstract {
  margin-top: 1rem;
}

.abstract-label {
  font-weight: bold;
  color: var(--dark);
}

/* ---------- Publication Filters ---------- */

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem 0;
}

.filter-button {
  background-color: var(--dark);
  color: var(--background);
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.filter-button:hover {
  background-color: var(--highlight);
  color: var(--dark);
}

.filter-button.active {
  background-color: var(--highlight);
  color: var(--dark);
  font-weight: bold;
}

.publication-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.publication-type {
  display: inline-block;
  background-color: var(--highlight);
  color: var(--dark);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* ---------- Writing Page ---------- */

.writing-section {
  margin-top: 2rem;
}

.writing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.writing-card {
  background-color: rgba(255, 255, 255, 0.35);
  border: 2px solid var(--highlight);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.writing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 12, 121, 0.15);
}

.writing-title {
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-size: 1.35rem;
}

.writing-title a {
  color: var(--dark);
}

.writing-title a:hover {
  color: var(--title);
  text-decoration: none;
}

.writing-meta {
  margin: 0.25rem 0 1rem 0;
  color: var(--dark);
  font-size: 0.95rem;
}

.writing-publication {
  font-style: italic;
  font-weight: bold;
}

.writing-blurb {
  margin-bottom: 1rem;
}

.writing-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.writing-type {
  display: inline-block;
  background-color: var(--highlight);
  color: var(--dark);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Optional: make writing cards into two columns on wider screens */
@media screen and (min-width: 850px) {
  .writing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ---------- Organizing Page ---------- */

.organizing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.organizing-card {
  background-color: rgba(255, 255, 255, 0.35);
  border-left: 6px solid var(--highlight);
  padding: 1.5rem;
  border-radius: 4px;
}

.organizing-card h2 {
  margin-top: 0;
  color: var(--dark);
}

.organizing-role {
  font-weight: bold;
  color: var(--title);
  margin-bottom: 0.75rem;
}

/* Mobile version: stack cards vertically */
@media screen and (max-width: 700px) {
  .organizing-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Service and Teaching Page ---------- */

.service-resource-section {
  margin-top: 2.5rem;
}

.service-resource-section h2 {
  border-bottom: 3px solid var(--highlight);
  padding-bottom: 0.35rem;
}

.service-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.service-resource-card {
  background-color: rgba(255, 255, 255, 0.35);
  border-left: 6px solid var(--highlight);
  border-radius: 8px;
  padding: 1.25rem;
}

.service-resource-card h3 {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.service-resource-card h3 a {
  color: var(--dark);
}

.service-resource-card h3 a:hover {
  color: var(--title);
  text-decoration: none;
}

.service-resource-category {
  display: inline-block;
  color: var(--dark);
  background-color: var(--highlight);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: bold;
}

.service-resource-meta {
  margin: 0.25rem 0 0.75rem 0;
  color: var(--dark);
  font-size: 0.95rem;
  font-style: italic;
}

.service-resource-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--dark);
  font-weight: bold;
}

.service-resource-link:hover {
  color: var(--title);
  text-decoration: none;
}

/* Mobile */
@media screen and (max-width: 850px) {
  .service-resource-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media screen and (max-width: 850px) {
  .service-feature-grid,
  .service-resource-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Fun Links Page ---------- */

.featured-links-section {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.featured-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.featured-link-card {
  background-color: rgba(255, 255, 255, 0.35);
  border-top: 6px solid var(--highlight);
  border-radius: 8px;
  padding: 1.25rem;
}

.featured-link-card h3 {
  margin-top: 0;
  color: var(--dark);
}

.featured-link-card h3 a {
  color: var(--dark);
}

.featured-link-card h3 a:hover {
  color: var(--title);
  text-decoration: none;
}

.fun-links-section {
  margin-top: 2rem;
}

.fun-links-zigzag {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.fun-link-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;

  width: 78%;
  background-color: rgba(255, 255, 255, 0.35);
  border: 2px solid var(--highlight);
  border-radius: 10px;
  padding: 1.25rem;

  box-shadow: 0 3px 10px rgba(23, 12, 121, 0.08);
}

/* Zig-zag effect */
.fun-link-card:nth-child(odd) {
  align-self: flex-start;
}

.fun-link-card:nth-child(even) {
  align-self: flex-end;
}

.fun-link-number {
  flex: 0 0 auto;

  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--dark);
  color: var(--background);
  font-weight: bold;
}

.fun-link-content h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.fun-link-content h3 a {
  color: var(--dark);
}

.fun-link-content h3 a:hover {
  color: var(--title);
  text-decoration: none;
}

.fun-link-content p {
  margin-bottom: 0;
}

/* Mobile version */
@media screen and (max-width: 800px) {
  .featured-links-grid {
    grid-template-columns: 1fr;
  }

  .fun-link-card {
    width: auto;
    align-self: stretch;
  }

  .fun-link-card:nth-child(odd),
  .fun-link-card:nth-child(even) {
    align-self: stretch;
  }
}

/* ---------- Blog / Construction Page ---------- */

.construction-page {
  max-width: 700px;
}

.construction-box {
  background-color: rgba(255, 255, 255, 0.35);
  border-left: 6px solid var(--highlight);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.construction-box h2 {
  margin-top: 0;
  color: var(--dark);
}