/* MUNDP — shared sections for the two venue pages (Istanbul, The Koç School).
   Self-contained: only .vp-* classes, safe to remove per section.
   Follows theme.css: white ground, hairline detail, navy + brand blue accents. */

/* ---------- Istanbul hero: crossfade slideshow under a blue wash ----------
   Same family as the Koç page's hero slides and .koc-hero-tint. */
.section-hero.istanbul-page {
  position: relative;
  overflow: hidden;
  background-image: none !important;
}

.ist-hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ist-hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.ist-hero-slides img.is-active {
  opacity: 1;
}

.section-hero.istanbul-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(2, 24, 64, 0.66) 0%,
    rgba(9, 51, 130, 0.56) 55%,
    rgba(1, 15, 40, 0.74) 100%
  );
  pointer-events: none;
}

.section-hero.istanbul-page .grid-halves-section {
  position: relative;
  z-index: 2;
}

/* landmark name for the current slide — typed in and out like the
   homepage hero line, held as a header in the open sky at the top right */
.ist-hero-caption {
  position: absolute;
  z-index: 2;
  top: clamp(7rem, 18vh, 10.5rem);
  right: 5%;
  margin: 0;
  max-width: 48%;
  min-height: 1.2em;
  font-size: clamp(1.5rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  text-align: right;
}

@media (max-width: 640px) {
  .ist-hero-caption {
    max-width: 70%;
    top: 6.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ist-hero-slides img {
    transition: none;
  }
}

/* ---------- intro: lede + two-column prose ---------- */
.vp-intro {
  padding: 4.5rem 0 3.5rem;
}

.vp-lede {
  max-width: 52rem;
  margin: 0 auto 2.4rem;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.4;
  letter-spacing: -0.018em;
  font-weight: 600;
  color: #0a1f4d;
  text-align: center;
  text-wrap: balance;
}

.vp-prose {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
}

.vp-prose p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #42506e;
}

@media (max-width: 820px) {
  .vp-prose {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

/* ---------- stat band: same treatment as the homepage (.ab-stats) ---------- */
.vp-stats {
  background: #011a45;
  padding: 5.5rem 0;
}

.vp-stats-grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 4rem;
}

.vp-stat {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 1.75rem;
}

.vp-stat-figure {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.vp-stat-num {
  font-size: clamp(2.75rem, 4.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.vp-stat-unit {
  font-size: 1.2rem;
  font-weight: 600;
  color: #aebfe3;
}

.vp-stat-label {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.vp-reveal {
  opacity: 0;
  transform: translateY(18px);
}

.vp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  .vp-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1020px) {
  .vp-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .vp-stats {
    padding: 4rem 0;
  }
  .vp-stats-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ---------- section head (mirrors .ist-map-head) ---------- */
.vp-head {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.vp-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #2b4da0;
  margin-bottom: 0.75rem;
}

.vp-title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #0a1f4d;
}

.vp-sub {
  margin: 0;
  color: #4c5a78;
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- card grid (landmarks, campus buildings) ---------- */
.vp-section {
  padding: 1rem 0 5rem;
}

.vp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

@media (max-width: 1020px) {
  .vp-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .vp-cards {
    grid-template-columns: 1fr;
  }
}

.vp-card {
  background: #fff;
  border: 1px solid rgba(10, 31, 77, 0.09);
  border-radius: 16px;
  padding: 1.5rem 1.6rem 1.45rem;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.vp-card:hover {
  border-color: rgba(10, 31, 77, 0.16);
  box-shadow: 0 22px 44px -24px rgba(10, 31, 77, 0.3);
  transform: translateY(-2px);
}

.vp-card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2b4da0;
  margin-bottom: 0.5rem;
}

.vp-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.18rem;
  letter-spacing: -0.012em;
  color: #0a1f4d;
}

.vp-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #4c5a78;
}

/* ---------- labelled rows (getting around, practicalities) ---------- */
.vp-rows {
  max-width: 52rem;
  margin: 0 auto;
}

.vp-row {
  display: grid;
  grid-template-columns: 11em 1fr;
  gap: 1.6rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(10, 31, 77, 0.09);
  align-items: baseline;
}

.vp-row:last-child {
  border-bottom: 1px solid rgba(10, 31, 77, 0.09);
}

.vp-row-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2b4da0;
  line-height: 1.5;
}

.vp-row-label .code {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #0a1f4d;
  margin-bottom: 0.15rem;
}

.vp-row-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #42506e;
}

.vp-row-body strong {
  color: #16294f;
  font-weight: 600;
}

@media (max-width: 640px) {
  .vp-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

/* ---------- timeline (MUNDP at Koç) ---------- */
.vp-timeline {
  max-width: 46rem;
  margin: 0 auto;
  position: relative;
  padding-left: 1.9rem;
}

.vp-timeline::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.5rem;
  bottom: 0.6rem;
  width: 2px;
  background: rgba(10, 31, 77, 0.12);
}

.vp-mile {
  position: relative;
  padding: 0 0 1.9rem;
}

.vp-mile:last-child {
  padding-bottom: 0;
}

.vp-mile::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: 0.42rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #2b4da0;
}

.vp-mile.is-now::before {
  background: #2b4da0;
  box-shadow: 0 0 0 5px rgba(43, 77, 160, 0.15);
}

.vp-mile-year {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2b4da0;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25rem;
}

.vp-mile-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #42506e;
}

.vp-mile-body strong {
  color: #16294f;
  font-weight: 600;
}

/* ---------- sources footnote ---------- */
.vp-sources {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 0 4rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #8a93a8;
}

.vp-sources a {
  color: #6a7691;
  text-decoration: underline;
  text-decoration-color: rgba(106, 118, 145, 0.4);
}

.vp-sources a:hover {
  color: #2b4da0;
}

@media (prefers-reduced-motion: reduce) {
  .vp-card,
  .vp-card:hover {
    transition: none;
    transform: none;
  }
}
