@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: #242424;
    --white: #fff;
    --primary: #7a78ff;
    --light-gray: #f1f1f1;
    --gray: #a8a3b5;
    --dark-gray: #2c293d;

    --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;
    line-height: normal;
    color: var(--white);
    background-color: var(--black);
    position: relative;
  }

  h1 {
    font-size: 3rem;
    font-weight: 500;
    font-family: "Teko", sans-serif;

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

  h2 {
    font-size: 2.5rem;
    font-weight: 500;
    font-family: "Teko", sans-serif;

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

  h3 {
    font-size: 2rem;
    font-weight: 600;
    font-family: "Teko", sans-serif;

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

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

  p:empty {
    display: none;
  }

  .btn {
    font-weight: 600;
    color: var(--white);
    background: #7a78ff;
    background: -webkit-linear-gradient(90deg, rgba(122, 120, 255, 0.5) 0%, rgba(122, 120, 255, 0.1) 100%);
    background: -moz-linear-gradient(90deg, rgba(122, 120, 255, 0.5) 0%, rgba(122, 120, 255, 0.1) 100%);
    background: linear-gradient(90deg, rgba(122, 120, 255, 0.5) 0%, rgba(122, 120, 255, 0.1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#7A78FF", endColorstr="#7A78FF", GradientType=1);
    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;
    font-size: 1.5rem;
    font-family: "Teko", sans-serif;

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

@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: 1600px;
  }
  .section {
    padding-block: 6rem;

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

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

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

@layer components {
  /* Navigation  */
  .site_header {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    align-items: center;
    position: relative;
    z-index: 999;

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

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

      @media screen and (min-width: 768px) and (max-width: 1199px) {
        max-width: 180px;
      }

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

    .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(--primary);
            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);
      }
      .unsubLink {
        font-size: 0.875rem;
        font-weight: 500;

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

      @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: 6rem;
    background-image: url(../images/premium/header-background.jpg);

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

    .hero-content {
      width: calc(45% - 50px);

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

      @media screen and (min-width: 768px) and (max-width: 1199px) {
        min-width: 50%;
      }

      h1 {
        margin-bottom: 2rem;

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

      .intro-text {
        font-size: 4.5rem;
        line-height: 5rem;
        margin: 0;

        @media screen and (max-width: 1199px) {
          font-size: 3rem;
          line-height: 3.25rem;
        }
        @media screen and (max-width: 767px) {
          font-size: 2rem;
          line-height: 2.25rem;
        }
      }

      .btn {
        padding: 0.2rem 5.5rem;
        font-size: 2.5rem;
        margin: 3rem auto 0;
        max-width: fit-content;
      }

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

    .hero-image {
      width: 55%;
      height: auto;
      object-fit: cover;

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

      @media screen and (min-width: 768px) and (max-width: 1199px) {
        width: 45%;
        object-fit: contain;
      }

      &.home {
        margin-left: -100px;
      }
    }
  }

  /* 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(--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(--dark-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: #7a78ff;
    background: -webkit-linear-gradient(90deg, rgba(122, 120, 255, 0.2) 0%, rgba(122, 120, 255, 0.03) 100%);
    background: -moz-linear-gradient(90deg, rgba(122, 120, 255, 0.2) 0%, rgba(122, 120, 255, 0.03) 100%);
    background: linear-gradient(90deg, rgba(122, 120, 255, 0.2) 0%, rgba(122, 120, 255, 0.03) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#7A78FF", endColorstr="#7A78FF08", GradientType=1);
    padding-block: 5rem;

    .wrapper {
      gap: 50px;

      @media screen and (max-width: 1199px) {
        gap: 20px;
      }

      h2 {
        font-size: 48px;
        font-weight: 600;
        display: flex;
        align-items: center;

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

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

  .intro-text {
    font-size: 1.5rem;
    font-weight: 500;
    max-width: 720px;
    margin: 0 auto;
  }

  /* 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.25;
      z-index: 1;
      text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
    }

    > 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  */

  .card {
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-basis: 100%;

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

    &:nth-child(1) {
      .card-content {
        background-image: url(../images/premium/category-image-01.png);
      }
    }

    &:nth-child(2) {
      .card-content {
        background-image: url(../images/premium/category-image-02.png);
      }
    }

    &:last-child {
      .card-content {
        background-image: url(../images/premium/category-image-03.png);
      }
    }

    .card-content {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background-size: contain;
      background-position: center;
      background-repeat: no-repeat;
      width: 100%;
      height: 360px;
      max-width: 360px;

      @media screen and (min-width: 768px) and (max-width: 1199px) {
        width: 215px;
        height: 215px;
        max-width: none;
      }

      h3 {
        text-transform: uppercase;

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

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

    .btn {
      border: 2px solid var(--primary);
      width: 100%;
      background: transparent;
      font-size: 2rem;
    }
  }

  .login-bottom-bck {
    width: 100%;
    max-width: 720px;

    @media screen and (min-width: 768px) and (max-width: 1199px) {
      max-width: 30%;
    }
  }

  .cards_new_games {
    flex-wrap: wrap;
  }
  .card_new_games {
    border-radius: var(--border-radius-1);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 200px;
    height: 200px;
    margin: 0 auto;

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

    h4 {
      position: absolute;
      bottom: 0;
      padding: 12px;
    }

    &:hover,
    &:focus-visible {
      transform: scale(1.05);
    }
  }
  /* Enhanced Category Sections Styling */
  .category-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
  }

  .category-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
  }

  /* 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;

    @media screen and (min-width: 768px) and (max-width: 1199px) {
      grid-template-columns: repeat(auto-fill, minmax(13vw, 1fr));
    }
  }

  /* 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(--primary);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--gray);
  }

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

  /* 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: 180px;
    min-height: 180px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border-radius: var(--border-radius-3);

    @media screen and (min-width: 768px) and (max-width: 1199px) {
      width: 13vw;
      min-height: 120px;
      border-radius: var(--border-radius-2);
    }

    &::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;
      width: 100%;
      text-align: center;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 3; /* number of lines to show */
      line-clamp: 3;
      -webkit-box-orient: vertical;
    }
  }

  /* Categorie Pills  */

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

  .labels {
    .item-label {
      display: inline-block;
      padding: 5px 10px;
      background: var(--black);
      color: var(--primary);
      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%;

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

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

        &.clicked {
          border: 2px solid var(--primary);
          color: var(--primary);
          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: 0.5rem;
      border: 1px solid var(--gray);
      border-radius: var(--border-radius-1);
      background: var(--dark-gray);
      color: var(--white);
    }

    @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 {
        max-width: 180px;
        max-height: 180px;
        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(--white) !important;
      }

      h1,
      h2,
      h3,
      h4,
      h5,
      h6 {
        background: none !important;
        color: var(--white) !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%;
  }

  /* Footer  */
  .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(--gray);
    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(--black);

    .site_footer {
      padding-block: 3.125rem;

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

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

      p {
        text-align: center;
        margin-bottom: 1rem;
      }

      .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: 1.25rem;
      top: 1rem;
      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(--primary);
      }

      @media screen and (max-width: 767px) {
        gap: 1rem;
        padding: 2.5rem 1rem;
        max-width: fit-content;

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

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

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

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

    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(--black);
      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%;
        margin-top: 2rem;
      }

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

        &:focus-visible {
          outline: none;
          border: 1px solid var(--light-purple);
        }

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

        @media screen and (max-width: 767px) {
          padding: 0.5rem;
        }
      }
    }
    .modal-bck {
      background: url(../images/premium/modal-image.jpg) center no-repeat;
      background-size: cover;
      height: 100%;
      width: 100%;

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

  /* Payment modal  */

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

  /* Payment Modal Styles */

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

    @media screen and (max-width: 479px) {
      padding: 30px 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: 8px 15px;
      font-size: 16px;
      transition: border-color 0.3s ease;
      color: var(--white);

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

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

      .form-group {
        flex: 1;
      }
    }

    button[type="submit"] {
      width: 100%;
      margin-top: 10px;
    }

    .close {
      position: absolute;
      right: 20px;
      top: 20px;
      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 {
    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 {
    padding-block: 2rem 0;

    h1 {
      text-align: center;
      color: var(--gray);
      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(--primary);
      background-size: cover;
      padding: 45px 30px;
      border-radius: 20px;
      color: var(--white);

      h2 {
        color: var(--white);
        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 {
    padding: 12px 40px;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    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-light {
    background-color: var(--light-gray);
  }

  .background-gradient {
    background: #7a78ff;
    background: -webkit-linear-gradient(90deg, rgba(122, 120, 255, 0.2) 0%, rgba(122, 120, 255, 0.03) 100%);
    background: -moz-linear-gradient(90deg, rgba(122, 120, 255, 0.2) 0%, rgba(122, 120, 255, 0.03) 100%);
    background: linear-gradient(90deg, rgba(122, 120, 255, 0.2) 0%, rgba(122, 120, 255, 0.03) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#7A78FF", endColorstr="#7A78FF08", GradientType=1);
  }

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