/* ============================================================
   RESEARCH PAGE
   ============================================================ */

/* Reuse page-header from courses.css — included via courses.css
   or just declare here for standalone use */

.page-header {
  background: var(--bg-teal);
  padding: 120px 0 64px;
}

.page-header-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4.9vw, 56px);
  font-weight: 700;
  color: var(--text-hi);
  line-height: 1.0;
  margin: 10px 0 20px;
}

.page-header-desc {
  font-size: 15.5px;
  color: var(--text-mid);
  max-width: 680px;
  line-height: 1.78;
}


/* ============================================================
   RESEARCH MAIN — alternating sections
   ============================================================ */
.research-main {
  background: var(--bg-warm);
}


/* ============================================================
   RESEARCH PROJECT SECTION
   ============================================================ */
.rp-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

/* Flipped layout — image on right */
.rp-section--flip .rp-image-wrap { order: 2; }
.rp-section--flip .rp-content    { order: 1; }

/* Image side */
.rp-image-wrap {
  position: relative;
  overflow: hidden;
}

.rp-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.rp-section:hover .rp-image { transform: scale(1.03); }

/* Content side — light */
.rp-content {
  background: var(--bg-warm);
  display: flex;
  align-items: center;
}

/* Content side — dark (Solomon Islands) */
.rp-content--dark {
  background: var(--bg-dark);
}

.rp-content-inner {
  padding: clamp(40px, 5vw, 72px);
  max-width: 560px;
}

/* Meta row */
.rp-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.rp-region {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dark-mid);
}

.rp-region--light { color: var(--text-mid); }

/* Title */
.rp-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 12px;
}

.rp-title--light { color: var(--text-hi); }

/* Location */
.rp-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

.rp-location--light { color: var(--teal-light); }

/* Body text */
.rp-body {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 26px;
}

.rp-body p {
  font-size: 14px;
  color: var(--text-dark-mid);
  line-height: 1.78;
}

.rp-body p em {
  font-style: italic;
  color: var(--text-dark);
}

.rp-body--light p { color: var(--text-mid); }
.rp-body--light p em { color: var(--text-hi); }

.rp-text-link {
  color: var(--teal);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ease);
}
.rp-text-link:hover { color: var(--teal-light); }

/* Tags */
.rp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  color: var(--text-dark-mid);
}

.rp-tag--light {
  border-color: var(--border-mid);
  color: var(--text-mid);
}

/* Divider between sections */
.rp-section + .rp-section {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.rp-section--flip + .rp-section,
.rp-section + .rp-section--flip {
  border-top-color: rgba(255, 255, 255, 0.06);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .rp-section,
  .rp-section--flip {
    grid-template-columns: 1fr;
  }

  .rp-section--flip .rp-image-wrap { order: 0; }
  .rp-section--flip .rp-content    { order: 0; }

  .rp-image-wrap {
    height: 300px;
  }

  .rp-content { justify-content: flex-start; }
  .rp-content-inner { max-width: 100%; }

  #french-polynesia .rp-image { object-position: center top; }
  #solomon-islands  .rp-image { object-position: center top; }
}

@media (max-width: 480px) {
  .rp-image-wrap { height: 240px; }
  #french-polynesia .rp-image { object-position: center top; }
  #solomon-islands  .rp-image { object-position: center top; }
}
