/* ============================================================
   ABOUT PAGE  –  Custom Styles
   ============================================================
   Inherits design tokens from style.css (--kt-* variables).
   No Google-Fonts import needed – already loaded in functions.php.

   Structure
   1.  Token aliases  (map --ap-* → --kt-*)
   2.  Page wrapper + container + section skeleton
   3.  Utility classes  (gradient-text, cards, buttons, section-head)
   4.  Hero
   5.  About section
   6.  Statistics
   7.  Video
   8.  Vision / Mission / Values
   9.  Timeline  (Our Evolution)
   10. Work-Life Integration
   11. Testimonial / second video
   12. Responsive
   ============================================================ */

/* ── 1. TOKEN ALIASES (maps to existing --kt-* tokens) ───────── */
:root {
  --ap-bg:           var(--kt-bg);
  --ap-white:        var(--kt-white);
  --ap-grey:         var(--kt-body);
  --ap-light-grey:   var(--kt-grey);

  --ap-grad-sky:     var(--kt-grad-btn);
  --ap-grad-cross:   var(--kt-grad-cross);
  --ap-grad-green:   var(--kt-grad-cross);
  --ap-grad-h2:      var(--kt-grad-heading);

  --ap-card-bg:      var(--kt-grad-card);
  --ap-card-stroke:  var(--kt-border);

  --ap-ff-heading:   var(--kt-font-heading);
  --ap-ff-body:      var(--kt-font-body);
  --ap-ff-ui:        var(--kt-font-jakarta);

  --ap-max-w:        1240px;
  --ap-px:           100px;
  --ap-section-py:   var(--kt-section-py, 80px);
  --ap-gap-card:     20px;
}

/* ── 2. PAGE WRAPPER ─────────────────────────────────────────── */
.about-page {
  background-color: var(--ap-bg);
  color: var(--ap-white);
  font-family: var(--ap-ff-body);
}

.ap-container {
  max-width: var(--ap-max-w);
  margin-inline: auto;
  padding-inline: var(--ap-px);
  width: 100%;
}

.ap-section {
  padding-block: var(--ap-section-py);
}

/* ── 3. UTILITY CLASSES ──────────────────────────────────────── */

/* Gradient text */
.ap-grad-text {
  background: var(--ap-grad-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}
.ap-grad-text--sky {
  background: var(--ap-grad-sky);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}
.ap-grad-text--h2 {
  background: var(--ap-grad-h2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

/* Glass card */
.ap-card {
  background: var(--ap-card-bg);
  border-top: 1px solid var(--ap-card-stroke);
  border-radius: 16px;
}
.ap-card--r19 { border-radius: 19px; }
.ap-card--r10 { border-radius: 10px; }

/* Section heading block */
.ap-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  margin-bottom: 58px;
}
.ap-section-head__title {
  font-family: var(--ap-ff-heading);
  font-size: 36px;
  font-weight: 400;
  line-height: 48px;
  background: var(--ap-grad-h2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}
.ap-section-head__sub {
  font-family: var(--ap-ff-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 0.02em;
  color: var(--ap-grey);
  max-width: 660px;
  margin: 0;
}

/* Gradient-border button */
.ap-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--ap-ff-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0.02em;
  color: var(--ap-white);
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid transparent;
  background-image: linear-gradient(var(--ap-bg), var(--ap-bg)), var(--ap-grad-sky);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.ap-btn:hover { opacity: 0.8; color: var(--ap-white); }
.ap-btn img { width: 20px; height: 20px; }

/* ── 4. HERO SECTION ─────────────────────────────────────────── */
.about-hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero__ellipse {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.about-hero__ellipse--l {
  width: 136px;
  height: 136px;
  background: var(--ap-grad-sky);
  filter: blur(232px);
  top: 277px;
  left: -15px;
}
.about-hero__ellipse--r {
  width: 188px;
  height: 192px;
  background: var(--ap-grad-sky);
  filter: blur(232px);
  top: 240px;
  right: -15px;
}

.about-hero__bg-asset {
  position: absolute;
  top: 134px;
  right: 10%;
  width: 373px;
  height: 349px;
  opacity: 0.2;
  pointer-events: none;
  object-fit: contain;
}

.about-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding: 100px var(--ap-px) 120px;
  max-width: calc(var(--ap-max-w) + var(--ap-px) * 2);
  width: 100%;
}

.about-hero__icon {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

.about-hero__h1 {
  font-family: var(--ap-ff-heading);
  font-size: 44px;
  font-weight: 700;
  line-height: 68px;
  text-align: center;
  color: var(--ap-white);
  max-width: 1100px;
  margin: 0;
}

/* ── 5. ABOUT SECTION ────────────────────────────────────────── */
.about-about__grid {
  display: grid;
  grid-template-columns: 503fr 715fr;
  gap: var(--ap-gap-card);
  align-items: start;
}

.about-about__image {
  width: 100%;
  aspect-ratio: 503 / 381;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

.about-about__body {
  font-family: var(--ap-ff-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0.02em;
  color: var(--ap-grey);
}
.about-about__body p { margin: 0 0 20px; }
.about-about__body p:last-child { margin-bottom: 0; }
.about-about__body strong { font-weight: 700; }

/* ── 6. STATISTICS SECTION ───────────────────────────────────── */
.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ap-gap-card);
}

.about-stats__card {
  padding: 30px 31px;
  border-radius: 19px;
  background: var(--ap-card-bg);
  border-top: 1px solid var(--ap-card-stroke);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.about-stats__card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-stats__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.about-stats__label {
  font-family: var(--ap-ff-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--ap-light-grey);
  margin: 0;
}

.about-stats__number {
  font-family: var(--ap-ff-body);
  font-size: 66px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  background: var(--ap-grad-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

/* ── 7. VIDEO SECTION ────────────────────────────────────────── */
.about-video {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.about-video__media {
  width: 100%;
  height: auto;
  display: block;
  max-height: 628px;
  object-fit: cover;
}

.about-video__overlay-a {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

.about-video__overlay-b {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}

.about-video__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 2;
  line-height: 0;
}
.about-video__play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}
.about-video__play-btn img {
  width: 96px;
  height: 96px;
}

/* ── 8. VISION / MISSION / VALUES ────────────────────────────── */
.about-vmv__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 21px;
}

.about-vmv__card {
  padding: 32px 28px;
  background: var(--ap-card-bg);
  border-top: 1px solid var(--ap-card-stroke);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.about-vmv__card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.about-vmv__icon-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-vmv__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.about-vmv__card-title {
  font-family: var(--ap-ff-heading);
  font-size: 28px;
  font-weight: 400;
  line-height: 36px;
  text-align: center;
  background: var(--ap-grad-sky);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.about-vmv__card-text {
  font-family: var(--ap-ff-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ap-grey);
  text-align: center;
  margin: 0;
}

/* ── 9. TIMELINE – OUR EVOLUTION ─────────────────────────────── */
.about-timeline__track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 80px;
}

.about-timeline__line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: #82dbf7;
  transform: translateY(-50%);
  z-index: 0;
}

.about-timeline__item {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Odd  → label above the node */
.about-timeline__item:nth-child(odd)  .about-timeline__label { order: -1; margin-bottom: 20px; }
/* Even → label below the node */
.about-timeline__item:nth-child(even) .about-timeline__label { order:  1; margin-top:    20px; }

/* Rotated-square diamond node */
.about-timeline__node {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  z-index: 2;
}
.about-timeline__node::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ap-grad-green);
  border-radius: 4px;
  transform: rotate(45deg);
  border: 2px solid rgba(255,255,255,.15);
}

.about-timeline__label {
  text-align: center;
  padding-inline: 4px;
}

.about-timeline__date {
  display: block;
  font-family: var(--ap-ff-heading);
  font-size: 17px;
  font-weight: 400;
  line-height: 26px;
  background: var(--ap-grad-sky);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.about-timeline__event {
  display: block;
  font-family: var(--ap-ff-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ap-white);
  margin-top: 4px;
}

/* ── 10. WORK-LIFE INTEGRATION ───────────────────────────────── */
.about-worklife__benefits {
  display: flex;
  justify-content: center;
  gap: 21px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.about-worklife__benefit {
  padding: 25px 48px;
  background: var(--ap-card-bg);
  border-top: 1px solid var(--ap-card-stroke);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.about-worklife__benefit-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.about-worklife__benefit-title {
  font-family: var(--ap-ff-heading);
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
  background: var(--ap-grad-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  white-space: nowrap;
}

/* Join Team CTA */
.about-worklife__join {
  padding: 48px 40px;
  background: var(--ap-card-bg);
  border-top: 1px solid var(--ap-card-stroke);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  overflow: hidden;
}

.about-worklife__avatars {
  display: flex;
  align-items: center;
}
.about-worklife__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ap-grad-sky);
  border: 2px solid var(--ap-bg);
  margin-left: -14px;
  flex-shrink: 0;
}
.about-worklife__avatar:first-child { margin-left: 0; }

.about-worklife__join-title {
  font-family: var(--ap-ff-heading);
  font-size: 32px;
  font-weight: 400;
  line-height: 40px;
  background: var(--ap-grad-h2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.about-worklife__join-desc {
  font-family: var(--ap-ff-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--ap-white);
  max-width: 520px;
  margin: 0;
}

/* ── 11. TESTIMONIAL / FOUNDER MESSAGE ───────────────────────── */
.about-testimonial__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-testimonial__video {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
}

.about-testimonial__thumb {
  width: 100%;
  height: auto;
  display: block;
}

.about-testimonial__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.2) 0%, rgba(0,0,0,.5) 100%);
  pointer-events: none;
}

.about-testimonial__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 2;
  line-height: 0;
}
.about-testimonial__play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}
.about-testimonial__play-btn img { width: 72px; height: 72px; }

.about-testimonial__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-testimonial__msg-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.about-testimonial__label {
  font-family: var(--ap-ff-heading);
  font-size: 28px;
  font-weight: 400;
  line-height: 36px;
  background: var(--ap-grad-sky);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.about-testimonial__quote {
  font-family: var(--ap-ff-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0.02em;
  color: var(--ap-grey);
  margin: 0;
  padding: 0;
  border: none;
}

.about-testimonial__author {
  font-family: var(--ap-ff-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ap-grey);
  margin: 0;
}

/* ── 12. RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --ap-px:           48px;
    --ap-section-py:   60px;
  }

  .about-hero__h1 { font-size: 36px; line-height: 52px; }

  .about-about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-about__image { max-width: 503px; margin-inline: auto; }

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

  .about-vmv__row { grid-template-columns: repeat(2, 1fr); }
  .about-vmv__row .about-vmv__card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin-inline: auto;
  }

  .about-timeline__track {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-block: 40px;
  }
  .about-timeline__line {
    top: 0; bottom: 0; left: 13px; right: auto;
    width: 3px; height: auto; transform: none;
  }
  .about-timeline__item {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding-block: 16px;
  }
  .about-timeline__item:nth-child(odd)  .about-timeline__label,
  .about-timeline__item:nth-child(even) .about-timeline__label {
    order: 1; margin: 0; text-align: left;
  }
  .about-timeline__date { white-space: normal; }

  .about-testimonial__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 767px) {
  :root {
    --ap-px:           20px;
    --ap-section-py:   48px;
  }

  .about-hero { min-height: auto; }
  .about-hero__inner { padding: 64px var(--ap-px) 80px; }
  .about-hero__icon  { width: 100px; height: 100px; }
  .about-hero__h1    { font-size: 26px; line-height: 1.4; }

  .ap-section-head__title { font-size: 26px; line-height: 1.3; }

  .about-stats__grid  { grid-template-columns: 1fr; }
  .about-stats__number { font-size: 52px; }

  .about-vmv__row { grid-template-columns: 1fr; }
  .about-vmv__row .about-vmv__card:last-child { max-width: 100%; }

  .about-worklife__benefits { gap: 14px; }
  .about-worklife__benefit  { padding: 20px 28px; min-width: 140px; }
  .about-worklife__benefit-title { font-size: 18px; }
  .about-worklife__join-title    { font-size: 24px; line-height: 1.3; }
}
