/* ===========================================================
   PHOTO LAYOUTS STYLESHEET  —  iugb-sse-website
   Applies to: index.html, about.html, research.html,
               news.html, admission.html
   Pattern inspired by stanford.edu editorial structure.
   =========================================================== */


/* ─────────────────────────────────────────────
   PHOTO PLACEHOLDERS
   Styled to look intentional, not like raw
   "image missing" boxes. Each carries a label
   for the photographer.
   ───────────────────────────────────────────── */

.ph {                            /* base class */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 0;
  background: linear-gradient(135deg, #c8d8ed 0%, #e4ecf6 60%, #d0dff0 100%);
}

/* inner label */
.ph__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(26, 54, 93, 0.72);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 8px 14px;
  line-height: 1.4;
}

.ph__label span { color: var(--iugb-gold); }

.ph__icon {
  opacity: 0.35;
  color: var(--iugb-blue);
}

/* size variants */
.ph--hero       { height: 560px; border-radius: 0; }
.ph--feature    { height: 420px; border-radius: 10px; }
.ph--card       { height: 200px; border-radius: 10px 10px 0 0; }
.ph--square     { aspect-ratio: 1/1; border-radius: 0; }
.ph--wide       { height: 340px; border-radius: 10px; }
.ph--banner     { height: 320px; border-radius: 0; }
.ph--portrait   { height: 480px; border-radius: 10px; }
.ph--mosaic-lg  { height: 100%; min-height: 380px; border-radius: 10px; }
.ph--mosaic-sm  { height: 182px; border-radius: 10px; }
.ph--research   { height: 200px; border-radius: 10px 10px 0 0; }
.ph--strip      { height: 260px; border-radius: 8px; }

/* tint variants (each section feels different) */
.ph--tint-gold    { background: linear-gradient(135deg, #edddb5 0%, #f5ead4 60%, #e6d09b 100%); }
.ph--tint-deep    { background: linear-gradient(135deg, #1a365d 0%, #2d4a7a 100%); }
.ph--tint-warm    { background: linear-gradient(135deg, #d4e3c8 0%, #eaf2e4 60%, #c8dbb9 100%); }
.ph--tint-rust    { background: linear-gradient(135deg, #e0cfc8 0%, #f0e5e0 60%, #d4b8ae 100%); }
.ph--tint-slate   { background: linear-gradient(135deg, #c8d0d8 0%, #e4e8ed 60%, #b8c4d0 100%); }


/* ─────────────────────────────────────────────
   HOMEPAGE — CINEMATIC HERO
   Full-bleed photo with dark overlay + white
   headline. Real photo replaces .ph when ready.
   ───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   HERO — EDITORIAL WHITE (Stanford / CMU style)
   White background. Dark headline left.
   Photo card right — no overlay, no dark tint.
   The image is a feature, not a backdrop.
   ───────────────────────────────────────────── */

.hero-editorial {
  background: #fff;
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--border-light);
}

.hero-editorial__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ── Left column: text ── */

.hero-editorial__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--iugb-gold-dark);
  margin-bottom: 20px;
}

.hero-editorial__kicker::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--iugb-gold);
  border-radius: 2px;
}

.hero-editorial__headline {
  font-size: 3rem;
  font-weight: 700;
  color: var(--iugb-blue);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-editorial__sub {
  font-size: 1.12rem;
  color: var(--text-gray);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 32px;
}

/* Single soft scroll-down invitation — no hard CTA */
.hero-editorial__scroll {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--iugb-blue);
  letter-spacing: 0.02em;
  border-bottom: 1.5px solid var(--iugb-gold);
  padding-bottom: 2px;
  transition: color 0.18s, border-color 0.18s;
}

.hero-editorial__scroll:hover { color: var(--iugb-gold-dark); border-color: var(--iugb-gold-dark); }

.hero-editorial__scroll svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.22s;
}

.hero-editorial__scroll:hover svg { transform: translateY(3px); }

/* ── Right column: photo card ── */

.hero-editorial__media {
  position: relative;
}

/* The photo sits in a slightly raised, rounded card.
   Actual <img> goes here — no dark overlay needed. */
.hero-editorial__photo {
  display: block;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(26, 54, 93, 0.14), 0 4px 12px rgba(26, 54, 93, 0.08);
  overflow: hidden;
}

/* Photo placeholder — styled as a proper card, light tint, NOT dark */
.hero-editorial__ph {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 14px;
  background: linear-gradient(135deg, #dce8f5 0%, #eef4fb 60%, #d4e4f0 100%);
  border: 1px solid #c4d8ec;
  box-shadow: 0 20px 48px rgba(26, 54, 93, 0.12), 0 4px 12px rgba(26, 54, 93, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.hero-editorial__ph-icon {
  opacity: 0.30;
  color: var(--iugb-blue);
}

.hero-editorial__ph-label {
  background: rgba(26, 54, 93, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 4px;
  text-align: center;
  line-height: 1.5;
  max-width: 84%;
}

.hero-editorial__ph-label span { color: var(--iugb-gold); }

/* Gold accent bar — bottom of photo card, echoes brand */
.hero-editorial__media::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 10%; right: 10%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--iugb-gold), transparent);
  border-radius: 0 0 4px 4px;
  opacity: 0.7;
}


/* ─────────────────────────────────────────────
   FEATURE STORY BLOCK
   Wide editorial: large photo one side, text
   the other. Used on homepage + about.
   ───────────────────────────────────────────── */

.feature-story {
  padding: 80px 0;
}

.feature-story--alt { background: var(--bg-light); }

.feature-story__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 52px;
  align-items: center;
}

.feature-story__grid--reverse {
  grid-template-columns: 1fr 1.1fr;
}

.feature-story__grid--reverse .feature-story__media {
  order: 2;
}

.feature-story__media { position: relative; }

.feature-story__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--iugb-gold-dark);
  margin-bottom: 12px;
}

.feature-story__heading {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--iugb-blue);
  line-height: 1.25;
  margin-bottom: 16px;
}

.feature-story__body {
  font-size: 1.05rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 24px;
}

.feature-story__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--iugb-blue);
  text-decoration: none;
  border-bottom: 2px solid var(--iugb-gold);
  padding-bottom: 2px;
  transition: color 0.18s, border-color 0.18s;
}

.feature-story__link:hover { color: var(--iugb-gold-dark); border-color: var(--iugb-gold-dark); }

.feature-story__link svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.18s;
}

.feature-story__link:hover svg { transform: translateX(4px); }


/* ─────────────────────────────────────────────
   PHOTO NEWS / STORY CARDS
   Every card gets a 16:9 photo thumbnail
   at the top, then headline + excerpt.
   ───────────────────────────────────────────── */

.photo-cards-section {
  padding: 30px 0;
  background: var(--bg-white);
}

.photo-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.photo-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.18s;
}

.photo-card:hover {
  box-shadow: 0 10px 32px rgba(26, 54, 93, 0.13);
  transform: translateY(-4px);
}

.photo-card__media { position: relative; flex-shrink: 0; }

.photo-card__tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--iugb-blue);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
}

.photo-card__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.photo-card__date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.photo-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--iugb-blue);
  line-height: 1.3;
  margin-bottom: 10px;
}

.photo-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.65;
  flex-grow: 1;
}

.photo-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--iugb-gold-dark);
}

.photo-card__arrow svg {
  width: 13px; height: 13px;
  stroke: var(--iugb-gold-dark); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.18s;
}

.photo-card:hover .photo-card__arrow svg { transform: translateX(4px); }


/* ─────────────────────────────────────────────
   CAMPUS LIFE MOSAIC
   4-image photo collage strip.
   Left: 1 tall image. Right: 2×2 grid.
   ───────────────────────────────────────────── */

.campus-mosaic {
  padding: 80px 0;
  background: var(--bg-light);
}

.campus-mosaic__intro {
  margin-bottom: 36px;
}

.campus-mosaic__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: auto;
  gap: 14px;
}

.campus-mosaic__small-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}


/* ─────────────────────────────────────────────
   RESEARCH AREA VISUAL CARDS
   Each domain gets a photo header, then text.
   ───────────────────────────────────────────── */

.research-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.research-visual-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-white);
  transition: box-shadow 0.22s, transform 0.18s;
}

.research-visual-card:hover {
  box-shadow: 0 8px 28px rgba(26, 54, 93, 0.12);
  transform: translateY(-3px);
}

.research-visual-card__body {
  padding: 22px;
}

.research-visual-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--iugb-blue);
  margin-bottom: 10px;
}

.research-visual-card__desc {
  font-size: 0.92rem;
  color: var(--text-gray);
  line-height: 1.7;
}


/* ─────────────────────────────────────────────
   ABOUT — ALTERNATING PHOTO / TEXT SPLITS
   ───────────────────────────────────────────── */

.about-split {
  padding: 72px 0;
}

.about-split + .about-split { border-top: 1px solid var(--border-light); }

.about-split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-split__grid--flip .about-split__media { order: 2; }

.about-split__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--iugb-gold-dark);
  display: block;
  margin-bottom: 10px;
}

.about-split__heading {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--iugb-blue);
  line-height: 1.25;
  margin-bottom: 16px;
}

.about-split__body {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.8;
}

.about-split__list {
  margin: 16px 0 0 18px;
  line-height: 2;
  color: var(--text-gray);
  font-size: 1rem;
}


/* ─────────────────────────────────────────────
   SECTION HEADERS (shared override for photo pages)
   ───────────────────────────────────────────── */

.ph-section-header {
  margin-bottom: 36px;
}

.ph-section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--iugb-blue);
  margin-bottom: 10px;
}

.ph-section-header p {
  font-size: 1.5rem;
  color: #101216;
  max-width: 800px;
  line-height: 1.75;
}

.ph-section-header--center { text-align: center; }
.ph-section-header--center p { margin: 0 auto; }

.section-more {
  text-align: center;
  margin-top: 36px;
}


/* ─────────────────────────────────────────────
   ADMISSION VISUAL BANNER
   ───────────────────────────────────────────── */

.admission-banner {
  position: relative;
  overflow: hidden;
}

.admission-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,54,93,0.88) 0%, rgba(26,54,93,0.45) 60%, transparent 100%);
  z-index: 1;
}

.admission-banner__content {
  position: relative;
  z-index: 2;
  padding: 70px 0;
}

.admission-banner__heading {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  max-width: 560px;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.admission-banner__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ─────────────────────────────────────────────
   NEWS PAGE FEATURED STORY
   Big horizontal card: 55% photo, 45% text
   ───────────────────────────────────────────── */

.news-featured {
  padding: 60px 0 40px;
  background: var(--bg-white);
}

.news-featured__card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,54,93,0.08);
}

.news-featured__body {
  padding: 40px 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-featured__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--iugb-gold-dark);
  background: #fff3cd;
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 14px;
}

.news-featured__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--iugb-blue);
  line-height: 1.25;
  margin-bottom: 14px;
}

.news-featured__excerpt {
  font-size: 0.97rem;
  color: var(--text-gray);
  line-height: 1.75;
  margin-bottom: 24px;
}


/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-editorial { padding: 52px 0 44px; }
  .hero-editorial__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-editorial__headline { font-size: 2.1rem; }
  .hero-editorial__sub { max-width: 100%; }
  .hero-editorial__media { order: -1; }
  .hero-editorial__ph { aspect-ratio: 16/9; }

  .feature-story__grid,
  .feature-story__grid--reverse { grid-template-columns: 1fr; }
  .feature-story__grid--reverse .feature-story__media { order: 0; }

  .photo-cards-grid { grid-template-columns: 1fr 1fr; }

  .campus-mosaic__grid { grid-template-columns: 1fr; }
  .ph--mosaic-lg { min-height: 260px; }

  .research-visual-grid { grid-template-columns: 1fr 1fr; }

  .about-split__grid,
  .about-split__grid--flip { grid-template-columns: 1fr; }
  .about-split__grid--flip .about-split__media { order: 0; }

  .news-featured__card { grid-template-columns: 1fr; }

  .admission-banner__overlay {
    background: rgba(26,54,93,0.82);
  }
}

@media (max-width: 600px) {
  .hero-editorial__headline { font-size: 1.75rem; }
  .hero-editorial__ph { aspect-ratio: 4/3; }
  .photo-cards-grid { grid-template-columns: 1fr; }
  .research-visual-grid { grid-template-columns: 1fr; }
  .campus-mosaic__small-grid { grid-template-columns: 1fr 1fr; }
  .ph--mosaic-sm { height: 140px; }
}
