.about-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: min(6vw, 90px);

  /* margin-top: 40px; */
  padding-bottom: 0%;
  margin-bottom: 0%;
  
  position: relative;  /* ensure positioning context for absolute children */
  overflow: hidden;    /* clip extra spacing from absolute elements */
}
.about-overview > * {
  margin-bottom: 0;
  padding-bottom: 0%;
}

.overview-media {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

/* Blue frame outlines */
.overview-media::before,
.overview-media::after {
  content: "";
  position: absolute;
  border: 3px solid #1e64d5;
  border-radius: 22px;
  z-index: -1;
}

.overview-media::before {
  width: 92%;
  height: 92%;
  top: -20px;
  left: 25px;
}

.overview-media::after {
  width: 85%;
  height: 85%;
  bottom: -25px;
  right: -25px;
}


/* Main primary image */
.overview-media .primary {
  position: relative;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 3; /* top-most */
}

/* Secondary overlapping image */
.overview-media .secondary {
  position: absolute;
  bottom: 150px;
  right: -25px;
  z-index: 3;
 

  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.overview-media .tertiary {
  position: relative;
  bottom: 320px;
  right: -80px;
 

  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
/* Experience Badge */
.experience-card {
  position: absolute;
  bottom: 150px;
  left: 10px;
  background: #0a256f;
  color: #fff;
  border-radius: 15px;
  padding: 1.1rem 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  min-width: 300px;
}

.experience-card strong {
  font-size: 2rem;
  font-weight: 700;
}

.experience-card span {
  font-size: 1rem;
  opacity: 0.9;
}

/* Right side text */
.overview-content .pill {
  background: var(--color-accent);
  padding: 10px 20px;
  color: white;
  font-size: 1rem;
  border-radius: 40px;
  display: inline-block;
  margin-bottom: 10px;
}

.overview-content h2 {
  font-size: 2.4rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.overview-content p {
  color: var(--color-text);
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  text-justify: auto;
}

/* ============================= */
/* RESPONSIVE FIXES */
/* ============================= */

/* ============================= */
/* TABLET (≤ 1024px) — Show only primary and secondary images */
/* ============================= */
@media (max-width: 1024px) {
  .about-overview {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .overview-media {
    width: 90%;
    margin: 0 auto;
  }

  /* Primary image */
  .overview-media .primary {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Secondary image */
  .overview-media .secondary {
    bottom: 100px; /* adjust overlap for tablet */
    right: -15px;
    max-width: 250px;
  }

  /* Hide tertiary image */
  .overview-media .tertiary {
    display: none;
  }

  /* Experience card remains in position */
  .experience-card {
    position: relative;
    bottom: auto;
    left: auto;
    min-width: 90%;
    padding: 0.8rem 1.2rem;
    margin: 1rem auto;
  }

  /* Optional: adjust text size for tablet */
  .overview-content h2 {
    font-size: 2rem;
  }

  .overview-content p {
    font-size: 1.1rem;
      text-align: justify;
  }
}

/* ============================= */
/* MOBILE (≤ 640px) — Show only primary image */
/* ============================= */
@media (max-width: 640px) {
  .overview-media .primary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    bottom: auto;
    right: auto;
  }

  /* Hide secondary and tertiary */
  .overview-media .secondary,
  .overview-media .tertiary {
    display: none;
  }

  /* Experience card below image */
  .experience-card {
    position: relative;
    bottom: auto;
    left: auto;
    min-width: 90%;
    padding: 0.8rem 1.2rem;
    margin: 1rem auto;
  }

  /* Text adjustments for mobile */
  .overview-content h2 {
    font-size: 1.6rem;
  }

  .overview-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .overview-content .pill {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
}
