/* =========================================================
   EduSewa — About Page (Light UI to match homepage)
   Scope everything under .about to avoid collisions
   ========================================================= */

:root {
  /* Light palette */
  --bg: #f6f8ff;            /* page background */
  --surface: #ffffff;       /* cards */
  --surface-2: #f8faff;     /* tinted cards / hero inset */
  --ink: #0e1b2b;           /* main text */
  --muted: #5d6b7e;         /* secondary text */
  --line: #e7ecf5;          /* borders/dividers */

  --brand: #2563eb;         /* primary blue */
  --brand-2: #6aa5ff;       /* light blue accent */
  --accent: #7cf3e0;        /* teal accent (sparingly) */

  --radius: 16px;           /* global roundness */
  --radius-sm: 12px;
  --shadow-sm: 0 6px 16px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 10px 24px rgba(16, 24, 40, 0.08);
  --ring: 0 0 0 6px rgba(37, 99, 235, 0.08);

  --maxw: 1120px;
  --gap: 1.25rem;
  --gap-lg: 2rem;
  --gap-xl: 3rem;

  --speed: .5s;             /* reveal animations */
}

.about {
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

/* Container */
.about .container {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

/* -------------------------
   Breadcrumb
------------------------- */
.about .crumbs {
  font-size: .92rem;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.4));
  border-bottom: 1px solid var(--line);
}
.about .crumbs ol {
  display: flex; gap: .5rem; padding: .75rem 0; list-style: none; margin: 0;
}
.about .crumbs li+li::before {
  content: "›"; opacity: .6; margin: 0 .35rem 0 .15rem;
}
.about .crumbs a { color: var(--muted); text-decoration: none; }
.about .crumbs a:hover { color: var(--brand); }

/* -------------------------
   HERO (soft gradient plane)
------------------------- */
.about .about-hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(142, 164, 255, .20), transparent 60%),
    radial-gradient(800px 520px at 10% 30%, rgba(124, 243, 224, .14), transparent 60%),
    linear-gradient(180deg, #fafdff, #f4f7ff);
  border-bottom: 1px solid var(--line);
  overflow: clip;
}

.about .hero__inner {
  display: grid; gap: var(--gap-lg);
  grid-template-columns: 1.15fr .9fr;
  align-items: start;
}
@media (max-width: 960px) {
  .about .hero__inner { grid-template-columns: 1fr; }
}

.about .hero__copy { position: relative; z-index: 2; }
.about .hero__title {
  margin: 0 0 .6rem;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: .2px;
}
.about .hero__subtitle {
  margin: 0 0 1rem; color: var(--muted); max-width: 60ch;
}

.about .hero__pills {
  display: flex; flex-wrap: wrap; gap: .6rem;
  list-style: none; padding: 0; margin: 1.1rem 0 0;
}
.about .hero__pills li {
  padding: .5rem .8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  color: #1b2a3a;
}

/* Side metrics card */
.about .hero__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}
.about .hc__row { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; padding: .75rem .5rem; align-items: baseline; }
.about .hc__row + .hc__row { border-top: 1px dashed var(--line); }
.about .hc__metric { font-weight: 800; font-size: 1.45rem; color: var(--brand); }
.about .hc__label  { color: var(--muted); font-size: .96rem; }

/* Decorative blobs (subtle) */
.about .hero__art .blob { position: absolute; filter: blur(28px); opacity: .45; z-index: 1; }
.about .blob--1 { width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(106,165,255,.45), transparent 60%);
  top: -40px; right: -80px; animation: about-f1 9s ease-in-out infinite; }
.about .blob--2 { width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(124,243,224,.38), transparent 60%);
  bottom: -60px; left: -40px; animation: about-f2 12s ease-in-out infinite; }
@keyframes about-f1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(14px)} }
@keyframes about-f2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* -------------------------
   Sections
------------------------- */
.about .section { padding: clamp(2rem, 5vw, 3.6rem) 0; }
.about .section--tint {
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.5));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about .section__head { margin-bottom: 1.25rem; }
.about .section__title { margin: 0 0 .3rem; font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.about .section__sub { color: var(--muted); margin: 0; }

/* -------------------------
   Cards & Grids
------------------------- */
.about .grid-3 {
  display: grid; gap: var(--gap-lg);
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px) { .about .grid-3 { grid-template-columns: 1fr; } }

.about .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-sm);
  transform: translateY(8px);
  opacity: 0;
  transition: transform var(--speed) ease, opacity var(--speed) ease, box-shadow .25s ease;
}
.about.anim-ok .card.in { transform: translateY(0); opacity: 1; }
.about .cards--lift .card:hover { box-shadow: var(--shadow-md); }
.about .card h3 { margin: 0 0 .45rem; font-size: 1.08rem; }
.about .card p { margin: 0; color: var(--muted); }

/* -------------------------
   Values grid
------------------------- */
.about .values-grid {
  display: grid; gap: var(--gap-lg);
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px){ .about .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .about .values-grid { grid-template-columns: 1fr; } }

.about .value-card { text-align: left; }
.about .value-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: .75rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 22px;
}

/* -------------------------
   Gallery (soft masonry)
------------------------- */
.about .gallery-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(12, 1fr);
}
.about .gallery-card {
  grid-column: span 6;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transform: translateY(8px); opacity: 0;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) ease, opacity var(--speed) ease, box-shadow .25s ease;
}
.about .gallery-card.in { transform: translateY(0); opacity: 1; }
.about .gallery-card:hover { box-shadow: var(--shadow-md); }
.about .gallery-card img { display: block; width: 100%; height: auto; }
.about .gallery-card figcaption {
  padding: .75rem .9rem; color: var(--muted); font-size: .95rem;
  border-top: 1px solid var(--line);
}
.about .gallery-card.wide { grid-column: span 12; }
.about .gallery-card.tall { grid-column: span 6; }
@media (max-width: 960px){
  .about .gallery-card, .about .gallery-card.wide, .about .gallery-card.tall { grid-column: span 12; }
}

/* -------------------------
   Timeline (clean, left rail)
------------------------- */
.about .timeline { position: relative; display: grid; gap: var(--gap-lg); margin-top: 1.3rem; }
.about .timeline__item {
  position: relative; display: grid;
  grid-template-columns: 120px 1fr; gap: 1rem; align-items: start;
  transform: translateY(8px); opacity: 0;
  transition: transform var(--speed) ease, opacity var(--speed) ease;
}
.about .timeline__item.in { transform: translateY(0); opacity: 1; }
@media (max-width: 760px){ .about .timeline__item { grid-template-columns: 90px 1fr; } }

.about .timeline .time { color: var(--brand); font-weight: 700; }
.about .timeline .content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  box-shadow: var(--shadow-sm);
}
.about .timeline .content h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.about .timeline .content p { margin: 0; color: var(--muted); }

.about .timeline .dot {
  position: absolute; left: 104px; top: .6rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--brand-2), var(--brand));
  box-shadow: var(--ring);
}
@media (max-width: 760px){ .about .timeline .dot { left: 76px; } }

/* -------------------------
   Team
------------------------- */
.about .team-grid {
  display: grid; gap: var(--gap-lg);
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1200px){ .about .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px){ .about .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .about .team-grid { grid-template-columns: 1fr; } }

.about .team-member { text-align: center; padding: 1.25rem; }
.about .member-avatar {
  width: 64px; height: 64px; margin: 0 auto .6rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: var(--brand);
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.about .member-name { margin: 0 0 .2rem; font-size: 1.04rem; }
.about .member-role { margin: 0 0 .35rem; color: var(--brand); font-weight: 600; }
.about .member-bio  { margin: 0; color: var(--muted); }

/* -------------------------
   CTA (soft gradient band)
------------------------- */
.about .cta {
  padding: 2.2rem 0 3rem;
  background:
    radial-gradient(700px 420px at 90% -10%, rgba(124,243,224,.18), transparent 55%),
    radial-gradient(640px 360px at 10% 120%, rgba(106,165,255,.22), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.65));
  border-top: 1px solid var(--line);
}
.about .cta__grid { display: grid; gap: 1rem; align-items: center; }
.about .cta h3 { margin: 0 0 .4rem; font-size: 1.35rem; }
.about .cta p { margin: 0 0 1rem; color: var(--muted); }

/* Buttons (align with homepage) */
.about .btn {
  display: inline-block;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #d7e2f2;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.about .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.about .btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-color: rgba(37, 99, 235, .85);
}
.about .btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: #d7e2f2;
}

/* -------------------------
   In-view reveals (JS toggles .in)
------------------------- */
.about.anim-ok .timeline__item.in,
.about.anim-ok .gallery-card.in { transition-delay: .04s; }

/* -------------------------
   Reduced motion
------------------------- */
@media (prefers-reduced-motion: reduce) {
  .about .card,
  .about .gallery-card,
  .about .timeline__item { transition: none; transform: none; opacity: 1; }
  .about .blob--1, .about .blob--2 { animation: none; }
}
