/* =========================
   Research projects hero
   ========================= */

#research-projects-hero {
  --hero-bg-color: #0a3d62;
}




/* =========================
   Intro
   ========================= */

.research-projects-intro {
  width: 100%;
  background: #e6ecea;
  color: #000;
}

.research-projects-intro__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.6rem 1.5rem;

  font-family: var(--font-body, "IBM Plex Sans", sans-serif);
  font-size: 1.05rem;
  line-height: 1.7;
}

.research-projects-intro__inner :where(
  p,
  li,
  strong,
  em,
  span,
  a,
  blockquote
) {
  font-family: inherit;
}

.research-projects-intro__inner > :first-child {
  margin-top: 0;
}

.research-projects-intro__inner > :last-child {
  margin-bottom: 0;
}


/* =========================
   List section
   ========================= */

.research-projects-list-section {
  width: 100%;
  background: #f5f7f7;
}

.research-projects-list__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.6rem 1.5rem;
}


/* =========================
   Tools
   ========================= */

.research-projects-tools {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.research-projects-search {
  width: min(560px, 100%);
}

.research-projects-search label {
  display: block;
  margin-bottom: 0.35rem;

  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-size: 0.92rem;
  color: #000;
}

.research-projects-search input {
  width: 100%;
  height: 44px;

  border: 2px solid #0a3d62;
  border-radius: 999px;
  padding: 0 1rem;

  font-family: var(--font-body, "IBM Plex Sans", sans-serif);
  font-size: 0.96rem;

  background: #fff;
  color: #111;
  outline: none;
}

/* =========================
   Grid
   ========================= */

.research-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2.5rem;
  align-items: start;
  justify-items: center;
  width: 100%;
}

.research-project-card {
  min-width: 0;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;

  padding: 1.2rem;

  background: #fff;
  border: 1px solid #0a3d62;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

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

.research-project-card[hidden] {
  display: none;
}

.research-project-card__image-link {
  display: block;
  width: 100%;
  cursor: pointer;
}

.research-project-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;

  object-fit: cover;
  display: block;

  border-radius: 8px;
}

.research-project-card__body {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;

  flex: 1;
}


.research-project-card__button {
  margin-top: auto;

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

  width: auto;
  min-width: 0;
  height: auto;

  padding: 10px 22px;
  border-radius: 999px;

  border: 1.5px solid #0a3d62;
  background: transparent;
  color: #0a3d62;

  font-family: var(--font-body, "IBM Plex Sans", sans-serif);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;

  cursor: pointer;

  transform: none;
  transform-origin: center;
  will-change: transform;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.research-project-card__button:hover {
  background: #0a3d62;
  color: #ffffff;
  border-color: #0a3d62;

  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* =========================
   Empty + pagination
   ========================= */

.research-projects-empty {
  margin: 1rem auto 0;
  text-align: center;

  font-family: var(--font-body, "IBM Plex Sans", sans-serif);
}

.research-projects-empty[hidden],
.research-projects-pagination[hidden] {
  display: none;
}

.research-projects-pagination {
  margin: 1.35rem auto 0;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;

  font-family: var(--font-heading, "Space Grotesk", sans-serif);
}

.research-projects-pagination button {
  height: 34px;
  min-width: 34px;

  border-radius: 999px;
  border: 1px solid #0a3d62;

  background: transparent;
  color: #0a3d62;

  cursor: pointer;
  font-size: 0.95rem;
}

.research-projects-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 980px) {
  .research-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .research-projects-grid {
    grid-template-columns: 1fr;
  }

  #research-projects-hero .page-hero__title {
    white-space: normal;
    --hero-mobile-title-size: clamp(2.5rem, 13vw, 4.5rem);
  }
}
