.projects-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
  color: #666;
  line-height: 1.6;
}

.theme-section {
  max-width: 1100px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.theme-section h2 {
  font-size: 1.5em;
  color: #333;
  border-bottom: 2px solid #e25440;
  padding-bottom: 10px;
  margin-bottom: 25px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

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

.project-card__body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card__title {
  font-size: 1.05em;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.35;
}

.project-card__meta {
  font-size: 0.85em;
  color: #888;
  margin-bottom: 10px;
}

.status-badge {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 10px;
  width: fit-content;
}

.status-badge.published {
  background: #e6f4ea;
  color: #1e7a34;
}

.status-badge.working-paper {
  background: #fdf1e8;
  color: #b9601c;
}

.status-badge.presentation {
  background: #eef1fb;
  color: #33459c;
}

/* Project detail page */
.project-detail {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #e25440;
  font-weight: 600;
}

.theme-tag {
  display: inline-block;
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #e25440;
  margin-bottom: 10px;
}

.project-detail h1 {
  font-size: 1.9em;
  color: #333;
  line-height: 1.3;
  margin-bottom: 12px;
}

.project-meta {
  color: #777;
  margin-bottom: 20px;
  font-size: 0.95em;
}

.project-banner {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 25px;
}

.project-body {
  line-height: 1.7;
  color: #444;
}

.project-body h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  color: #333;
}

.abstract-block {
  background: #faf4f2;
  border-left: 4px solid #e25440;
  padding: 16px 20px;
  border-radius: 4px;
  font-style: italic;
  color: #555;
}

.project-link-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 10px 22px;
  background: #e25440;
  color: #fff !important;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
}

.project-link-btn:hover {
  background: #b9301c !important;
}
