/* ===========================
   FORTY LANDING — Spotlights
   Research / interior page styles
============================ */

/* ---------- Short banner variant ---------- */
.forty-banner-short {
  min-height: 40vh;
  padding-top: 80px;
  padding-bottom: 60px;
}
/* Tinted overlay matching research colors from index tiles */
.forty-banner-short::after {
  background: rgba(212, 137, 155, 0.1);
}
@media (max-width: 768px) {
  .forty-banner-short { min-height: 35vh; }
}

/* ---------- Section Nav ---------- */
.section-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  background: #333840;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.section-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 30px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.55);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}
.section-nav a:hover {
  color: #fff;
  border-bottom-color: #d4899b;
  background: rgba(255,255,255,0.03);
}
.section-nav a i { font-size: 14px; }
@media (max-width: 768px) {
  .section-nav { flex-wrap: wrap; }
  .section-nav a {
    flex: 1 1 50%;
    justify-content: center;
    padding: 14px 16px;
    font-size: 12px;
  }
}

/* ---------- Spotlight Sections ---------- */
.spotlight {
  display: flex;
  min-height: 0;
  background: #2b2d33;
}

/* Alternate slightly darker bg for contrast */
.spotlight:nth-of-type(odd) {
  background: #2b2d33;
}
.spotlight:nth-of-type(even) {
  background: #24262b;
}

/* Flipped variant */
.spotlight-flip {
  flex-direction: row-reverse;
}

.spotlight-image {
  width: 35%;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.spotlight-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(43, 45, 51, 0.35);
  pointer-events: none;
  transition: background 0.4s ease;
}
.spotlight:hover .spotlight-image::after {
  background: rgba(43, 45, 51, 0.15);
}
.spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}
.spotlight:hover .spotlight-image img {
  transform: scale(1.04);
}

.spotlight-content {
  flex: 1;
  padding: 70px 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.spotlight-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.5px;
}
.spotlight-rule {
  width: 100%;
  max-width: 500px;
  height: 2px;
  background: rgba(255,255,255,0.25);
  border: none;
  margin: 18px 0 26px;
}
.spotlight-content p {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin: 0 0 20px;
}
.spotlight-content p:last-child {
  margin-bottom: 0;
}

/* --- Colored links --- */
.spotlight-content a {
  color: #6bafc4;
  font-weight: 400;
  border-bottom: 1px dotted rgba(107, 175, 196, 0.4);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.spotlight-content a:hover {
  color: #d4899b;
  border-bottom-color: transparent;
}

/* Per-section accent colors on rules */
.spotlight:nth-of-type(1) .spotlight-rule { background: #d4899b; opacity: 0.5; }
.spotlight:nth-of-type(2) .spotlight-rule { background: #6bafc4; opacity: 0.5; }
.spotlight:nth-of-type(3) .spotlight-rule { background: #8ca3a8; opacity: 0.5; }
.spotlight:nth-of-type(4) .spotlight-rule { background: #5c7a88; opacity: 0.5; }

@media (max-width: 868px) {
  .spotlight,
  .spotlight-flip {
    flex-direction: column;
  }
  .spotlight-image {
    width: 100%;
    height: 260px;
  }
  .spotlight-content {
    padding: 40px 24px;
  }
  .spotlight-content h2 { font-size: 28px; }
  .spotlight-content p { font-size: 15px; }
}

/* ---------- Related Papers ---------- */
.related-papers {
  background: #1e2024;
  padding: 40px 65px 50px;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.related-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0 0 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s ease;
  text-decoration: none;
}
.related-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(212, 137, 155, 0.25);
  border-bottom-color: rgba(212, 137, 155, 0.25);
}
.related-card img {
  width: 70px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  filter: grayscale(50%) brightness(0.9);
  opacity: 0.75;
  transition: filter 0.3s, opacity 0.3s;
}
.related-card:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}
.related-info {
  flex: 1;
  min-width: 0;
}
.related-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
  margin: 0 0 4px;
  transition: color 0.25s ease;
}
.related-card:hover .related-title {
  color: #d4899b;
}
.related-venue {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  margin: 0;
  line-height: 1.4;
}
.related-venue em {
  color: rgba(255,255,255,0.55);
}

@media (max-width: 868px) {
  .related-grid { grid-template-columns: 1fr; }
  .related-papers { padding: 30px 24px 40px; }
}

/* ---------- Media Break ---------- */
.media-break {
  background: #1a1c20;
  overflow: hidden;
  line-height: 0;
}
.media-break img,
.media-break video {
  max-height: 350px;
  object-fit: cover;
}

/* ---------- Research Intro / Overview ---------- */
.research-intro {
  background: #24262b;
  padding: 72px 24px 62px;
  text-align: center;
}
.research-intro .intro-inner {
  max-width: 820px;
  margin: 0 auto;
}
.research-intro .intro-kicker {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d4899b;
  margin: 0 0 14px;
}
.research-intro h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0 0 24px;
}
.research-intro p {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  line-height: 1.85;
  margin: 0 0 20px;
}
.research-intro p:last-child { margin-bottom: 0; }
.research-intro .intro-lead {
  color: rgba(255,255,255,0.88);
  font-weight: 400;
}
.research-intro a {
  color: #6bafc4;
  font-weight: 400;
  border-bottom: 1px dotted rgba(107,175,196,0.4);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.research-intro a:hover { color: #d4899b; border-bottom-color: transparent; }
@media (max-width: 868px) {
  .research-intro { padding: 46px 20px; }
  .research-intro h2 { font-size: 26px; }
  .research-intro p { font-size: 16px; }
}

/* ---------- "Read more" link under a spotlight ---------- */
.spotlight-content a.spotlight-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #6bafc4;
  border-bottom: none;
}
.spotlight-content a.spotlight-more:hover {
  color: #d4899b;
  border-bottom: none;
}
.spotlight-content a.spotlight-more i {
  font-size: 12px;
  transition: transform 0.25s ease;
}
.spotlight-content a.spotlight-more:hover i { transform: translateX(4px); }
