body {
  margin: 0%;
  padding: 0%;
  overflow-x: hidden; /* Prevent horizontal scrolling on the entire page */
}
.carousel {
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  position: relative;
}
.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}
/* old */
/* .item {
  min-width: 100vw;
  height: 800px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.item img {
  width: 100%;
  height: 800px;
  object-fit: cover;
  overflow: hidden;
} */

/* old2 */
.item {
  min-width: 100vw;
  height: 100vh;
  padding-right: 220px;
  box-sizing: border-box;
  position: relative;
  overflow: initial;
}

.imgcrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.imgcrop.center_center_pc {
  object-position: center center;
}

.imgcrop.center_top_pc {
  object-position: center top;
}

.imgcrop.left_center_pc {
  object-position: left center;
}

.imgcrop.right_center_pc {
  object-position: right center;
}

.imgcrop.center_bottom_pc {
  object-position: center bottom;
}

.imgcrop.right_top_pc {
  object-position: right top;
}

.imgcrop.right_bottom_pc {
  object-position: right bottom;
}

.imgcrop.left_top_pc {
  object-position: left top;
}

.imgcrop.left_bottom_pc {
  object-position: left bottom;
}

.slider-content {
  position: absolute;
  top: 20%;
  left: 40%;
  transform: translateX(-50%);
  color: white;
  text-shadow: 0 5px 10px black;
  max-width: 1140px;
}
.topic {
  color: coral;
  font-size: 25px;
  font-weight: 600;
  margin-top: 50px;
  margin-bottom: 10px;
}
.des {
  color: white;
  font-size: 20px;
  /* font-weight: bold; */
  text-shadow: 1px solid black;
  margin-bottom: 10px;
}
.buttons {
  position: absolute;
  bottom: 5%;
  right: 5%;
  margin-top: 30px;
  display: flex;
  gap: 10px;
}
button {
    width: 12vw;
    min-width: 90px;
    max-width: 160px;
    height: 12vw;
    min-height: 90px;
    max-height: 160px;
    border-radius: 50%;
    border: none;
    background-color: aliceblue;
    color: black;
    letter-spacing: 3px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.29);
    display: flex;
}
button:nth-child(2) {
  background-color: transparent;
  right: 5%;
  color: white;
  /* background-color: transparent; */
  background-color: #5b8bb3;
  border: 2px solid white;
  /* box-shadow: 2px 2px black; */
  /* text-shadow: 2px 2px black; */
}



/* Ensure links inside buttons have consistent styles */
button a {
  color: white; /* Text color of links set to white */
  text-decoration: none; /* Remove underline */
  font-weight: inherit; /* Inherit font-weight from button */
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

button:nth-child(2) a {
  color: white; /* Explicitly set for the second button */
}

button:hover {
  opacity: 0.9;
  transition: 0.3s;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for mobile devices */
@media (max-width:768px) {
  .item {
    min-width: 100vw;
    height: 400px;
    padding-right: 0;
    box-sizing: border-box;
    position: relative;
    overflow: initial;
  }

  .item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    overflow: hidden;
    /* object-position: initial; */
  }

  .imgcrop.center_center_sp {
    object-position: center center;
  }

  .imgcrop.center_top_sp {
    object-position: center top;
  }

  .imgcrop.left_center_sp {
    object-position: left center;
  }

  .imgcrop.right_center_sp {
    object-position: right center;
  }

  .imgcrop.center_bottom_sp {
    object-position: center bottom;
  }

  .imgcrop.right_top_sp {
    object-position: right top;
  }

  .imgcrop.right_bottom_sp {
    object-position: right bottom;
  }

  .imgcrop.left_top_sp {
    object-position: left top;
  }

  .imgcrop.left_bottom_sp {
    object-position: left bottom;
  }

  .topic {
    color: coral;
    font-size: 15px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .slider-content {
    top: 8%;
  }

  .slider-content {
    top: 8%;
    left: 0;
    width: 91%;
    padding: 0 5%;
    transform: translateX(0);
    text-shadow: 0 5px 10px black;
}

  .des {
    /* visibility: hidden; */
    font-size: 14px;
  }
  
  .buttons {
    font-size: 10px;
  }

  button {
    padding: 0 5px;
  }
}
