/* ================================
   Hero Section
   ================================ */

.hero-section {
  margin: 25px auto 100px auto;
  overflow-x: hidden;
}

.nhfirstscreen {
  display: flex;
  gap: 24px;
  align-items: stretch;
  flex-wrap: wrap;
}

.nhfirstscreen__left {
  flex: 0 1 calc(100% - 356px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.nhfirstscreen__right {
  flex-basis: 332px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Swiper Slider Styles */
.swiper-slide {
  position: relative;
  width: 100%;
  min-height: 300px; /* Adjust as needed */
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid var(--color-emerald-5);
}

.swiper {
  width: 100%;
}

.swiper-wrapper {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

.swiper-slide {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.nhhero-slider__body {
  padding: 28px;
  max-width: calc(100% - 270px); /* leave space for image */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  position: relative;
}

.nhhero-slider__title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  color: var(--text-bright, #e9f5f3);
  text-align: center;
  width: 400px;
}

.nhhero-slider__subtitle {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  color: #fff;
  color: var(--text-gold);
}

.nhhero-slider__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 100%;
  z-index: 1;
}

.nhhero-slider__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  display: block;

  mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 0.8) 55%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 0.8) 55%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0) 100%
  );
}

.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets
  .swiper-pagination-bullet {
  background: var(--text-gold);
}

/* Under-Slider Links */
.nhhero-underlinks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nhhero-underlinks__item {
  flex: 1 1 calc(50% - 8px);
  display: flex;
  align-items: center;
  border-radius: 15px;
  padding: 16px;
  transition: box-shadow 0.3s ease;
  text-decoration: none;
  color: #fff;
}

/* First block link */
.nhhero-underlinks__item {
  background: var(--gradients);
}

.nhhero-underlinks__image {
  flex-shrink: 0;
  margin-right: 14px;
  width: 114px;
  max-width: 114px;
  height: auto;
}

.nhhero-underlinks__image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.nhhero-underlinks__text h4 {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--text-gold);
}

.nhhero-underlinks__text p {
  font-size: 16px;
  font-weight: 700;
  line-height: 125%;
  margin: 0;
  color: #fff;
}

/* Top Games Block */
.nhhero-topgames {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 60px;
  background: none;
  border-radius: 13px;
  border: 1px solid #014735;
}

.nhhero-topgames__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  padding: 20px;
}

.nhhero-topgames__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 10px;
  flex: 1;
}

.nhhero-topgames__item {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  padding: 5px 15px;
  border-radius: 15px;
  background: var(--gradients);
  text-decoration: none;
  transition: background 0.3s ease;
}

.nhhero-topgames__item img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 15px;
  flex-shrink: 0;
}

.nhhero-topgames__item span {
  font-size: 14px;
  line-height: 160%;
  letter-spacing: 0.5px;
  color: #fff;
  flex: 1;
}

.nhhero-topgames__arrow {
  flex-shrink: 0;
  font-size: 30px;
}

/* Top Games Button */
.nhhero-topgames__btn {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 22;
}

.nhhero-topgames__btn a {
  padding: 13px;
  font-size: 16px;
  line-height: 150%;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: var(--text-gold);
  border-radius: 0 0 15px 15px;
  text-decoration: none;
  transition: background 0.3s ease;
  text-transform: uppercase;
}

.nhhero-topgames__btn a:hover {
  opacity: 0.9;
}

/* Features */

.nhfeatures {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}

.nhfeatures__item {
  flex-basis: calc((100% - 51px) / 4);
  padding: 12px 20px;
  gap: 18px;
  background-color: rgba(250, 250, 250, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.nhfeatures__item-img {
  flex-basis: 90px;
}

.nhfeatures__item-img img {
  max-width: 100%;
  height: auto;
  display: block;
}

.nhfeatures__item-text {
  flex-basis: 153px;
}

.nhfeatures__item-text h4 {
  font-size: 20px;
  margin-bottom: 5px;
  font-weight: 600;
}

.nhfeatures__item-text p {
  font-size: 14px;
  margin: 0;
  color: var(--text-default);
}

@media screen and (max-width: 768px) {
  .hero-section .container {
    padding: 0;
  }

  .nhfirstscreen {
    flex-direction: column;
    gap: 20px;
  }

  .nhfirstscreen__left,
  .nhfirstscreen__right {
    flex: 1 1 100%;
    width: 100%;
  }

  .nhhero-slide,
  .swiper-slide {
    flex-direction: column;
    padding-bottom: 60px;
    min-height: unset;
  }

  .nhhero-slider__body {
    padding: 20px;
    max-width: 100%;
    text-align: center;
  }

  .nhhero-slider__title {
    font-size: 28px;
  }

  .nhhero-slider__subtitle {
    font-size: 16px;
  }

  .nhhero-slider__button {
    margin: 0 auto;
  }

  .nhhero-slider__image {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 20px;
  }

  .nhhero-slider__image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
  }

  .nhhero-underlinks {
    flex-direction: column;
  }

  .nhhero-underlinks__item {
    flex: 1 1 100%;
  }

  .nhfeatures {
    flex-direction: column;
  }

  .nhfeatures__item {
    flex-basis: 100%;
  }

  .nhhero-topgames__title {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nhhero-topgames__item {
    flex-direction: row;
  }

  .nhhero-topgames__arrow {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .swiper-slide {
    flex-direction: column;
    padding-bottom: 60px;
  }

  .swiper-wrapper {
    flex-direction: row;
  }

  .swiper-pagination {
    margin-top: 20px;
  }
}
