* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f5f5f5;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;

  /* display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  height: 100%; */
}

.main-title {
  font-size: 3rem;
  margin-top: 8rem;
  font-weight: bold;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.description {
  text-align: center;
  color: #666;
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.description strong {
  color: #444;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Enhanced 3D Flip Card */
.flip-card {
  background-color: transparent;
  perspective: 1500px;
  height: 250px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 10px;
}

.flip-card-front {
  background-color: #4a5fd3;
  color: white;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  transform: rotateY(0deg);
}

.flip-card-back {
  background-color: #f0f0f0;
  color: #333;
  transform: rotateY(180deg);
  overflow-y: auto;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-size: 1.2rem;
  line-height: 1.4;
}

.card-content {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Awards Card */
.awards-card {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  height: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.awards-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.awards-title {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  line-height: 1.4;
}

.awards-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
}
/* BATAS */
#slide_pengurus {
  position: relative;
  width: 100%;
  height: 100vh; /* Set explicit height */
  overflow: hidden;
  display: block; /* Ensure it's displayed */
  visibility: visible; /* Ensure visibility */
}

#slide_pengurus .container-fluid {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: block;
}

/* Fix for background image */
#slide_pengurus .container-fluid > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0.5rem;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
  color: white;
}

.header h1 {
  font-family: Roboto Serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 56.21px;
}

.header p {
  font-family: Roboto Serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 42.16px;
}

.carousel-container {
  /* background-color: blue; */
  position: relative;
  padding: 0 3.8rem;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  /* background-color: blueviolet; */
  width: 1200px;
}

.carousel {
  display: flex;
  overflow-x: auto; /* Allow horizontal scrolling */
  scrollbar-width: none; /* Hide scrollbar Firefox */
  -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
  scroll-snap-type: x mandatory;
  gap: 45px;
  padding: 50px 0;
  width: 100%;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.carousel::-webkit-scrollbar {
  display: none;
}

.team-member {
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  flex-shrink: 0;

  /* background-color: red; */
}

.team-member img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  position: relative;
  top: 0px;
}

/* .team-member img.tiara {
  top: 128px;
} */
.member-info {
  position: absolute;
  bottom: -10px;
  left: -13px;
  right: 0;
  padding: 1.5rem 1rem;
  text-align: center;
  color: rgb(43, 43, 43);
  transform: translateY(0);
  transition: transform 0.3s ease;
  /* background-color: brown; */
  -webkit-transition: transform 0.3s ease;
  -moz-transition: transform 0.3s ease;
  -ms-transition: transform 0.3s ease;
  -o-transition: transform 0.3s ease;
  -webkit-transition: transform 0.3s ease;
}

.team-member:hover .member-info {
  transform: translateY(-5px);
  -webkit-transform: translateY(-5px);
  -moz-transform: translateY(-5px);
  -ms-transform: translateY(-5px);
  -o-transform: translateY(-5px);
  cursor: pointer;
}

.member-info h3 {
  font-family: Poppins;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
}

.member-info p {
  /* color: #93c5fd; */
  font-size: 14px;
  font-weight: 400;
  font-family: Poppins;
  /* top: -50px; */
  color: #434343;
}

.member-info img {
  top: -20px;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  color: rgb(41, 41, 41);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  display: flex;
  align-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 4px 8px rgba(0, 0, 0, 0.2);
  justify-content: center;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.nav-button:active {
  transform: translateY(-50%) scale(0.95);
}

.prev {
  left: 1rem;
}

.next {
  right: 1rem;
}

@media (max-width: 1024px) {
  .team-member {
    min-width: calc(50% - 1rem);
  }

  .carousel-container {
    width: 100%;
    padding: 0 4rem;
  }

  .carousel::before,
  .carousel::after {
    width: 4rem;
  }

  .carousel::before {
    left: -4rem;
  }

  .carousel::after {
    right: -4rem;
  }
}

@media (max-width: 768px) {
  .header {
    margin-bottom: 1.5rem;
    padding-top: 0;
    position: relative;
    top: -70px;
  }

  .header h1 {
    font-size: 36px;
    /* line-height: 42px; */
    line-height: 40px;
    margin-top: 0;
  }

  .header p {
    font-size: 24px;
    line-height: 30px;
    margin-top: 0;
  }

  /* Center the carousel container */
  .carousel-container {
    padding: 0 2rem;
    width: 100%;
    max-width: 100%;
    position: relative;
    top: -50px;
  }

  /* Adjust team member dimensions */
  .team-member {
    width: 100%;
    aspect-ratio: 3/5;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Adjust image sizing and position */
  .team-member img {
    height: 65%;
    scale: 0.9;
    top: 90px;
    left: 0;
  }

  /* Center the member info */
  .member-info {
    position: absolute;
    bottom: 110px;
    left: 0;
    right: 30px;
    text-align: center;
  }

  .member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
  }

  .member-info p {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
  }

  .member-info img {
    margin-bottom: 25px;
    /* left: 12px; */
  }

  /* Hide previous button on mobile */
  .prev {
    display: none;
  }

  /* Position next button properly */
  .next {
    right: 0.5rem;
    top: 30%;
  }

  /* Adjust section height */
  /* #slide_pengurus {
    height: 100vh;
    padding-top: 50px;
  } */

  /* Adjust the background overlay */
  .layer {
    padding-top: 0;
    margin-top: 0;
  }
}

.instagram-link {
  display: inline-block;
  margin-top: 1rem;
  margin-right: 1rem;
}

.instagram-link img {
  width: 25px;
  transition: all 0.3s ease;
}

.instagram-link img:hover {
  transform: scale(1.1);
  transition: all 0.3s ease;
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}
