.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .bg-video {
    display: none;
  }
  .bg-body {
    background: url("/assets/hero.png") center/cover no-repeat fixed;
  }
}
#nav {
  display: flex;
  flex-direction: column;
  padding: 0%;
  margin: 0%;
  position: absolute;
  z-index: 100000;
  width: 100vw;
}

.sticky-nav-part {
  width: 100%;
  position: fixed;
  top: 0%;
  z-index: 9999999999999999;
}

.pages-nav {
  display: flex;
  flex-direction: row;
  justify-items: right;
  background-color: #d9d9d9;
  color: #2b2b2b;
  height: 2.5em;
}

.pages {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0%;
  padding: 1em;
  width: 100%;
  justify-content: center;
  align-items: center;
}
.pages li {
  padding-left: 3em;
  cursor: pointer;
  transition: color ease-in-out 0.3s;
}
.pages li:hover {
  color: #22549f;
}

.pages li a {
  text-decoration: none;
  color: #2b2b2b;
}

.pages .active {
  color: #22549f;
}

.lang-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-switcher button {
  border: none;
  background-color: transparent;
  cursor: pointer;
}
.user-assets-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #1d1d1d63;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  margin: 0%;
  height: 6rem;
}

.user-assets {
  display: flex;
  flex-direction: row;
  list-style: none;
  justify-content: space-between;
  width: 100%;
}

.user-assets li {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  height: 5em;
}

.user-pages {
  display: flex;
  width: 15vw;
  padding-right: 5rem;
  justify-content: space-evenly;
}

.user-pages a {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all ease-in-out 0.2s;
}

.user-pages a:hover {
  transform: scale(1.3);
  cursor: pointer;
}

.user-pages-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50vw;
}

.search-bar {
  width: 30vw;
}

.search-form {
  width: 100%;
}

.search-form input {
  width: 93%;
}

.search-form button {
  width: 5%;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 30px;
  padding: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  padding: 5px;
  width: 100%;
  height: 2rem;
}

.search-input {
  width: 100%;
  border: none;
  outline: none;
  padding: 10px;
  font-size: 1rem;
  font-family: "afacad";
  transition: width 0.3s ease-in-out;
  border-radius: 30px;
}

.search-button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 10px;
  padding: 10px;
  transition: transform 0.2s ease-in-out;
}

.search-button img {
  width: 1.5rem;
}

.search-button:hover {
  transform: scale(1.1);
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  justify-content: center;
  align-items: center; /* line up at the top */
  background-color: #8f8f8f8e;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  margin-top: 8.5rem;
  padding: 1.25rem 1rem;
  min-height: 135px;
}

.categories li {
  width: 8rem;
}

.categories li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  width: 100%;
  transition: all ease-in-out 0.2s;
}

.categories li a:hover {
  text-shadow: 2px 2px 4px rgba(41, 41, 41, 0.473);
  cursor: pointer;
  transform: scale(1.1);
}

.categories li a img {
  height: 4rem; /* fixed icon height */
  width: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
  flex: 0 0 auto;
  transition: all ease-in-out 0.5s;
}
.categories li a:hover img {
  cursor: pointer;
  transform: scale(1.15);
}

.categories li a h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  min-height: 3rem; /* reserve space so all texts sit on same baseline */
  display: flex;
  align-items: center; /* text always starts from the top of this box */
  justify-content: center;
  text-transform: uppercase;
  color: #ffffff;
}

/* ==== Category dropdown panel ==== */
.categories {
  position: relative;
  z-index: 1000;
  margin-bottom: 10px;
} /* base bar stays above content */

.cat-dd {
  position: absolute;
  top: 100%; /* directly below the categories bar */
  left: 0;
  transform: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10000;
  margin-top: 3rem;
}

.cat-dd.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Inner container: auto width, content-driven */
.cat-dd__inner {
  display: inline-block; /* shrink to content */
  width: auto;
  min-width: max-content; /* fit longest li */
  max-width: 90vw;
  background: #ffffff;
  border: 1px solid #e9eef7;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.cat-dd__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 75px;
  margin-bottom: 8px;
}

.cat-dd__title {
  margin: 0;
  font-family: "League Spartan", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1f1f1f;
}

.cat-dd__all {
  text-decoration: none;
  color: #22549f;
  font-weight: 600;
}

.cat-dd__grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: auto;
}

.cat-dd__link {
  color: #1f1f1f;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.cat-dd__link:hover {
  color: #22549f;
  border-color: #22549f;
  transform: translateX(2px);
}
#mobileSearchMount {
  display: none;
}

/* ===== Hamburger icon inside .user-pages ===== */
.user-pages .hamburger {
  display: none;
}

/* ===== Mobile overlay menu ===== */
.mm {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 999999999999999999999999; /* full viewport overlay */
}
.mm.is-open {
  display: block;
}

.mm__panel {
  position: absolute;
  inset: 0;
  background: #fff;
  padding: 16px clamp(14px, 3vw, 24px);
  overflow: auto;
}
.mm__panel[hidden] {
  display: none !important;
}

.mm__panel h3 {
  margin: 8px 0 14px;
  font-family: "League Spartan", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
}

.mm__close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.mm__back {
  border: none;
  background: transparent;
  font-size: 1rem;
  padding: 8px 0;
  cursor: pointer;
  color: #22549f;
}

.mm__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.mm__list li {
  border-bottom: 1px solid #eef2fb;
}
.mm__list a,
.mm__list button.mm__link,
.mm__list button.mm__cat {
  width: 100%;
  display: block;
  text-align: left;
  padding: 12px 6px;
  background: transparent;
  border: 0;
  color: #1f1f1f;
  text-decoration: none;
  font-size: 1.02rem;
  cursor: pointer;
}
.mm__list a:hover,
.mm__list button:hover {
  color: #22549f;
}
/* mobile menu – language list tweaks */
.mm__lang-list .mm__link {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mm__lang-list [aria-current="true"] {
  color: #22549f;
  font-weight: 700;
}

.mm__to-cats {
  font-family: "afacad";
}
.mm__lang-list button {
  font-family: "afacad";
}

#mmCats li button {
  font-family: "Afacad";
}
.mm__panel .mm__back {
  font-family: "Afacad";
}

@media (max-width: 770px) {
  .user-pages {
    width: 20vw;
  }
}

@media (max-width: 703px) {
  .categories {
    display: none;
  }
  .pages-nav {
    display: none;
  }

  .user-pages .hamburger {
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
  }
  .user-pages .hamburger img {
    width: 24px;
    height: 24px;
  }
  .user-assets-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
  .user-pages {
    width: 40vw;
  }
  .user-pages a:hover {
    transform: none;
  }
}

@media (max-width: 680px) {
}

@media (max-width: 426px) {
  .user-pages-bar {
    width: 100%;
    padding: 0%;
  }
}
@media (max-width: 381px) {
  .user-pages {
    width: 50vw;
    padding-right: 0%;
  }
  .search-bar {
    width: 15vw;
  }
  .user-assets-bar {
    height: 5rem;
  }
  .user-assets {
    padding-left: 0%;
  }
}
