@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
*,
*:before,
*:after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

#header {
  transition: background-color 0.35s ease, transform 0.3s ease;
}

.links {
  position: relative;
  transition: all 0.35s ease;
}

.links::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #66bb6a, #23b390);
  border-radius: 10px;
  transition: all 0.35s ease;
  transform: translateX(-50%);
}

.links:hover {
  transform: translateY(-3px) scale(1.02);
  color: #2e7d32;
}

.links:hover::after {
  width: 70%;
}
.dark .links:hover {
  color: #3f6d4b;
}

.dark .links::after {
  background: linear-gradient(90deg, #3f6d4b, #5faf73);
}

/* carousel */
.carousel .list .item .title,
.carousel .list .item .topic {
  line-height: 1.2em;
}
.carousel .list .item .buttons button:hover span {
  width: 100%;
}
button:hover i {
  transform: translateX(5px); /* Moves icon slightly to the right on hover */
}
.carousel .list .item .buttons button:nth-child(2) {
  background-color: transparent;
  border: 1px solid #fff;
  color: #eee;
}

/* animation */
.carousel .list .item:nth-child(1) {
  z-index: 1;
}

/* animation text in first item */
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.kelasshow .semuakelas,
.kelasshow .kelasscroll,
.carousel .list .item:nth-child(1) .content .buttons {
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent 0.5s 1s linear 1 forwards;
}
@keyframes showContent {
  to {
    transform: translateY(0px);
    filter: blur(0px);
    opacity: 1;
  }
}

.kelasshow .kelash1,
.kelasshow p {
  transform: scale(0.8);
  filter: blur(20px);
  opacity: 0;
  animation: zoomContent 2.2s 0s ease forwards;
}

.topsection {
  transform: scale(0.8);
  filter: blur(20px);
  opacity: 0;
  animation: zoomContent 1s 0s ease forwards;
}

@keyframes zoomContent {
  to {
    transform: scale(1);
    filter: blur(0px);
    opacity: 1;
  }
}

.carousel .list .item:nth-child(1) .content .title {
  animation-delay: 1.2s !important;
}
.carousel .list .item:nth-child(1) .content .topic {
  animation-delay: 1.4s !important;
}
.carousel .list .item:nth-child(1) .content .des {
  animation-delay: 1.6s !important;
}
.carousel .list .item:nth-child(1) .content .buttons {
  animation-delay: 1.8s !important;
}
/* create animation when next click */
.carousel.next .list .item:nth-child(1) img {
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  border-radius: 30px;
  animation: showImage 0.5s linear 1 forwards;
}
@keyframes showImage {
  to {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.carousel.next .thumbnail .item:nth-last-child(1) {
  overflow: hidden;
  animation: showThumbnail 0.5s linear 1 forwards;
}
.carousel.prev .list .item img {
  z-index: 100;
}
@keyframes showThumbnail {
  from {
    width: 0;
    opacity: 0;
  }
}
.carousel.next .thumbnail {
  animation: effectNext 0.5s linear 1 forwards;
}

@keyframes effectNext {
  from {
    transform: translateX(150px);
  }
}

/* prev click */
.carousel.prev .list .item:nth-child(2) {
  z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img {
  animation: outFrame 0.5s linear 1 forwards;
  position: absolute;
  bottom: 0;
  left: 0;
}
@keyframes outFrame {
  to {
    width: 150px;
    height: 220px;
    bottom: 50px;
    left: 50%;
    border-radius: 20px;
  }
}

.carousel.prev .thumbnail .item:nth-child(1) {
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail 0.5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button {
  pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons {
  animation: contentOut 1.5s linear 1 forwards !important;
}
#bottomMenu {
  opacity: 0;
  transform: translate(-50%, 20px) scale(0.95);
}

#bottomMenu.showMenu {
  animation: smoothMenuIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes smoothMenuIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 30px);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -4px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
    filter: blur(0);
  }
}
@keyframes contentOut {
  to {
    transform: translateY(-150px);
    filter: blur(20px);
    opacity: 0;
  }
}
@media screen and (max-width: 678px) {
  .carousel .list .item .content {
    padding-right: 0;
  }
  .carousel .list .item .content .title {
    font-size: 30px;
  }
}

@media (max-width: 638px) {
  #header {
    margin-top: 16px;
  }
}

/* typing */
.typing-cursor {
  display: inline-block;
  width: 0.15em;
  height: 1em;
  background-color: white;
  animation: blink-caret 0.75s step-start infinite;
  vertical-align: middle;
}

@keyframes blink-caret {
  from,
  to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* swiper testimoni */
.mySwiper .swiper-slide {
  height: auto;
  display: flex;
}

.mySwiper .swiper-slide > div {
  flex: 1;
}

/* sweetalert */
.swal2-container {
  z-index: 99999 !important;
}

.dark .swal2-popup {
  background: #000000;
  color: #f9fafb;
}
.swalInput {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #111827;
}

.swalInput:focus {
  border-color: #43a047;
  box-shadow: 0 0 0 2px rgba(67, 160, 71, 0.15);
}

.dark .swalInput {
  background: #1f2937;
  border: 1px solid #374151;
  color: #f9fafb;
}

.dark .swalInput:focus {
  border-color: #66bb6a;
  box-shadow: 0 0 0 2px rgba(102, 187, 106, 0.2);
}

.swalConfirmBtn {
  background: #43a047;
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  margin-right: 10px;
  transition: all 0.2s ease;
}

.swalConfirmBtn:hover {
  background: #388e3c;
}

.swalCancelBtn {
  background: #e5e7eb;
  color: #111827;
  padding: 10px 22px;
  border-radius: 8px;
  margin-left: 10px;
  transition: all 0.2s ease;
}

.swalCancelBtn:hover {
  background: #d1d5db;
}
.dark .swalCancelBtn {
  background: #374151;
  color: #f9fafb;
}

.dark .swalCancelBtn:hover {
  background: #4b5563;
}
