/* ============================================================
   ABOUT PAGE — component styles
   Extends main.css. Reuses the same design tokens (CSS variables),
   radii, shadows, typography and button system as the homepage.
============================================================ */

/* ------------------------------------------------------------
   PAGE HERO BANNER (with breadcrumb)
------------------------------------------------------------ */
.page-hero {
  position: relative;
  padding: 92px 0 96px;
  background:
    linear-gradient(120deg, rgba(5, 15, 48, 0.86) 0%, rgba(24, 73, 161, 0.72) 60%, rgba(11, 26, 66, 0.78) 100%),
    url("assets/images/hospital-drone.jpg") center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
  background-position: top;
}

.page-hero__decor {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.page-hero__decor::after {
  content: "";
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 2px dashed rgba(38, 166, 154, 0.35);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
}

.page-hero .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.page-hero__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: 1.12;
  letter-spacing: -0.8px;
  margin: 6px 0 14px;
  color: #fff;
}

.page-hero__title span {
  color: var(--teal-300);
}

.page-hero__lede {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.breadcrumb {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 500;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--t-fast);
}

.breadcrumb a:hover {
  color: var(--teal-300);
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}

.breadcrumb [aria-current] {
  color: var(--white);
  font-weight: 600;
}

/* ------------------------------------------------------------
   MISSION / VISION cards (used inside intro)
------------------------------------------------------------ */
.mv-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0 28px;
}

.mv-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.mv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--teal-500);
  transition: width var(--t-med);
}

.mv-card:hover {
  background: var(--white);
  transform: translateY(-4px);
  border-color: var(--teal-300);
  box-shadow: var(--shadow-md);
}

.mv-card:hover::before {
  width: 100%;
}

.mv-card__ic {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 14px;
  box-shadow: 0 6px 14px rgba(24, 73, 161, 0.30);
}

.mv-card h3 {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.mv-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-700);
  margin: 0;
}

/* ------------------------------------------------------------
   WHY CHOOSE US — feature card grid (reuses .dpitch look)
------------------------------------------------------------ */
.why {
  background: var(--white);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast), background var(--t-fast);
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--teal-500);
  transition: width var(--t-med);
}

.feature:hover {
  border-color: var(--teal-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  background: var(--white);
}

.feature:hover::before {
  width: 100%;
}

.feature__ic {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 21px;
  box-shadow: 0 6px 14px rgba(24, 73, 161, 0.30);
  transition: transform var(--t-fast);
}

.feature:hover .feature__ic {
  transform: scale(1.08) rotate(-4deg);
}

.feature h3 {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-900);
  margin: 4px 0 0;
}

.feature p {
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.6;
  margin: 0;
}

/* ------------------------------------------------------------
   DIRECTOR / CHAIRMAN MESSAGE
------------------------------------------------------------ */
.message {
  background: linear-gradient(180deg, var(--cream-50) 0%, #fdf9ef 100%);
  position: relative;
  overflow: hidden;
}

.message::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 92% 12%, rgba(38, 166, 154, 0.10), transparent 38%),
    radial-gradient(circle at 6% 88%, rgba(11, 26, 66, 0.06), transparent 40%);
  pointer-events: none;
}

.message > .container {
  position: relative;
  z-index: 1;
}

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

.message__visual {
  position: relative;
}

.message__photo {
  border-radius: var(--r-2xl);
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.message__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 26, 66, 0.45) 100%);
}

.message__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.message__name {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  background: var(--white);
  padding: 14px 18px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--teal-500);
}

.message__name strong {
  display: block;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.2;
}

.message__name span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 600;
  color: var(--teal-700);
  font-family: var(--f-display);
}

.message__quote {
  font-family: var(--f-display);
  font-size: 26px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: -0.4px;
  margin: 8px 0 18px;
  position: relative;
}

.message__quote .qmark {
  color: var(--teal-500);
  font-size: 40px;
  line-height: 0;
  vertical-align: -10px;
  margin-right: 4px;
}

.message__body p {
  font-size: var(--fs-body);
  color: var(--ink-700);
  line-height: 1.78;
  margin-bottom: 14px;
}

.message__body strong {
  color: var(--navy-900);
  font-weight: 600;
}

.message__sign {
  margin-top: 18px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 20px;
  color: var(--teal-700);
  font-weight: 600;
}

/* ------------------------------------------------------------
   CORE VALUES
------------------------------------------------------------ */
.values__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.value-card {
  text-align: center;
  padding: 30px 18px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-200);
}

.value-card__ic {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--teal-700);
  background: var(--teal-100);
  transition: background var(--t-fast), color var(--t-fast);
}

.value-card:hover .value-card__ic {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: var(--white);
}

.value-card h3 {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.value-card p {
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.55;
  margin: 0;
}

/* ------------------------------------------------------------
   FACILITIES GALLERY (image cards)
------------------------------------------------------------ */
.fac-gallery {
  background: linear-gradient(180deg, var(--navy-bg-tint) 0%, #f6f9fb 100%);
}

.fac-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fcard {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.fcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(11, 26, 66, 0.30) 60%, rgba(5, 15, 48, 0.88) 100%);
  z-index: 1;
}

.fcard:hover img {
  transform: scale(1.07);
}

.fcard__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px;
  color: var(--white);
}

.fcard__ic {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 17px;
  margin-bottom: 12px;
  transition: background var(--t-fast);
}

.fcard:hover .fcard__ic {
  background: var(--teal-500);
}

.fcard h3 {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 4px;
}

.fcard p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* ------------------------------------------------------------
   OUR JOURNEY / TIMELINE
------------------------------------------------------------ */
.timeline {
  background: var(--white);
}

.tline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding-left: 0;
}

.tline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--teal-300), var(--teal-100));
}

.tline__item {
  position: relative;
  width: 50%;
  padding: 0 44px 36px 0;
  text-align: right;
}

.tline__item:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 36px 44px;
  text-align: left;
}

.tline__item:last-child {
  padding-bottom: 0;
}

.tline__dot {
  position: absolute;
  top: 4px;
  right: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-500);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--teal-200);
  z-index: 2;
}

.tline__item:nth-child(even) .tline__dot {
  right: auto;
  left: -9px;
}

.tline__card {
  display: inline-block;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.tline__card:hover {
  background: var(--white);
  border-color: var(--teal-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.tline__year {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
  background: var(--teal-600);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
}

.tline__card h3 {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 5px;
}

.tline__card p {
  font-size: 13.5px;
  color: var(--ink-600);
  line-height: 1.6;
  margin: 0;
}

/* ------------------------------------------------------------
   ACCREDITATIONS & CERTIFICATIONS
------------------------------------------------------------ */
.accred {
  background: linear-gradient(180deg, var(--cream-50) 0%, #fdf9ef 100%);
}

.accred__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.accred-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 30px 20px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}

.accred-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-200);
}

.accred-card__badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  box-shadow: 0 8px 18px rgba(24, 73, 161, 0.28);
}

.accred-card strong {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
}

.accred-card span {
  font-size: 12.5px;
  color: var(--ink-600);
  line-height: 1.5;
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 1100px) {
  .page-hero {
    padding: 72px 0 76px;
  }

  .page-hero__title {
    font-size: 38px;
  }

  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .message__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 640px;
    margin: 0 auto;
  }

  .values__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fac-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .accred__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .page-hero__title {
    font-size: 32px;
  }

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

  .why__grid {
    grid-template-columns: 1fr;
  }

  .message__quote {
    font-size: 22px;
  }

  .values__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Timeline collapses to single left rail */
  .tline::before {
    left: 9px;
  }

  .tline__item,
  .tline__item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 30px 38px;
    text-align: left;
  }

  .tline__dot,
  .tline__item:nth-child(even) .tline__dot {
    left: 1px;
    right: auto;
  }
}

@media (max-width: 480px) {
  .page-hero__title {
    font-size: 27px;
  }

  .fac-gallery__grid {
    grid-template-columns: 1fr;
  }

  .values__grid {
    grid-template-columns: 1fr 1fr;
  }

  .accred__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Active nav link state for inner pages */
.header__nav a.is-current {
  color: var(--teal-600);
}

.header__nav a.is-current::after {
  transform: scaleX(1);
}
