/* =========================
   Research banner background
========================= */

.research-banner{
  background-image: url("images/research-banner.jpg");
}

/* =========================
   Research Areas Section
========================= */
.research-areas-section{
  background: #f8fafc;
  padding: 0px 0 64px;
}

.research-areas-header{
  margin-bottom: 48px;
}

.research-areas-header h2{
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  color: #0f172a;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.research-areas-header p{
  font-size: 17px;
  color: #64748b;
  margin: 0;
  max-width: 56ch;
}

/* =========================
   Research Area Card
   White card with colored left
   accent stripe. Image is boxed
   inside the body, not a full-
   height column.
========================= */
.research-area-card{
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow:
    0 1px 2px rgba(15,23,42,0.05),
    0 4px 12px rgba(15,23,42,0.03);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  margin-bottom: 26px;
  transition: box-shadow 0.3s ease;
}

.research-area-card:hover{
  box-shadow:
    0 4px 8px rgba(15,23,42,0.06),
    0 16px 40px rgba(15,23,42,0.08);
}

@media (prefers-reduced-motion: reduce){
  .research-area-card{ transition: none; }
}

/* =========================
   Left accent stripe
========================= */
.card-accent-left{
  width: 5px;
  flex-shrink: 0;
}

.research-area-card--genomics .card-accent-left{
  background: linear-gradient(180deg, #fca5a5, #fecaca);
}
.research-area-card--protein .card-accent-left{
  background: linear-gradient(180deg, #93c5fd, #bfdbfe);
}
.research-area-card--biomedicine .card-accent-left{
  background: linear-gradient(180deg, #fcd34d, #fde68a);
}
.research-area-card--coreml .card-accent-left{
  background: linear-gradient(180deg, #6ee7b7, #a7f3d0);
}
.research-area-card--knowledge .card-accent-left{
  background: linear-gradient(180deg, #c4b5fd, #ddd6fe);
}

/* =========================
   Card body
========================= */
.research-area-body{
  flex: 1;
  min-width: 0;
  padding: 32px 36px 34px;
}

/* Top row: boxed image + title/description side by side */
.research-area-top{
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 20px;
}

/* Boxed image with pastel tint */
.research-area-img{
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
}

.research-area-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pastel image background tints
   (identical to home page) */
.img-bg--genomics{
  background: linear-gradient(135deg, #fff1f2, #fecdd3);
}
.img-bg--protein{
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}
.img-bg--biomedicine{
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}
.img-bg--coreml{
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}
.img-bg--knowledge{
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}

/* Header text (next to image) */
.research-area-header-text{
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.research-area-header-text h3{
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.research-area-desc{
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

/* =========================
   Topics
========================= */
.research-area-subareas h4{
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0 0 12px 0;
}

.topic-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.topic-list li{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0 16px 0;
  border-top: 1px solid rgba(15,23,42,0.06);
}

.topic-list li:last-child{
  padding-bottom: 0;
}

/* Subtle left-border accent per topic */
.research-area-card--genomics .topic-list .topic-desc{
  border-left: 2px solid rgba(239,68,68,0.18);
}
.research-area-card--protein .topic-list .topic-desc{
  border-left: 2px solid rgba(59,130,246,0.18);
}
.research-area-card--biomedicine .topic-list .topic-desc{
  border-left: 2px solid rgba(245,158,11,0.18);
}
.research-area-card--coreml .topic-list .topic-desc{
  border-left: 2px solid rgba(16,185,129,0.18);
}
.research-area-card--knowledge .topic-list .topic-desc{
  border-left: 2px solid rgba(139,92,246,0.18);
}

.topic-name{
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.8);
  align-self: flex-start;
}

.topic-desc{
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
  padding-left: 14px;
}

.topic-desc:empty{
  display: none;
}

/* Color-tinted sub-area pills */
.pill--genomics{
  background: rgba(254,226,226,0.5) !important;
  border-color: rgba(239,68,68,0.12) !important;
}
.pill--protein{
  background: rgba(219,234,254,0.5) !important;
  border-color: rgba(59,130,246,0.12) !important;
}
.pill--biomedicine{
  background: rgba(254,243,199,0.5) !important;
  border-color: rgba(245,158,11,0.12) !important;
}
.pill--coreml{
  background: rgba(209,250,229,0.5) !important;
  border-color: rgba(16,185,129,0.12) !important;
}
.pill--knowledge{
  background: rgba(237,233,254,0.5) !important;
  border-color: rgba(139,92,246,0.12) !important;
}

/* =========================
   Publications link
========================= */
.research-area-pubs{
  margin-top: 18px;
}

.card-link{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-link:hover{
  color: #c8102e;
}

.card-link-arrow{
  display: inline-block;
  transition: transform 0.2s ease;
}

.card-link:hover .card-link-arrow{
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce){
  .card-link-arrow{ transition: none; }
}

/* =========================
   Collaboration Callout
========================= */
.research-collab-callout{
  margin-top: 48px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow:
    0 1px 2px rgba(15,23,42,0.05),
    0 4px 12px rgba(15,23,42,0.03);
  padding: 36px 40px;
}

.research-collab-callout h3{
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.research-collab-callout p{
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 20px 0;
}

/* =========================
   Responsive
========================= */
@media (max-width: 680px){
  .research-area-top{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .research-area-img{
    width: 140px;
    height: 140px;
  }

  .research-area-body{
    padding: 24px 20px 28px;
  }

  .research-area-subareas ul{
    justify-content: center;
  }

  .research-collab-callout{
    padding: 28px 24px;
  }
}

/* =========================
   Card Footnote
========================= */
.card-footnote{
  font-size: 16px;
  color: #4b5563;
  margin: 12px 0 0 0;
  line-height: 1.6;
}

.card-footnote a{
  color: #374151;
  text-decoration: underline;
}

.card-footnote a:hover{
  color: #c8102e;
}