.academic-page {
  padding: 7rem 1.5rem 5rem;
  background: #ffffff;
}

.academic-container {
  max-width: 900px;
  margin: 0 auto;
}

.academic-container h1 {
  margin-bottom: 3rem;
  font-size: 2.4rem;
  font-weight: 600;
}

.academic-list {
  display: grid;
  gap: 0;
}

.academic-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid #dddddd;
}

.academic-item:first-child {
  border-top: 1px solid #dddddd;
}

.academic-item h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.academic-item p {
  margin: 0.35rem 0;
  line-height: 1.7;
}

.academic-item .meta,
.academic-item .year {
  color: #777777;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .academic-page {
    padding-top: 5rem;
  }

  .academic-container h1 {
    font-size: 2rem;
  }

  .academic-item h2 {
    font-size: 1.2rem;
  }
}

/* Academic project and publication cards */
.academic-list {
  display: grid;
  gap: 1.4rem;
}

.academic-item {
  padding: 1.6rem 1.8rem;
  background: #f8f9fa;
  border: 1px solid #e3e5e8;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.035);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.academic-item:first-child {
  border-top: 1px solid #e3e5e8;
}

.academic-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.academic-item h2 {
  margin: 0 0 0.45rem;
  font-size: 1.28rem;
  line-height: 1.35;
}

.academic-item .meta {
  margin-bottom: 0.7rem;
  color: #737373;
  font-size: 0.92rem;
}

.academic-item .year {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.2rem 0.65rem;
  background: #eceff1;
  border-radius: 999px;
  color: #555;
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .academic-item {
    padding: 1.25rem;
    border-radius: 12px;
  }
}

/* Image-first project cards */
.project-grid {
  display: grid;
  gap: 3rem;
}

.project-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
}

.project-image-link {
  display: block;
  overflow: hidden;
  background: #f2f4f6;
}

.project-cover {
  display: block;
  width: 100%;
  height: 390px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.project-image-link:hover .project-cover {
  transform: scale(1.015);
}

.project-card-content {
  padding: 1.6rem 1.8rem 1.8rem;
}

.project-card-content h2 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
  line-height: 1.35;
}

.project-card-content p {
  margin: 1rem 0 1.25rem;
  line-height: 1.7;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-tags span {
  padding: 0.28rem 0.65rem;
  background: #f0f1f2;
  border-radius: 999px;
  color: #555555;
  font-size: 0.82rem;
}

.project-button {
  display: inline-block;
  padding: 0.62rem 1rem;
  border: 1px solid #303030;
  border-radius: 6px;
  color: #303030;
  font-size: 0.9rem;
  text-decoration: none;
}

.project-button:hover {
  background: #303030;
  color: #ffffff;
}

@media (max-width: 768px) {
  .project-grid {
    gap: 2rem;
  }

  .project-cover {
    height: 230px;
  }

  .project-card-content {
    padding: 1.25rem;
  }
}

/* Reference-style Projects page */

.projects-page {
  padding-top: 6rem;
}

.projects-container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.projects-heading {
  margin: 0 0 3rem;
  text-align: center;
  font-size: 2.8rem;
  font-weight: 400;
}

.reference-project-list {
  display: grid;
  gap: 4rem;
}

.reference-project-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.reference-project-image-link {
  display: block;
  overflow: hidden;
}

.reference-project-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.reference-project-image-link:hover .reference-project-image {
  opacity: 0.92;
}

.reference-project-content {
  padding: 1.8rem 2rem 2rem;
}

.reference-project-content h2 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
}

.reference-project-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.reference-project-content a {
  color: #0797e3;
  text-decoration: none;
}

.reference-project-content a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .projects-page {
    padding-top: 4.5rem;
  }

  .projects-container {
    width: 100%;
  }

  .projects-heading {
    margin-bottom: 2.3rem;
    padding: 0 1rem;
    font-size: 2.35rem;
  }

  .reference-project-list {
    gap: 3rem;
  }

  .reference-project-card {
    border-radius: 4px;
  }

  .reference-project-content {
    padding: 1.4rem 1.2rem 1.6rem;
  }

  .reference-project-content h2 {
    font-size: 1.15rem;
  }
}

.project-title-link {
  color: inherit;
  text-decoration: none;
}

.project-title-link:hover {
  color: #078ed1;
  text-decoration: none;
}

/* Individual project detail page */
.project-page {
  padding: 7rem 1.5rem 5rem;
  background: #ffffff;
}

.project-container {
  width: min(960px, 100%);
  margin: 0 auto;
}

.project-hero {
  margin-bottom: 4.5rem;
  text-align: center;
}

.project-hero h1 {
  max-width: 850px;
  margin: 0 auto 1rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.15;
}

.project-tagline {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  color: #666666;
  font-size: 1.08rem;
  line-height: 1.7;
}

.project-hero-image {
  display: block;
  width: 100%;
  max-height: 580px;
  margin: 0 auto;
  object-fit: cover;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
}

.project-section {
  margin-bottom: 4.5rem;
}

.project-section h2 {
  margin: 0 0 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #dddddd;
  font-size: 1.75rem;
  font-weight: 500;
}

.project-section p {
  margin: 0 0 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
}

.project-section em {
  color: #777777;
}

.project-section a {
  color: #078ed1;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.project-section a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .project-page {
    padding: 5rem 1.15rem 3rem;
  }

  .project-hero {
    margin-bottom: 3rem;
    text-align: left;
  }

  .project-hero h1 {
    font-size: 2.1rem;
  }

  .project-tagline {
    margin-left: 0;
    font-size: 1rem;
  }

  .project-section {
    margin-bottom: 3rem;
  }

  .project-section h2 {
    font-size: 1.45rem;
  }
}

.publication-title-link {
  color: inherit;
  text-decoration: none;
}

.publication-title-link:hover {
  color: #078ed1;
}

.publication-link {
  margin-top: 0.7rem;
}

.publication-link a {
  color: #078ed1;
  text-decoration: none;
}

.publication-link a:hover {
  text-decoration: underline;
}

.blog-empty-state {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8f9fa;
  border: 1px solid #e3e5e8;
  border-radius: 12px;
}

.blog-empty-state p {
  margin: 0;
  color: #666666;
  line-height: 1.7;
}
