.longwang-home-s2 {
  position: relative;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 44px 0;
  min-height: 550px;
}

.longwang-home-s2-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

.longwang-home-s2-heading {
  margin: 0 auto 48px;
  max-width: 584px;
  text-align: center;
  color: #ffffff;
  font-family: var(--longwang-font-display, "Long Wang VIP-MOLLIE-GLASTON", "Long Wang SVN-Gilroy", sans-serif);
  font-size: 32px;
  line-height: 42px;
  font-weight: 400;
  white-space: normal;
}

.longwang-home-s2-carousel-wrap {
  position: relative;
  z-index: 2;
}

.longwang-home-s2-carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 24px;
  border-radius: 12px;
}

.longwang-home-s2-carousel::-webkit-scrollbar {
  display: none;
}

.longwang-home-s2-card {
  position: relative;
  scroll-snap-align: start;
  flex: 0 0 100%;
  max-width: 100%;
  min-width: 0;
  color: #ffffff;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.longwang-home-s2-image-wrap {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 12px;
}

.longwang-home-s2-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.22) 48%,
    rgba(0, 0, 0, 0.72) 78%,
    #000000 100%
  );
  pointer-events: none;
  z-index: 1;
}

.longwang-home-s2-image {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.longwang-home-s2-content {
  position: relative;
  z-index: 2;
  margin-top: -50px;
  padding: 0 16px 12px;
}

.longwang-home-s2-title {
  margin: 0 0 36px;
  color: #ffffff;
  font-family: var(--longwang-font-display, "Long Wang VIP-MOLLIE-GLASTON", "Long Wang SVN-Gilroy", sans-serif);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 400;
}

.longwang-home-s2-desc {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.longwang-home-s2-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.longwang-home-s2-nav:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.longwang-home-s2-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.longwang-home-s2-prev {
  left: -10px;
}

.longwang-home-s2-next {
  right: -10px;
}

.longwang-home-s2-frame {
  position: absolute;
  right: -150px;
  bottom: -92px;
  width: min(55vw, 560px);
  max-width: 560px;
  height: auto;
  z-index: -1;
  pointer-events: none;
}

.longwang-home-s2-pattern {
  position: absolute;
  left: -150px;
  top: -170px;
  width: min(320px, 560px);
  max-width: 560px;
  height: auto;
  z-index: -1;
  pointer-events: none;
}

.longwang-home-s2-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.longwang-home-s2-dot {
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 0;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

.longwang-home-s2-dot:hover {
  transform: scale(1.08);
}

.longwang-home-s2-dot-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.longwang-home-s2-dot.is-active {
  transform: scale(1.04);
}

.longwang-home-s2-more-wrap {
  margin: 18px auto 0;
  text-align: center;
  position: relative;
        z-index: 2;
}

.longwang-home-s2-more-wrap .longwang-home-s4-more {
  color: #ffffff;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .longwang-home-s2-card {
    flex-basis: calc((100% - 8px) / 2);
    max-width: calc((100% - 8px) / 2);
  }

  .longwang-home-s2-frame {
    right: -120px;
    bottom: -80px;
    width: min(66vw, 420px);
  }

  .longwang-home-s2-pattern {
    left: -120px;
    top: -80px;
    width: min(66vw, 420px);
  }
}

@media (max-width: 767px) {
  .longwang-home-s2 {
    padding-top: 48px;
    min-height: 470px;
  }

  .longwang-home-s2-inner {
    padding: 0 16px 32px;
  }

  .longwang-home-s2-heading {
    margin-bottom: 32px;
    font-size: 24px;
    line-height: 1.4;
    
  }

  .longwang-home-s2-content {
    margin-top: -52px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .longwang-home-s2-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .longwang-home-s2-title {
    margin-bottom: 36px;
    font-size: 22px;
  }

  .longwang-home-s2-desc {
    font-size: 15px;
  }

  .longwang-home-s2-nav {
    width: 36px;
    height: 36px;
    font-size: 13px;
    top: 42%;
    transform: translateY(-50%);
  }

  .longwang-home-s2-prev {
    left: 8px;
  }

  .longwang-home-s2-next {
    right: 8px;
  }

  .longwang-home-s2-dots {
    gap: 10px;
  }

  .longwang-home-s2-dot-icon {
    width: 14px;
    height: 14px;
  }

  .longwang-home-s2-pattern {
    left: -50px;
    top: -140px;
    width: min(60vw, 320px);
  }

  .longwang-home-s2-frame {
    right: -60px;
    bottom: -122px;
    width: min(80vw, 320px);
  }

  .longwang-home-s2-more-wrap {
    margin-top: 16px;
  }
}

.longwang-home-s2--figma {
  isolation: isolate;
  z-index: 3;
  overflow: visible;
  overflow-x: clip;
  overflow-y: visible;
  clip-path: inset(-240px 0 0);
  min-height: 744px;
  padding: 124px 0 128px;
  background-color: #ffeed6 !important;
  background-image:
    linear-gradient(180deg, rgba(255, 238, 214, 0.94) 0%, rgba(255, 238, 214, 0.82) 48%, #f4e6ca 100%) !important;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.longwang-home-s2--figma::before {
  content: "";
  position: absolute;
  top: -218px;
  left: 50%;
  z-index: 0;
  width: 100%;
  min-width: 1440px;
  height: 539px;
  transform: translateX(-50%);
  background-image: url("../images/bg-waves.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.longwang-home-s2--figma .longwang-home-s2-inner {
  z-index: 1;
  max-width: 1322px;
  padding: 0;
}

.longwang-home-s2--figma .longwang-home-s2-carousel-wrap {
  position: relative;
  z-index: 2;
}

.longwang-home-s2--figma .longwang-home-s2-carousel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 31px;
  overflow: visible;
  padding: 0;
  border-radius: 0;
  scroll-snap-type: none;
}

.longwang-home-s2--figma .longwang-home-s2-card {
  position: relative;
  flex: none !important;
  width: 100%;
  max-width: none !important;
  height: 492px;
  overflow: hidden;
  border-radius: 2px;
  -webkit-mask-image: url("../images/frame-s2.svg");
  mask-image: url("../images/frame-s2.svg");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  scroll-snap-align: none;
  color: #ffffff;
  background: #0b4a3a;
}

.longwang-home-s2--figma .longwang-home-s2-image-wrap {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 2px;
}



@media (hover: hover) and (pointer: fine) {
  .longwang-home-s2-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 46, 34, 0.16);
    filter: drop-shadow(0 10px 14px rgba(0, 28, 21, 0.2));
  }
}

.longwang-home-s2--figma .longwang-home-s2-image {
  object-fit: cover;
}

.longwang-home-s2--figma .longwang-home-s2-content {
  position: absolute;
  right: 24px;
  bottom: 29px;
  left: 24px;
  z-index: 2;
  margin: 0;
  padding: 0;
}

.longwang-home-s2--figma .longwang-home-s2-title {
  margin: 0 0 4px;
  color: #ffffff;
  font-family: "1FTV VIP Mollie Glaston", "Long Wang VIP-MOLLIE-GLASTON", "Long Wang SVN-Gilroy", sans-serif;
  font-size: 40px;
  line-height: 48px;
  font-weight: 400;
}

.longwang-home-s2--figma .longwang-home-s2-desc {
  max-width: 100%;
  color: #ffffff;
  font-family: "SVN-Gilroy", "Long Wang SVN-Gilroy", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

@media (max-width: 1399px) {
  .longwang-home-s2--figma .longwang-home-s2-inner {
    max-width: none;
    padding: 0 clamp(32px, 4.1vw, 59px);
  }
}

@media (max-width: 1024px) {
  .longwang-home-s2-inner,
  .longwang-home-s2--figma .longwang-home-s2-inner {
    padding-right: 20px;
    padding-left: 20px;
  }

  .longwang-home-s2--figma {
    overflow: visible;
    overflow-x: clip;
    overflow-y: visible;
    clip-path: initial;
    min-height: auto;
    padding: 36px 0 36px;
  }

  .longwang-home-s2--figma::before {
    top: -168px;
    width: 170vw;
    min-width: 1180px;
    height: 430px;
  }

  .longwang-home-s2--figma .longwang-home-s2-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .longwang-home-s2--figma .longwang-home-s2-carousel::-webkit-scrollbar {
    display: none;
  }

  .longwang-home-s2--figma .longwang-home-s2-card {
    flex: 0 0 calc((100% - 40px) / 2.2) !important;
    max-width: calc((100% - 40px) / 2.2) !important;
    height: clamp(400px, 52vw, 472px);
    scroll-snap-align: start;
  }

  .longwang-home-s2--figma .longwang-home-s2-content {
    right: 16px;
    bottom: 32px;
    left: 16px;
  }

  .longwang-home-s2--figma .longwang-home-s2-title {
    font-size: 24px;
    line-height: 1.25;
  }
  .longwang-home-s2--figma .longwang-home-s2-desc {
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (max-width: 767px) {
  .longwang-home-s2-inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .longwang-home-s2--figma {
    overflow: visible;
    overflow-x: clip;
    overflow-y: visible;
    clip-path: initial;
    padding: 72px 0 64px;
  }

  .longwang-home-s2--figma::before {
    top: -116px;
    width: 186vw;
    min-width: 720px;
    height: 280px;
  }

  .longwang-home-s2--figma .longwang-home-s2-inner {
    padding: 0 16px;
  }

  .longwang-home-s2--figma .longwang-home-s2-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .longwang-home-s2--figma .longwang-home-s2-content {
    bottom: 16px;
    min-height: 110px;
  }

  .longwang-home-s2--figma .longwang-home-s2-carousel::-webkit-scrollbar {
    display: none;
  }

  .longwang-home-s2--figma .longwang-home-s2-card {
    flex: 0 0 min(82vw, 320px) !important;
    max-width: min(82vw, 320px) !important;
    height: 376px;
    scroll-snap-align: start;
  }

  .longwang-home-s2--figma .longwang-home-s2-title {
    font-size: 30px;
    line-height: 38px;
  }

  .longwang-home-s2--figma .longwang-home-s2-desc {
    font-size: 15px;
    line-height: 1.5;
  }

  .longwang-home-s2--figma .longwang-home-s2-dots.longwang-home-s5-dots.longwang-home-s4-dots:not(:empty) {
    position: static;
    display: inline-flex !important;
    width: 100%;
    margin: 24px 0 0;
    transform: none;
    visibility: visible;
  }

  .longwang-home-s2--figma .longwang-home-s2-dot,
  .longwang-home-s2--figma .longwang-home-s2-dot-icon {
    width: 16.8px;
    height: 16.8px;
  }
}
