/* Hero Banner Section */
.team-hero {
    background: /*linear-gradient(135deg, rgba(76, 128, 138, 0.8) 0%, rgba(59, 65, 103, 0.8) 100%),*/ url('../img/bg/63.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0 60px;
    color: white;
    text-align: center;
}

.team-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-family: 'Verdana', sans-serif;
}

.team-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Style the header section */
.page-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.page-header h1 {
  font-family: 'Verdana', sans-serif;
  font-size: 2.5rem;
  color: #fff;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
}


.highlighted-title {
  background: linear-gradient(135deg, #4C808A, #3B4167);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 8px 25px rgba(76, 128, 138, 0.3);
  font-weight: 600;
  font-family: 'Quicksand', sans-serif;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 8px 25px rgba(76, 128, 138, 0.3);
  }
  to {
    box-shadow: 0 12px 35px rgba(76, 128, 138, 0.5);
  }
}



h1 {
    text-align: center;
    font-family: 'Verdana', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin: 2rem 0;
    color: #fff;
}

.ms-content-boxx p {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  margin-top: 1rem;
}


/* Team section */
.team-section {
  padding: 80px 0;
  background: #fff;
  position: relative;
}

/* Team member styles */
.team-member {
    position: relative;
    background: #fff;
    max-width: 300px;
    margin: auto;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
}

.team-member button {
    border: none;
    outline: 0;
    padding: 12px;
    color: white;
    background-color: #000;
    text-align: center;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
}

.team-member button:hover {
    opacity: 0.7;
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.team-member-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 15px;
    padding: 50px;
}

.name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #17181c;
    font-family: 'Quicksand', sans-serif;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.title {
    font-size: 0.95rem;
    color: #4C808A;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.4;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover popup */
.popup {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(76, 128, 138, 0.95), rgba(59, 65, 103, 0.95));
    color: white;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-sizing: border-box;
    border-radius: 15px;
    text-align: center;
    overflow-wrap: break-word;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    line-height: 1.6;
}

.team-member:hover .popup {
    opacity: 1;
    visibility: visible;
}

/* Responsive team layout */
@media (max-width: 992px) {
  .team-member {
    min-height: 320px;
  }
  
  .team-member img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .team-section {
    padding: 60px 0;
  }
  
  .team-member {
    min-height: 280px;
  }
  
  .team-member img {
    height: 180px;
  }
  
  .name {
    font-size: 1.1rem;
  }
  
  .title {
    font-size: 0.9rem;
    min-height: 2.4rem;
  }
}

/* Responsive styles for hero banner */
@media (max-width: 768px) {
  .team-hero {
    padding: 80px 0 50px;
  }
  
  .team-hero h1 {
    font-size: 2.5rem;
  }
  
  .team-hero p {
    font-size: 1.1rem;
    padding: 0 20px;
  }
  
  .highlighted-title {
    font-size: 1.8rem;
    padding: 0.4rem 1rem;
  }
}

@media (max-width: 576px) {
  .team-hero {
    padding: 70px 0 40px;
  }
  
  .team-hero h1 {
    font-size: 2rem;
  }
  
  .team-hero p {
    font-size: 1rem;
    padding: 0 15px;
  }
  
  .highlighted-title {
    font-size: 1.5rem;
    padding: 0.3rem 0.8rem;
  }
}
