/* ===== Base / Tokens ===== */
:root {
  --purple: #5d3754;
  --rose: #953553;
  --bg: #ffffff;
  --radius: 12px;
  --shadow-sm: 0 4px 8px rgba(93, 55, 84, 0.1);
  --shadow-md: 0 8px 14px rgba(93, 55, 84, 0.2);
  --nav-h: 80px;
}

/* ===== General reset ===== */
body {
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-size: 20px; /* site-wide text size */
  background-color: var(--bg);
  color: var(--purple);
  line-height: 1.6;
  font-weight: 400;
}

section {
  scroll-margin-top: calc(var(--nav-h) + 10px);
}

/* ===== Header ===== */
header,
.site-header {
  position: static;
  text-align: center;
  margin-top: 50px;
}

header h1 {
  font-size: 32px;
  margin: 0;
  font-weight: 800;
}

header h2 {
  font-weight: 400;
  margin: 0.5rem 0 1.5rem 0;
  font-size: 20px;
}

/* If your name in the header is a link */
header h1 a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 400;
  padding: 0.2rem;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease,
    text-decoration 0.2s ease;
}
header h1 a:hover {
  text-decoration: underline;
  font-weight: 800;
}

/* ===== Sticky Nav ===== */
.sticky-nav {
  position: sticky; /* Safari-friendly: (-webkit-sticky) if needed */
  top: 0;
  z-index: 1000;
  background: #fff;
  border-top: 1px solid var(--purple);
  border-bottom: 1px solid var(--purple);
}

.sticky-nav .navbar {
  margin: 0;
  padding: 0.5rem 1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.navbar li {
  font-size: 20px;
}

.navbar a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 400;
  padding: 0.2rem;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease,
    text-decoration 0.2s ease;
}
.navbar a:hover {
  text-decoration: underline;
  font-weight: 600;
}

/* ===== Layout helpers ===== */
main.section {
  margin-left: 80px;
  margin-right: 60px;
}
main.section h2,
main.section p,
main.section ul {
  text-align: left;
}

/* ===== Shared section block (streamlined) ===== */
.about,
.news,
.pubs,
.education,
.experience,
.skills,
.awards {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1.5rem 2rem 1.5rem;
  border-bottom: 1px solid var(--purple);
  font-size: 20px;
}

/* Shared “purple pill” h2 across sections */
.about h2,
.news h2,
.pubs h2,
.education h2,
.experience h2,
.skills h2,
.awards h2 {
  display: block;
  width: fit-content;
  margin: 0 auto 1rem;
  padding: 0.4rem 0.8rem;
  background-color: var(--purple);
  color: #ffffff;
  border-radius: 6px;
  font-size: 20px;
  font-weight: 400;
  text-align: center;
}

/* ===== About ===== */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
}
.about-img {
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .about-img {
    margin-top: 1rem;
  }
}
.about-text {
  flex: 1;
  min-width: 280px;
}

/* ===== News ===== */
.news-date {
  background-color: var(--purple);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 12px;
  margin: 0 6px;
  display: inline-block;
}

/* ===== Publications ===== */
.filter-buttons {
  margin-bottom: 1.5rem;
  text-align: center;
}
.filter-buttons button {
  font-family: "Raleway", sans-serif;
  font-size: 20px;
  margin: 0.3rem 0.5rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--purple);
  background: #ffffff;
  color: var(--purple);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.filter-buttons button:hover,
.filter-buttons button.active {
  background: var(--purple);
  color: #ffffff;
}

/* Publication list + numbering */
.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: pub;
}
.pub-list > li {
  position: relative;
  counter-increment: pub;
  padding-left: 2.2rem; /* room for number */
}
.pub-list > li::before {
  content: counter(pub) ".";
  position: absolute;
  left: 0;
  top: 1.1rem;
  color: var(--purple);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  width: 1.6rem;
  text-align: right;
}

.pub-card {
  border: 1px solid var(--purple);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  background-color: #faf9fb;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background-color: #fff;
}
.pub-card .meta {
  display: block;
  margin-top: 0.3rem;
}

.highlight {
  font-weight: 600;
  color: var(--purple);
}

/* Links inside publication cards */
.pub-card a {
  color: var(--purple);
  font-weight: 500;
  text-decoration: none;
  margin-left: 0.4rem;
}
.pub-card a:hover {
  text-decoration: underline;
  color: #3c2436;
}

/* ===== Global link styles for content areas ===== */
.news a,
.pubs a,
.about a,
.education a,
.experience a,
.skills a,
.awards a,
main a {
  color: var(--rose);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration 0.2s ease, font-weight 0.2s ease;
}
.news a:hover,
.pubs a:hover,
.about a:hover,
.education a:hover,
.experience a:hover,
.skills a:hover,
.awards a:hover,
main a:hover {
  color: var(--rose);
  text-decoration: underline;
  font-weight: 600;
}

/* ===== Education ===== */
.edu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.edu-list li {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.edu-date {
  font-style: italic;
  font-size: 20px;
  color: var(--purple);
}

/* ===== Experience ===== */
.exp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.exp-list > li {
  margin-bottom: 2rem;
  line-height: 1.6;
}
.exp-date {
  font-style: italic;
  font-size: 20px;
  color: var(--purple);
}

/* Experience details bullets */
.exp-details {
  list-style: none;
  margin: 0.6rem 0 0 0.5rem;
  padding: 0;
  font-size: 20px;
}
.exp-details li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-left: 1.8rem;
  line-height: 1.6;
}
.exp-details li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--purple);
  font-size: 16px;
  line-height: 1.6;
}

/* ===== Skills ===== */
.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.skills-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.skills-list li::before {
  content: "●"; /* subtle decorative bullet */
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 14px;
  color: var(--purple);
}
.skill-category {
  font-weight: 600;
  color: var(--purple);
}

/* ===== Awards ===== */
.awards-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.awards-list li {
  margin-bottom: 1rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
}
.awards-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--purple);
  font-size: 14px;
}
.award-date {
  font-style: italic;
  font-size: 20px;
  color: var(--purple);
}
.awards i {
  font-size: 20px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--purple);
  color: #ffffff;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 3rem;
}
.site-footer p {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* ===== Portfolio grid ===== */
.portfolio-grid {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.portfolio-grid a {
  text-decoration: underline;
}

/* ===== Publications: responsive tweak ===== */
@media (max-width: 640px) {
  .pub-list > li {
    padding-left: 1.9rem;
  }
  .pub-list > li::before {
    top: 1rem;
    width: 1.4rem;
  }
}
