:root {
  --primary-color: #e24141;
  --secondary-color: #0b1937;
  --text-color: #0f172a;
  --light-bg: #f7f9fc;
  --card-bg: #ffffff;
  --border-radius: 0.75rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-color);
  line-height: 1.6;
}

/* highlight styling for emphasized words */
.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

/* ensure highlight links inherit highlight styling */
a.highlight {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
}

/* navigation bar */
nav {
  position: sticky;
  top: 0;
  background-color: var(--card-bg);
  padding: 1rem 2rem;
  z-index: 100;
  border-bottom: 1px solid #e5e7eb;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

nav a:hover {
  color: var(--primary-color);
}

/* hero section */
.hero {
  background-color: var(--card-bg);
  padding: 4rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 .highlight {
  color: var(--primary-color);
}

.hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.25rem;
  color: #475569;
}

.video-container {
  margin: 2.5rem auto 0;
  max-width: 640px;
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.hero .btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease-in-out;
}

.hero .btn:hover {
  background-color: #c73232;
}

/* impact section */
.impact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 1rem;
  background-color: var(--light-bg);
}

.impact .card {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

.impact .card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.impact .card p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 500px;
}

/* investigative reporting section */
.investigative {
  padding: 4rem 1rem;
  background-color: var(--card-bg);
}

.investigative h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.investigative h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0.5rem auto;
  border-radius: 2px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card-article {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-article img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.card-article .card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tag {
  background-color: var(--light-bg);
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.card-article h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-article p {
  color: #475569;
  font-size: 0.95rem;
  flex-grow: 1;
  line-height: 1.5;
}

.links {
  margin-top: 1rem;
}

.links a {
  display: inline-block;
  background-color: var(--light-bg);
  color: var(--primary-color);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.links a + a {
  margin-left: 0.5rem;
}

.links a:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* interviews section */
.interviews {
  padding: 4rem 1rem;
  background-color: var(--light-bg);
}

.interviews h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.interviews h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0.5rem auto;
  border-radius: 2px;
}

/* interviews list layout */
.interview-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto 0;
}

.interview-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

.interview-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.interview-card p {
  color: #475569;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.interview-card iframe {
  width: 100%;
  height: 352px;
  border: 0;
  border-radius: var(--border-radius);
}

/* awards section */
.awards {
  padding: 4rem 1rem;
  background-color: var(--card-bg);
}

.awards h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.awards h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0.5rem auto;
  border-radius: 2px;
}

/* award list styles */
.award-list {
  list-style: none;
  margin: 2rem auto 0;
  padding: 0;
  max-width: 900px;
}

.award-list li {
  background-color: var(--card-bg);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
}

/* differentiate shortlist/mentions with a muted border */
.award-list li.shortlist {
  border-left-color: #9ca3af;
}

/* status tag for awards */
.award-status {
  background-color: var(--light-bg);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-right: 0.5rem;
  border: 1px solid transparent;
}

.award-status.winner {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.award-status.shortlist {
  color: #9ca3af;
  border-color: #9ca3af;
}

.award-list .award-year {
  background-color: var(--light-bg);
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-right: 0.75rem;
}

.award-list .award-title {
  font-size: 1rem;
  font-weight: 600;
}

.award-list .award-source {
  display: block;
  font-size: 0.85rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
}


/* grants section */
.grants {
  padding: 4rem 1rem;
  background-color: var(--light-bg);
}

.grants h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.grants h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0.5rem auto;
  border-radius: 2px;
}

/* grant list styles */
.grant-list {
  list-style: none;
  margin: 2rem auto 0;
  padding: 0;
  max-width: 900px;
}

.grant-list li {
  background-color: var(--card-bg);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.grant-list .grant-year {
  background-color: var(--light-bg);
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-right: 0.75rem;
}

.grant-list .grant-title {
  font-size: 1rem;
  font-weight: 600;
}

.grant-list .grant-source {
  display: block;
  font-size: 0.85rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
}



/* footer */
.footer {
  background-color: var(--card-bg);
  color: var(--text-color);
  text-align: center;
  padding: 3rem 1rem;
}

.footer h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer p {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
  color: #475569;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.socials a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.socials a:hover {
  background-color: #ffffff;
  color: var(--primary-color);
}

.footer small {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .impact {
    padding: 2rem 1rem;
  }
  .investigative h2,
  .interviews h2,
  .awards h2,
  .grants h2,
  .footer h2 {
    font-size: 1.75rem;
  }
}

/* resume page styles */
.resume-page {
  padding: 4rem 1rem;
}

.resume-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* each section in the resume page */
.resume-section {
  background-color: var(--card-bg);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.resume-section h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* individual resume items */
.resume-item + .resume-item {
  margin-top: 1rem;
}

.resume-item .date {
  font-size: 0.85rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-style: italic;
}

.resume-item strong {
  display: block;
  font-weight: 600;
}

/* Popup styles for the course announcement */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-content {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 90%;
  text-align: center;
  position: relative;
}

.popup-content h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.popup-content p {
  color: #475569;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.btn-popup {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease-in-out;
}

.btn-popup:hover {
  background-color: #c73232;
}