* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Team Hero */

.team-hero {
    background: url("/static/images/team-1-banner.e3b0add0d1ca.png");
    background-size: cover;
    background-position: center;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    margin-bottom: 50px;
    position: relative;
}

.team-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 58, 87, 0.4); /* Adjust the opacity as needed */
    z-index: 1;
}

.team-hero-text {
    position: relative;
    z-index: 2;
    display: flexbox;
    flex-direction: column;
    text-align: left;
    padding-left: 5px;
    padding-right: 50%;
    padding-top: 0;
    padding-bottom: 0;
    margin: 3px;
}

.team-hero-text h1 {
    display: flex;
    flex-direction: column;
    font-size: 3rem;
    font-family: 'Times New Roman', Times, serif;
    margin-bottom: 0.5rem;
    color: #223A66;
}

.team-hero-text h3 {
    color: #1AB006;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
}




/* Team Section */
.team-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f9fa;
}

.team-section h3 {
    font-size: 1rem;
    color: #36c919;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
    text-align: center;
    justify-content: center;
    justify-items: center;
    align-items: center;
}
.team-section h1 {
    font-size: 2.8rem;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    margin-bottom: 40px;
    color: #223A66;
    text-align: center;
    justify-content: center;
    justify-items: center;
    align-items: center;

}

.team-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
} 

.team-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.team-card {
    width: 100%;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    background-color: #fff;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #f9f9f9;
    display: block;
    margin: auto;
}

.team-card:hover {
    transform: scale(1.05);
}


/* Team Hero Responsive */
@media (max-width: 992px) {
  .team-hero {
    height: 220px;
    margin-bottom: 24px;
    padding: 0 8px;
    background-position: center;
  }
  .team-hero-text h1 {
    font-size: 2rem;
  }
  .team-hero-text h3 {
    font-size: 1rem;
  }
  .team-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .team-card {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .team-hero {
    height: 160px;
    margin-bottom: 12px;
    padding: 0 4px;
  }
  .team-hero-text h1 {
    font-size: 1.2rem;
  }
  .team-hero-text h3 {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .team-hero {
    height: 120px;
    margin-bottom: 6px;
    padding: 0 2px;
    background-position: center;
  }
  .team-hero-text {
    text-align: center;
    padding: 0 2px;
  }
  .team-hero-text h1 {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
  }
  .team-hero-text h3 {
    font-size: 0.7rem;
  }
  .team-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .team-card {
    height: 220px;
  }
  .team-card img {
    height: 100%;
  }
}