/* Shared Header*/
.Header {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(
      135deg,
      rgba(0, 0, 142, 0.7),
      rgba(1, 114, 128, 0.7)
    ),
    url("../img/Certificates/Certifcate-Header.webp") center/cover no-repeat;
  z-index: 1;
}

/* Shared Header*/
.leader-team-section {
  margin: 10vh auto;
  width: 80%;
  text-align: start;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.team-card {
  perspective: 1000px;
  height: 350px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
}

.team-card.visible .card-inner {
  transform: rotateY(360deg); /* Single 360-degree flip */
}

.card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 10px; /* Adjusted padding */
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 5px;
  box-sizing: border-box;
  border-radius: 10px;
  background: white;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-front:hover {
  cursor: pointer;
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.card-image {
  width: 100%;
  height: 80%;
  overflow: hidden;
  display: flex;
  align-items: flex-start; /* Changed from center to flex-start to align to top */
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%; /* Changed from auto to 100% to fill container */
  object-fit: cover;
  object-position: top;
}

.card-content {
  height: 20%; /* Fixed 30% for content */
  width: 100%;
  padding: 10px 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: white;
}

.member-name {
  margin: 0;
  font-size: 1.2rem;
  color: #19456b;
}

.member-role {
  margin: 5px 0 0;
  color: #19456b;
  font-size: 0.9rem;
}
.LeaderShip-content {
  width: 80%;
  margin: 10vh auto;
}
/* Base Styles */
.LeaderShip-content-wrapper {
  margin-bottom: clamp(2rem, 5vw, 3rem); /* Responsive spacing */
}

.Section-title {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem); /* Responsive gap */
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.Section-title svg {
  width: clamp(30px, 8vw, 50px); /* Fluid icon sizing */
  height: clamp(30px, 8vw, 50px);
}

.Section-title h3 {
  font-size: clamp(1.25rem, 4vw, 1.75rem); /* Fluid heading */
  margin: 0;
}

.animated-paragraph {
  font-size: clamp(1rem, 2.5vw, 1.2rem); /* Fluid paragraph */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  margin-left: clamp(0px, 8vw, 66px); /* Responsive indentation */
  padding-right: 1rem;
}

.animated-paragraph.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  .team-card {
    height: 400px; /* Slightly taller on mobile */
  }
  .Section-title {
    flex-direction: row; /* Keep horizontal layout on mobile */
    align-items: center;
  }

  .animated-paragraph {
    margin-left: clamp(15px, 3vw, 25px); /* Adjusted for icon */
  }
  .card-image {
    height: 75%; /* More space for image on mobile */
  }
  .card-content {
    height: 25%;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .Section-title {
    gap: 0.75rem;
  }

  .Section-title svg {
    min-width: 30px; /* Prevent too small */
  }

  .animated-paragraph {
    font-size: clamp(0.9rem, 2vw, 1rem); /* Slightly larger on small screens */
  }
}
