/* ============================================================
   So-Rig Institute — About Page Styles
   Uses landing.css design tokens: --blue-700 #0b56c7 (primary),
   --blue-500 #2f7ae2 (secondary), --cream #f8fbff, Sora + Manrope
   ============================================================ */

.about-page {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink-700);
}

/* Requested: square visual language for About page */
.about-page * {
  border-radius: 0 !important;
}

.about-page h1,
.about-page h2,
.about-page h3,
.about-page h4 {
  font-family: 'Sora', 'Manrope', system-ui, sans-serif;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

/* Keep About breadcrumb hero text styling intact over the page-wide heading reset. */
.about-page .sorig-breadcrumb__title {
  color: #fff !important;
}

/* Preserve pill corners for the About hero kicker despite global square reset. */
.about-page .sorig-breadcrumb__kicker {
  border-radius: 999px !important;
}

.about-page .cta-title {
  color: #fff;
}

.about-h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  margin: 8px 0 18px;
}

.about-kicker {
  display: inline-block;
  margin-bottom: 10px;
}

.about-section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

/* ──────────── HERO ──────────── */
/* Override .section-light negative margin when inside about-page */
.about-page .section-light {
  margin-top: 0;
}

/* Alt background for about sections (safe replacement for section-light) */
.about-section-alt {
  background: var(--cream);
}

.about-hero {
  padding: 180px 0 90px;
  background:
    radial-gradient(1200px 600px at 100% 0%, rgba(47, 122, 226, 0.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-hero-title {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.08;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 20px;
}

.about-hero-title span {
  color: var(--blue-700, #0b56c7);
  display: block;
  margin-top: 5px;
}

.about-hero-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-500);
  max-width: 540px;
  margin: 0 0 32px;
}

.about-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.about-hero-media img,
.about-hero-placeholder {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 30px 60px -20px rgba(16, 24, 40, 0.18);
}

.about-hero-placeholder {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
}

/* ──────────── INTRO ──────────── */
.about-intro {
  padding: 100px 0;
  background: #fff;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro-media img {
  width: 100%;
  min-height: 560px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 50px -18px rgba(16, 24, 40, 0.2);
}

.about-intro-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-500);
}

.about-intro-body p { margin: 0 0 14px; }

.about-intro-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-intro-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}

.about-intro-actions .btn.btn-primary {
  background: var(--sorig-primary, #0b56c7);
  color: #fff;
  border-color: var(--sorig-primary, #0b56c7);
}

.about-intro-actions .btn.btn-secondary {
  background: #fff;
  color: var(--sorig-primary, #0b56c7);
  border-color: var(--sorig-primary, #0b56c7);
}

.about-intro-actions .btn:hover {
  transform: translateY(-1px);
}

/* Intro — decorative panel when no image */
.about-intro-media:not(:has(img)) {
  background: linear-gradient(150deg, var(--blue-700, #0b56c7) 0%, #059669 100%);
  border-radius: 20px;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-intro-media:not(:has(img))::before {
  content: '\E68A'; /* font-awesome heart-rate glyph fallback */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.12);
  position: absolute;
}

/* ──────────── WHY STUDY ──────────── */
.about-why {
  padding: 100px 0;
  background: var(--cream, #f8fbff);
}

.about-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-why-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.07);
  border-top: 3px solid var(--blue-700, #0b56c7);
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
  position: relative;
}

/* Cycle top-border colour through 3 brand colours */
.about-why-card:nth-child(3n+1) { border-top-color: var(--blue-700, #0b56c7); }
.about-why-card:nth-child(3n+2) { border-top-color: #059669; }
.about-why-card:nth-child(3n+3) { border-top-color: #7c3aed; }

/* Card with no image — single-column body */
.about-why-card:not(:has(.about-why-card__media)) {
  grid-template-columns: 1fr;
}

.about-why-card:hover {
  box-shadow: 0 20px 50px -16px rgba(11, 86, 199, 0.18);
  background: #f6f9ff;
}

.about-why-card:nth-child(3n+1):hover {
  border-color: rgba(11, 86, 199, 0.5);
  border-top-color: #0b56c7;
  background: rgba(11, 86, 199, 0.06);
}

.about-why-card:nth-child(3n+2):hover {
  border-color: rgba(5, 150, 105, 0.5);
  border-top-color: #059669;
  background: rgba(5, 150, 105, 0.07);
}

.about-why-card:nth-child(3n+3):hover {
  border-color: rgba(124, 58, 237, 0.45);
  border-top-color: #7c3aed;
  background: rgba(124, 58, 237, 0.06);
}

.about-why-card__media {
  overflow: hidden;
}

.about-why-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-why-card__body {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-why-card__body h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ink-900);
}

.about-why-card__body p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-500);
  margin: 0;
}

/* ──────────── VISION & MISSION ──────────── */
.about-vm {
  padding: 100px 0;
  background:
    radial-gradient(900px 400px at 10% 0%, rgba(11, 86, 199, 0.08), transparent 68%),
    #fff;
}

.about-vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.about-vm-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: 0 26px 48px -28px rgba(16, 24, 40, 0.22);
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.about-vm-card--mission {
  background:
    linear-gradient(180deg, rgba(5, 150, 105, 0.06) 0%, rgba(255, 255, 255, 1) 38%),
    #ffffff;
  border-top: 4px solid #059669;
}

.about-vm-card--mission h3,
.about-vm-card--mission p { color: #111827; }

.about-vm-card--vision {
  border-top: 4px solid var(--blue-700, #0b56c7);
}

.about-vm-card__media {
  height: 240px;
  overflow: hidden;
}

.about-vm-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.about-vm-card__body {
  padding: 42px 40px;
  position: relative;
  overflow: hidden;
}

/* Decorative quote mark */
.about-vm-card__body::before {
  content: '01';
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 76px;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 24px;
  color: rgba(11, 86, 199, 0.10);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.about-vm-card--mission .about-vm-card__body::before {
  content: '02';
  color: rgba(5, 150, 105, 0.12);
}

.about-vm-card__body h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px;
  position: relative;
}

.about-vm-card__body p {
  font-size: 16px;
  line-height: 1.8;
  color: #111827;
  margin: 0;
  position: relative;
}

.about-vm-card--vision:hover {
  border-color: rgba(11, 86, 199, 0.45);
  background: rgba(11, 86, 199, 0.06);
}

.about-vm-card--mission:hover {
  border-color: rgba(5, 150, 105, 0.45);
  background: rgba(5, 150, 105, 0.08);
}

/* ──────────── TEAM AVATAR PLACEHOLDER ──────────── */
.about-team-avatar-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--blue-700, #0b56c7) 0%, #2f7ae2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 56px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: -0.02em;
  -webkit-user-select: none;
  user-select: none;
}

/* ──────────── TEAM ──────────── */
.about-team {
  padding: 100px 0;
  background: var(--cream, #f8fbff);
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.about-team-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.07);
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.about-team-card:hover {
  box-shadow: 0 24px 50px -20px rgba(16, 24, 40, 0.18);
}

.about-team-card:nth-child(3n+1):hover {
  border-color: rgba(11, 86, 199, 0.45);
  background: rgba(11, 86, 199, 0.05);
}

.about-team-card:nth-child(3n+2):hover {
  border-color: rgba(5, 150, 105, 0.45);
  background: rgba(5, 150, 105, 0.06);
}

.about-team-card:nth-child(3n+3):hover {
  border-color: rgba(124, 58, 237, 0.45);
  background: rgba(124, 58, 237, 0.05);
}

.about-team-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
}

.about-team-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.about-team-card__body {
  padding: 24px 26px 28px;
}

.about-team-card__body h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}

.about-team-card__role {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.about-team-card__body p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-500);
  margin: 0 0 14px;
}

.about-team-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-700);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.about-team-card__link:hover { color: var(--blue-600); }
.about-team-card__link i { transition: transform .2s; }
.about-team-card__link:hover i { transform: none; }

/* ──────────── CAMPUS ──────────── */
.about-campus {
  padding: 100px 0;
  background: #fff;
}

.about-campus-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.about-campus-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-500);
  margin: 0 0 24px;
}

.about-campus-location {
  background: var(--cream, #f8fbff);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-left: 4px solid var(--blue-700);
  border-radius: 12px;
  padding: 22px 24px;
  margin-top: 12px;
}

.about-campus-location h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-700);
  margin: 0 0 8px;
}

.about-campus-location p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-900);
  margin: 0;
  font-weight: 500;
}

.about-campus-media {
  display: block;
}

.about-campus-img {
  width: 100%;
  min-height: 560px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 30px 62px -30px rgba(16, 24, 40, 0.28);
}

/* ──────────── ABOUT GALLERY ──────────── */
.about-gallery {
  padding: 100px 0;
}

.about-gallery-lead {
  max-width: 720px;
  margin: 14px auto 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-500, #64748b);
}

.about-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.about-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  cursor: pointer;
  min-height: 210px;
}

.about-gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: filter .25s ease;
}

.about-gallery-item .sg-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 14px 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.78) 100%);
}

.about-gallery-item .sg-overlay__title {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.about-gallery-item .sg-overlay__desc {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1.4;
}

.about-gallery-item:hover img { filter: saturate(1.08) contrast(1.04); }

.about-gallery-item:nth-child(3n+1):hover {
  border-color: rgba(11, 86, 199, 0.55);
}

.about-gallery-item:nth-child(3n+2):hover {
  border-color: rgba(5, 150, 105, 0.55);
}

.about-gallery-item:nth-child(3n+3):hover {
  border-color: rgba(124, 58, 237, 0.55);
}

.about-gallery-actions {
  margin-top: 36px;
  text-align: center;
}

.about-gallery-empty {
  margin: 0;
  text-align: center;
  color: var(--ink-500, #64748b);
  font-size: 16px;
}

/* ──────────── CTA ──────────── */
.about-cta {
  padding: 110px 0;
  background: var(--cream, #f8fbff);
}

.about-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-cta-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-500);
  margin: 0 0 28px;
}

.about-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ──────────── RESPONSIVE ──────────── */
@media (max-width: 1024px) {
  .about-hero-grid,
  .about-intro-grid,
  .about-campus-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-vm-grid { grid-template-columns: 1fr; }
  .about-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .about-team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-hero-media img,
  .about-hero-placeholder { height: 380px; }
  .about-intro-media img,
  .about-intro-media:not(:has(img)),
  .about-campus-img { min-height: 420px; }
}

@media (max-width: 640px) {
  .about-hero { padding: 130px 0 60px; }
  .about-intro, .about-why, .about-vm, .about-team, .about-campus, .about-cta { padding: 70px 0; }
  .about-intro-actions .btn {
    width: 100%;
  }
  .about-why-grid { grid-template-columns: 1fr; }
  .about-gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .about-gallery-item,
  .about-gallery-item img { min-height: 180px; }
  .about-hero-media img,
  .about-hero-placeholder { height: 300px; border-radius: 18px; }
  .about-why-card { grid-template-columns: 1fr; }
  .about-why-card__media { height: 200px; }
  .about-team-grid { grid-template-columns: 1fr; }
  .about-vm-card__body { padding: 30px 26px; }
  .about-campus-img { min-height: 300px; }
}
