/*==================== Team CSS =======================*/
#team {
    background-color: #8EF9F3; /* Set background color for the section */
    text-align: center; /* Align content center horizontally */
    padding: 50px 0; /* Add padding for spacing */
    margin-top: 20px; /* Remove default margins */
    overflow: hidden; /* Ensure no overflow from child elements */
    width: 100%;
  }
  
  /* Style for the team heading */
  #team h2 {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 20px;
  }
  
  /* Style for cards */
  .card {
    width: 16.5%; /* Reduced width to create a gap and slightly smaller size */
    min-width: 200px; /* Adjusted minimum width */
    height: 280px; /* Reduced height */
    overflow: hidden;
    position: relative;
    margin: 1% 2%; /* Added gap between cards */
    display: inline-block;
    vertical-align: top; /* Adjust vertical alignment if needed */
    border-radius: 50px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: Add shadow for depth */
  }
  
  @media (max-width: 992px) {
    .card {
      width: 30%; /* Adjust for medium-sized screens */
    }
    #team h2 {
      font-size: 28px;
    }
  }
  
  @media (max-width: 768px) {
    .card {
      width: 46%; /* Adjust for smaller screens */
    }
  }
  
  @media (max-width: 480px) {
    .card {
      width: 100%; /* Full width for very small screens, stacking cards */
      margin: 1% 0; /* Adjust margin for stacking */
    }
  }
  
  /* Data section inside the card */
  .data {
    position: absolute;
    bottom: 0;
    background: #fff;
    text-align: center;
    width: 90%;
    height: 80px;
    overflow: hidden;
    left: 0;
    right: 0;
    margin: 0 auto;
    padding: 6px 5%;
    box-sizing: border-box;
    opacity: 0.8;
    transition: all 0.4s;
  }
  
  .card:hover .data {
    width: 100%;
    height: 100%;
    bottom: 0;
    opacity: 0.9;
    padding: 40px 10%; /* Adjusted padding for buttons */
  }
  
  .card img {
    width: 100%;
    height: 280px; /* Ensure images scale proportionally */
    border-radius: 20px; /* Rounded corners */
    transition: all 0.9s;
    object-fit: cover;
  }
  
  .card:hover img {
    transform: scale(1.1); /* Adjust hover scaling */
  }
  
  .data h3 {
    margin: 0 0 5px 0;
    transition: color 0.4s;
    font-size: 16px;
  }
  
  .data i {
    font-size: 14px;
  }
  
  .data p {
    opacity: 0;
    text-align: left;
    transition: all 0.2s;
    font-size: 13.5px;
  }
  
  /* Social Icons (Buttons) */
  .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }
  
  .social-icons a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 30px;
    background-color: #8ca5ea;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .social-icons a i {
    font-size: 20px;
  }
  
  .social-icons a:hover {
    background-color: #002347;
    color: #fff;
  }
  
  .card:hover .data p,
  .card:hover .social-icons {
    opacity: 1;
  }
  
  @media (max-width: 799px) {
    .card {
      width: 65%;
      margin: 1% 0; /* Adjust margin for stacking */
    }
  }
  
  .newdiv {
    display: flex;
    justify-content: center;
  }