@media only screen and (min-width: 1720px) {
  .top_header {
    height: 60px;
    width: 1360px;
    margin: auto;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    display: flex;
  }
}

@media only screen and (min-width: 1320px) and (max-width: 1720px) {
  .top_header {
    height: 60px;
    width: 1280px;
    margin: auto;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    display: flex;
  }
}

@media only screen and (min-width: 1080px) and (max-width: 1320px) {
  .top_header {
    height: 60px;
    width: 1020px;
    margin: auto;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    display: flex;
  }
}

@media only screen and (min-width: 1080px) {
  .logo {
    height: 60px;
  }

  .menu_btn {
    display: none;
  }

  .active_nav_btn .drop_down {
    fill: #007af6;
  }

  .nav_btn:hover .drop_down {
    fill: #007af6;
  }

  .drop_down {
    height: 0.8rem;
    fill: var(--white);
  }

  .nav {
    display: flex;
    align-items: center;
    justify-content: center;
    display: flex;
  }

  .nav_btn {
    color: var(--heading);
    font-size: 14px;
    margin: 0 2rem;
    height: 100%;
    font-weight: 500;
    text-decoration: none;
    position: relative;
  }

  .nav_btn:hover {
    color: var(--main);
  }

  .nav_btn_big_blue {
    color: var(--white);
    font-size: 14px;
    margin: 0 2rem;
    position: relative;
    background: linear-gradient(to right, #007af6, #db00fd, #db00fd, #007af6);
    background-size: 200% 100%;
    background-position: left;
    height: 100%;
    font-weight: 500;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    position: relative;
    transition: background-position 0.4s ease-in-out;
  }

  .nav_btn_big_blue:hover {
    background-position: right;
    cursor: pointer;
  }

  .active_nav_btn {
    color: #007af6;
  }

  .nav_btn_active {
    color: #007af6 !important;
  }

  .nav_btn_active .drop_down {
    fill: #007af6 !important;
  }

  .dropdown_container {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-gap: 36px;
    box-sizing: border-box;
    padding: 1rem;
    text-decoration: none;
  }

  .nav_drop_split {
    grid-column: span 1;
  }

  .nav a {
    text-decoration: none;
  }

  .nav_block {
    z-index: 6;
    background: linear-gradient(to bottom, #181c24, #111418);
    box-shadow: 0 2px 50px 20px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 15px;
    right: 0;
    display: none;
    border-radius: 8px;
    opacity: 0;
    width: 550px;
    box-sizing: border-box;
  }

  .nav_block_container {
    width: 100%;
  }

  .drop_down_btn:hover + .nav_block,
  .drop_down_btn:hover + .nav_blockB,
  .nav_block:hover,
  .nav_blockB:hover,
  .nav_btn:hover .nav_block,
  .nav_btnB:hover .nav_blockB {
    display: block;
    opacity: 1;
  }

  .nav_blockB {
    z-index: 6;
    padding: 1rem 0.5rem;
    background-color: var(--bg);
    background: linear-gradient(to bottom right, #181c24, #111418);
    position: absolute;
    box-shadow: 0 2px 50px 20px rgba(0, 0, 0, 0.1);
    top: 15px;
    left: 0;
    display: none;
    opacity: 0;
    border-radius: 8px;
    width: 120px;
  }

  .drop_link_container {
    width: 100%;
    padding: 1rem 0.5rem;
    box-sizing: border-box;
    height: 95px;
    margin: 0.5rem 0;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #282a30;
    justify-content: center;
    flex-direction: column;
    display: flex;
  }

  .drop_link_container:hover .drop_link_container_text {
    color: #007af6;
    transition: all 0.3s;
  }

  .drop_link_container:hover {
    background-color: #1b1e24;
    transition: all 0.3s;
  }

  .drop_link_container_header {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: var(--heading);
  }
  .drop_link_container_active .drop_link_container_header {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: var(--main);
  }

  .drop_link_container_text {
    text-decoration: none;
    font-size: 12px;
    color: #8b929f;
    font-weight: 400;
  }

  .drop_link_container_active {
    background-color: #1b1e24;
  }

  .drop_link_container_active .drop_link_container_header {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
  }

  .drop_link_container_active .drop_link_container_text {
    color: #007af6;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
  }

  .nav_block_btn {
    text-decoration: none;
    padding: 0.5rem 0;
    font-weight: 400;
    color: var(--heading);
    font-size: 14px;
    margin: 0;
    display: block;
  }

  .nav_block_btn_active {
    color: #007af6;
  }

  .nav_block_btn:hover {
    color: #007af6;
  }

  .sidenav_placer {
    display: none;
  }
}

@media only screen and (max-width: 1080px) {
}

@media only screen and (min-width: 760px) and (max-width: 1080px) {
  .top_header {
    display: none;
  }

  .content {
    flex: 1;
    transform: translateX(0) scale(1);
    background-color: var(--bg);
    transform-origin: top right;
    will-change: transform;
  }

  .content.shrink {
    transform: translateX(-320px) translateY(2.5vh) scale(0.95);
    overflow: hidden;
    height: 100vh;
  }

  .content.menu-anim {
    animation: shrink-off-tablet 0.4s ease-out;
  }

  .content.shrink.menu-anim {
    animation: shrink-on-tablet 0.4s ease-out;
  }

  @keyframes shrink-on-tablet {
    0% {
      transform: translateX(0) translateY(0) scale(1);
    }
    70% {
      transform: translateX(-320px) translateY(2.5vh) scale(0.93);
    }
    100% {
      transform: translateX(-320px) translateY(2.5vh) scale(0.95);
    }
  }

  @keyframes shrink-off-tablet {
    0% {
      transform: translateX(-320px) translateY(2.5vh) scale(0.95);
    }
    70% {
      transform: translateX(10px) translateY(0) scale(1.05);
    }
    100% {
      transform: translateX(0) translateY(0) scale(1);
    }
  }

  .content > div {
    position: relative;
  }

  .vtTopBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    transition: transform 0.25s ease;
    transform: translateY(0);
    pointer-events: none;
  }

  .vtTopBar--hidden {
    transform: translateY(-110%);
  }

  .logo {
    height: 50px; /* Slightly larger for tablets */
  }

  .vtTopBar__inner {
    background-color: var(--bg);
    height: 50px; /* Matches logo height */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px; /* More padding for tablets */
    pointer-events: auto;
    z-index: 50;
  }

  #openMenu {
    cursor: pointer;
    width: 35px; /* Slightly larger tap target */
    height: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
  }

  #openMenu > div {
    height: 2.5px; /* Slightly thicker lines */
    width: 100%;
    background: #fff;
    border-radius: 2px;
  }

  .sideNav::-webkit-scrollbar {
    width: 6px; /* Slightly wider scrollbar */
    border: 1px solid #282a30;
  }

  .sideNav::-webkit-scrollbar-thumb {
    background: var(--main);
    border-radius: 10px;
  }

  .sidenav_logo {
    margin: 1rem 25%;
    width: 50%;
  }

  .sidenav_btn_nav {
    width: 100%;
    margin: 4rem 0 0 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .side_nav_btn {
    width: 65%; /* Slightly wider for better readability */
    margin: 0.75rem 0 0 2rem;
    padding: 0.75rem; /* More padding for easier tapping */
    font-weight: 500;
    text-decoration: none;
    font-size: 1.7rem; /* Slightly larger text */
    list-style: none;
    color: #fff;
  }

  .sidenav_flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .side_drop_down {
    height: 0.8rem; /* Slightly larger */
    fill: var(--white);
    transition: 0.3s ease;
  }

  .side_drop_down.flip {
    transform: rotate(180deg);
  }

  .side_nav_btn:hover .side_drop_down {
    fill: #fff;
  }

  .dropdown_nav_btn:hover,
  .side_nav_btn:hover {
    color: #fff;
  }

  .nav_dropdown_content {
    display: none;
    border-left: 1px solid #d8d8d8;
    width: 80%;
    margin: 0.5rem 0 0.5rem 20%;
  }

  .dropdown_nav_btn {
    padding: 0.75rem; /* More padding */
    width: 100%;
    margin: 0.5rem;
    list-style: none;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem; /* Slightly larger */
  }

  .nav_dropdown_content a {
    text-decoration: none;
  }

  .dropdown_heading {
    font-size: 1.1rem; /* Slightly larger */
    color: var(--black);
    margin: 0.5rem 1rem;
  }

  .no-scroll {
    overflow: hidden !important;
    height: 100vh;
  }

  .sidenav_placer {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(-45deg, #0e337c, #007af6, #0e337c);
  }

  .sideNav {
    width: 320px; /* Wider sidebar for tablets */
    position: fixed;
    top: 0;
    right: 0;
    overflow-x: hidden;
    height: 100%;
    transition: 0.5s;
  }

  .drop_link_active {
    text-decoration: underline;
  }

  body.lock-scroll {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }

  html {
    overflow-y: scroll;
  }
}

@media only screen and (max-width: 760px) {
  .top_header {
    display: none;
  }

  .content {
    flex: 1;
    transform: translateX(0) scale(1);
    background-color: var(--bg);
    transform-origin: top right;
    will-change: transform;
  }

  .content.shrink {
    transform: translateX(-280px) translateY(-30px) scale(0.95);
    overflow: hidden; /* Prevents scrolling while menu is open */
    height: 100vh; /* Locks the height */
  }

  .content.menu-anim {
    animation: shrink-off 0.4s ease-out;
  }

  .content.shrink.menu-anim {
    animation: shrink-on 0.4s ease-out;
  }

  .content > div {
    position: relative;
  }

  .vtTopBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    transition: transform 0.25s ease;
    transform: translateY(0);
    pointer-events: none; /* only inner gets clicks */
  }

  .vtTopBar--hidden {
    transform: translateY(-110%);
  }
  .logo {
    height: 45px;
  }

  .vtTopBar__inner {
    background-color: var(--bg);
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* menu button on the right */
    padding: 10px 14px;
    pointer-events: auto;
    z-index: 50;
  }

  /* Menu button (NOT sticky anymore) */
  #openMenu {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
  }

  /* the 3 lines */
  #openMenu > div {
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
  }

  @media only screen and (max-width: 760px) {
    .content.shrink {
      transform: translateX(-260px) translateY(2.5vh) scale(0.95);
      /* Changed from 0.90 to 0.95 for less shrink */
    }

    @keyframes shrink-on {
      0% {
        transform: translateX(0) translateY(0) scale(1);
      }
      70% {
        transform: translateX(-260px) translateY(2.5vh) scale(0.93);
      }
      100% {
        transform: translateX(-260px) translateY(2.5vh) scale(0.95);
      }
    }

    @keyframes shrink-off {
      0% {
        transform: translateX(-260px) translateY(2.5vh) scale(0.95);
      }
      70% {
        transform: translateX(10px) translateY(0) scale(1.05);
      }
      100% {
        transform: translateX(0) translateY(0) scale(1);
      }
    }
  }

  .sideNav::-webkit-scrollbar {
    width: 4px;
    border: 1px solid #282a30;
  }

  .sideNav::-webkit-scrollbar-thumb {
    background: var(--main);
    border-radius: 10px;
  }

  .sidenav_logo {
    margin: 0.5rem 25%;
    width: 50%;
  }

  .sidenav_btn_nav {
    width: 100%;
    margin: 4rem 0 0 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .side_nav_btn {
    width: 60%;
    margin: 0.5rem 0 0 2rem;
    padding: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    font-size: 1.6rem;
    list-style: none;
    color: #fff;
  }

  .sidenav_flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .side_drop_down {
    height: 0.7rem;
    fill: var(--white);
    transition: 0.3s ease;
  }

  .side_drop_down.flip {
    transform: rotate(180deg);
  }

  .side_nav_btn:hover .side_drop_down {
    fill: #fff;
  }

  .dropdown_nav_btn:hover,
  .side_nav_btn:hover {
    color: #fff;
  }

  .nav_dropdown_content {
    display: none;
    border-left: 1px solid #d8d8d8;
    width: 80%;
    margin: 0.5rem 0 0.5rem 20%;
  }

  .dropdown_nav_btn {
    padding: 0.5rem;
    width: 100%;
    margin: 0.5rem;
    list-style: none;
    color: #fff;
    text-decoration: none;
  }

  .nav_dropdown_content a {
    text-decoration: none;
  }

  .dropdown_heading {
    font-size: 1rem;
    color: var(--black);
    margin: 0.5rem 1rem;
  }

  .no-scroll {
    overflow: hidden !important;
    height: 100vh;
  }

  .sidenav_placer {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(-45deg, #0e337c, #007af6, #0e337c);
  }

  .sideNav {
    width: 280px;
    position: fixed;
    top: 0;
    right: 0;
    overflow-x: hidden;
    height: 100%;
    transition: 0.5s;
  }

  .drop_link_active {
    text-decoration: underline;
  }
}
@media only screen and (max-width: 760px) {
  body.lock-scroll {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }

  html {
    overflow-y: scroll;
  } /* optional: prevents scrollbar pop */
}

.content {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

.social_link_container_nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  height: 70px;
  margin: 1.5rem 0 0 calc(12px + 2rem);
}

.social_bigger {
  font-size: 20px;
  margin-right: 1.5rem;
  color: white;
}

.social-icon {
  color: white;
  font-size: 18px;
  margin-right: 1.5rem;
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #007af6, #db00fd);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.3s ease;
  z-index: 9999;
  -webkit-tap-highlight-color: transparent;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5);
}

.scroll-to-top:active {
  transform: translateY(-1px) scale(1);
}

/* Arrow SVG */
.arrow_scroll {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Mobile optimizations */
@media (max-width: 760px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .arrow_scroll {
    width: 20px;
    height: 20px;
  }
}
