main {
  position: relative;
  min-height: unset;
}

img {
  width: 100%;
  height: 100%;
}

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;
}

.news-page {
  width: 1280rem;
  margin: 0 auto;
  margin-block: 58rem 38rem;
  color: #ffffff;
}

.bg-overlay-1 {
  position: absolute;
  width: 100%;
  height: 185rem;
  background: linear-gradient(180deg, rgba(10, 10, 21, 0) 8.2%, #1c080f 86.16%);
  z-index: -1;
  backdrop-filter: blur(30px);
  top: 758rem;
}

.bg-overlay-2 {
  position: absolute;
  height: 290rem;
  width: 140%;
  left: 50%;
  top: 808rem;
  z-index: -1;
  transform: translate(-50%, 0px);
  backdrop-filter: blur(10px);
}

/* tabs */
.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 20rem;
  margin-bottom: 17rem;
}

.news-tab {
  min-width: 86rem;
  padding: 10rem 20rem;
  text-align: center;
  text-decoration: none;
  color: #ffd43b;
  font-size: 16rem;
  line-height: 20rem;
  font-weight: 600;
  background: #d9d9d912;
}

.news-tab.active,
.news-tab:hover {
  border-bottom: 1px solid #ffd43b;
  animation: ease 0.5s;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  gap: 20rem;
  margin-bottom: 67rem;
}

.hero-card,
.side-card,
a.hero-card,
a.side-card {
  display: block;
  position: relative;
  height: 446rem;
}

.hero-card::before,
a.hero-card::before {
  position: absolute;
  content: "";
  background: linear-gradient(180deg,
      rgba(10, 10, 21, 0) 0%,
      rgba(10, 10, 21, 0.98) 58.77%);
  bottom: 0;
  width: 100%;
  height: 302rem;
}

.hero-card {
  text-decoration: none;
}

.hero-card img,
a.hero-card img {
  width: 792rem;
  display: block;
  object-fit: cover;
  aspect-ratio: 792 / 446;
}

.hero-body {
  padding: 30rem 22rem;
  position: absolute;
  bottom: 0;
}

.hero-title {
  margin-bottom: 17rem;
  font-size: 24rem;
  font-weight: 700;
  line-height: 32rem;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: white;
}

.hero-desc,
.item-desc,
.feature-desc {
  margin-bottom: 31rem;
  color: #a6aac4;
  font-size: 15rem;
  line-height: 22rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  display: flex;
  align-items: center;
  gap: 7rem;
  color: #a6aac4;
  font-size: 13rem;
  line-height: 22rem;
}

.meta::before {
  content: "";
  width: 12rem;
  height: 4rem;
  background: #ff0000b2;
  box-shadow: 0px 0px 11px 0px #ff0000b2;
}

.hero-side {
  display: grid;
  gap: 20rem;
}

.side-card,
a.side-card {
  display: block;
  position: relative;
  height: 213rem;
}

.side-card::before,
a.side-card::before {
  position: absolute;
  content: "";
  background: linear-gradient(180deg, rgba(10, 10, 21, 0) 0%, #0a0a15 91.31%);
  bottom: 0;
  width: 100%;
  height: 100%;
}

.side-card img,
a.side-card img {
  width: 464rem;
  aspect-ratio: 464 / 213;
  display: block;
  object-fit: cover;
}

.side-body {
  position: absolute;
  bottom: 0;
  padding: 12rem 12rem 22rem;
}

.side-title {
  margin-bottom: 16rem;
  font-size: 18rem;
  line-height: 24rem;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: white;
}

/* section title */
.section-title {
  margin-bottom: 41rem;
  font-size: 29rem;
  line-height: 44rem;
  text-transform: uppercase;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff 0%, #a1a1a1 100%);
  background-clip: text;
  display: inline-block;
  color: transparent;
}

/* related list */
.related-list {
  display: grid;
  gap: 40rem;
}

.top-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40rem;
  overflow: auto;
  position: relative;
  /* 1. Hide scrollbar for Firefox */
  scrollbar-width: none;

  /* 2. Hide scrollbar for IE, Edge (Legacy) */
  -ms-overflow-style: none;
  padding-bottom: 40rem;
  border-bottom: 1px solid #ffffff12;
}

.mini-card,
.stack-card,
a.mini-card,
a.stack-card {
  display: grid;
  grid-template-columns: 250rem 1fr;
  gap: 10rem;
  text-decoration: none;
  color: inherit;
}

.thumb {
  width: 170rem;
  object-fit: cover;
  aspect-ratio: 170/128;
}

.category {
  display: inline-block;
  margin-bottom: 12rem;
  font-size: 16rem;
  line-height: 20rem;
  font-weight: 600;
  text-decoration: none;
}

.cat-sport {
  color: #46af46;
}

.cat-news {
  color: #ff3c3c;
}

.cat-game {
  color: #43b1e4;
}

.cat-poker {
  color: #2172ff;
}

.cat-casino {
  color: #8b9fff;
}

.mini-title,
.feature-title {
  font-size: 16rem;
  line-height: 20rem;
  font-weight: 600;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 15rem;
}

.feature-title {
  margin-bottom: unset;
  font-size: 20rem;
  line-height: 22rem;
}

.feature-desc {
  margin-bottom: unset;
}

.content-row {
  display: flex;
  /* grid-template-columns: 1.05fr 1.5fr 1.05fr; */
  gap: 20rem;
  align-items: start;
  position: relative;
}

.content-row:not(:last-of-type) {
  padding-bottom: 40rem;
  border-bottom: 1px solid #ffffff12;
}


.bg-overlay-3 {
  position: absolute;
  height: 360rem;
  width: 100%;
  bottom: -70rem;
  z-index: -1;
}

.feature-text,
.mini-card-text,
a.feature-text {
  display: grid;
  height: 100%;
  align-items: start;
  justify-items: start;
  text-decoration: none;
  color: inherit;
}

.feature-image,
a.feature-image {
  display: block;
  text-decoration: none;
}

.feature-desc {
  -webkit-line-clamp: 6;
}

.feature-image img {
  width: 493rem;
  aspect-ratio: 493 / 277;
  display: block;
  object-fit: cover;
}

.stack-list {
  display: grid;
  gap: 18px;
}

@media (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-page {
    width: 378rem;
    margin-inline: 12rem;
  }

  .news-tabs {
    gap: 12rem;
  }

  .news-tab {
    width: 118rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: unset;
    height: 40rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 12rem;
    margin-bottom: 32rem;
  }

  .hero-card,
  a.hero-card {
    width: 402rem;
    height: auto;
    margin-inline: -12rem;
  }

  .hero-card img,
  a.hero-card img {
    width: 402rem;
    aspect-ratio: 402/226;
  }

  .hero-card::before,
  a.hero-card::before {
    height: 276rem;
  }

  .hero-body {
    padding: 20rem 12rem 15rem;
    position: relative;
    margin-top: -9rem;
  }

  .side-card img,
  a.side-card img {
    width: 378rem;
    aspect-ratio: 378/213;
  }

  .side-card::before,
  a.side-card::before {
    bottom: -1rem;
    left: -1rem;
    width: 380rem;
  }

  .top-related {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 24rem;
    margin-bottom: 24rem;
  }

  .hero-title {
    font-size: 20rem;
    line-height: 26rem;
    margin-bottom: 14rem;
  }

  .hero-desc {
    margin-bottom: 22rem;
    -webkit-line-clamp: 3;
  }

  .side-body {
    padding: 10rem 10rem 22rem;
  }

  .feature-text,
  .mini-card-text,
  a.feature-text {
    height: auto;
  }

  .side-title,
  .feature-title {
    font-size: 18rem;
  }

  .feature-title {
    margin-bottom: 17rem;
  }

  .feature-desc {
    margin-bottom: 18rem;
  }

  .thumb {
    width: 118rem;
    aspect-ratio: 118 / 89;
  }

  .related-list {
    gap: 40rem;
  }

  .content-row {
    flex-direction: column;
  }

  .stack-list {
    grid-template-columns: 1fr;
    order: 2;
  }

  .feature-image,
  a.feature-image {
    order: 0;
  }

  .feature-image img {
    width: 379rem;
  }

  .feature-text,
  a.feature-text {
    order: 1;
  }

  .category {
    font-size: 14rem;
    margin-bottom: 8rem;
  }

  .mini-title {
    font-size: 15rem;
    line-height: 18rem;
    margin-bottom: 16rem;
    -webkit-line-clamp: 2;
  }
}