main {
  min-height: unset;
}
main::before {
  background: url(../images/trochoi-main-bg.webp) top center no-repeat;
  width: 100%;
  height: 914rem;
  left: 50%;
  transform: translate(-50%, 0);
  top: 0px;
  background-size: cover;
}
/* --- Main Header Style --- */

.main-title {
  display: block;
  text-align: center;
  font-size: 28rem;
  color: #ffffff;
  line-height: 44rem;
  margin-block: 55rem 35rem;
  text-transform: uppercase;
}
.grey-gradient-text {
  background: linear-gradient(90deg, #ffffff 0%, #a1a1a1 100%);
  background-clip: text;
  color: transparent;
}

.news-section-overlay {
  position: absolute;
  background: url(../images/news-blur-bg.webp) top center no-repeat;
  background-size: cover;
  width: 100%;
  height: 725rem;
  top: 800rem;
  left: 0;
  z-index: -1;
}
.game-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 66rem 45rem;
  padding-bottom: 19rem;
  margin-inline: auto;
  max-width: 1280rem;
}
.game-card {
  width: 220rem;
  position: relative;
  height: 313rem;
  cursor: pointer;
}

.game-thumb {
  position: relative;
  width: 128rem;
  margin: 0 auto -6rem;
  z-index: 0;
  transform-origin: bottom center;
  transition: transform 0.3s ease;
  display: flex;
  height: 210rem;
  justify-content: end;
  align-items: end;
}
.game-thumb.game-thumb-3,
.game-thumb.game-thumb-4,
.game-thumb.game-thumb-5,
.game-thumb.game-thumb-8 {
  width: 140rem;
}
.game-thumb.game-thumb-9 {
  width: 130rem;
}
.game-card:hover .game-thumb {
  transform: scale(1.2);
}
/* .game-thumb:hover::after {
  content: "";
  position: absolute;
  top: -15rem;
  left: -6rem;
  background: url(../images/game-card-blur-bg.webp) top center no-repeat;
  background-size: cover;
  width: 140rem;
  height: 222rem;
  z-index: -1;
} */
.game-card::after {
  opacity: 0;
  content: "";
  position: absolute;
  top: -48rem;
  left: 15.5rem;
  background: url(../images/game-card-blur-bg.webp) top center no-repeat;
  background-size: cover;
  width: 187rem;
  height: 262rem;
  z-index: -1;
  transform-origin: bottom center;
  transition: opacity 0.3s ease-in;
}
.game-card:has(> .game-thumb-3)::after,
.game-card:has(> .game-thumb-4)::after,
.game-card:has(> .game-thumb-5)::after,
.game-card:has(> .game-thumb-8)::after,
.game-card:has(> .game-thumb-9)::after {
  top: -55rem;
  left: 4rem;
  width: 210rem;
}
.game-card:hover::after {
  opacity: 1;
}
.game-thumb img {
  display: block;
  width: 100%;
  border-radius: 28px;
}

.game-info {
  position: relative;
  padding: 10rem;
  background: #0d000080;
  backdrop-filter: blur(17px);
  position: relative;
  color: white;
}

.game-card:hover .game-info {
  background: #04032680;
}
.game-info::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1rem;
  /* border thickness */
  border-radius: inherit;
  background: linear-gradient(180deg, #1f0d0d 0%, #2a181b 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.game-card:hover .game-info::before {
  background: linear-gradient(180deg, #172169 0%, #0f152d 100%);
}

.game-title {
  margin: 0;
  font-size: 18rem;
  line-height: 35rem;
  font-weight: 800;
  text-transform: uppercase;
  padding-bottom: 10rem;
  border-bottom: 1rem solid #ffffff1a;
  max-width: 161rem;
  overflow: hidden;
  text-wrap-mode: nowrap;
  text-overflow: ellipsis;
  color: #ddd8cd;
}
.game-card:hover .game-title {
  font-size: 22rem;
  color: white;
}
.game-rank {
  position: absolute;
  top: -3rem;
  right: -4rem;
}

.game-meta {
  margin-top: 10rem;
}

.game-meta p {
  margin: 0;
  color: #a6aac4;
  font-size: 15rem;
  line-height: 28rem;
}

.game-meta p + p {
  margin-top: 4rem;
}

.game-meta strong {
  font-weight: 800;
}

.news-section {
  position: relative;
  overflow: hidden;
  color: #fff;
}
.news-container {
  max-width: 1280rem;
  margin-inline: auto;
}

.news-featured {
  display: grid;
  grid-template-columns: 713rem minmax(300px, 1fr);
  gap: 21rem;
  align-items: start;
}
.news-featured__image {
  aspect-ratio: 713/323;
}
.news-featured__image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.news-featured__title {
  margin-bottom: 11rem;
  font-size: 28rem;
  line-height: 44rem;
  font-weight: 800;
  text-transform: uppercase;
}

.news-featured__desc {
  color: #a6aac4;
  font-size: 15rem;
  line-height: 20rem;
  margin-bottom: 22rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  display: flex;
  align-items: center;
  gap: 6rem;
  color: #a6aac4;
  font-size: 16rem;
  line-height: 22rem;
}

.news-date__dot {
  width: 12rem;
  height: 4rem;
  background: #ff0000;
  box-shadow: 0px 0px 11px 0px #ff0000b2;
}
.news-list {
  position: relative;
  z-index: 1;
  padding-block: 55rem 18rem;
}
/* .news-list::before {
  content: "";
  position: absolute;
  background: url("../images/news-blur-bg.webp") top center no-repeat;
  background-size: cover;
  width: 1440rem;
  height: 508rem;
  top: -40rem;
  left: -60rem;
  z-index: -1;
} */

.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 11rem;
}

.news-title {
  font-size: 32rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 44rem;
}
.news-link {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 6rem;
}
.news-sub-link {
  color: #a6aac4;
  font-size: 16rem;
  text-decoration: underline;
  line-height: 22rem;
  font-weight: 500;
}

.news-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8rem;
  color: #fff;
  font-size: 16rem;
  line-height: 22rem;
  text-transform: uppercase;
  text-decoration: none;
}
.news-view-all span:first-of-type {
  text-decoration: underline;
}
.news-view-all__icon {
  width: 28rem;
  height: 28rem;
}
.news-carousel-wrap {
  position: relative;
  margin-top: 32rem;
  z-index: 2;
}

.news-swiper {
  overflow: hidden;
}

.news-swiper .swiper-slide {
  height: auto;
}

.news-card {
  flex: 0 0 549rem;
  min-width: 0;
  display: grid;
  grid-template-columns: 245rem 1fr;
  gap: 16rem;
  align-items: start;
  height: 100%;
}

.news-card__image {
  display: block;
  aspect-ratio: 245 / 185;
}

.news-card__image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.news-card__title {
  margin-bottom: 10rem;
  font-size: 20rem;
  line-height: 28rem;
  font-weight: 800;
  text-transform: uppercase;
}

.news-card__desc {
  margin-bottom: 24rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15rem;
  line-height: 20rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-nav {
  width: 36rem;
  height: 36rem;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  position: relative;
  top: auto;
  transform: none;
  z-index: 2;
}
.news-nav img {
  width: 100%;
  height: 100%;
}

.game-nav {
  width: 36rem;
  height: 36rem;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  position: relative;
  top: auto;
  transform: none;
  z-index: 2;
}

.news-navs {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 36rem;
  margin-top: 23rem;
  flex-shrink: 0;
}

.news-load-more {
  display: none;
}

.news-nav--next {
  transform: rotate(180deg);
}
/* --- Responsive Adjustments --- */
@media screen and (max-width: 768px) {
  main::before {
    top: 162rem;
    background: url(../images/main-bg-mb.webp) top center no-repeat;
    background-size: cover;
    background-color: #0b0a12;
    height: 5819rem;
    width: 402rem;
  }
  .news-section-overlay {
    display: none;
  }
  .main-title {
    font-size: 20rem;
    line-height: 1.4;
    margin-block: 38rem 23rem;
    padding-inline: 12rem;
  }
  .game-list {
    margin-top: 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 28rem 24rem;
    padding-inline: 12rem;
    padding-bottom: 20rem;
  }
  .game-info {
    padding: 8rem;
  }
  .game-card {
    height: 265rem;
    width: 179rem;
  }
  .game-thumb-10 .game-rank {
    width: 48rem;
    aspect-ratio: 48 / 47;
  }
  .game-rank {
    width: 30rem;
    aspect-ratio: 34 / 47;
  }
  .game-thumb {
    width: 103rem !important;
    max-height: 153rem;
  }
  .game-card:hover::after {
    opacity: 0;
  }
  .game-card:hover .game-thumb {
    transform: unset;
  }
  .game-thumb:hover::after {
    width: 110rem;
    height: auto;
    aspect-ratio: 140 / 222;
  }
  .game-thumb::after {
    content: "";
    position: absolute;
    top: -14rem;
    left: -4rem;
    background: url(../images/game-card-blur-bg.webp) top center
      no-repeat;
    background-size: cover;
    width: 110rem;
    aspect-ratio: 140 / 222;
    z-index: -1;
  }
  .game-title {
    max-width: 151rem;
    font-size: 15rem;
    line-height: 26rem;
    margin-bottom: 8rem;
  }
  .game-meta {
    margin-top: 8rem;
  }
  .game-meta p {
    font-size: 13rem;
  }

  .news-container {
    padding: 0 12px;
  }

  .news-featured {
    gap: 20rem;
    display: flex;
    flex-direction: column;
  }
  .news-featured__image {
    aspect-ratio: 378 / 171;
  }
  .news-featured__title {
    font-size: 24rem;
    line-height: 30rem;
    margin-bottom: 13rem;
  }
  .news-list {
    padding-block: 50rem 42rem;
  }
  .news-header {
    margin-bottom: 1rem;
    align-items: center;
  }

  .news-title {
    font-size: 24rem;
  }
  .news-swiper .swiper-slide {
    padding-top: 35rem;
  }
  .news-sub-link,
  .news-view-all {
    font-size: 15rem;
    text-transform: unset;
  }
  .news-carousel-wrap {
    margin-top: 27rem;
  }
  .news-swiper {
    padding: 0 16px;
    overflow: visible;
  }

  .news-swiper .swiper-wrapper {
    display: block;
  }

  .news-card {
    flex: 0 0 100%;
    display: block;
  }

  .news-card__image {
    margin-bottom: 17rem;
  }

  .news-navs {
    display: none;
  }

  .news-slide {
    display: block;
  }

  .news-load-more {
    width: 100%;
    color: #fff;
    font-size: 15rem;
    line-height: 22rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7rem;
    margin-top: 30rem;
  }
  .news-load-more span {
    text-decoration: underline;
  }
  .news-load-more__icon {
    transform: rotate(180deg);
    height: 30rem;
    width: 30rem;
  }
}
