/* =========================================================
   about-us page styles.
   Loaded after styles/global.css on about-us.html only.
   ========================================================= */

@media (max-width: 400px) {
  .mobile-mt5 {
    margin-top: 5rem;
  }
}

.priv-dots-image {
  width: 107%;
  margin-left: 30px;
}

.quote-sub {
  font-size: 1.3rem;
}

:root {
  --bs-body-font-family: "Poppins", sans-serif;
  --orange: #ff8f00;
  --blue: #00205c;
  --light-orange: #ff8f0033;
  --light-blue-grad: linear-gradient( 135deg, rgba(92, 125, 184, 0.10), rgba(92, 125, 184, 0.01) );
  --side-left: clamp(80px, 10vw, 100px);
  --page-margin: 88px;
  --mobile-page-margin: 20px;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

@media (max-width: 1599px) and (min-width: 992px) {
  :root {
    --page-margin: 40px!important;
  }
}

.aboutheader-image {
  width: 150%;
  overflow: hidden;
  min-height: 500px;
  height: 50vh;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,1) 100% );
  mask-image: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,1) 100% );
  position: relative;
  left: -100px;
  z-index: 1;
}

/* GRID */
.aboutus-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* CARD */
.aboutus-stat-card {
  padding-top: 30px;
  padding-bottom: 30px;
  border-radius: 16px;
  background: var(--light-blue-grad);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
  transition: all 0.3s ease;
}

/* hover */
.aboutus-stat-card:hover {
  transform: translateY(-6px);
}

/* NUMBER */
.aboutus-stat-number {
  font-size: 2.3rem;
  font-weight: 600;
  color: #0d1b3d;
}

/* ORANGE DIVIDER */
.aboutus-stat-divider {
  width: 250px;
  height: 2.5px;
  background: var(--orange);
  margin: 12px auto;
  border-radius: 2px;
}

/* LABEL */
.aboutus-stat-label {
  font-size: 1.5rem;
  color: var(--blue);
  font-weight: 500;
}

/* 🔥 NEW: top row layout */
.aboutus-stat-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

/* optional: tighten number alignment */
.aboutus-stat-number {
  font-size: 2.5em;
  font-weight: 600;
  color: var(--blue);
  line-height: 1;
}

/* SECTION SPACING */
.aboutus-feature-section {
  padding: 40px 0;
  margin: 40px 0;
}

/* HEADER (icon + title inline) */
.aboutus-feature-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

/* ICON */
.aboutus-feature-icon {
  width: 90px;
}

/* TITLE */
.aboutus-feature-title {
  color: var(--blue);
}

/* TEXT */
.aboutus-feature-text {
  color: var(--blue);
}

/* IMAGE */
.aboutus-feature-image {
  width: 100%;
  max-width: 700px;
  border-radius: 30px;
}

@media (max-width: 992px) {
  /* MOBILE */
  .aboutus-feature-section {
    text-align: center;
  }

  .aboutus-feature-header {
    justify-content: center;
  }

  .aboutus-feature-text {
    margin: 0 auto;
  }

  .aboutus-feature-image {
    margin-top: 30px;
  }
}

/* SECTION SPACING */
.aboutus-features-section {
  padding-bottom: 20px;
  padding-top: 20px;
}

/* COLUMN */
.aboutus-feature-col {
  padding: 20px 15px;
}

/* ICON (big, top) */
.aboutus-feature-col-icon {
  width: 150px;
  margin-bottom: 20px;
}

/* Card style (glass feel like your overlay cards) */
.vision-img {
  margin-left: 190px;
}

.mission-img {
  transform: translateX(-110px);
}

.mission-img {
  transform: translateX(-130px);
  width: 100%!important;
}

/* Text */
.vision-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* wrapper controls stacking */
.vision-wrap {
  position: relative;
  border-radius: 16px;
  overflow: visible;
}

/* 👇 image = background layer */
.vision-bg {
  width: 95%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* 👇 card sits ON TOP */
.vision-card {
  position: absolute;
  top: 57%;
  left: 55%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 80%;
  max-width: 500px;
  height: 290px;
  padding: 25px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  color: white;
  text-align: center;
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
}

/* Overlay card */
.missoverlay-card {
  position: absolute;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 80%;
  max-width: 500px;
  height: 290px;
  padding: 25px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  color: white;
  text-align: center;
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  /* =========================================
     SINGLE MOBILE FIX (NON-DESTRUCTIVE)
     ========================================= */
  /* HERO STACK */
  .start-content {
    text-align: center;
  }

  .aboutheader-image {
    display: none;
  }

  /* STATS GRID → 1 COLUMN */
  .aboutus-stats-grid {
    grid-template-columns: 1fr !important;
  }

  /* FIX WIDE DIVIDER */
  .aboutus-stat-divider {
    width: 60%;
    max-width: 180px;
  }

  /* STACK ICON + NUMBER */
  .aboutus-stat-top {
    flex-direction: column;
    gap: 10px;
  }

  /* FEATURE SECTION STACK */
  .aboutus-feature-header {
    flex-direction: column;
    text-align: center;
  }

  .aboutus-feature-image {
    margin-top: 20px;
  }

  /* FEATURE ICON GRID SPACING */
  .aboutus-feature-col {
    padding: 20px 10px;
  }

  /* VISION / MISSION FIX */
  .vision-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .vision-bg,
  .mission-img {
    position: static !important;
    width: 100%;
    margin-top: 50px;
  }

  .vision-card,
  .missoverlay-card {
    position: static !important;
    width: 100%;
  }

  /* QUOTE SECTION */
  .CHeadshot {
    max-width: 250px !important;
    margin: 20px auto !important;
  }

  .col-12 {
    margin-top: 0px;
  }

  .vision-wrap {
    width: 100%;
    height: 280px;
  }

  .vision-img,
  .mission-img {
    margin: 0 !important;
    transform: translateY(-80%) !important;
    width: 120%!important;
  }

  .vision-bg {
    width: 100%;
    display: block;
    border-radius: 16px;
  }

  /* REAL OVERLAY (not flow-based) */
  .vision-card,
  .missoverlay-card {
    position: absolute;
    left: 50%;
    top: 70%;
    transform: translate(1%,1%);
    width: 110%;
    z-index: 5;
    padding: 18px;
    border-radius: 16px;
    margin: 10px 0px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
  }
}

.aboutus-stat-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* KEEP CONTENT ABOVE IMAGE */
.aboutus-stat-number,
.aboutus-stat-divider,
.aboutus-stat-label {
  position: relative;
  z-index: 2;
}

.CHeadshot {
  max-width: 325px;
  margin-left: 200px;
}

/* Phones and tablets (keeps the mobile rule from global.css winning over the rule above) */
@media (max-width: 991px) {
  .CHeadshot {
    margin-left: 0;
  }
}

@media (max-width: 1599px) and (min-width: 992px) {
  /*Tablet and Laptop*/
  .CHeadshot {
    max-width: 225px;
    margin-left: 100px;
  }

  .CHeadshot img {
    margin-top: 50px!important;
  }
}
