.team-hero {
  position: relative;
  background: linear-gradient(90deg,
      rgba(38, 115, 148, 1) 40%,
      rgba(38, 115, 148, 0.9) 60%,
      rgba(38, 115, 148, 0.3) 70%,
      rgba(38, 115, 148, 0) 100%),
    url("/wp-content/themes/ethos-migration/assets/dist/images/about-us-hero-banner.jpg") no-repeat right center;
  background-size: contain;
  /* keep image as-is */
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* centers content horizontally */
  min-height: 302px;
  text-align: left;
  padding: 0px 20px;
  margin: 20px auto;
}

/* ensure inner content matches other sections' width */
.team-hero .container {
  margin: 0 auto;
  width: 100%;
}

.title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
}

.team-hero-content {
  max-width: 650px;
  padding-left: 40px;
  position: relative;
  /* ensure content stays above the shape */
  z-index: 2;
  /*font-size: 14px;*/
}

.team-hero-content p {
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--white);
}

.team-name {
  font-size: 1.5rem !important;
  font-family: 'Proxima Nova Lt';
}

/* Hero content wrapper */

/* Decorative image at bottom center */
.hero-bottom-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-90%);
  z-index: 1;
  /* behind the content if needed */
  max-width: 200px;
  /* adjust as needed */
  width: 100%;
  height: auto;
}

.team-container {
  display: flex;
  max-width: 1320px;
  width: 100%;
  gap: 40px;
  align-items: flex-start;
  margin: 0 auto;
  width: 100%;
}

/* Team Grid */
.team-section {
  padding: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 24px;
}

.team-card {
  background-color: var(--white);
  /* border-radius: 8px; */
  border: 1px solid #00000040;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-image {
  width: 100%;
  height: 100%;
  max-height: 500px;
  min-height: 400px;
  background-color: #ddd;
  /* overflow: hidden; */
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-info {
  padding: 20px;
}

.team-name {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
}

.team-title {
  margin-bottom: 14px;
  color: #000000bf;
  font-size: 1.25rem;
}

.read-more-btn {
  background-color: var(--secondary-color);
  color: #000000;
  padding: 10px 20px;
  text-decoration: none;
  font-family: 'Proxima Nova Lt';
  font-size: 1rem;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.read-more-btn:hover {
  background-color: #d4c5a8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-image {
    height: 250px;
  }
}

/* For the team card images */
.team-image {
  width: 100%;
  height: 300px;
  background-color: #ddd;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* LEFT CARD */
.profile-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}

.profile-card img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  background: #ccc;
}

.profile-info {
  padding: 15px;
  font-size: 18px;
  line-height: 1.4;
}

.profile-info h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 6px;
}

.profile-info .label {
  font-weight: bold;
  margin-top: 10px;
  display: block;
  font-size: 16px;
}

.profile-info .label .label-content {
  font-weight: normal;
  margin-top: 16px;
}

.linkedin {
  padding: 15px;
}

.linkedin img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  display: block;
}

/* RIGHT SIDE */
.content {
  flex: 1;
  background: transparent;
  padding: 0px 30px;
}

.content h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 24px;
  color: #25708c;
}
.section-text p{
    margin-bottom: 24px!important;
}
.content li a , .content li h6{
    font-size:1.25rem;
}
.content ul , .content ol {
  padding-left: 20px;
  margin-bottom: 20px;
  /*margin-bottom: 2px;*/
  /* color: #25708c; */
  font-size: 1.25rem;
}

.content li a {
  margin-bottom: 20px;
  color: #25708c;
  /*font-size: 18px;*/
  text-decoration: none;
}

.content li a:hover {
  text-decoration: underline;
}

.contact-btn a {
  color: #25708c;
  /* margin-bottom: 2px; */
  cursor: pointer;
  text-decoration: none;
  vertical-align: middle;
  font-size: 18px;
}

.contact-btn a:hover {
  text-decoration: underline;
}

/* .content p {
  margin: 20px 0;
} */

.section-text {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #000000bf;
}

.section-text strong {
  color: #25708c;
}

.section-text a {
  color: #25708c;
  text-decoration: none;
}

.section-text a:hover {
  text-decoration: underline;
}

/* CONTACT BOX */
.contact-box {
  padding: 24px;
  margin-top: 30px;
  background: #ececec;
}

.contact-box-title {
  font-size: 1.5rem;
  font-weight: bold;
  font-weight: 600;
  margin-bottom: 15px;
}

.contact-buttons {
  display: flex;
  gap: 20px;
}

.contact-btn {
  flex: 1;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.contact-btn img {
  height: 24px;
  width: 24px;
  vertical-align: middle;
  margin-right: 10px;
}


@media (max-width: 768px) {
    .content li a , .content li h6{
    font-size:0.875rem;
}
  .contact-btn a {
    font-size: 0.875rem;
  }

  .has-large-font-size, .content h2 {
    font-size: 1.5rem!important;
  }

  .team-container h4 {
    font-size: 0.875rem;
  }

  .main-content {
    padding: 0px 16px;
  }

  .team-hero-content {
    padding-left: 0px;
  }

  .has-medium-font-size {
    font-size: 0.875rem !important;
  }

  .team-hero {
    background:
      linear-gradient(180deg,
        rgba(38, 115, 148, 0.5) 0%,
        rgba(38, 115, 148, 0.9) 40%,
        rgba(38, 115, 148, 0.3) 70%,
        rgba(38, 115, 148, 0) 100%),
      url("/wp-content/themes/ethos-migration/assets/dist/images/about-us-hero-banner.png") no-repeat center top/contain;
    background-size: cover;
    background-color: var(--primary-color);
    text-align: center;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 60px 20px;
    min-width: 360px;
    margin: 48px 16px !important;
    text-align: left;
    min-height: 500px;
  }

  .team-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(38, 115, 148, 0.9) 0%,
        rgba(38, 115, 148, 0.5) 60%,
        rgba(38, 115, 148, 0) 100%);
    z-index: 1;
  }

  .team-hero .container {
    position: relative;
    z-index: 2;
    padding: 0;
  }

  .team-hero-content {
    max-width: 100%;
    padding: 48px 24px;
  }

  .team-hero .title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 12px;
    font-weight: 600;
  }

  .team-hero p {
    font-size: 1rem;
    color: #f1f1f1;
    margin-bottom: 24px;
  }

  .team-hero .hero-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
  }

  .team-hero .hero-buttons .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
    border: none;
    font-weight: 600;
    background: #e2dcb7;
    color: #000;
  }

  .team-hero .hero-bottom-image {
    display: none;
  }

  .team-section {
    margin-top: 60px;
  }

  .team-container {
    margin-top: 40px !important;
    flex-direction: column;
    padding: 0 16px;
  }

  .profile-card {
    margin-bottom: 20px;
    text-align: left;
  }

  .profile-card img {
    width: 100%;
    height: auto;
  }

  .profile-info {
    text-align: left;
  }

  .profile-card .linkedin img {
    width: 24px;
    height: 24px;
  }

  .profile-card .linkedin {
    margin-top: 12px;
  }

  .content {
    padding: 0;
  }

  .contact-box {
    margin-top: 40px;
  }

  .contact-buttons {
    flex-direction: row;
    gap: 12px;
  }

  .contact-btn a {
    width: 100%;
    text-align: center;
    padding: 10px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-image {
    min-height: 470px;
  }
}