/* About Us Page — css/about.css */
/* Depends on global.css for tokens, dark-particles, cta-btn */

/* global.css sets `html, body { overflow-x: hidden }`, which makes body a */
html, body { overflow-x: clip; }

:root {
  --clr-divider: rgba(0, 0, 0, 0.04);
}

/* Note: the `em { font-style: normal }` reset lives in global.css's */

/* HERO — drawn by the shared hero (new/inc/hero.php + new/css/hero.css: */
.tf-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* .client-section / .client-section-header (+ 599px media) now live in */

/* OUR STORY (white section, centered text) */
.about-story { background: var(--bg); padding: var(--space-section) var(--site-pad-x); }
.about-story-inner { max-width: var(--site-max-w); margin: 0 auto; }

.about-story-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.about-story-content .about-lead {
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--fg-body);
  line-height: 1.75;
  margin-bottom: 0;
}

/* Milestones — a single row (side by side), 4 across */
.about-milestone-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.about-milestone-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
/* Icon tile — same treatment as the main-page software section (.hw-icon-svg) */
.about-milestone-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.06), rgba(var(--accent-deep-rgb), 0.04));
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 0 12px rgba(var(--accent-rgb), 0.08);
  display: flex; align-items: center; justify-content: center;
}
.about-milestone-icon svg { width: 24px; height: 24px; }
.about-milestone-text { display: flex; flex-direction: column; gap: 4px; }
.about-milestone-item h3 {
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 16px; font-weight: 700; color: var(--fg-primary); margin: 0;
}
.about-milestone-item p {
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: 13.5px; color: var(--fg-muted); line-height: 1.6; margin: 0;
}

/* OUR JOURNEY — responsive flexbox milestone timeline. Center */
.about-journey { background: var(--bg); padding: var(--space-section) var(--site-pad-x); border-top: 1px solid var(--clr-divider); }
.about-journey-inner { max-width: var(--site-max-w); margin: 0 auto; text-align: center; }

.about-journey-timeline {
  position: relative;
  max-width: 980px;
  margin: 64px auto 0;
}
.about-journey-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(var(--accent-deep-rgb), 0) 0%, rgba(var(--accent-deep-rgb), 0.35) 8%, rgba(168,85,247,0.35) 92%, rgba(168,85,247,0) 100%);
  transform: translateX(-50%);
}

.aj-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 28px 0;
}
.aj-row:first-child { padding-top: 0; }
.aj-row:last-child { padding-bottom: 0; }
.aj-row--flip { flex-direction: row-reverse; }

/* Scroll reveal — JS (below, in the page's inline script block) adds */
.aj-row {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.aj-row.aj-in-view { opacity: 1; transform: translateY(0); }
.aj-row:nth-child(2) { transition-delay: 0.05s; }
.aj-row:nth-child(3) { transition-delay: 0.1s; }
.aj-row:nth-child(4) { transition-delay: 0.15s; }
.aj-row:nth-child(5) { transition-delay: 0.2s; }
.aj-row:nth-child(6) { transition-delay: 0.25s; }
.aj-row:nth-child(7) { transition-delay: 0.3s; }

.aj-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text-gradient);
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18), 0 4px 14px rgba(var(--accent-rgb), 0.35);
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.25s;
}
.aj-row.aj-in-view .aj-dot { transform: translate(-50%, -50%) scale(1); }

.aj-col { flex: 1 1 0; min-width: 0; display: flex; align-items: center; }
.aj-col-badge { gap: 18px; justify-content: flex-end; }
.aj-row--flip .aj-col-badge { flex-direction: row-reverse; justify-content: flex-end; }
.aj-col-card { justify-content: flex-start; }
.aj-row--flip .aj-col-card { justify-content: flex-end; }

.aj-deco-icon {
  flex-shrink: 0;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.07), rgba(168,85,247,0.05));
  border: 1px solid rgba(var(--accent-deep-rgb), 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.aj-deco-icon [data-lucide] { width: 34px; height: 34px; stroke: rgba(var(--accent-deep-rgb), 0.55); stroke-width: 1.5; }

.aj-year-pill {
  flex-shrink: 0;
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--on-cta);
  background: var(--text-gradient);
  padding: 10px 22px;
  border-radius: var(--radius-pill, 999px);
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.28);
  white-space: nowrap;
}

.aj-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 30px;
  text-align: left;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.aj-card:hover {
  box-shadow: 0 16px 40px rgba(var(--accent-deep-rgb), 0.16);
  border-color: rgba(var(--accent-deep-rgb), 0.35);
  z-index: 2;
}
.aj-card h3 {
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 18px; font-weight: 700; color: var(--fg-primary); margin: 0 0 8px;
}
.aj-card p {
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: 14px; color: var(--fg-muted); line-height: 1.7; margin: 0;
}

/* WHY CHOOSE STUDYNLEARN */
.about-why-section {
  background: var(--bg);
  padding: var(--space-section) var(--site-pad-x);
  border-top: 1px solid var(--clr-divider);
}
.about-why-inner { max-width: var(--site-max-w); margin: 0 auto; text-align: center; }

.about-why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: left;
  margin-top: 48px;
}
.about-why-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.about-why-card:hover {
  box-shadow: 0 16px 40px rgba(10,15,30,0.10);
  border-color: rgba(var(--accent-rgb), 0.30);
  z-index: 2;
}
.about-why-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.about-why-icon {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.about-why-icon svg { width: 22px; height: 22px; stroke-width: 2; }
.about-why-num {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 12px; font-weight: 800; color: #ffffff;
  flex-shrink: 0;
}
.about-why-card h3 {
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 16px; font-weight: 700; color: var(--fg-primary);
  line-height: 1.35; margin: 0 0 10px;
}
.about-why-card p {
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: 13px; color: var(--fg-muted); line-height: 1.7; margin: 0;
}

/* Card accent colours — match ifp.css accent palette */
.about-accent-1 .about-why-icon { background: rgba(var(--accent-rgb), 0.10); border: 1px solid rgba(var(--accent-rgb), 0.22); }
.about-accent-1 .about-why-icon svg { stroke: var(--primary); }
.about-accent-1 .about-why-num { background: var(--primary); }

.about-accent-2 .about-why-icon { background: rgba(20,184,166,0.10); border: 1px solid rgba(20,184,166,0.22); }
.about-accent-2 .about-why-icon svg { stroke: #14B8A6; }
.about-accent-2 .about-why-num { background: #14B8A6; }

.about-accent-3 .about-why-icon { background: rgba(var(--accent-rgb), 0.10); border: 1px solid rgba(var(--accent-rgb), 0.22); }
.about-accent-3 .about-why-icon svg { stroke: var(--accent); }
.about-accent-3 .about-why-num { background: var(--accent); }

.about-accent-4 .about-why-icon { background: rgba(168,85,247,0.10); border: 1px solid rgba(168,85,247,0.22); }
.about-accent-4 .about-why-icon svg { stroke: #A855F7; }
.about-accent-4 .about-why-num { background: #A855F7; }

.about-accent-5 .about-why-icon { background: rgba(236,72,153,0.10); border: 1px solid rgba(236,72,153,0.22); }
.about-accent-5 .about-why-icon svg { stroke: #EC4899; }
.about-accent-5 .about-why-num { background: #EC4899; }

/* Carousel wrapper — no-op on desktop/tablet (.about-why-grid keeps its */
.about-why-nav {
  display: none;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(10,15,30,0.08);
  color: var(--fg-primary);
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease, color 0.25s ease;
}
.about-why-nav [data-lucide] { width: 18px; height: 18px; stroke-width: 2; }
.about-why-nav:hover {
  background: var(--text-gradient) border-box;
  border-color: transparent;
  color: var(--on-accent);
}

/* Certification badge row */
.about-cert-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(15,23,42,0.08);
}
.about-cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
/* Bumped 72px→84px / 128px→150px (owner request, 2026-08-27) — kept the */
.about-cert-item img { height: 84px; width: auto; object-fit: contain; background: var(--plate); padding: 10px 16px; border-radius: 10px; }
.about-cert-item video { height: 84px; width: 150px; object-fit: cover; background: var(--plate); padding: 10px 16px; border-radius: 10px; }
.about-cert-item span {
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 14px; font-weight: 700; color: var(--fg-body);
}

/* OUR PEOPLE — Founder / Team / Board filter */
.about-people-section { background: var(--bg); padding: var(--space-section) var(--site-pad-x); border-top: 1px solid var(--clr-divider); }
.about-people-inner { max-width: var(--site-max-w); margin: 0 auto; text-align: center; }

/* Sticky while browsing a panel (Management alone runs 16 cards deep) so */
.about-people-filters {
  position: sticky;
  top: 84px;
  z-index: 900;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.about-people-filter {
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-body);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.about-people-filter:hover { color: var(--fg-primary); }
.about-people-filter.active {
  color: var(--on-tab);
  text-shadow: var(--on-tab-shadow);
  background: var(--tab-active);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.30);
}

.about-people-panel { display: none; }
.about-people-panel.active { display: block; }

/* FOUNDERS */

.about-team-lead {
  max-width: 720px;
  margin: 16px auto 0;
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--fg-muted);
  line-height: 1.75;
}

.about-founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: 28px;
  margin-top: 48px;
  text-align: left;
}

/* Shared team card name + social link */
.about-team-name {
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 16px; font-weight: 700; color: var(--fg-primary); margin: 0;
}
.about-team-social {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.about-team-social a {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.09);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-body);
  transition: all 0.2s ease;
}
.about-team-social a:hover {
  background: rgba(var(--accent-rgb), 0.10);
  border-color: rgba(var(--accent-rgb), 0.3);
  color: var(--primary);
  transform: translateY(-2px);
}
.about-team-social i { font-size: 15px; line-height: 1; }

/* TEAM QUOTE */
.about-quote-section { background: var(--bg); padding: var(--space-section) var(--site-pad-x); }
.about-quote-inner { max-width: var(--site-max-w); margin: 0 auto; }
.about-quote-card {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--grad-hero-bg);
  border-radius: 24px;
  padding: 48px 56px;
  margin: 0;
}
.about-quote-motion {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: clip;
  opacity: 0.14;
  pointer-events: none;
}
.about-quote-motion-track {
  display: flex;
  flex: none;
  width: max-content;
  animation: aboutQuoteTogether 22s linear infinite;
  will-change: transform;
}
.about-quote-motion-group {
  display: flex;
  flex: none;
  gap: 28px;
  padding-right: 28px;
}
.about-quote-motion-group span {
  color: transparent;
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.72);
}
.about-quote-card p {
  position: relative;
  z-index: 1;
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  margin: 0;
  max-width: 720px;
}
.about-quote-card cite {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  opacity: 0.92;
}

@keyframes aboutQuoteTogether {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (min-width: 768px) {
  .about-quote-motion-group { gap: 56px; padding-right: 56px; }
  .about-quote-motion-group span { font-size: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  .about-quote-motion-track {
    animation: none;
    transform: translateX(-12%);
    will-change: auto;
  }
}

/* LEADERSHIP TEAM */

.about-leadership-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 48px;
  text-align: left;
}

/* Board of Directors: 3-column grid (not the Team tab's 5-per-row) */
.about-people-panel[data-panel="board"] .about-leadership-grid {
  grid-template-columns: repeat(3, minmax(0, 340px));
  justify-content: center;
}
.about-team-card {
  display: flex;
  gap: 16px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 22px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.about-team-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--team-accent, var(--primary));
}
.about-team-card:hover {
  box-shadow: 0 16px 40px rgba(10,15,30,0.10);
  border-color: rgba(var(--accent-rgb), 0.30);
  z-index: 2;
}
.about-team-card.about-accent-1 { --team-accent: var(--primary); }
.about-team-card.about-accent-2 { --team-accent: #14B8A6; }
.about-team-card.about-accent-3 { --team-accent: var(--accent); }
.about-team-card.about-accent-4 { --team-accent: #A855F7; }
.about-team-card.about-accent-5 { --team-accent: #EC4899; }

.about-team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid #F1F5FF;
}
.about-team-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.about-team-card .about-team-name { font-size: 15px; }
.about-team-role {
  display: block;
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--team-accent, var(--primary));
  margin-top: 2px;
}
.about-team-bio {
  flex: 1;
  margin: 8px 0 0;
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: 13px;
  line-height: 1.65;
  color: var(--fg-muted);
}
.about-team-card .about-team-social {
  margin-top: 16px;
  justify-content: flex-start;
  gap: 8px;
}
.about-team-card .about-team-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0A66C2;
  transition: transform 0.2s ease, color 0.2s ease;
}
.about-team-card .about-team-social a:hover {
  color: #004182;
  transform: translateY(-2px) scale(1.08);
}
.about-team-card .about-team-social i { font-size: 30px; line-height: 1; }

/* PEOPLE SECTION — name-only cards, large square rounded photos */
.about-people-section .about-team-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 14px 14px 20px;
}
.about-people-section .about-team-avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 16px;      /* square image with rounded corners */
  border: none;
  object-fit: cover;
}
/* Placeholder avatar (photo not supplied yet) — same box as a real photo, */
.about-people-section .about-team-avatar-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), rgba(168,85,247,0.12));
  font-family: var(--h-font, 'Inter', sans-serif);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 30px);
  color: var(--accent-deep);
}
.about-people-section .about-team-info {
  width: 100%;
  align-items: center;
  padding-top: 14px;
}
.about-people-section .about-team-card .about-team-name {
  font-size: 17px;
  text-align: center;
  margin: 0 0 12px;
}
/* Names only — hide designation and bio (LinkedIn button stays) */
.about-people-section .about-team-role,
.about-people-section .about-team-bio {
  display: none;
}

/* LinkedIn profile button — branded (Linked + in-box), like the LinkedIn logo */
.about-people-section .about-team-social {
  display: flex;
  justify-content: center;
  margin-top: auto;
}
.about-people-section .about-team-social a {
  /* Overrides the plain-icon `.about-team-social a` base rule's fixed */
  width: auto;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 7px 14px;
  background: var(--surface-card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--h-font, 'Inter', sans-serif);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: #0A66C2;
  text-decoration: none;
  /* transform-only on hover (no width/height change) so the badge never */
  transform: translateY(0);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.about-people-section .about-team-social a:hover {
  border-color: #0A66C2;
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(10,102,194,0.18);
}
/* the "Linked" + "in" wordmark is drawn by the two pseudo-elements below (the anchor itself is empty) */
/* Both pseudo-elements pinned to display:inline-block + vertical-align:middle */
.about-people-section .about-team-social a::before,
.about-people-section .about-team-social a::after {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}
.about-people-section .about-team-social a::before {
  content: "Linked";
  color: #0A66C2;
}
.about-people-section .about-team-social a::after {
  content: "in";
  color: #ffffff;
  background: #0A66C2;
  border-radius: 3px;
  padding: 3px 4px;
  margin-left: 1px;
}
/* No button for placeholder links (e.g. sample Board directors) */
.about-people-section .about-team-social a[href="#"] { display: none; }

/* CERTIFICATIONS — text left, center-emphasis carousel right. */
.about-certs-section { background: var(--bg); padding: var(--space-section) var(--site-pad-x); border-top: 1px solid var(--clr-divider); }
.about-certs-inner { max-width: var(--site-max-w); margin: 0 auto; }
.about-certs-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-certs-content h2 { margin: 0 0 18px; }
.about-certs-content p {
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--fg-muted);
  line-height: 1.75;
  margin: 0 0 28px;
}

.about-certs-carousel { min-width: 0; }
.cert-carousel-row { display: flex; align-items: center; gap: 14px; }

.cert-carousel-nav {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(10,15,30,0.08);
  color: var(--fg-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease, color 0.25s ease;
}
.cert-carousel-nav [data-lucide] { width: 20px; height: 20px; stroke-width: 2; }
.cert-carousel-nav:hover {
  background: var(--text-gradient) border-box;
  border-color: transparent;
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.35);
}

.cert-carousel-viewport { overflow: hidden; flex: 1; min-width: 0; padding: 64px 0; margin: -64px 0; }
.cert-carousel-track {
  display: flex;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
/* No card "frame" — just the certificate itself, edge to edge. Height */
.cert-card {
  flex: 0 0 180px;
  margin: 0 12px;
  border-radius: 14px;
  overflow: hidden;
  transform: scale(0.86);
  opacity: 0.55;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, box-shadow 0.5s ease;
}
.cert-card a { display: block; cursor: pointer; }
.cert-card img {
  width: 100%;
  aspect-ratio: 210 / 297;
  object-fit: contain;
  display: block;
}
.cert-card.cert-card-active {
  transform: scale(1.32);
  opacity: 1;
  z-index: 2;
}

/* margin-top looks generous on paper, but `.cert-card-active` is a */
.cert-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.cert-carousel-dots .hw-dot {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.cert-carousel-dots .hw-dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.25);
  transition: background 0.25s ease, width 0.25s ease, border-radius 0.25s ease;
}
.cert-carousel-dots .hw-dot.active::before {
  width: 22px;
  border-radius: 4px;
  background: var(--text-gradient);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .about-why-grid { grid-template-columns: repeat(3, 1fr); }
  .about-leadership-grid { grid-template-columns: repeat(2, 1fr); }
  /* 32px read as almost no gap in practice: the active .cert-card's */
  .about-certs-grid { grid-template-columns: 1fr; gap: 80px; }
  .cert-card { flex: 0 0 150px; }
}

@media (max-width: 768px) {
  .about-why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-milestone-list { grid-template-columns: repeat(2, 1fr); }
  .about-leadership-grid { grid-template-columns: repeat(2, 1fr); }
  .about-founders-grid { grid-template-columns: minmax(0, 320px); gap: 20px; }

  .about-journey-timeline { margin-top: 40px; }
  .about-journey-timeline::before { left: 22px; }
  .aj-row, .aj-row--flip {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-left: 56px;
  }
  .aj-dot { left: 22px; top: 24px; }
  .aj-col,
  .aj-row--flip .aj-col-badge,
  .aj-row--flip .aj-col-card {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
  }
  .aj-card { max-width: 100%; padding: 22px 24px; }
}

@media (max-width: 599px) {
  .aj-deco-icon { display: none; }
  .aj-year-pill { font-size: 13px; padding: 8px 18px; }
  .aj-card { padding: 20px; }
  .about-milestone-list { grid-template-columns: repeat(2, 1fr); margin-top: 36px; gap: 18px; }

  /* Owner request: logo trust-badge carousel reads before the feature-card */
  .about-why-inner { display: flex; flex-direction: column; }
  .about-why-carousel { order: 2; }
  .about-cert-row { order: 1; }

  /* "Why Choose StudynLearn" cards → single-slide auto-advancing carousel */
  .about-why-carousel { display: flex; align-items: center; gap: 8px; margin-top: 32px; }
  .about-why-nav { display: flex; }
  .about-why-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    margin-top: 0;
    flex: 1;
    min-width: 0;
  }
  .about-why-grid::-webkit-scrollbar { display: none; }
  .about-why-card {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: center;
  }
  /* Card index badge (01–05) reads as clutter once only one card is on */
  .about-why-num { display: none; }

  /* Certification badge row (CMMI / Make in India / GeM) → continuous */
  .about-cert-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .about-cert-row::-webkit-scrollbar { display: none; }
  .about-cert-item { flex: 0 0 100%; width: 100%; scroll-snap-align: center; }
  .about-cert-row { gap: 0; margin-top: 36px; padding-top: 28px; }
  .about-cert-item img { height: 64px; padding: 8px 12px; }
  .about-cert-item video { height: 64px; width: 114px; padding: 8px 12px; }
  .about-leadership-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 32px; }
  .about-founders-grid { grid-template-columns: minmax(0, 200px); gap: 10px; margin-top: 32px; }
  .about-people-section .about-team-card { padding: 10px 8px 14px; }
  .about-people-section .about-team-info { padding-top: 8px; }
  .about-people-section .about-team-card .about-team-name { font-size: 12px; line-height: 1.25; margin: 0 0 6px; }
  .about-people-section .about-team-social { margin-top: 6px; }
  .about-people-section .about-team-social a { padding: 5px 7px; font-size: 10px; gap: 0; }
  .about-people-section .about-team-social a::after { padding: 2px 3px; }
  .about-quote-card { padding: 32px 28px; border-radius: 18px; }
}
/* Tap targets — 44 px controls on touch screens */
@media (max-width: 767px), (pointer: coarse) {
  .about-people-filter { min-height: 44px; }
  .about-why-nav { min-width: 44px; min-height: 44px; }
}

/* Phones: Founders / Team / Board of Directors fit on one row instead of wrapping "Board of Directors" under the others. */
@media (max-width: 599px) {
  .about-people-filters { display: flex; flex-wrap: nowrap; gap: 4px; }
  .about-people-filter { flex: 1 1 auto; padding: 10px 10px; font-size: 13px; }
}
