/* =========================================================
   ABOUT PAGE — SCOPED STYLES
   File: /assets/css/about.css
   Scope root: .about-page  (no clashes with global theme)
   ========================================================= */

/* -------- Tokens / fallbacks (uses globals if present) --- */
.about-page{
  --radius-xl: var(--radius-xl, 18px);
  --border: var(--border, #e6eef4);
  --brand-blue-600: var(--brand-blue-600, #218CCF);
  --brand-blue-800: var(--brand-blue-800, #0A4E73);
}

/* -------- Spacing / layout -------------------------------- */
.about-page .pad{ padding-block:56px; }

.about-page .about-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:28px;
}
@media (min-width: 992px){
  .about-page .about-grid{
    grid-template-columns: 1.05fr .95fr;
    gap:36px;
  }
}

/* -------- Card system (matches premium feel) --------------- */
.about-page .card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius-xl);
  padding:18px;
}
.about-page .card.shadow{ box-shadow:0 12px 30px rgba(0,0,0,.06); }
.about-page .card.hover{
  transition: transform .18s ease, box-shadow .18s ease, border-color .2s ease;
}
.about-page .card.hover:hover{
  transform: translateY(-3px);
  box-shadow:0 16px 34px rgba(0,0,0,.08);
  border-color:#dfeaf2;
}

/* -------- Reveal animations (scoped) ----------------------- */
.about-page .reveal{
  opacity:0; transform:translateY(14px);
  transition:opacity .6s ease, transform .6s ease;
  transition-delay: var(--d,0ms);
}
.about-page .reveal._in{ opacity:1; transform:none; }

.about-page .reveal-line{
  transform-origin:center center;
  transition:transform .6s ease, opacity .6s ease;
  opacity:0; transition-delay: var(--d,0ms);
}
.about-page .line-horz{ transform:scaleX(0); }
.about-page .line-vert{ transform-origin:top center; transform:scaleY(0); }
.about-page .reveal-line._in{ opacity:1; }
.about-page .reveal-line._in.line-horz{ transform:scaleX(1); }
.about-page .reveal-line._in.line-vert{ transform:scaleY(1); }

.about-page .reveal-pop{ opacity:0; transform:scale(.96); transition:opacity .4s ease, transform .4s ease; }
.about-page .reveal-pop._in{ opacity:1; transform:scale(1); }

/* -------- Headings with icons ------------------------------ */
.about-page .with-icon{ display:flex; align-items:center; gap:.55rem; margin-bottom:.25rem; }
.about-page .with-icon .i{
  width:28px; height:28px; border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  background:#EAF6FC; color:#0A4E73;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}
.about-page .with-icon .i svg{ width:16px; height:16px; }

/* -------- Cards grid (Vision / Mission / Values) ----------- */
.about-page .cards{
  display:grid; grid-template-columns:1fr; gap:20px;
}
@media (min-width: 900px){
  .about-page .cards{ grid-template-columns: repeat(3,1fr); gap:22px; }
}

/* Bullets (Values) — vertical alignment */
.about-page .bullets{
  padding-left:0; margin:0; list-style:none;
  display:flex; flex-direction:column; gap:8px;
}
.about-page .bullets li{
  position:relative; padding-left:16px; line-height:1.35;
}
.about-page .bullets li::before{
  content:""; position:absolute; left:0; top:.55em;
  width:8px; height:8px; border-radius:999px;
  background:#69B8E3; box-shadow:0 0 0 3px rgba(105,184,227,.25);
}
/* Ensure the “values-inline” class stacks vertically now */
.about-page .values-inline{
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

/* -------- Background Image Rotator ------------------------- */
.about-page .image-rotator{
  position:relative; overflow:hidden;
  border-radius: var(--radius-xl);
  min-height: 360px; height:100%;
}
.about-page .image-rotator .rotating-img{
  position:absolute; inset:0;
  opacity:0; visibility:hidden;
  transition: opacity .9s ease-in-out, visibility 0s linear .9s;
}
.about-page .image-rotator .rotating-img.active{
  opacity:1; visibility:visible; transition:opacity .9s ease-in-out;
}
.about-page .image-rotator img{
  width:100%; height:100%; object-fit:cover; border-radius: var(--radius-xl);
}
@media (prefers-reduced-motion: reduce){
  .about-page .image-rotator .rotating-img{ transition:none !important; }
}

/* ===== Org: header (centered) ===== */
.about-page .org-section .org-head{
  text-align:center;
  margin-bottom: 18px;
}
.about-page .org-section .org-head h2{
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: .2px;
}

/* ===== Org: container ===== */
.about-page .org{
  border-radius: 22px;
  padding: 28px 18px 34px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg,#fff,rgba(255,255,255,.98));
  box-shadow:
    0 18px 48px rgba(16, 24, 40, .06),
    0 2px 6px rgba(16, 24, 40, .04);
}

/* ===== Org: tiers ===== */
.about-page .org-tier{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0;
  position: relative;
}

/* Three-up row (departments) */
.about-page .org-tier--trio{
  display: grid;
  grid-template-columns: 1fr 120px 1fr 120px 1fr; /* nodes with rails between */
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

/* Node card */
.about-page .org-node{
  background:#fff;
  border:1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  min-width: 260px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.about-page .org-title{ font-weight: 800; margin: 0 0 6px; }
.about-page .org-note{ margin: 0; color:#557086; }

/* Chip style inside node */
.about-page .org-chip{
  display:inline-flex; gap:8px; align-items:center; justify-content:center;
  padding:8px 14px; border-radius:999px;
  background:#eaf6ff; color:#0a4e73; font-weight:700;
}
.about-page .org-chip svg{ width:18px; height:18px }

/* ===== Connectors ===== */

/* Vertical dashed line with arrow head (between tiers) */
.about-page .org-conn-vert{
  width: 2px; height: 42px; margin: 4px auto 8px; position: relative;
  background-image: linear-gradient(#0a68a0 33%, rgba(0,0,0,0) 0%);
  background-size: 2px 8px;      /* dash length & gap */
  background-repeat: repeat-y;
  background-position: center top;
}
.about-page .org-conn-vert::after{
  content:""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  border: 6px solid transparent;        /* arrow head */
  border-top-color: #0a68a0;
}

/* Horizontal double-ended dashed rail with arrowheads (between same level nodes) */
.about-page .org-conn-horz{
  height: 2px; width: 100%; position: relative;
  background-image: linear-gradient(90deg, #0a68a0 33%, rgba(0,0,0,0) 0%);
  background-size: 8px 2px;       /* dash length & gap */
  background-repeat: repeat-x;
  background-position: left center;
  align-self: center;
}
.about-page .org-conn-horz::before,
.about-page .org-conn-horz::after{
  content:""; position:absolute; top:50%; transform: translateY(-50%);
  border: 6px solid transparent;
}
.about-page .org-conn-horz::before{ left:-2px;  border-right-color:#0a68a0; } /* left arrow */
.about-page .org-conn-horz::after { right:-2px; border-left-color:#0a68a0; }  /* right arrow */

/* ===== Responsive ===== */
@media (max-width: 980px){
  .about-page .org-tier--trio{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .about-page .org-conn-horz{ display: none; }  /* stacked: no side rail */
  .about-page .org-node{
  box-shadow:
    0 20px 40px rgba(2, 122, 199, .06),
    0 2px 6px rgba(2, 122, 199, .06);
}
}

/* ===== Reveal niceties (uses your existing classes) ===== */
.about-page .reveal{ opacity:0; transform: translateY(12px); transition:.5s ease; }
.about-page .reveal._in{ opacity:1; transform:none; }

/* -------- CTA Wide — premium finish ------------------------ */
.about-page .cta-wide {
  position: relative;
  width: 100vw;               /* ensure full screen width */
  left: 50%;
  right: 50%;
  margin-left: -50vw;         /* offset parent container padding */
  margin-right: -50vw;
  background:
    radial-gradient(80% 80% at 120% -10%, rgba(33,140,207,.12), transparent 70%),
    linear-gradient(90deg, #EAF6FC, #CFEAF7);
  border-top: 1px solid #CFEAF7;
  border-bottom: 1px solid #e6eef4;
  padding: 64px 0;
  overflow: hidden;
}

/* subtle background dots */
.about-page .cta-wide::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(10,78,115,.05) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: .4;
}

/* content container */
.about-page .cta-wide .cta-row {
  position: relative;
  z-index: 1;
  max-width: 1180px;          /* match .wrap width */
  margin: 0 auto;
  padding-inline: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.about-page .cta-wide .cta-row h3 {
  margin: 0 0 .35rem;
  color: #0b1720;
  font-weight: 700;
}
.about-page .cta-wide .cta-row .muted { color: #4b5563; margin: 0; }

/* button styling */
.about-page .cta-wide .cta-row .btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--brand-blue-600, #218CCF);
  color: #fff;
  border-radius: 999px;
  padding: .75rem 1.35rem;
  border: 0;
  box-shadow: 0 10px 22px rgba(15,109,169,.18),
              0 4px 10px rgba(15,109,169,.12);
  text-decoration: none;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, opacity .2s ease;
}
.about-page .cta-wide .cta-row .btn::after {
  content: "➜";
  font-size: .95rem;
  line-height: 1;
  transform: translateX(0);
  transition: transform .18s ease;
}
.about-page .cta-wide .cta-row .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15,109,169,.22),
              0 6px 14px rgba(15,109,169,.14);
}
.about-page .cta-wide .cta-row .btn:hover::after {
  transform: translateX(3px);
}

/* mobile layout */
@media (max-width: 680px) {
  .about-page .cta-wide .cta-row {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}