body {
  font-size: 14px;
}

:root {
  --gap: 10px;
  --visible: 2;
}

body,
section,
header,
footer,
main {
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
}

main {
  height: fit-content;
  overflow-y: auto;
  margin-top: 67px;
}

form .row {
  flex-wrap: wrap;
  flex-direction: column;
  row-gap: 20px;
}

form .half,
form .third {
  width: 100%;
}

input,
textarea,
select {
  font-size: .9em;
}

.is-compact .fancybox__content>.f-button.is-close-btn {
  width: 50px;
  min-width: 0;
  max-width: 50px;
  height: 50px;
  overflow: hidden;
}

button,
.button {
  min-width: 0;
}

form button {
  width: 100%;
  margin-bottom: 10px;
}

input,
textarea,
select {
  font-size: .9em;
}

.modal {
  min-width: 100%;
}

/* Menu */
/* Header */
#main-header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  padding-left: 5%;
  padding-right: 5%;
  margin-left: 0;
  margin-right: 0;
  overflow: visible;
  border-radius: 0;
  z-index: 100;

  /* navigation */
  nav {

    /* Logo */
    .logo-wrap {

      .logo {
        height: 50px;
      }
    }

    /* Main Menu */
    menu {
      display: none;

    }

    /* Store Buttons */
    .shop-items {
      column-gap: 20px;

      a {

        .icon {
          height: 24px;
        }
      }

      #chk-btn {
        display: none;
      }

    }

    .menu-btns {
      display: flex;
    }
  }
}

/* Weather Bar */
#weather-bar {
  position: absolute;
  top: 75px;
  left: 0;
  display: flex;
  width: 90%;
  height: 36px;
  margin-left: 5%;
  margin-right: 5%;
  overflow: hidden;
  justify-content: center;
  text-align: center;
  z-index: 99;
  color: #fff;
  background: #2f506f;
  font-size: 0.8em;
  gap: 10px;
  padding: 8px 5px;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  border-radius: 20px;
  filter: opacity(0);
  transition: filter .3s;

  img {
    width: 20px;
    height: 20px;
    display: flex;
    padding: 0;
  }

  span {
    line-height: 100%;
    display: flex;
    align-items: center;
  }
}

/* Desktop Menu */

#desktop-menu-btn {
  width: 40px;
}

#desktop-menu-btn>div {
  height: 3px;
}

/* Mobile Menu */
.desktop-menu {
  width: 100%;
  padding: 5%;
  padding-top: 70px;
  position: fixed;
  left: -100%;
  filter: opacity(1);
  top: 0;
  z-index: 102;
  height: 100vh;
  overflow: hidden;
  transition: left 1s, filter 1s;
  display: flex;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  flex-direction: column;
  align-items: center;
  row-gap: 20px;

  a {
    display: flex;
    font-size: 1.3em;
    text-align: center;
    color: #fff;
    text-decoration: none;
    width: 100%;
    justify-content: center;
  }

  .menu-item {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    a {
      width: 100%;
      justify-content: center;
    }

    /* Submenu styling with transition */
    .submenu {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      flex-direction: column;
      background: rgba(0, 0, 0, 0.95);
      width: 100%;
      margin-top: 5px;
      border-radius: 6px;
      padding: 0 0;
      /* padding will expand with max-height */
      transition: max-height 0.3s ease, opacity 0.3s ease;

      a {
        padding: 10px 0;
        font-size: 1.1em;
      }

      a:hover {
        color: #dbbc6c;
        background: rgba(219, 188, 108, 0.1);
      }
    }

    /* Show submenu when active */
    &.active .submenu {
      max-height: 500px;
      /* enough to fit all items */
      opacity: 1;
      padding: 5px 0;
    }
  }
}

.hero {

  padding-top: 30px;

  h1 {
    font-size: 2.2em;

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

.home {

  .hero {
    margin-top: 0px;
    height: fit-content;
    min-height: 55vh;

    .content {
      width: 100%;
      padding-right: 5%;

      img.desktop-title {
        display: none;
      }

      img.mobile-title {
        display: block;
        width: 100%;
      }

      h1 {
        font-size: 3em;
        line-height: 100%;
      }

      button {
        min-width: 0;
        font-size: .9em;
      }
    }

  }

  .channel-cards {
    font-size: .8em;
    padding: 40px 5%;

    .grid {
      grid-template-columns: repeat(2, 1fr);

      .card {
        height: 260px;
        align-items: flex-start;
        padding: 15px;

        .title {
          text-align: left;
          font-size: 1.6em;
        }

        .desc {
          text-align: left;
        }
      }


      button {
        min-width: 0;
      }
    }

    .grid>*:last-child:nth-child(odd) {
      grid-column: span 2;
    }
  }

  .archive-cards {
    font-size: .8em;
    padding: 40px 5% 0;

    .wrapper {

      .swiper-slide {

        .info {
          font-size: .9em;
          flex-wrap: wrap;
          text-wrap: balance;
        }
      }

      .swiper-button-next::after,
      .swiper-button-prev::after {
        font-size: 28px;
      }
    }
  }

  /* Mobile adjustments for story-cards slider */
  .story-cards {
    font-size: 0.8em;
    padding: 40px 5%;

    .wrap {
      display: none !important;
    }

    .mobile-news-slider {
      max-width: 100%;
      width: 100%;
      overflow: hidden;
      display: block;
    }

    .mobile-main {
      padding: 12px;
      background: #222;
      border-radius: 12px;
    }

    .mobile-hero {
      width: 100%;
      height: 220px;
      object-fit: cover;
      display: block;
      border-radius: 8px;
    }

    .mobile-content {
      padding: 10px 0 6px;
    }

    .mobile-content h2 {
      margin: 6px 0;
      font-size: 1.4em;
      color: #fff;
      line-height: 110%;
    }

    .mobile-meta {
      color: #aaa;
      font-size: 0.85rem;
      margin-bottom: 8px;
    }

    .mobile-content p {
      color: #ddd;
      margin: 0 0 10px;
      max-height: 3.6rem;
      overflow: hidden;
    }

    .mobile-content .read-more {
      display: inline-block;
      padding: 8px 12px;
      color: #000;
      border-radius: 6px;
      text-decoration: none;
      font-weight: 700;
    }

    .mobile-thumbs {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 12px;
      box-sizing: border-box;
      margin-top: 20px;
      background: #222;
      border-radius: 12px;

      .heading {
        font-size: 1.6em;
        font-weight: 900;
      }
    }

    .thumb-buttons {
      display: flex;
      justify-content: space-between;
      margin-bottom: 6px;
      font-size: 2em;
      font-weight: 300;
    }

    .m-btn {
      all: unset;
      width: 38px;
      height: 38px;
      min-width: 38px;
      border-radius: 50%;
      background: #2f506f;
      color: #fff;
      display: grid;
      place-items: center;
      cursor: pointer;
    }

    .m-btn:hover {
      background: #dbbc6c;
      color: #000;
    }

    .thumb-viewport {
      overflow: hidden;
      width: 100%;
    }

    .thumb-track {
      display: flex;
      gap: var(--gap);
      transition: transform .45s cubic-bezier(.2, .9, .2, 1);
      will-change: transform;
      line-height: 110%;
    }

    .thumb-item {
      flex: 0 0 calc((100% / var(--visible)) - ((var(--gap) * (var(--visible) - 1)) / var(--visible)));
      box-sizing: border-box;
      cursor: pointer;
      text-align: left;
    }

    .thumb-item img {
      width: 100%;
      height: 90px;
      object-fit: cover;
      border-radius: 8px;
      display: block;
    }

    .thumb-title {
      font-size: 1.1em;
      margin-top: 5px;
      color: #fff;
      font-weight: 700;
    }

    .thumb-date {
      font-size: 11px;
      color: #aaa;
      margin-top: 10px;
    }

    @media(max-width:360px) {
      .mobile-hero {
        height: 180px;
      }

      .thumb-item img {
        height: 72px;
      }
    }


  }



  .call-to-action {
    padding: 40px 5%;
    margin-top: 40px;

    .left {
      width: 100%;

      .title {
        font-size: 2.5em;
        line-height: 100%;
      }

      button {
        min-width: 0;
        font-size: .8em;
      }
    }

    .right {
      display: none;
    }
  }

}

/* Watch Live Page */
.watch-live {
  .sec1 {
    padding: 40px 5%;
    font-size: .8em;

    .grid1,
    .grid2 {
      grid-template-columns: repeat(1, 1fr);
      width: 100%;
      min-width: 100%;

      .channel {
        height: 300px;
        width: 100%;

        .description {
          max-width: 100%;
        }
      }
    }
  }
}

/* Live Stream Page */
.live {

  .livestream {
    padding: 20px 0 2%;
    margin-top: 40px;

    .g-logo {
      width: 40px;
    }

    .nnatv-logo {
      width: 40px;
    }

    iframe {
      height: fit-content;
      min-height: 300px;
      width: 100%;
    }

    .info {
      flex-direction: column;
      font-size: .8em;
      row-gap: 20px;

      .left {
        width: 100%;
        height: 150px;
      }

      .right {
        width: 100%;

        h1 {
          line-height: 100%;
          margin-top: 10px;
        }
      }
    }
  }
}

/* News Page */
.news-page {

  .filter {
    padding: 20px 5% 0;
    font-size: .8em;
  }

  .sec1 {
    font-size: .8em;

    .posts-list {
      grid-template-columns: repeat(1, 1fr);

      .post {
        display: flex;
        flex-direction: column;
        row-gap: 20px;

        .img {
          min-height: 150px;
          height: 200px;
          width: 100%;
        }

        .right {
          width: 100%;
          height: fit-content;
        }
      }
    }
  }
}

/* Single Post Page */
.single-post {

  .breadcrumb {
    font-size: .8em;
    margin-top: 50px;
  }

  .sec1 {
    font-size: .8em;
    flex-direction: column;
    row-gap: 40px;

    .article {
      width: 100%;

      h2 {
        text-align: left;
        margin-top: 0;
      }

      .left {
        width: 100%;
        height: fit-content;
      }

      .gallery {
        padding-bottom: 0;
      }
    }

    .ad {
      width: 100%;
    }
  }

  .related {
    padding: 40px 5%;
    font-size: .8em;

    .grid5 {
      grid-template-columns: repeat(2, 1fr);

      .product {
        .title {
          line-height: 120%;
          font-weight: 700;
        }

        .img {
          height: 15vh;
        }
      }
    }
  }
}

/* Footer */
#main-footer {
  padding: 60px 5% 20px;
  font-size: .8em;

  .grid {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 30px;

    .item {
      text-align: center;

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

    img.logo {
      max-width: none;
      height: 80px;
      margin-left: auto;
      margin-right: auto;
    }
  }

  .legal {
    text-wrap: balance;
  }
}

.page {

  .hero {
    height: fit-content;
    margin-top: 55px;
    font-size: .8em;

    .content {
      padding-top: 0;

      h1 {
        font-size: 1.8em;
      }
    }
  }

  .breadcrumb {
    font-size: .9em;
    padding: 20px 5%;
  }
}


/* Shop */
.shop {

  .hero {
    margin-top: 60px;
  }

  .filter {
    padding: 40px 5%;
    font-size: .8em;

    form {

      .inputs {
        grid-template-columns: repeat(2, 1fr);
      }
    }
  }

  .sec1 {
    overflow: hidden;
    height: fit-content;
    display: block;
    font-size: .8em;

    .sidebar {
      position: relative !important;
      min-height: fit-content;
      width: 100%;
      margin-bottom: 60px;

      .list {}
    }

    .products {
      grid-template-columns: repeat(2, 1fr);
      width: 100%;
      column-gap: 10px;

      .product {

        .img {
          height: 120px;
        }

        .size {
          flex-direction: column;
          row-gap: 10px;

          span {
            width: 100%;
          }
        }

        .img:hover {
          top: 0;
        }

        button {
          min-width: 0;
          font-size: .8em;
        }

        .info {
          flex-wrap: wrap;
          text-wrap: balance;
        }
      }
    }
  }
}

/* Single product page */
.single-product {

  .breadcrumb {
    font-size: .8em;
    margin-top: 50px;
  }

  .sec1 {
    font-size: .8em;
    flex-direction: column;
    row-gap: 40px;

    .left {
      width: 100%;
      height: auto;
      min-height: 0;
      padding: 0;

      .thumbnails {
        position: relative;
        z-index: 1;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        row-gap: 20px;
      }
    }

    .right {
      width: 100%;
      padding-left: 0;

      h2 {
        line-height: 120%;
        font-size: 1.8em;
      }

      .category {
        font-size: .9em;
      }

      .size {
        flex-direction: column;
        row-gap: 5px;

        span {
          width: 100%;

          select {
            width: 100%;
          }
        }
      }

      button {
        width: 100%;
      }
    }

    h2 {
      text-align: left;
    }

    .left {
      width: 100%;
      height: fit-content;
    }
  }

  .related {
    padding: 40px 5%;
    font-size: .8em;

    .grid5 {
      grid-template-columns: repeat(2, 1fr);
      margin-bottom: 40px;

      .product {
        .img {
          height: 100px;
        }
      }

      .product:hover {
        top: 0;
      }
    }
  }

}

.search {
  width: 100%;
  padding-left: 5%;
  padding-right: 5%;

  form {
    width: 100%;
    margin-top: 15px;
    justify-content: flex-start;

    button {
      min-width: 0;
      width: fit-content;
    }

    input {
      width: 90%;
      background-color: #000;
    }

    button {
      display: flex;
      align-items: center;
      justify-content: center;

      img {
        top: 5px;
        position: relative;
        display: flex;
      }
    }
  }

  #close-search {
    right: 5%;
    top: 0;
  }
}


/* Search Page */
.search-page {

  .result {
    font-size: 0.8em;
  }
}


/* Contact Page */
.contact {


  .sec1 {
    padding: 60px 5%;
    width: 100%;
    font-size: .8em;

    .grid {
      flex-direction: column;
      justify-content: center;
      align-items: center;
      row-gap: 60px;

      .item {
        width: 100%;
        flex-direction: column;
        row-gap: 20px;
        text-align: center;

        .lef,
        .righ {
          width: 100%;
        }

        .righ {

          .info {
            font-size: 1.2em;
          }
        }
      }
    }

    .partner {

      img {
        height: 40px !important;
      }
    }

    .flex {
      flex-direction: column;
      row-gap: 20px;

      .left,
      .right {
        width: 100%;
      }

      .left {

        .img-wrap {
          margin-bottom: 0;
          padding-bottom: 40px;

          iframe {
            height: 300px;

          }
        }

      }

      .right {
        form {

          .fullwidth,
          .half {
            select {
              option {
                color: #000;
              }
            }
          }
        }
      }
    }

    form {
      width: 100%;
      font-size: 1.1em;
    }
  }
}

.ultra-stream {
  .hero-ultra {
    padding: 60px 5%;

    h1 {
      font-size: 2.5em;
      line-height: 100%;
      text-align: center;
    }

    p {
      font-size: 1.2em;
      text-align: center;
    }

    .btn {
      font-size: 1em;
    }
  }

  .content {
  padding: 60px 2% 100px;
      .row {
      .row-title {
        margin: 0 5% 15px;
      }

      .slider {
        padding: 0 20px;
        scroll-snap-type: x mandatory;
        cursor: default;

        .card {
          width: 200px;
          min-height: 90px;
          scroll-snap-align: start;

          img {
            height: 110px;
          }

          .title {
            font-size: .9em;
            color: #ddd;
          }
        }
      }
    }
}

  .slider-btn.prev,
  .slider-btn.next {
    display: none;
  }

  .us-modal-content h2 {
    line-height: 1.1;
    font-size: 1.4em;
  }
}

#cursor-follower {
  display: none !important;
  visibility: hidden !important;
}