/* Section 1 */
.section-team-team-1 .hero-img-wrapper {
  height: 375px;
}

/* Section 2 */
.section-team-2 .hero-img-wrapper {
  height: 375px;
}

/* Section 3 */
.section-team-3 .square-img-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 0.375rem;
}
.section-team-3 .square-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-team-3 .section-padding-y {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.section-team-3 .hero-img {
  height: 400px;
}

/* Section 4 (Team) */
.section-team-4 {
  overflow-x: hidden !important; /* --- Horizontal Scroll FIX --- */
}

.section-team-4 .card_image {
  width: 100%;
  height: 250px;
  border-radius: 1rem;
  object-fit: cover;
}

.section-team-4 .font {
  font-size: 15px;
}

/* Mobile (< 768px) */
@media (max-width: 768.98px) {
  .section-team-4 .card_image {
    height: 200px;
    border-radius: 0.8rem;
  }

  /* Fix column overflow */
  .section-team-4 .col-md-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Inner padding fix */
  .section-team-4 .col-md-4 > div.mt-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .section-team-4 .card-title {
    display: flex;
  }
}

/* Tablet (768px – 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .section-team-4 .row.g-5 {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .section-team-4 .col-md-4 {
    flex: 0 0 48%;
    max-width: 48%;
    display: flex;
    flex-direction: column;
  }

  .section-team-4 .card_image {
    height: 250px;
    border-radius: 1.2rem !important;
  }

  .section-team-4 .col-md-4 > div.mt-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* Section 5 */
.section-team-5 {
  overflow-x: hidden !important; /
}

.section-team-5 .card_image {
  width: 100%;
  height: 250px;
  border-radius: 1rem;
  object-fit: cover;
}

.section-team-5 .font {
  font-size: 15px;
}

/* Mobile (< 768px) */
@media (max-width: 768.98px) {
  .section-team-5 .card_image {
    height: 200px;
    border-radius: 0.8rem;
  }

  /* Fix horizontal overflow */
  .section-team-5 .col-md-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Fix inner padding */
  .section-team-5 .col-md-4 > div.mt-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .section-team-5 .card-title {
    display: flex;
  }
}

/* Tablet (768px – 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .section-team-5 .row.g-5 {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .section-team-5 .col-md-4 {
    flex: 0 0 48%;
    max-width: 48%;
    display: flex;
    flex-direction: column;
  }

  .section-team-5 .card_image {
    height: 250px;
    border-radius: 1.2rem !important;
  }

  .section-team-5 .col-md-4 > div.mt-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}



/* Section 6 */
.section-team-6 {
  overflow-x: hidden !important; /
}

.section-team-6 .card_image {
  width: 100%;
  height: 250px;
  border-radius: 1rem;
  object-fit: cover;
}

.section-team-6 .font {
  font-size: 15px;
}

/* Mobile (< 768px) */
@media (max-width: 768.98px) {
  .section-team-6 .card_image {
    height: 200px;
    border-radius: 0.8rem;
  }

  /* Fix horizontal overflow */
  .section-team-6 .col-md-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Fix inner padding */
  .section-team-6 .col-md-4 > div.mt-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .section-team-6 .card-title {
    display: flex;
  }
}

/* Tablet (768px – 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .section-team-6 .row.g-5 {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .section-team-6 .col-md-4 {
    flex: 0 0 48%;
    max-width: 48%;
    display: flex;
    flex-direction: column;
  }

  .section-team-6 .card_image {
    height: 250px;
    border-radius: 1.2rem !important;
  }

 .section-team-6 .col-md-4 > div.mt-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}



/* Section 7 */
.section-team-7 .card-bg {
  position: relative;
  border-radius: 1rem;
  min-height: 375px;
  overflow: hidden;
}
.section-team-7 .card-bg img {
  border-radius: 1rem;
  object-fit: cover;
  width: 100%;
  height: 375px;
}

/* Section 8 */
.section-team-8 .card-bg {
  position: relative;
  border-radius: 1rem;
  min-height: 375px;
  overflow: hidden;
}
.section-team-8 .card-bg img {
  border-radius: 1rem;
  object-fit: cover;
  width: 100%;
  height: 375px;
}
.section-team-8 .card-img-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 2.5rem;
  color: white;
}

/* Section 9 */
/* Full-width wrapper for image */
.section-team-9 .image-wrapper {
  width: 100%;
  padding-left: 1rem;  /* padding works now */
  padding-right: 1rem;
  box-sizing: border-box;
  margin: 0 auto;
}

/* Aspect Ratio */
.section-team-9  .aspect-ratio-5-6 {
  position: relative;
  width: 100%;
  padding-bottom: 60%; /* Mobile default */
  overflow: hidden;
  border-radius: 0.75rem;
  max-width: 900px; /* Optional max width */
  margin: 0 auto;
}

@media (min-width: 576px) {
  .section-team-9  .aspect-ratio-5-6 {
    padding-bottom: 70%; /* Tablet */
  }
}

@media (min-width: 992px) {
  .section-team-9  .aspect-ratio-5-6 {
    padding-bottom: 83.3333%; /* Desktop */
  }
}

/* Image */
.section-team-9  .aspect-ratio-5-6 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


/* ---- Mobile Fix ---- */
@media (max-width: 575.98px) {
  .section-team-9 .aspect-ratio-5-6 {
    padding-bottom: 0; /* Remove desktop ratio */
    height: 320px; /* Perfect mobile height */
    border-radius: 0; /* Full width edge-to-edge */
  }

  .section-team-9 .aspect-ratio-5-6 img {
    border-radius: 0;
    height: 100%;
    object-fit: cover;
  }
}

/* Section 10 */
.section-team-10 .aspect-ratio-5-6 {
  position: relative;
  width: 100%;
  padding-bottom: 83.3333%;
}
.section-team-10 .aspect-ratio-5-6 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0.75rem;
}
@media (max-width: 575.98px) {
  .section-team-10 .aspect-ratio-5-6 img {
    border-radius: 0;
  }
}

/* Section 11 */
.section-team-11 .card_image {
  width: 100%;
  height: 250px;
  border-radius: 1rem;
  object-fit: cover;
}
.section-team-11 .font {
  font-size: 15px;
}
/* media queries ... */

/* Section 12 */
.section-team-12 .card_image {
  width: 100%;
  height: 250px;
  border-radius: 1rem;
  object-fit: cover;
}

/* Mobile View Fix */
@media (max-width: 768px) {
  /* Remove padding from columns */
  .section-team-12 .col-md-6 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Remove padding from row */
  .section-team-12 .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Remove padding from container */
  .section-team-12 .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Image fix */
  .section-team-12 .card_image {
    width: 100%;
    height: 190px;
    border-radius: 1rem !important;
    object-fit: cover;
    display: block;
  }
}
