@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  /* https://kilianvalkhof.com/2022/css-html/your-css-reset-needs-text-size-adjust-probably/ */
  html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  body,
  h1,
  h2,
  h3,
  h4,
  p,
  figure,
  blockquote,
  dl,
  dd {
    margin: 0;
  }

  /* https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html */
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  body {
    min-block-size: 100vh;
    line-height: 1.4;
  }

  h1,
  h2,
  h3,
  button,
  input,
  label {
    line-height: 1.1;
  }

  p,
  li {
    text-wrap: pretty;
  }

  img,
  picture {
    max-inline-size: 100%;
    display: block;
  }

  input,
  button,
  textarea,
  select {
    font: inherit;
  }
}

@layer base {
  :root {
    --black: #121212;
    --white: #fff;
    --primary: #ffc300;
    --dark-primary: #f5a700;
    --light-primary: #e7b100;
    --light-gray: #f1f1f1;
    --gray: #858488;
    --dark-gray: #323232;

    --border-radius-1: 1rem;
    --border-radius-2: 1.5rem;
    --border-radius-3: 2rem;
    --border-radius-4: 2.5rem;
  }

  @view-transition {
    navigation: auto;
  }

  @media (prefers-reduced-motion: no-preference) {
    html {
      scroll-behavior: smooth;
    }
  }

  html {
    scroll-padding: 2rem;
    overflow-x: hidden;
  }

  body {
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    color: var(--black);
    background-color: var(--white);
    position: relative;
  }

  h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--black);
  }

  h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--black);
  }

  a {
    color: var(--dark-primary);
    text-decoration: none;
  }

  p:empty {
    display: none;
  }

  .logo {
    width: 200px;
  }

  .btn {
    font-weight: 700;
    color: var(--white);
    background-color: var(--dark-primary);
    border: none;
    border-radius: var(--border-radius-4);
    transition: all 0.3s ease-out;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 20px;
    font-size: 18px;

    &:hover {
      transform: scale(1.1);
    }

    img {
      width: 30px;
    }
  }
}

@layer layout {
  .wrapper {
    --wrapper-max-width: 1200px;
    --wrapper-padding: 1rem;

    max-width: var(--wrapper-max-width);
    margin-inline: auto;
    padding-inline: var(--wrapper-padding);

    box-sizing: border-box;
  }

  .wrapper[data-width="narrowXS"] {
    --wrapper-max-width: 400px;
  }

  .wrapper[data-width="narrow"] {
    --wrapper-max-width: 745px;
  }

  .wrapper[data-width="medium"] {
    --wrapper-max-width: 960px;
  }

  .wrapper[data-width="wide"] {
    --wrapper-max-width: 1440px;
  }

  .section {
    padding-block: 4rem;

    @media (min-width: 767px) {
      &[data-padding="compact"] {
        padding-block: 2.5rem;
      }
    }

    @media screen and (max-width: 767px) {
      padding-block: 3rem;
    }
  }

  .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;

    @media screen and (max-width: 667px) {
      grid-template-columns: 1fr;
    }
  }

  .modal-grid {
    display: grid;
    place-items: center;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    height: 100%;
    min-height: 550px;

    @media screen and (max-width: 767px) {
      grid-template-columns: 1fr;
      min-height: 350px;
    }
  }
}

@layer components {
  .top_bar {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 2.5rem;
    background: var(--primary);
    gap: 1.25rem;
    align-items: center;

    @media screen and (max-width: 1199px) {
      padding: 0.5rem 1rem;
      gap: 0;
    }

    @media screen and (max-width: 374px) {
      flex-direction: column;
    }

    .support-icon {
      width: 25px;
      height: 25px;
      margin-right: 8px;
    }

    a {
      color: var(--dark-gray);
      font-weight: 600;
      font-size: 1.125rem;
    }
  }

  /* Navigation  */
  .site_header {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    align-items: center;
    position: relative;
    z-index: 999;
    background: var(--white);

    @media screen and (max-width: 767px) {
      padding: 1rem;
    }

    .logo-wrapper {
      @media screen and (max-width: 767px) {
        max-width: 30px;
        overflow: hidden;
        position: relative;
        display: flex;
      }
    }

    .logo_header {
      max-width: 240px;
      width: 100%;

      @media screen and (min-width: 768px) and (max-width: 1199px) {
        max-width: 180px;
      }
    }
  }
  .logo--icon {
    display: none;
  }
  @media (max-width: 768px) {
    .logo--full {
      display: none;
    }

    .logo--icon {
      display: inline-block;
      width: 70%;
    }
  }

  .unsub-link {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 20px;
  }

  .site_navigation {
    grid-column: 3;
    justify-self: end;

    @media screen and (max-width: 767px) {
      display: none;
    }

    @media screen and (max-width: 767px) {
      position: fixed;
      inset: 0;
      background: var(--black);
      transform: translateX(100%);
      transition: transform 0.3s ease-in-out;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 90%;
      z-index: 2;
      right: 0;
      left: auto;
      height: 100%;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      /* Add for iOS smooth scrolling */
      -webkit-transform: translateX(100%);
      /* Ensure compatibility with older iOS */

      &.active {
        transform: translateX(0);
        -webkit-transform: translateX(0);
        /* For iOS compatibility */
      }
    }

    ul {
      display: flex;
      gap: 1.25rem;

      a {
        text-decoration: none;
        font-weight: 700;

        @media screen and (max-width: 767px) {
          font-size: 1.25rem;
        }
      }

      @media screen and (max-width: 767px) {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 0;
      }
    }
  }

  .header-right {
    grid-column: 3;
    position: relative;
    display: flex;
    gap: 0.75rem;
    align-items: center;

    .dropdown-trigger {
      display: flex;
      flex-direction: column;
      gap: 4px;
      background: none;
      border: none;
      padding: 5px;
      cursor: pointer;
    }

    .dropdown-menu {
      position: fixed;
      top: 0;
      right: -100%;
      height: 100vh;
      background: var(--black);
      width: 20%;
      padding: 5rem 2rem;
      transition: right 0.3s ease-in-out;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
      overflow-y: auto;
      z-index: 9;

      &.active {
        right: 0;
      }

      ul {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;

        li a {
          display: block;
          padding: 0.5rem;
          font-size: 1.125rem;
          font-weight: 500;
          color: var(--white);
          transition: color 0.2s;

          &:hover {
            color: var(--primary);
          }
        }
      }

      @media screen and (max-width: 840px) {
        width: 80%;
      }
    }

    .search-box {
      width: fit-content;
      height: fit-content;
      position: relative;
    }

    .input-search {
      height: 50px;
      width: 50px;
      border-style: none;
      padding: 10px;
      font-size: 18px;
      outline: none;
      border-radius: 5px;
      transition: all 0.5s ease-in-out;
      padding-right: 40px;
      background: #1f1f1f;
      color: #fff;
    }

    .input-search::placeholder {
      color: rgba(255, 255, 255, 0.5);
      font-size: 15px;
      font-weight: 100;
    }

    .btn-search {
      width: 50px;
      height: 50px;
      border-style: none;
      font-size: 20px;
      font-weight: bold;
      outline: none;
      cursor: pointer;
      border-radius: 50%;
      position: absolute;
      right: 0px;
      color: #ffffff;
      background-color: transparent;
      pointer-events: painted;
    }

    .btn-search > img {
      width: 20px;
      height: 20px;
      position: absolute;
      top: 50%;
      right: 50%;
      transform: translate(50%, -50%);
    }

    .btn-search:focus ~ .input-search,
    .input-search:focus {
      width: 300px;
      transition: all 500ms cubic-bezier(0, 0.11, 0.35, 2);
    }

    @media screen and (max-width: 767px) {
      gap: 0.3rem;
    }
  }

  .desktop-nav {
    display: flex;
    gap: 1.25rem;

    @media screen and (max-width: 767px) {
      display: none;
    }

    a {
      text-decoration: none;
      font-weight: 700;
    }
  }

  .hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    z-index: 10;

    span {
      display: block;
      width: 30px;
      height: 3px;
      background-color: var(--primary);
      transition: 0.3s ease-in-out;
    }

    &.active {
      position: fixed;
      right: 30px;

      span:first-child {
        transform: translateY(9px) rotate(45deg);
      }

      span:nth-child(2) {
        opacity: 0;
      }

      span:last-child {
        transform: translateY(-9px) rotate(-45deg);
      }
    }

    &[aria-expanded="true"] {
      position: fixed;
      right: 30px;

      span:first-child {
        transform: translateY(9px) rotate(45deg);
      }

      span:nth-child(2) {
        opacity: 0;
      }

      span:last-child {
        transform: translateY(-5px) rotate(-45deg);
      }
    }

    @media screen and (max-width: 767px) {
      display: flex;
      align-items: flex-end;
    }
  }

  @media screen and (min-width: 768px) {
    .mobile-nav {
      display: none;
    }
  }
}

/* Hero Section */

.page_hero {
  position: relative;
  padding-block-start: 3rem;
  padding-block-end: 3rem;
  text-align: center;
  color: var(--white);
  background-image: url(../images/premium/header-background.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;

  @media screen and (max-width: 767px) {
    padding-block-start: 3rem;
    padding-block-end: 3rem;
  }

  .wrapper {
    flex-direction: row;
    gap: 50px;

    @media screen and (max-width: 767px) {
      flex-direction: column-reverse;
    }
  }

  .hero-content {
    width: 70%;
    max-width: 720px;
    text-align: left;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;

    @media screen and (max-width: 1199px) {
      width: 100%;
      text-align: left;
      margin: 0 auto;
    }

    @media screen and (max-width: 767px) {
      text-align: center;
      align-items: center;
    }

    span {
      font-size: 2.4em;
      color: var(--dark-primary);
      text-transform: uppercase;

      @media screen and (max-width: 767px) {
        text-align: center;
      }
    }
  }

  .hero-bck {
    width: 50%;
    border-radius: 20px;
    box-shadow: 0px 0px 8px 2px #00000033;

    @media screen and (max-width: 767px) {
      width: 100%;
    }
  }

  h1 {
    @media screen and (max-width: 1199px) {
      font-size: 2.5rem;
    }

    @media screen and (max-width: 767px) {
      font-size: 2rem;
    }
  }

  .btn {
    /* padding: 0.4rem 5.5rem;
      font-size: 2rem;
      letter-spacing: 2px; 
      display: flex;
      gap: 0.625rem;
      justify-content: center;
      align-items: center;
      margin: 0;
      max-width: fit-content;
      color: var(--black);
      font-weight: 600;
      text-transform: uppercase;*/
    color: var(--black);
    text-transform: uppercase;
    border: 4px solid var(--light-primary);
  }

  .btn:hover,
  .btn:focus-visible {
    transform: scale(1.05);
  }
}

/* Content Header */
.content-header {
  position: relative;
  height: 90vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  video {
    position: absolute;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
  }

  .wrapper {
    position: relative;
    z-index: 2;
    padding: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: var(--border-radius-1);

    @media screen and (max-width: 767px) {
      width: 90%;
    }
  }

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #000;
    opacity: 0.5;
    z-index: 1;
  }

  h1 {
    color: #fff;
    text-align: center;
    line-height: 4rem;

    @media screen and (max-width: 767px) {
      font-size: 2.5rem;
      line-height: 2.8rem;
    }
  }

  .intro-text {
    font-size: 1rem;
    font-weight: 400;
    max-width: 640px;
    margin: 0 auto;
    color: var(--light-gray);
    text-align: center;
  }
}

/* Hero Payment  */

.hero_payment {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  /* Price Cards Payment  */
  .price_cards {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: 20px 0 60px;

    h1 {
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 0px;
      text-transform: uppercase;
    }

    .pricing-toggle {
      display: flex;
      justify-content: center;
      width: 100%;
      overflow: hidden;

      .pricing-option {
        background-color: var(--light-gray);
        color: var(--black);
        padding: 30px 50px;
        text-align: center;
        cursor: pointer;
        transition: background-color 0.3s, color 0.3s;
        border-radius: 8px;

        .price {
          font-size: 24px;
          font-weight: bold;
          margin: 0;
        }

        .duration {
          font-size: 20px;
          margin: 10px 0 5px;
          font-weight: 500;
        }

        .details {
          font-size: 14px;
        }

        &.active {
          background-color: var(--primary);
          color: var(--white);
        }

        &:first-child {
          margin-right: 5px;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
        }
      }

      @media (max-width: 767px) {
        flex-direction: column;
        gap: 5px;

        .pricing-option {
          width: 100%;
          padding: 20px;
          margin: 0;
          border-radius: 7px;
        }
      }
    }
  }

  .headpart {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background-color: var(--light-gray);
    padding: 60px 0;

    h1 {
      font-size: 28px;
      font-weight: 500;
      margin-bottom: 30px;
    }

    .flex-container-col {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }

    .checkbox-group {
      margin-bottom: 15px;
      position: relative;
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;

      .checkbox-group input[type="checkbox"] {
        margin-top: 5px;
      }

      label {
        font-size: 14px;
        line-height: 1.5;
        display: block;
        margin-left: 10px;
        position: relative;
      }
    }

    .btn {
      font-size: 24px;
      width: 100%;
      font-weight: 700;
      line-height: 30px;
      margin: 30px auto;
      display: block;
      max-width: 280px;
      padding: 15px;

      &:disabled {
        opacity: 0.5;
        filter: grayscale(1);
      }
    }
  }
}

.latestUpdates {
  background: url(../images/top-bg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  padding-block: 5rem;

  .wrapper {
    h2 {
      font-size: 36px;
      line-height: 45px;
      font-weight: 600;
      display: flex;
      align-items: center;

      @media screen and (max-width: 767px) {
        text-align: center;
      }

      span {
        font-size: 96px;
        font-weight: 900;
        margin-left: 10px;
      }
    }

    .d-flex {
      max-width: 100%;
      overflow: hidden;

      @media screen and (max-width: 767px) {
        flex-direction: column;
      }
    }
  }
}

.intro-text {
  font-size: 1rem;
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto;
  color: var(--gray);
}

/* Swiper   */
.swiper {
  width: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  position: relative;
  width: auto !important;
  /* Override Swiper's default width calculation */
  flex-shrink: 0;

  &:first-child {
    margin-left: 40px;

    .slide-number {
      left: -30px;
    }
  }

  &:last-child {
    .slide-number {
      left: -80px;
    }
  }

  img {
    width: 100%;
    max-width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius-3);
  }

  .slide-number {
    position: absolute;
    height: 180px;
    bottom: -10px;
    left: -50px;
    font-size: 120px;
    font-weight: 700;
    color: var(--white);
    opacity: 0.9;
    z-index: -1;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
    display: none;
  }

  > a {
    position: relative;

    .item-info {
      position: absolute;
      width: 100%;
      box-sizing: content-box;
      padding: 12px;
      z-index: 1;
    }
  }
}

/* Home Apps */

.homeApps {
  padding: 4.125rem 3.125rem;
  margin-bottom: 3.125rem;
  border-radius: var(--border-radius-2);

  @media (max-width: 767px) {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  &.play {
    background: url(../images/playHome_bck.png) center no-repeat;
    background-size: cover;
  }

  &.learn {
    background: url(../images/playHome_bck.png) center no-repeat;
    background-size: cover;
  }

  &.enjoy {
    background: url(../images/playHome_bck.png) center no-repeat;
    background-size: cover;
  }

  &.watch {
    background: url(../images/watchHome_bck.jpg) center no-repeat;
    background-size: cover;

    .homeApps__container {
      h4 {
        font-size: 0.8rem;
        font-weight: 400;
        margin-top: 0.5rem;
        color: var(--white);
      }

      .homeApps__item {
        height: 160px;
      }
    }
  }

  &.fitness {
    background: url(../images/fitnessHome_bck.png) center no-repeat;
    background-size: cover;
  }

  .homeApps_text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
    text-align: left;

    @media (max-width: 767px) {
      align-items: center;
      text-align: center;
      gap: 1rem;
    }

    h3 {
      text-transform: capitalize;
      font-size: 1.875rem;

      @media (max-width: 576px) {
        font-size: 1.5rem;
      }
    }

    .btn {
      padding: 0.5rem 1.25rem;
      font-size: 1rem;

      &:hover,
      &:focus-visible {
        transform: scale(1.05);
        color: var(--white);
      }
    }
  }

  .homeApps__container {
    background-color: rgb(221, 162, 222, 0.5);
    padding: 1rem;
    border-radius: var(--border-radius-2);
    gap: 0.625rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;

    &::-webkit-scrollbar {
      display: none;
    }

    @media (max-width: 767px) {
      width: 100%;
      justify-content: flex-start;
    }
  }

  .homeApps__item {
    width: 120px;
    height: 120px;
    flex-shrink: 0;

    @media (max-width: 576px) {
      width: 100px;
      height: 100px;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: var(--border-radius-3);
    }
  }
}

/* Cards on login page  */

.areas-section {
  .wrapper {
    flex-direction: column;
  }
}

.card {
  border-radius: var(--border-radius-1);
  padding: 2rem;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  gap: 50px;
  transition: 0.3s ease-in-out;

  &:hover {
    transform: scale(1.02);
    border: 0px solid #f0f0f0;
    box-shadow: 0px 0px 6px 4px #e2e2e2;
  }

  @media screen and (max-width: 767px) {
    flex-direction: column;
    gap: 20px;
  }

  &:hover,
  &:focus-visible {
    transform: translateY(-0.5rem);
  }

  &:nth-child(1) {
  }

  &:nth-child(2) {
    flex-direction: row-reverse;

    @media screen and (max-width: 767px) {
      flex-direction: column;
    }
  }

  &:last-child {
    flex-direction: row-reverse;

    @media screen and (max-width: 767px) {
      flex-direction: column;
    }
  }

  img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--border-radius-2);
  }

  h3 {
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--black);

    @media screen and (max-width: 1439px) {
      font-size: 2rem;
    }

    @media screen and (max-width: 767px) {
      font-size: 1.5rem;
    }
  }

  p {
    color: var(--b);
    font-size: 1.2rem;
  }

  .card-overlay {
    position: absolute;
    inset: 0;
    background: var(--primary);
    z-index: 1;
    mix-blend-mode: multiply;
    opacity: 0.75;
  }

  .card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
  }

  .btn {
    /* padding: 0.5rem 2.5rem;
      margin-inline: auto;
      color: var(--black);
      cursor: pointer;
      min-width: 200px;
      font-weight: 500;
      font-size: 1.25rem;
      text-transform: uppercase;
      letter-spacing: 0.2px; */
    max-width: 200px;
    width: 100%;
    margin: 0 auto;
    color: var(--black);
    border: 4px solid var(--light-primary);
    text-transform: uppercase;

    img {
      width: 30px;
    }
  }

  /* @media screen and (max-width: 1439px) {
      padding: 3.125rem;
    }
    @media screen and (max-width: 767px) {
      padding: 2.5rem;
    }
    @media screen and (max-width: 550px) {
      padding: 1.25rem;
    } */
}

.cards_new_games {
  flex-wrap: wrap;
}

.card_new_games {
  border-radius: var(--border-radius-1);
  transition: transform 0.3s ease-in-out;
  color: var(--white);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  width: 180px;
  height: 180px;

  img {
    position: absolute;
    height: 100%;
    width: auto;
    object-fit: cover;
    z-index: 0;
  }

  h4 {
    position: absolute;
    bottom: 0;
    padding: 12px;
    text-shadow: 0 2px 2px #000;
  }

  &:hover,
  &:focus-visible {
    transform: scale(1.05);
  }
}

@media only screen and (max-width: 420px) {
  .card_new_games {
    width: 140px !important;
    height: 140px !important;
  }
}

.section-ads {
  padding: 80px 20px;

  .direction-icons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    @media screen and (max-width: 650px) {
      flex-direction: column;
    }
  }

  .cercle-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;

    .bg {
      border-radius: 100%;
      padding: 20px;
      width: 120px;
      height: 120px;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;

      img {
        width: 120px;
      }
    }

    p {
      font-size: 12px;
      text-transform: uppercase;
      word-break: break-word;
      text-align: center;
    }
  }
}

/* Enhanced Category Sections Styling */
.category-section {
  width: 100%;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;

  @media screen and (max-width: 767px) {
    padding: 3rem 0;
  }
}

.category-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.category-section:last-child::after {
  display: none;
}

.category-section h2 {
  color: var(--black);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: block;
}

.category-description {
  text-align: center;
}

/* Game Cards Grid Layout */
.apps.row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  padding-bottom: 15px;
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  place-items: center;
}

/* Enhanced Button Styling */
.see-more-btn,
.see-less-btn,
#see-all,
#see-less {
  background: none;
  border: none;
  padding: 0.75rem 2.5rem;
  border-radius: 50px;
  color: var(--black);
  font-weight: 500;
  transition: all 0.3s ease;
  border: 4px solid var(--primary);
  margin: 20px auto 0;
}

.see-more-btn:hover,
.see-less-btn:hover,
#see-all:hover,
#see-less:hover {
  transform: translateY(-2px);
  color: var(--white);
  border-color: var(--primary);
  background: var(--primary);
}

/* Transition effects for display toggling */
.apps.row,
#all-articles {
  transition: opacity 0.3s ease;
}

/* Game links styling */
.apps.row a {
  text-decoration: none;
  display: block;
}

/* Category Cards */
.category_card {
  width: 150px;
  min-height: 180px;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    mix-blend-mode: multiply;
    filter: opacity(0.5) brightness(0.5);
    z-index: 1;
  }

  &:hover {
    transform: translateY(-5px);
  }

  img.cardsImage {
    position: absolute;
    width: auto;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease-out;

    &:hover {
      transform: scale(1.1);
    }
  }

  .cardsTitle {
    position: absolute;
    bottom: 0;
    padding: 0.75rem;
    font-size: 1rem;
    color: var(--white);
    font-weight: 500;
    z-index: 2;
  }
}

/* Categorie Pills  */

.features-bar {
  margin: 20px 0;
  flex-wrap: wrap;
}

.labels {
  .item-label {
    display: inline-block;
    padding: 5px 10px;
    background: var(--primary);
    color: var(--black);
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    border-radius: 5px;
    max-height: fit-content;
    overflow: hidden;
    white-space: nowrap;
    /* Don't forget this one */
    text-overflow: ellipsis;
  }
}

.rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rating > img {
  width: 15px;
}

.categories {
  position: relative;
  overflow-x: auto;
}

/* Scrollbar  */

/* width */
::-webkit-scrollbar {
  width: 15px;
  height: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px rgba(128, 128, 128, 0.329);
  border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #2c2c2c;
  border-radius: 10px;
}

/* Section Picker */

.section_picker {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  max-width: 100%;

  @media screen and (max-width: 767px) {
    flex-direction: column;
  }

  button {
    padding: 20px;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius-4);
    color: var(--white);
    background: var(--primary);
    width: 100%;
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;

    &.inactive {
      border: 2px solid var(--light-gray);
      color: var(--black);
      background: var(--light-gray);

      &.clicked {
        border: 2px solid var(--primary);
        color: var(--white);
        background: transparent;
      }
    }
  }
}

/* Latest Articles  */
.latest_articles {
  background: url(../images/header-background.jpg) center no-repeat;
  background-attachment: fixed;
  background-size: cover;

  .btn {
    display: block;
    width: fit-content;
    margin: 1rem auto 0;
    padding: 0.75rem 2rem;
  }

  .d-flex {
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 0;
  }

  .article_card {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;

    &:hover {
      transform: translateY(-5px);
    }

    picture {
      width: 100%;
      height: 200px;
      overflow: hidden;
      border-radius: var(--border-radius-2);

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;

        &:hover {
          transform: scale(1.05);
        }
      }
    }

    .article-content {
      padding: 0.5rem;
      height: 100%;

      h5 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
        color: var(--white);
      }

      .excerp p {
        font-size: 0.875rem;
        color: var(--white);
        line-height: 1.6;
      }
    }
  }
}

/* Support pages  */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 60%;

  h2,
  h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.25rem;
  }

  p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  a {
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1rem;
  }

  @media screen and (max-width: 767px) {
    width: 100%;
    margin-top: 0;
    gap: 0.5rem;

    &label {
      font-size: 0.75rem;
    }
  }
}

#title-section {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  p {
    font-size: 0.875rem;
    text-align: center;
  }

  a {
    color: var(--primary);
  }

  label {
    display: flex;
    flex-direction: column;
  }

  input,
  textarea {
    padding: 1rem;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius-1);
    background: var(--light-gray);
    color: var(--black);
  }

  @media screen and (max-width: 767px) {
    margin: 0 !important;
    gap: 0;
    padding: 0.75rem 0;
    width: 100%;

    &label {
      font-size: 0.75rem;
    }
  }
}

.bck-light {
  padding-top: 50px;
  background: var(--light-gray);
  padding-bottom: 50px;
}

/* Single Items  */
.single-item,
.single-movie {
  h1 {
    font-size: 30px;
    line-height: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
  }

  h2 {
    font-size: 19px;
    line-height: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
  }

  .img-radial {
    width: 100%;
    max-width: none;
    max-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: var(--border-radius-2);

    @media screen and (max-width: 767px) {
      overflow: hidden;
    }

    img {
      width: auto;
      max-height: 360px;
      min-width: 100%;
      border-radius: var(--border-radius-2);
      object-fit: cover;
    }
  }

  .single-item-info {
    width: 50%;

    p,
    ul li,
    ol li {
      line-height: 24px;
      margin: 20px 0 !important;
      background: none !important;
      font-size: 16px !important;
      color: var(--black);
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      background: none !important;
      color: var(--black) !important;
    }

    video {
      width: 100%;
      height: auto;
      object-fit: cover;
    }

    @media screen and (max-width: 767px) {
      width: 100%;
      padding: 1.5rem 0;
    }
  }
}

.single-movie .single-item-info {
  width: 100%;
}

.unsub-container {
  background: var(--light-gray);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  border-radius: var(--border-radius-1);
  max-width: 480px;
  margin: auto;

  form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;

    input {
      padding: 0.5rem;
      border: 1px solid var(--gray);
      border-radius: 5px;
      width: 100%;
      background: var(--white);
    }

    .h-captcha {
      overflow: auto;
    }

    .btn {
      width: 100%;
    }
  }

  #errorMsg {
    color: #510000;
    font-size: 0.875rem;
  }
}

/* Alert styles */
.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert p {
  margin: 0;
}

/* Footer  */
.footer-logo {
  width: 200px;
}

.backToTopBtn {
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgb(20, 20, 20);
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 0px 4px var(--primary);
  cursor: pointer;
  transition-duration: 0.3s;
  overflow: hidden;
  position: fixed;
}

#backToTop {
  opacity: 0;
  visibility: hidden;

  &.visible {
    opacity: 1;
    visibility: visible;
  }
}

.svgIcon {
  width: 12px;
  transition-duration: 0.3s;
}

.svgIcon path {
  fill: white;
}

.backToTopBtn:hover {
  width: 140px;
  border-radius: 50px;
  transition-duration: 0.3s;
  background-color: var(--light-primary);
  align-items: center;
}

.backToTopBtn:hover .svgIcon {
  /* width: 20px; */
  transition-duration: 0.3s;
  transform: translateY(-200%);
}

.backToTopBtn::before {
  position: absolute;
  bottom: -20px;
  content: "Back to Top";
  color: var(--black);
  /* transition-duration: .3s; */
  font-size: 0px;
}

.backToTopBtn:hover::before {
  font-size: 13px;
  opacity: 1;
  bottom: unset;
  /* transform: translateY(-30px); */
  transition-duration: 0.3s;
}

footer {
  background: var(--white);
  color: var(--black);
  border-top: 1px solid #ffffff;
  box-shadow: 0 0px 10px 2px #e5e5e5;

  .site_footer {
    padding-block: 3.125rem;

    a {
      color: var(--black);
      font-size: 1.125rem;
      text-decoration: none;
      font-weight: 500;

      &:hover,
      &:focus-visible {
        color: var(--primary);
      }
    }

    p {
      text-align: center;
      margin-bottom: 1rem;
      color: var(--dark-graygray);
      font-size: 0.9rem;
    }

    .credit_cards {
      img {
        opacity: 0.3;
      }
    }

    .logos img {
      width: 40px;
      height: 40px;
      object-fit: contain;
    }

    @media screen and (max-width: 767px) {
      ul {
        flex-direction: column;
        gap: 1.25rem;
      }

      .copyrights {
        font-size: 0.875rem;
      }
    }
  }
}

/* Modals  */
.otp-modal,
.login-modal,
.unsub-modal,
.sign-up-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow-y: auto;
  padding: 2rem;

  .close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary);

    @media screen and (max-width: 767px) {
      right: 0.5rem;
      top: 0.2rem;
    }
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 4rem 2rem;

    p {
      font-size: 0.875rem;
      text-align: center;
    }

    a {
      color: var(--dark-primary);
    }

    @media screen and (max-width: 767px) {
      gap: 1rem;
      padding: 2rem 1rem;
      max-width: 360px;

      &label {
        font-size: 0.75rem;
      }
    }
  }

  .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 6px;

    label {
      color: var(--gray);
      font-size: 0.875rem;
    }
  }

  .checkbox-group {
    label {
      color: var(--gray);
      font-size: 0.875rem;
      line-height: normal;

      @media screen and (max-width: 767px) {
        font-size: 12px;
        line-height: 14px;
      }
    }

    a {
      display: contents;
      color: var(--dark-primary) !important;
    }
  }

  input {
    padding: 0.5rem;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius-1);
  }

  .btn {
    width: 100%;
    margin-top: 1rem 0;
    padding: 0.75rem;
  }

  @media screen and (max-width: 767px) {
    h2 {
      font-size: 1.25rem;
    }

    label {
      color: var(--gray);
    }

    input {
      padding: 0.5rem;
    }
  }

  @media screen and (max-width: 767px) {
    padding: 0.75rem;
  }

  .modal-content {
    background: var(--white);
    border-radius: var(--border-radius-1);
    width: 90%;
    overflow: auto;
    width: 100%;
    max-inline-size: 1080px;
    position: relative;
    overflow: hidden;

    @media screen and (max-width: 767px) {
      width: 90%;
      max-width: 400px;
      margin-top: 2rem;
    }

    .form-group input {
      background: var(--light-gray);
      padding: 0.625rem 1.25rem;
      color: var(--black);

      &:focus {
        border-color: var(--primary);
        outline: none;
      }

      &::placeholder {
        color: var(--gray);
      }

      @media screen and (max-width: 767px) {
        padding: 0.5rem;
        width: 100%;
      }
    }

    .form-group input[type="checkbox"] {
      width: auto;
    }
  }

  .modal-bck {
    background: url(../images/premium/modal-image.jpg) center no-repeat;
    background-size: cover;
    border-radius: var(--border-radius-1);
    height: 100%;
    width: 100%;

    @media screen and (max-width: 797px) {
      display: none;
    }
  }
}

/* Payment modal  */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0 0 0 / 80%);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 30px 0;
}

/* Payment Modal Styles */

#paymentModal .modal-content {
  background: var(--white);
  border-radius: 20px;
  padding: var(--border-radius-2);
  padding-top: 40px;
  max-width: 480px;
  width: 90%;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  height: auto;
  position: relative;

  @media screen and (max-width: 479px) {
    padding: 20px;
    height: 90%;
    overflow-y: auto;
  }

  h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
  }

  .form-group {
    margin-bottom: 20px;
    gap: 8px;

    @media screen and (max-width: 767px) {
      padding: 0;
      margin-bottom: 20px !important;
    }
  }

  label {
    display: block;
    margin-bottom: 0;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
  }

  input {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    color: var(--black);
    background: var(--light-gray);

    &:focus {
      border-color: var(--primary);
      outline: none;
    }
  }

  .d-flex {
    display: flex;
    gap: 15px;

    .form-group {
      flex: 1;
    }
  }

  button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;

    &:hover {
      background: var(--primary);
      transform: translateY(-1px);
      box-shadow: 0 5px 15px rgba(26, 47, 163, 0.2);
    }
  }

  .close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    transition: color 0.3s ease;

    @media screen and (max-width: 479px) {
      right: 10px;
      top: 10px;
    }

    &:hover {
      color: var(--primary);
    }
  }
}

/* Title Row and Section Subtitle  */
.section-subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  text-align: center;

  @media (max-width: 767px) {
    font-size: 1rem;
  }
}

/* Legals Pages  */

.legals {
  text-align: justify;
  h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
  }

  h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }

  h4 {
    font-size: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
  }

  p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  ul {
    list-style: disc;
    padding-left: 20px;

    li {
      margin-bottom: 0.5rem;
    }
  }

  a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 600;
  }
}

@layer pages {
  .title-bar {
    background: var(--dark-primary);
    padding-block: 4rem;

    h1 {
      text-align: center;
      color: var(--black);
      font-weight: 600;
      text-transform: uppercase;
      font-size: 2.5rem;

      @media screen and (max-width: 767px) {
        font-size: 2rem;
      }
    }
  }

  .page {
    p {
      font-size: 14px;
      margin: 10px 0;
    }

    h1,
    h2 {
      margin-top: 30px;
    }

    a {
      color: var(--white);
      text-decoration: underline;
    }

    .info-frame {
      background: var(--light-gray);
      background-size: cover;
      padding: 45px 30px;
      border-radius: 20px;
      color: var(--black);

      h2 {
        color: var(--black);
        margin-bottom: 15px;
        margin-top: 0;
      }

      .text-xl {
        font-size: 1.25rem;
        font-weight: 700;
        overflow: hidden;
        white-space: nowrap;
        /* Don't forget this one */
        text-overflow: ellipsis;

        @media screen and (max-width: 991px) {
          font-size: 1.2rem;
        }
      }
    }

    ul,
    ol {
      li {
        margin: 15px;
        list-style: disc;
      }
    }
  }

  .btn.primary {
    transition: 0.25s ease-out;

    &:hover {
      transform: scale(1.1);
    }
  }

  .account_page {
    @media screen and (max-width: 750px) {
      flex-direction: column;
    }
  }
}

@layer utilites {
  .background-primary {
    background-color: var(--primary);
  }

  .background-dark {
    background-color: var(--dark-gray);
  }

  .background-pattern {
    background: url(../images/premium/bck-pattern.jpg);
    background-size: cover;
    background-repeat: no-repeat;
  }

  .background-top {
    background: url(../images/top-bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
  }

  .background-light {
    background-color: var(--light-gray);
  }

  .d-flex {
    display: flex;
  }

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

  .d-flex .column {
    flex-basis: 50%;
    flex-grow: 1;
  }

  .justify-center {
    justify-content: center;
  }

  .justify-between {
    justify-content: space-between;
  }

  .align-center {
    align-items: center;
  }

  .text-center {
    text-align: center;
  }

  .text-white {
    color: var(--white);
  }

  .text-black {
    color: var(--black);
  }

  .hidden {
    display: none;
  }

  .col-4 {
    width: 34%;

    @media screen and (max-width: 767px) {
      width: 100%;
    }
  }

  .col-7 {
    width: 60%;

    @media screen and (max-width: 767px) {
      width: 100%;
    }
  }

  .gap-2 {
    gap: 0.625rem;
  }

  .gap-3 {
    gap: 1rem;
  }

  .gap-20 {
    gap: 20px;
  }

  .gap-30 {
    gap: 30px;
  }

  .gap-50 {
    gap: 50px;
  }

  .mt-0 {
    margin-top: 0 !important;
  }

  .mt-1 {
    margin-top: 0.625rem !important;
  }

  .mt-2 {
    margin-top: 1rem !important;
  }

  .mt-3 {
    margin-top: 1.5rem !important;
  }

  .mt-4 {
    margin-top: 2rem !important;
  }

  .mt-5 {
    margin-top: 2.5rem !important;
  }

  .mb-0 {
    margin-bottom: 0 !important;
  }

  .mb-1 {
    margin-bottom: 0.625rem !important;
  }

  .mb-2 {
    margin-bottom: 1rem !important;
  }

  .mb-3 {
    margin-bottom: 1.5rem !important;
  }

  .mb-4 {
    margin-bottom: 2rem !important;
  }

  .mb-5 {
    margin-bottom: 2.5rem !important;
  }

  .pt-0 {
    padding-top: 0 !important;
  }

  .pt-1 {
    padding-top: 0.625rem !important;
  }

  .pt-2 {
    padding-top: 1rem !important;
  }

  .pt-3 {
    padding-top: 1.5rem !important;
  }

  .pt-4 {
    padding-top: 2rem !important;
  }

  .pt-5 {
    padding-top: 2.5rem !important;
  }

  .pb-0 {
    padding-bottom: 0 !important;
  }

  .pb-1 {
    padding-bottom: 0.625rem !important;
  }

  .pb-2 {
    padding-bottom: 1rem !important;
  }

  .pb-3 {
    padding-bottom: 1.5rem !important;
  }

  .pb-4 {
    padding-bottom: 2rem !important;
  }

  .pb-5 {
    padding-bottom: 2.5rem !important;
  }

  .w-100 {
    width: 100% !important;
  }

  .d-none {
    display: none;
  }

  .d-block {
    opacity: 1;
    height: auto;
  }

  @media screen and (max-width: 767px) {
    .mobile-column {
      flex-direction: column;
    }
  }

  .reverse-mobile {
    @media screen and (max-width: 767px) {
      flex-direction: column-reverse;
    }
  }
}
