/* =============================================================
   E-Academy — About Us (app/Views/site/about.php)

   Only what the About page adds. Everything it shares with the home
   page — the page head, section heads, pill buttons, the instructor
   card, the slider, the arrows and dots — is the home page's own CSS
   in learnhub.css / ea-site.css, used as is. Every class here starts
   with `abt-`, so nothing in this file can reach another page.

   Colours come from the same --edu-* tokens the home page is painted
   with, so the academy's palette (Themes Option) and the light/dark
   scheme carry through without a rule of their own.

   Loaded from the view's `head` section, after learnhub.css and
   ea-site.css, so equal specificity wins on source order. RTL: asset()
   serves the mirrored about.rtl.css, written by RtlStylesheet.
   ============================================================= */

/* -------------------------------------------------------------
   GROUNDS
   Set per section rather than by the site-wide nth-of-type
   alternation, so Story and Mission share one white ground the way
   the design has them, and the two feature bands sit on the soft
   blue-grey.
   ------------------------------------------------------------- */
section.eac-section.abt-sec--plain {
  background: var(--bg-2);
}
section.eac-section.abt-sec--soft {
  background: var(--bg);
}
/* Mission follows Story on the same ground: the Story section's own
   bottom padding is the whole gap between them. */
section.eac-section.abt-sec--flush {
  padding-top: 0;
}
/* Likewise the closing call to action after a white band. */
section.eac-section.abt-sec--plain + .abt-sec--cta {
  padding-top: 0;
}

.abt-hl {
  color: var(--edu-accent);
}

/* -------------------------------------------------------------
   PAGE HEAD — the shared .eac-pagehead, with the section heads'
   pill eyebrow and a heading sized for an inner page
   ------------------------------------------------------------- */
.abt-hero .eac-badge-gradient {
  padding: 8px 22px;
  font-size: 13px;
  font-weight: var(--fw-semiBold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--edu-accent-soft);
}
.abt-hero .eac-badge-gradient::before {
  display: none;
}
.abt-hero .eac-gradient-500 {
  background: none;
  color: var(--edu-accent);
  -webkit-text-fill-color: var(--edu-accent);
}
.abt-hero h1 {
  max-width: 820px;
  margin: 22px auto 0;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.18;
  letter-spacing: -1px;
  font-weight: var(--fw-bold);
}
.abt-hero p {
  max-width: 640px;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--muted);
}
.abt-hero .eac-crumb {
  margin-top: 26px;
}

/* -------------------------------------------------------------
   TWO-COLUMN BANDS
   ------------------------------------------------------------- */
.abt-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

/* The copy column wears .edu-about__copy, the home page's own
   left-aligned eyebrow + heading + paragraph treatment. */
.abt-copy .eac-title {
  margin-bottom: 18px;
}
.abt-prose p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--muted);
}
.abt-btn {
  gap: 10px;
  margin-top: 14px;
}
.abt-btn .ic {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease-out);
}
.abt-btn:hover .ic {
  transform: translateX(3px);
}

/* photo frames — the rounded, softly shadowed card the design uses */
.abt-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
}
.abt-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the small information cards (.edu-float gives the card surface) */
.abt-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 12px;
  white-space: nowrap;
  animation: eduFloat 8s ease-in-out infinite;
}
.abt-note__ico {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 20px;
  color: var(--edu-accent);
  background: var(--edu-accent-soft);
}
.abt-note .edu-tx b {
  font-size: 15px;
}
.abt-note .edu-tx i {
  font-size: 12.5px;
}

/* -------------------------------------------------------------
   OUR STORY — one photo, two notes, soft shape, arc
   ------------------------------------------------------------- */
.abt-story-media {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline-start: auto;
  padding: 24px 0;
}
.abt-story-media__shape {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 18%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 46% 54% 58% 42% / 44% 46% 54% 56%;
  background: linear-gradient(150deg, rgba(var(--primary-rgb), 0.3), rgba(var(--primary-rgb), 0.1));
  display:none;
}
.abt-story-media__arc {
  position: absolute;
  z-index: 0;
  left: -3%;
  top: 2%;
  width: 64px;
  fill: none;
  stroke: var(--edu-accent);
  stroke-width: 2.5;
  stroke-dasharray: 6 8;
  stroke-linecap: round;
  opacity: 0.7;
  display: none;
}

.abt-note--top {
  top: 14%;
  right: 0;
}
.abt-note--mid {
  top: 38%;
  right: 5%;
  animation-delay: -4s;
}

/* -------------------------------------------------------------
   IMPACT FIGURES — the home strip's figures on a light card
   ------------------------------------------------------------- */
.abt-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 84px;
  padding: 38px 20px;
  border-radius: 20px;
  background: var(--edu-card);
  border: 1px solid var(--edu-line);
  box-shadow: 0 26px 54px -38px rgba(var(--edu-navy-rgb), 0.4);
}
.abt-stats[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.abt-stats[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.abt-stats[data-count="1"] { grid-template-columns: minmax(0, 1fr); }

.abt-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 16px;
  text-align: center;
}
.abt-stat + .abt-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: var(--edu-line);
}
.abt-stat__ico {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 24px;
  color: var(--edu-accent);
  background: var(--edu-accent-soft);
  transition:
    transform 0.35s var(--ease-premium),
    background 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}
.abt-stat:hover .abt-stat__ico {
  transform: translateY(-4px);
  background: var(--edu-accent);
  color: #ffffff;
}
.abt-stat b {
  font-family: var(--font-primary);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--edu-ink);
}
.abt-stat b small {
  margin-left: 2px;
  font-size: 0.55em;
  font-weight: var(--fw-semiBold);
  letter-spacing: 0;
  color: var(--muted);
}
.abt-stat p {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* -------------------------------------------------------------
   OUR MISSION — photograph on two warm shapes, a lead line and
   four points in two columns with a hairline between them
   ------------------------------------------------------------- */
.abt-split--mission {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.abt-mission-media {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 18px 0 44px;
}
/* the solid orange blob the photograph sits on, left */

/* and the paler tab peeking out on the right */

.abt-frame--mission {
  margin-left: 6%;
}
.abt-note--foot {
  left: 0;
  bottom: 14px;
  padding: 12px 22px 12px 12px;
  animation-delay: -2s;
}
.abt-note__ico--solid {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 19px;
  color: #ffffff;
  background: var(--edu-accent);
  box-shadow: 0 10px 20px -10px rgba(var(--primary-rgb), 0.9);
}
.abt-note--foot .edu-tx b {
  font-size: 15px;
  font-weight: var(--fw-semiBold);
  line-height: 1.35;
}

/* the eyebrow here is the outlined pill with its sparkle */
.abt-mission .eac-badge-gradient {
  gap: 8px;
  padding: 7px 18px;
  border: 1px solid rgba(var(--primary-rgb), 0.45);
  background: rgba(var(--primary-rgb), 0.06);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 14px;
}
.abt-mission .eac-badge-gradient .ic {
  display: inline-block;
  font-size: 11px;
  color: var(--edu-accent);
}
.abt-mission .eac-title {
  margin-bottom: 14px;
}
/* beats .edu-about__copy > p, whose 16px bottom margin crowds the points */
.abt-mission > .abt-mission__lead {
  max-width: 540px;
  margin: 0 0 36px;
}

.abt-points {
  --gap-x: 52px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px var(--gap-x);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* the hairline between the two columns */
.abt-points::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--edu-line);
}
/* a single point needs neither the second column nor the line */
.abt-points[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}
.abt-points[data-count="1"]::before {
  display: none;
}
.abt-points__item {
  --c: var(--edu-accent);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.abt-points__item--1 { --c: #4a9df8; }
.abt-points__item--2 { --c: var(--edu-accent); }
.abt-points__item--3 { --c: #34b27b; }
.abt-points__item--4 { --c: #a56ff0; }

.abt-points__ico {
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 24px;
  color: var(--c);
  background: rgba(var(--surface-rgb), 0.07);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent);
  transition:
    transform 0.35s var(--ease-premium),
    background 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}
.abt-points__item:hover .abt-points__ico {
  transform: translateY(-3px);
  color: #ffffff;
  background: var(--c);
}
.abt-points b {
  display: block;
  margin: 4px 0 4px;
  font-size: 16px;
  font-weight: var(--fw-semiBold);
  color: var(--edu-ink);
}

/* -------------------------------------------------------------
   WHAT MAKES US DIFFERENT — five columns and hairlines, no boxes.
   The icon tints are the home page's step colours.
   ------------------------------------------------------------- */
.abt-reasons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
/* fewer cards when the academy clears some (data-count is how many are
   shown): one column each, narrower rows kept to the middle */
.abt-reasons[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.abt-reasons[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; margin-inline: auto; }
.abt-reasons[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin-inline: auto; }
.abt-reasons[data-count="1"] { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin-inline: auto; }
.abt-reason {
  --c: var(--edu-accent);
  position: relative;
  padding: 8px 22px;
  text-align: center;
}
.abt-reason--2 { --c: #4a9df8; }
.abt-reason--3 { --c: #5fc25f; }
.abt-reason--4 { --c: #a56ff0; }
.abt-reason--5 { --c: #ff7a59; }

.abt-reason + .abt-reason::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: var(--edu-line);
}
.abt-reason__ico {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
  color: var(--c);
  background: rgba(var(--surface-rgb), 0.07);
  background: color-mix(in srgb, var(--c) 13%, transparent);
  transition:
    transform 0.35s var(--ease-premium),
    background 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}
.abt-reason:hover .abt-reason__ico {
  transform: translateY(-5px);
  color: #ffffff;
  background: var(--c);
  box-shadow: 0 16px 28px -14px var(--c);
}
.abt-reason h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: var(--fw-bold);
  color: var(--edu-ink);
}
.abt-reason p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* -------------------------------------------------------------
   INSTRUCTORS — the card and grid are the shared .eac-team ones
   ------------------------------------------------------------- */
.abt-more {
  text-align: center;
}

/* -------------------------------------------------------------
   CALL TO ACTION — the page head's cream and doodles, as a card
   ------------------------------------------------------------- */
.abt-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 58px 40px;
  border-radius: 26px;
  text-align: center;
  background: var(--edu-hero-bg);
  border: 1px solid rgba(var(--primary-rgb), 0.14);
}
.abt-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: var(--edu-doodle-op);
  background-color: var(--primary);
  -webkit-mask-image: var(--doodle-art);
  mask-image: var(--doodle-art);
  -webkit-mask-size: 320px 320px;
  mask-size: 320px 320px;
}
.abt-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -70px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
}
.abt-cta h2 {
  max-width: 760px;
  margin: 0 auto 14px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.26;
  letter-spacing: -0.7px;
  font-weight: var(--fw-bold);
  color: var(--edu-ink);
}
.abt-cta p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}
.abt-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}
/* the outline button at the solid one's height */
.abt-cta__actions .eac-btn-ghost,
.abt-more .eac-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 34px;
  font-size: 16px;
}

/* -------------------------------------------------------------
   RESPONSIVE — desktop ≥ 992 · tablet 576–991 · mobile ≤ 575
   ------------------------------------------------------------- */
@media (max-width: 1199px) {
  .abt-split {
    gap: 48px;
  }
  /* five cards: three over two, the two centred — six tracks, each item
     spanning two */
  .abt-reasons[data-count="5"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 44px;
  }
  .abt-reasons[data-count="5"] .abt-reason {
    grid-column: span 2;
  }
  .abt-reasons[data-count="5"] .abt-reason:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .abt-reasons[data-count="5"] .abt-reason:nth-child(4)::before {
    display: none;
  }
}

@media (max-width: 991px) {
  /* four cards: two over two */
  .abt-reasons[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
  .abt-reasons[data-count="4"] .abt-reason:nth-child(odd)::before {
    display: none;
  }
}

@media (max-width: 991px) {
  .abt-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }
  .abt-story-media,
  .abt-mission-media {
    margin-inline: auto;
  }
  .abt-stats {
    margin-top: 64px;
  }
}

@media (max-width: 767px) {
  .abt-stats,
  .abt-stats[data-count="3"],
  .abt-stats[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
    padding: 32px 12px;
  }
  .abt-stat:nth-child(odd)::before {
    display: none;
  }

  /* [data-count] on every rule from here down: the count-specific rules
     above are that specific, and these have to win over them */
  .abt-reasons[data-count] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
  .abt-reasons[data-count="1"] {
    grid-template-columns: minmax(0, 1fr);
  }
  .abt-reasons[data-count] .abt-reason,
  .abt-reasons[data-count] .abt-reason:nth-child(4) {
    grid-column: auto;
  }
  .abt-reasons[data-count] .abt-reason:nth-child(odd)::before {
    display: none;
  }
  .abt-reasons[data-count] .abt-reason:nth-child(4)::before {
    display: block;
  }
  .abt-reasons[data-count] .abt-reason:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 320px;
    margin-inline: auto;
  }
}

@media (max-width: 575px) {
  .abt-br {
    display: none;
  }
  .abt-hero p {
    font-size: 15.5px;
  }

  .abt-story-media {
    padding-bottom: 16px;
  }
  .abt-frame--main {
    width: 78%;
    margin-left: 4%;
  }
  .abt-note {
    padding: 9px 14px 9px 9px;
    gap: 10px;
  }
  .abt-note__ico {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .abt-note .edu-tx b {
    font-size: 13.5px;
  }
  .abt-note .edu-tx i {
    font-size: 11.5px;
  }
  .abt-note--mid {
    display: none;
  }

  .abt-points {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }
  .abt-points::before {
    display: none;
  }
  .abt-points__ico {
    width: 50px;
    height: 50px;
    font-size: 21px;
  }

  .abt-reasons[data-count] {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 34px;
  }
  .abt-reasons[data-count] .abt-reason::before,
  .abt-reasons[data-count] .abt-reason:nth-child(4)::before {
    display: none;
  }
  .abt-reasons[data-count] .abt-reason:last-child:nth-child(odd) {
    max-width: none;
  }

  .abt-cta {
    padding: 44px 22px;
    border-radius: 20px;
  }
  .abt-cta__actions > a {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .abt-note {
    animation: none;
  }
  .abt-stat__ico,
  .abt-points__ico,
  .abt-reason__ico,
  .abt-btn .ic {
    transition: none;
  }
}
