::-webkit-scrollbar {
  background: #b6b6b6;
  border-radius: 5px;
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: #4a5fd3;
  border-radius: 5px;
  width: 10px;
}

img {
  max-width: 100%;
  margin-top: -150px;
}

#management {
  height: 100vh;
  position: relative;
  padding-top: 70px;
  overflow: hidden;
}

#management .container-fluid {
  padding: 0;
  height: 100%;
  position: relative;
  overflow: hidden;
}

#management .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(0, 0, 0, 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: visible; */
  gap: 2.5rem;
  transition: transform 0.5s ease;
  touch-action: pan-y pinch-zoom;
  position: relative;
}

.team-member {
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/4;
  flex-shrink: 0;
  /* background-color: red; */
}

.team-member img {
  width: 100%;
  height: 90%;
  scale: 0.8;
  /* background-color: blue; */
  object-fit: cover;
  position: relative;
  top: 115px;
  left: 5px;
}

.team-member img.tiara {
  top: 128px;
}
.member-info {
  position: absolute;
  bottom: -50px;
  left: -13px;
  right: 0;
  padding: 1.5rem 1rem;
  text-align: center;
  color: white;
  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: 0.5rem;
  font-weight: 600;
}

.member-info p {
  /* color: #93c5fd; */
  font-size: 14px;
  font-weight: 400;
  font-family: Poppins;
  color: #e3e3e3;
}

.member-info img {
  top: 45px;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  display: flex;
  align-items: center;
  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 */
  #management {
    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;
}

/* Batas */
.container {
  max-width: 1200px;
  margin: 100px auto;
  padding: 150px 20px;
}

.image-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 180px 50px;
}

.image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.image-wrapper {
  width: 100%;
  position: relative;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.center-container {
  grid-column: 1 / span 2;
  max-width: 50%;
  margin: 0 auto;
}

.read-more-btn {
  background-color: #2c3e50;
  color: white;
  padding: 10px 30px;
  border-radius: 30px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  margin-top: 20px;
}

.read-more-btn:hover {
  background-color: #fdfdfd;
  color: #2c3e50;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .image-section {
    grid-template-columns: 1fr;
  }

  .center-container {
    grid-column: 1;
    max-width: 100%;
  }
}
