/* ============================================================
   SAGE-ABOUT-VISION.CSS — Sage Titans
   Page-specific styles for about-us.php + our-vision.php
   Prefix: av- (about-vision)
   ============================================================ */


/* ══════════════════════════════════════════
   BANNER — shared base (both pages)
══════════════════════════════════════════ */

.inner-p-banner {
  background:
    radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px),
    radial-gradient(ellipse 80% 60% at 15% 40%, rgba(41,171,226,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(29,37,148,0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 60% 90%, rgba(0,41,60,0.4) 0%, transparent 60%),
    linear-gradient(135deg, #00293c 0%, #0d1b6e 40%, #1a237e 70%, #00293c 100%);
  background-size: 40px 40px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

/* Our Vision override — Midnight Slate */
.inner-p-banner.our-vision {
  background:
    radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px),
    radial-gradient(ellipse 70% 60% at 15% 45%, rgba(60,100,180,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 55% 70% at 88% 15%, rgba(20,40,100,0.5) 0%, transparent 55%),
    radial-gradient(ellipse 45% 50% at 55% 95%, rgba(10,20,50,0.5) 0%, transparent 60%),
    linear-gradient(135deg, #080c1a 0%, #0f1a3d 40%, #152040 70%, #080c1a 100%);
  background-size: 40px 40px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.inner-p-banner::before {
  content: "";
  position: absolute;
  right: 40px;
  top: 40px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(41,171,226,0.18);
  pointer-events: none;
  z-index: 0;
}

.inner-p-banner::after {
  content: "";
  position: absolute;
  right: 110px;
  top: 110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(41,171,226,0.25);
  pointer-events: none;
  z-index: 0;
}

.inner-p-banner.our-vision::before {
  border-color: rgba(80,130,255,0.18);
}
.inner-p-banner.our-vision::after {
  border-color: rgba(80,130,255,0.25);
}


/* ══════════════════════════════════════════
   SECTION LABELS (small uppercase eyebrow)
══════════════════════════════════════════ */

.av-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4586e0;
  margin-bottom: 10px;
}

.av-label-dark { color: #a5e0fc; }


/* ══════════════════════════════════════════
   STAT ROW — About Us "Who We Are"
══════════════════════════════════════════ */

.av-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #e5eaf0;
  border: 1px solid #e5eaf0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 48px;
}

.av-stat-cell {
  background: #fff;
  padding: 28px 24px;
  text-align: center;
}

.av-stat-cell strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #0d1b6e;
  line-height: 1;
  margin-bottom: 6px;
}

.av-stat-cell span {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

@media (max-width: 767px) {
  .av-stat-row { grid-template-columns: repeat(2, 1fr); }
}


/* ══════════════════════════════════════════
   WHO WE ARE — split layout
══════════════════════════════════════════ */

.av-who-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.av-who-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: #0a1628;
  line-height: 1.25;
  margin-bottom: 18px;
}

.av-who-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: #3d4f63;
  margin-bottom: 16px;
}

.av-who-img {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.av-who-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

@media (max-width: 900px) {
  .av-who-grid { grid-template-columns: 1fr; gap: 36px; }
  .av-who-img { max-width: 500px; margin: 0 auto; }
}


/* ══════════════════════════════════════════
   MISSION PANEL — dark background
══════════════════════════════════════════ */

.av-mission {
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(41,171,226,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 30%, rgba(29,37,148,0.25) 0%, transparent 55%),
    linear-gradient(135deg, #00293c 0%, #0d1b6e 60%, #00293c 100%);
  padding: 80px 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.av-mission::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.av-mission-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.av-mission-visual {
   max-width: 400px;
  position: relative;
}

.av-mission-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.av-mission-quote {
  position: relative;
  padding-left: 28px;
  border-left: 3px solid #29abe2;
}

.av-mission-quote blockquote {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.55;
  margin: 0 0 24px;
  font-style: italic;
}

.av-mission-quote p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .av-mission-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .av-mission-visual {
    display: block;
    max-width: 320px;
    margin: 0 auto;
  }

  .av-mission-visual img {
    width: 100%;
    height: auto;
    border-radius: 14px;
  }
}


/* ══════════════════════════════════════════
   CORE VALUES — card grid
══════════════════════════════════════════ */

.av-values-section {
  background: #f4f7fc;
  padding: 80px 0;
  margin-bottom: 0;
}

.av-values-section + section {
  padding-top: 80px;
}

.av-values-intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.av-values-intro h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 14px;
  line-height: 1.25;
}

.av-values-intro p {
  font-size: 1rem;
  color: #3d4f63;
  line-height: 1.75;
}

.av-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.av-value-card {
  background: #fff;
  border: 1.5px solid #e2eaf4;
  border-radius: 14px;
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.av-value-card:hover {
  box-shadow: 0 8px 32px rgba(13,27,110,0.1);
  border-color: #29abe2;
  transform: translateY(-4px);
}

.av-value-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #29abe2, #0d1b6e);
}

.av-value-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(41,171,226,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.av-value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 10px;
}

.av-value-card p {
  font-size: 0.875rem;
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
}

/* Last two cards span to fill — 5 cards in 3-col grid */
.av-value-card:nth-child(4) {
  grid-column: 1 / 2;
}
.av-value-card:nth-child(5) {
  grid-column: 2 / 3;
}

@media (max-width: 900px) {
  .av-values-grid { grid-template-columns: repeat(2, 1fr); }
  .av-value-card:nth-child(4),
  .av-value-card:nth-child(5) { grid-column: auto; }
}

@media (max-width: 560px) {
  .av-values-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════
   CAPABILITIES — feature list layout
══════════════════════════════════════════ */

.av-capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.av-capabilities-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: #0a1628;
  line-height: 1.25;
  margin-bottom: 18px;
}

.av-capabilities-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: #3d4f63;
  margin-bottom: 16px;
}

.av-feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.av-feature-list li {
  position: relative;   /* ⬅ required */
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.925rem;
  color: #2d3748;
  line-height: 1.6;
}

.av-feature-list li::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(41,171,226,0.12);
  border: 1.5px solid #29abe2;
  flex-shrink: 0;
  position: relative;
}

/* ✅ FIXED TICK POSITION */
.av-feature-list li::after {
  content: "✓";
  position: absolute;
  left: 10px;              /* center horizontally */
  top: 10px;               /* center vertically */
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 900;
  color: #29abe2;
  pointer-events: none;
}

.av-capabilities-img {
  max-width: 500px;
   aspect-ratio: 1 / 1;
}

.av-capabilities-img img {
  width: 100%;
  height: auto;
    object-fit: contain;
}

@media (max-width: 900px) {
  .av-capabilities-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .av-capabilities-img {
    order: -1;
    max-width: 320px;   /* ⬅ reduced from 500px */
    margin: 0 auto;
  }

  .av-capabilities-img img {
    width: 100%;
    height: auto;
    border-radius: 14px;
  }
}


/* ══════════════════════════════════════════
   PARTNER LOGOS — redesigned strip
══════════════════════════════════════════ */

.av-partners {
  padding: 48px 0 0;
}

.av-partners-label {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4586e0;
  margin-bottom: 28px;
}

.av-partners-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.av-partner-card {
  width: 160px;
  height: 160px;
  border: 1px solid #e2eaf4;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  padding: 16px;
}

.av-partner-card:hover {
  border-color: #29abe2;
  box-shadow: 0 4px 16px rgba(41,171,226,0.12);
}

.av-partner-card img {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}


/* ══════════════════════════════════════════
   VISION PAGE — Vision + Goal sections
══════════════════════════════════════════ */

.av-vision-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 45px 0;
}

.av-vision-split + .av-vision-split {
  padding: 45px 0;
  border-top: 1px solid #e5eaf0;
}

.av-vision-split.reverse { direction: rtl; }
.av-vision-split.reverse > * { direction: ltr; }

.av-vision-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 16px;
  line-height: 1.25;
}

.av-vision-content p {
  font-size: 1rem;
  color: #3d4f63;
  line-height: 1.8;
  margin-bottom: 14px;
}

.av-vision-content ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.av-vision-content ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #2d3748;
  line-height: 1.6;
}

.av-vision-content ul li::before {
  content: "→";
  color: #29abe2;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.av-vision-img img {
  max-width: 550px;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .av-vision-split { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .av-vision-split.reverse { direction: ltr; }
}


/* ══════════════════════════════════════════
   INSPIRES — numbered card grid
══════════════════════════════════════════ */

.av-inspires-section {
  background: #f4f7fc;
  padding: 80px 0;
  margin-bottom: 0;
}

.av-inspires-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 52px;
}

.av-inspires-header h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 14px;
}

.av-inspires-header p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
}

.av-inspires-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.av-inspire-card {
  background: #fff;
  border: 1.5px solid #e2eaf4;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.av-inspire-card:hover {
  box-shadow: 0 10px 36px rgba(13,27,110,0.1);
  transform: translateY(-4px);
  border-color: #29abe2;
}

.av-inspire-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 260px;
}

.av-inspire-content {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.av-inspire-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(13,27,110,0.52);
  line-height: 1;
  margin-bottom: 8px;
}

.av-inspire-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 10px;
  line-height: 1.3;
}

.av-inspire-content p {
  font-size: 0.875rem;
  color: #4a5568;
  line-height: 1.7;
  margin: 0;
}

.av-inspire-img {
  overflow: hidden;
  background: #f1f5fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.av-inspire-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}



@media (max-width: 900px) {
  .av-inspires-grid { grid-template-columns: 1fr; }
  .av-inspire-card-inner { grid-template-columns: 1fr; }
  .av-inspire-img { height: auto; padding: 12px; }
  .av-inspire-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}


/* ══════════════════════════════════════════
   CLOSING QUOTE — Vision page
══════════════════════════════════════════ */

.av-closing-quote {
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(60,100,180,0.15) 0%, transparent 60%),
    linear-gradient(135deg, #080c1a 0%, #0f1a3d 60%, #080c1a 100%);
  padding: 80px 0;
  margin-top: 48px;
  margin-bottom: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.av-closing-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.av-closing-quote blockquote {
  position: relative;
  z-index: 1;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  font-style: italic;
  color: rgba(255,255,255,0.92);
  line-height: 1.65;
  max-width: 800px;
  margin: 0 auto 24px;
}

.av-closing-quote cite {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  color: #5fc8fa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.av-quote-mark {
  position: relative;
  z-index: 1;
  font-size: 5rem;
  line-height: 0.5;
  color: rgba(41,171,226,0.25);
  display: block;
  margin-bottom: 20px;
  font-family: Georgia, serif;
}


/* ══════════════════════════════════════════
   CMS content (box-cms used on vision)
══════════════════════════════════════════ */

.box-cms {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.box-cms-left {
  flex: 1;
  min-width: 280px;
}

.box-cms h3,
.box-cms h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #0a1628;
}

@media (max-width: 767px) {
  .box-cms { flex-direction: column; gap: 20px; }
  .box-cms .col-md-6 { width: 100%; }
}



/* ══════════════════════════════════════════
   SECTION DIVIDER
   Between partner logos and stat/who-we-are row
══════════════════════════════════════════ */

.av-section-divider {
  padding: 8px 0 32px;
}

.av-divider-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.av-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(41,171,226,0.2) 20%,
    rgba(41,171,226,0.5) 50%,
    rgba(41,171,226,0.2) 80%,
    transparent 100%
  );
}

.av-divider-emblem {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(41,171,226,0.06);
  border: 1px solid rgba(41,171,226,0.18);
}

@media (max-width: 480px) {
  .av-section-divider { padding: 4px 0 24px; }
  .av-divider-inner { max-width: 100%; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — global
══════════════════════════════════════════ */

@media (max-width: 768px) {
  .av-mission { padding: 60px 0; }
  .av-values-section { padding: 60px 0; }
  .av-inspires-section { padding: 60px 0; }
  .av-closing-quote { padding: 60px 0; }
}



/* ══════════════════════════════════════════
   FOOTER BREATHING ROOM
   Prevents dark sections from merging
   flush with the footer background image.
══════════════════════════════════════════ */

.av-closing-quote + footer .footer-sec,
main > .av-closing-quote:last-child,
main > .av-values-section:last-child,
main > section:last-child {
  margin-bottom: 48px;
}

/* Explicit spacer for pages where dark block
   is the last element before footer */
.av-pre-footer-gap {
  height: 48px;
  background: #fff;
}


/* ══════════════════════════════════════════════════════════════
   FOOTER TOUCH TARGET FIX — Google PageSpeed mobile requirement
   Min 48×48px touch area for footer copyright links
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .copyright-sec ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .copyright-sec ul li { display: block; }
  .copyright-sec ul li a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 16px !important;
    font-size: 14px;
  }
}
