/* ==========================================================================
   MOBILE MENU CONTAINER
   ========================================================================== */
.m-s-menu-c {
  position: fixed;
  top: 85px;
  right: 20px;
  z-index: 52;
  width: 100%;
  max-width: 280px;
  min-height: 400px;
  max-height: 80vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1.5rem 1rem;
  margin: 1rem 0;

  /* Visual Styling */
  background-color: var(--atf-dark-trans-v1);
  border: solid var(--atf-border-v3);
  border-width: 1px 1px 3px 2.5px;
  border-radius: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  /* Layout */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  /* Animation Initial State */
  opacity: 0;
  transform: translateX(calc(100% + 40px));
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
}

/* ==========================================================================
   PRIMARY NAVIGATION LINKS
   ========================================================================== */
.m-nav * {
  width: 100%;
}

.m-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Primary Items Divider */
.m-nav li:not(.m-submenu li) {
  border-bottom: 1px solid var(--atf-border-v2);
  padding: 0.4rem 0;
}

.m-nav a {
  color: var(--atf-OffWhite);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 300;
  background-color: var(--atf-transparent);
  border: none;
  text-align: start;
}

/* Dropdown Parent Toggle Link */
.m-has-dropdown > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arrow-icon {
  width: auto !important;
  transition: transform 0.3s ease;
}

/* Rotate Arrow Icon when Submenu is Active */
.m-has-dropdown.is-active .arrow-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   SUBMENU ACCORDION (CSS GRID) & HYPHEN LIST STYLING
   ========================================================================== */
.m-submenu {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  padding: 0 0.5rem;
  transition:
    grid-template-rows 0.35s ease,
    padding 0.35s ease;
}

.submenu-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 0.5rem; /* Indentation for nested list items */
}

.m-submenu li {
  list-style: none;
}

/* Submenu Link Styling */
.m-submenu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--atf-OffWhite);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.3rem 0.4rem;
  border-radius: 0.4rem;
  opacity: 0.8;
  transition:
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
}

/* Hyphen (-) Bullet Style using Pseudo-element */
.m-submenu a::before {
  content: "-";
  font-weight: 500;
  color: var(--atf-OffWhite);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

/* Submenu Hover State */
.m-submenu a:hover {
  opacity: 1;
  color: var(--atf-accent);
  background-color: rgba(255, 255, 255, 0.04);
  transform: translateX(3px); /* Smooth slide on hover */
}

/* Hyphen Highlight & Scale Effect on Hover */
.m-submenu a:hover::before {
  color: var(--atf-accent);
  transform: scaleX(1.3);
}

/* Expanded Accordion State */
.m-has-dropdown.is-active .m-submenu {
  grid-template-rows: 1fr;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

/* ==========================================================================
   ACTION BUTTON AREA
   ========================================================================== */
.m-btn-c,
.m-btn-c a {
  width: 100%;
  margin-top: auto;
}

.m-btn-c {
  padding-top: 1rem;
}

.m-btn-c a {
  text-align: center;
}

/* ==========================================================================
   OPEN STATE & RESPONSIVE BREAKPOINTS
   ========================================================================== */
.m-s-menu-c.is-open {
  opacity: 1;
  transform: translateX(0);
}

@media (min-width: 706px) {
  .m-s-menu-c,
  .c-ham {
    display: none !important;
  }
}

@media (max-width: 705px) {
  .c-ham {
    display: flex;
  }

  .close-ham-c,
  .m-s-menu-c {
    display: none;
  }
}
