

/* ========================================
   Container
======================================== */

.neofuns-indonesia-carousel {
  width: 100%;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  box-sizing: border-box;
}


/* ========================================
   Main box
======================================== */

.nf-carousel-box {
  position: relative;
  width: 100%;
  overflow: hidden;

  background: #f6f6f6;

  border-radius: 18px;

  box-sizing: border-box;
}


/* ========================================
   Slide
======================================== */

.nf-carousel-slide {
  display: none;

  width: 100%;

  min-height: 420px;

  padding: 45px 80px;

  box-sizing: border-box;

  align-items: center;

  gap: 60px;
}

.nf-carousel-slide.is-active {
  display: flex;
}


/* ========================================
   Image
======================================== */

.nf-slide-image {
  width: 43%;

  flex: 0 0 43%;

  overflow: hidden;

  border-radius: 12px;
}

.nf-slide-image img {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 4 / 3;

  object-fit: cover;

  border-radius: 12px;
}


/* ========================================
   Text
======================================== */

.nf-slide-content {
  flex: 1;

  min-width: 0;

  padding-right: 35px;
}

.nf-slide-label {
  display: block;

  margin-bottom: 12px;

  color: #004297;

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 2px;
  line-height: 1.4;
}

.nf-slide-content h2 {
  margin: 0 0 18px;

  color: #111;

  font-size: 31px;
  font-weight: 700;

  line-height: 1.25;
}

.nf-slide-content p {
  max-width: 500px;

  margin: 0;

  color: #555;

  font-size: 16px;

  line-height: 1.8;
}


/* ========================================
   Arrows
======================================== */

.nf-carousel-arrow {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  z-index: 50;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  padding: 0;
  margin: 0;

  border: 0;

  border-radius: 50%;

  background: #fff;

  color: #222;

  font-family: Arial, sans-serif;

  font-size: 25px;

  line-height: 1;

  cursor: pointer;

  pointer-events: auto;

  box-shadow: 0 3px 12px rgba(0,0,0,.2);

  -webkit-appearance: none;
  appearance: none;

  transition:
    background .25s ease,
    color .25s ease,
    transform .25s ease;
}

.nf-carousel-arrow:hover {
  background: #004297;
  color: #fff;

  transform: translateY(-50%) scale(1.05);
}

.nf-carousel-arrow:focus {
  outline: 2px solid #004297;
  outline-offset: 2px;
}

.nf-carousel-prev {
  left: 15px;
}

.nf-carousel-next {
  right: 15px;
}


/* ========================================
   Dots
======================================== */

.nf-carousel-dots {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 9px;

  width: 100%;

  margin-top: 20px;
}

.nf-carousel-dot {
  width: 9px;
  height: 9px;

  padding: 0;
  margin: 0;

  border: 0;

  border-radius: 50%;

  background: #d2d2d2;

  cursor: pointer;

  -webkit-appearance: none;
  appearance: none;
}

.nf-carousel-dot.is-active {
  width: 11px;
  height: 11px;

  background: #004297;
}


/* ========================================
   Tablet
======================================== */

@media (max-width: 900px) {

  .nf-carousel-slide {
    gap: 35px;

    padding: 40px 60px;
  }

  .nf-slide-image {
    width: 42%;
    flex-basis: 42%;
  }

  .nf-slide-content h2 {
    font-size: 26px;
  }

  .nf-slide-content p {
    font-size: 15px;
  }

}


/* ========================================
   Mobile
======================================== */

@media (max-width: 768px) {

  .neofuns-indonesia-carousel {
    margin: 30px auto;

    padding: 0 12px;
  }


  .nf-carousel-box {
    border-radius: 14px;
  }


  .nf-carousel-slide {
    flex-direction: column;

    align-items: stretch;

    gap: 22px;

    min-height: auto;

    padding: 25px 22px 30px;
  }


  /* 图片 */

  .nf-slide-image {
    width: 100%;

    flex-basis: auto;
  }

  .nf-slide-image img {
    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;
  }


  /* 文字 */

  .nf-slide-content {
    width: 100%;

    padding: 0 5px;
  }

  .nf-slide-label {
    margin-bottom: 8px;

    font-size: 11px;

    letter-spacing: 1.5px;
  }

  .nf-slide-content h2 {
    margin-bottom: 12px;

    font-size: 22px;

    line-height: 1.3;
  }

  .nf-slide-content p {
    font-size: 14px;

    line-height: 1.7;
  }


  /* 箭头 */

  .nf-carousel-arrow {
    width: 38px;
    height: 38px;

    font-size: 20px;
  }

  .nf-carousel-prev {
    left: 8px;
  }

  .nf-carousel-next {
    right: 8px;
  }


  /* dots */

  .nf-carousel-dots {
    gap: 7px;

    margin-top: 15px;
  }

  .nf-carousel-dot {
    width: 8px;
    height: 8px;
  }

  .nf-carousel-dot.is-active {
    width: 10px;
    height: 10px;
  }

}


/* ========================================
   Small mobile
======================================== */

@media (max-width: 480px) {

  .nf-carousel-slide {
    padding: 18px 16px 25px;

    gap: 18px;
  }

  .nf-slide-content h2 {
    font-size: 20px;
  }

  .nf-slide-content p {
    font-size: 13px;
  }

  .nf-carousel-arrow {
    width: 34px;
    height: 34px;

    font-size: 18px;
  }

  .nf-carousel-prev {
    left: 6px;
  }

  .nf-carousel-next {
    right: 6px;
  }

}

