/*
   About Page - Quanta Classes
   UI-only redesign. Page text stays in about.php.
*/

.about-main {
  max-width: min(1280px, calc(100% - 32px)) !important;
  padding-top: clamp(104px, 12vw, 150px);
}

.about-main .page-section {
  margin-bottom: clamp(34px, 5vw, 64px);
}

.about-main .section-heading {
  font-size: clamp(1.8rem, 4vw, 3.15rem);
  line-height: .98;
  letter-spacing: 0;
  color: var(--q-navy);
  margin: 0 0 20px;
}

.about-hero {
  min-height: 0;
  margin: 0 auto clamp(28px, 5vw, 58px);
  padding: clamp(34px, 5.4vw, 62px) clamp(26px, 5vw, 58px);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(135deg, rgba(17, 23, 81, .98) 0%, rgba(23, 31, 99, .96) 58%, rgba(56, 36, 101, .96) 100%);
  box-shadow: 0 26px 70px rgba(18, 22, 68, .22);
}

.about-hero::before,
.about-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.about-hero::before {
  width: 340px;
  height: 340px;
  right: -92px;
  top: -92px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 91, 124, .38), transparent 66%);
}

.about-hero::after {
  inset: auto 34px 30px auto;
  width: min(36vw, 420px);
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  opacity: .5;
}

.about-hero .page-kicker,
.about-hero .page-title,
.about-hero .page-lead,
.about-hero .page-actions {
  position: relative;
  z-index: 1;
}

.about-hero .page-kicker {
  display: inline-flex;
  width: fit-content;
  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
}

.about-hero .page-title {
  max-width: 100%;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  letter-spacing: 0;
  line-height: 1;
  margin-top: 18px;
}

.about-hero .page-lead {
  max-width: 940px;
  color: rgba(255,255,255,.7);
  font-size: clamp(.9rem, 1.24vw, 1.02rem);
  line-height: 1.62;
}

.about-hero .page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-hero .btn-primary,
.about-hero .btn-outline {
  min-height: 46px;
  align-items: center;
}

.about-founder-section {
  margin-bottom: clamp(34px, 5vw, 64px);
}

.about-founder-inner {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(22px, 4vw, 48px);
  align-items: stretch;
  padding: clamp(20px, 3.2vw, 34px);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.58)),
    radial-gradient(circle at 22% 16%, rgba(228,91,124,.14), transparent 34%),
    radial-gradient(circle at 96% 92%, rgba(53,40,217,.14), transparent 36%);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 24px 70px rgba(18, 22, 68, .12);
  backdrop-filter: blur(14px);
}

.about-founder-photo {
  min-height: 390px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 78%, rgba(255,255,255,.46), transparent 35%),
    linear-gradient(145deg, var(--q-navy-d), var(--q-navy) 58%, #35246f);
}

.about-founder-photo::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 78%;
  aspect-ratio: 1;
  transform: translateX(-50%) translateY(32%);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(228,91,124,.38), rgba(53,40,217,.42));
  filter: blur(.2px);
}

.about-founder-photo::after {
  content: "QUANTA";
  position: absolute;
  left: 24px;
  top: 22px;
  color: rgba(255,255,255,.1);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: .9;
  font-weight: 900;
  letter-spacing: .08em;
}

.about-founder-photo img {
  width: min(72%, 255px);
  height: auto;
  max-height: 380px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.28));
}

.about-founder-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4px, 1.6vw, 16px) clamp(2px, 1.6vw, 14px);
}

.about-founder-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  color: var(--q-accent);
  background: rgba(228,91,124,.12);
  border: 1px solid rgba(228,91,124,.24);
  border-radius: 999px;
  padding: 7px 13px;
  margin-bottom: 12px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.about-founder-name {
  margin: 0 0 8px;
  color: var(--q-navy);
  font-size: clamp(2.05rem, 4.5vw, 3.8rem);
  line-height: .96;
  letter-spacing: 0;
  font-weight: 900;
}

.about-founder-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--q-muted);
  font-size: .78rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.about-founder-location svg {
  color: var(--q-accent);
  flex: 0 0 auto;
}

.about-founder-bio {
  max-width: 620px;
  margin: 0 0 10px;
  color: #46566f;
  font-size: clamp(.85rem, 1.05vw, .95rem);
  line-height: 1.66;
}

.about-founder-bio:last-of-type {
  margin-bottom: 18px;
}

.about-founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.about-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--q-navy);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(20,27,79,.1);
  box-shadow: 0 8px 22px rgba(18,22,68,.06);
  font-size: .72rem;
  font-weight: 800;
}

.about-founder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  position: relative;
}

.about-timeline::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--q-navy), var(--q-accent));
  opacity: .18;
}

.about-tl-item {
  position: relative;
  padding-top: 56px;
}

.about-tl-dot {
  position: absolute;
  left: 22px;
  top: 19px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  z-index: 1;
  border: 5px solid #fff;
  box-shadow: 0 10px 26px rgba(18,22,68,.16);
}

.about-tl-dot--start {
  background: var(--q-navy);
}

.about-tl-dot--now {
  background: var(--q-accent);
}

.about-tl-content {
  height: 100%;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.94);
  box-shadow: 0 18px 46px rgba(18,22,68,.1);
  backdrop-filter: blur(14px);
}

.about-tl-year {
  display: inline-flex;
  color: var(--q-accent);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.about-tl-title {
  color: var(--q-navy);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.15;
  margin: 0 0 10px;
  font-weight: 900;
}

.about-tl-desc {
  margin: 0;
  color: var(--q-muted);
  font-size: .95rem;
  line-height: 1.7;
}

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

.about-offer-card {
  min-height: 230px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.7));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 18px 46px rgba(18,22,68,.09);
  backdrop-filter: blur(14px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.about-offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(228,91,124,.2);
  box-shadow: 0 24px 58px rgba(18,22,68,.14);
}

.about-offer-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 18px;
  color: var(--q-navy);
  background: linear-gradient(135deg, rgba(53,40,217,.1), rgba(228,91,124,.14));
  font-size: 1.55rem;
  line-height: 1;
}

.about-offer-title {
  color: var(--q-navy);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.16;
  margin: 0 0 9px;
  font-weight: 900;
}

.about-offer-desc {
  color: var(--q-muted);
  font-size: .92rem;
  line-height: 1.68;
  margin: 0;
}

.vm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vm-card {
  min-height: 250px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 54px rgba(18,22,68,.13);
}

.vm-card::before {
  content: "";
  position: absolute;
  inset: auto -18% -28% auto;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}

.vm-card--vision {
  background: linear-gradient(135deg, #0d1548, #172066 65%, #23318b);
  border: 1px solid rgba(255,255,255,.1);
}

.vm-card--mission {
  background: linear-gradient(135deg, #28145b, #4b1b77 58%, #d94776);
  border: 1px solid rgba(255,255,255,.14);
}

.vm-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 18px;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
}

.vm-title {
  position: relative;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1;
  margin: 0 0 14px;
  font-weight: 900;
}

.vm-desc {
  position: relative;
  color: rgba(255,255,255,.74);
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  line-height: 1.72;
  margin: 0;
}

.about-contact-strip {
  margin-bottom: clamp(32px, 5vw, 56px);
  padding: clamp(24px, 4vw, 38px);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 82% 18%, rgba(228,91,124,.22), transparent 34%),
    linear-gradient(135deg, var(--q-navy-d), var(--q-navy));
  box-shadow: 0 22px 60px rgba(18,22,68,.17);
}

.about-contact-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.about-contact-strip-title {
  color: #fff;
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1;
  font-weight: 900;
}

.about-contact-strip-sub {
  color: rgba(255,255,255,.64);
  margin: 0 0 16px;
  font-size: .95rem;
}

.about-contact-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,.84);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 700;
}

.about-contact-chip:hover {
  color: #fff;
  background: rgba(255,255,255,.16);
}

.about-enquire-btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(105deg, var(--q-accent), var(--q-accent2));
  box-shadow: 0 14px 34px rgba(228,91,124,.34);
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.about-enquire-btn:hover {
  transform: translateY(-2px);
}

@media (min-width: 981px) {
  .about-hero .page-title {
    white-space: nowrap;
  }
}

@media (max-width: 980px) {
  .about-main {
    max-width: min(100% - 22px, 920px) !important;
  }

  .about-founder-inner {
    grid-template-columns: 1fr;
  }

  .about-founder-photo {
    min-height: 360px;
  }

  .about-founder-photo img {
    width: min(60%, 250px);
  }

  .about-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .about-main {
    max-width: min(100% - 16px, 640px) !important;
    padding-top: 92px;
  }

  .about-hero,
  .about-founder-inner,
  .about-contact-strip {
    border-radius: 24px;
  }

  .about-hero {
    padding: 30px 20px;
  }

  .about-hero .page-title {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .about-hero .page-lead {
    font-size: .86rem;
    line-height: 1.58;
  }

  .about-founder-photo {
    min-height: 280px;
  }

  .about-founder-photo img {
    width: min(64%, 190px);
  }

  .about-founder-name {
    font-size: clamp(1.95rem, 9vw, 2.8rem);
  }

  .about-founder-bio {
    font-size: .86rem;
    line-height: 1.62;
  }

  .about-timeline,
  .vm-grid {
    grid-template-columns: 1fr;
  }

  .about-timeline::before {
    left: 28px;
    right: auto;
    top: 34px;
    bottom: 34px;
    width: 2px;
    height: auto;
  }

  .about-tl-item {
    padding-top: 0;
    padding-left: 56px;
  }

  .about-tl-dot {
    left: 18px;
    top: 24px;
  }

  .about-contact-strip-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-enquire-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .about-offer-grid {
    grid-template-columns: 1fr;
  }

  .about-founder-inner {
    padding: 14px;
  }

  .about-founder-content {
    padding: 10px 4px 6px;
  }

  .about-founder-tags {
    gap: 7px;
  }

  .about-tag {
    font-size: .74rem;
    padding: 6px 10px;
  }
}
