/* =========================
   BURGER ICON
========================= */
.menu-toggle {
  width: 30px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1100;
  margin-top: 13px;
}

.menu-toggle span {
  height: 3px;
  background: #ff6a00;
  border-radius: 2px;
  transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* =========================
   DROPDOWN MENU
========================= */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 20px);
  right: 0;
  width: 320px;
  background: rgba(255, 106, 0, 0.65);
  backdrop-filter: blur(5px);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  z-index: 1000;
}

.dropdown-menu.active {
  max-height: 300vh;
  overflow: visible;
}

/* =========================
   MAIN MENU LIST
========================= */
.dropdown-menu > ul {
  list-style: none;
  margin: 0;
  padding: 30px;
}

.dropdown-menu > ul > li {
  margin-bottom: 30px;
  position: relative;
}

.dropdown-menu > ul > li:last-child {
  margin-bottom: 0;
}

.dropdown-menu > ul > li > a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 8px;
}

/* =========================
   ARROW
========================= */
.menu-arrow {
  margin-left: auto;
  width: 22px;
  text-align: right;
  font-size: 28px;
  line-height: 1;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.has-panel:hover > a .menu-arrow {
  transform: translateX(5px);
  opacity: 1;
}

/* =========================
   SUBMENU PANEL (DESKTOP)
========================= */
.submenu-panel {
  position: absolute;
  top: -20px;
  width: 320px;
  background: rgba(255, 106, 0, 0.65);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 999;
}

/* Desktop default → OPEN TO LEFT */
@media (min-width: 1024px) {

  .submenu-panel {
    left: auto;
    right: calc(100% + 12px);
    transform: translateX(-15px);
  }

  .has-panel:hover > .submenu-panel {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
}

/* =========================
   SUBMENU CONTENT
========================= */
.submenu-panel ul {
  list-style: none;
  margin: 0;
  padding: 30px;
}

.submenu-panel li {
  margin-bottom: 24px;
}

.submenu-panel li:last-child {
  margin-bottom: 0;
}

.submenu-panel a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 8px;
  transition: opacity 0.25s ease;
}

.submenu-panel a:hover {
  opacity: 0.85;
}

/* =========================
   MOBILE: SUBMENU INSIDE MAIN MENU
========================= */
@media (max-width: 768px) {

  .submenu-panel {
    position: static;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    margin-top: 12px;
    transition: max-height 0.35s ease;
  }

  .has-panel.open > .submenu-panel {
    max-height: 800px;
  }

  .has-panel.open > a .menu-arrow {
    transform: rotate(90deg);
  }

  .submenu-panel a {
    font-size: 13px;
    padding-left: 14px;
  }
}


@media (max-width: 768px) {

  .submenu-panel {
    margin-top: 8px;
  }

  .submenu-panel li {
    margin-bottom: 12px;
  }

  .submenu-panel a {
    font-size: 12px;              /* 👈 smaller */
    letter-spacing: 0.6px;
    padding-bottom: 6px;
    padding-left: 14px;
    opacity: 0.9;
  }

}

/* ==================================================
   MOBILE SINGLE-PANEL MENU (HIDDEN BY DEFAULT)
================================================== */
@media (max-width: 768px) {

  /* MENU CONTAINER */
  .dropdown-menu {
    position: fixed;
    left: 55%;
    transform: translateX(-55%);
    top: 170px;                   /* 👈 LOWER THAN BEFORE */
    width: calc(100vw - 32px);
    max-width: 360px;

    max-height: 0;                /* 👈 HIDDEN BY DEFAULT */
    overflow: hidden;

    border-radius: 12px;
    transition: max-height 0.4s ease;
    z-index: 1100;
  }

  /* SHOW ONLY WHEN ACTIVE */
  .dropdown-menu.active {
    max-height: 65vh;             /* 👈 OPEN HEIGHT */
    overflow-y: auto;
  }

  /* MENU LIST → SINGLE COLUMN */
  .dropdown-menu > ul {
    display: block;
    padding: 18px 20px;
  }

  .dropdown-menu > ul > li {
    margin-bottom: 14px;
  }

  /* MAIN LINKS (SMALLER) */
  .dropdown-menu > ul > li > a {
    font-size: 13px;
    letter-spacing: 0.6px;
    padding-bottom: 6px;
  }

  /* ARROW */
  .menu-arrow {
    font-size: 18px;
  }

  /* =========================
     SUBMENU (INLINE, COMPACT)
  ========================= */
  .submenu-panel {
    position: static;
    width: 100%;
    background: transparent;
    backdrop-filter: none;

    max-height: 0;
    overflow: hidden;
    margin-top: 6px;

    opacity: 1;
    transform: none;
    pointer-events: auto;

    transition: max-height 0.35s ease;
  }

  .has-panel.open > .submenu-panel {
    max-height: 500px;
  }

  .submenu-panel li {
    margin-bottom: 8px;
  }

  .submenu-panel a {
    font-size: 11.5px;
    letter-spacing: 0.4px;
    padding-left: 14px;
    padding-bottom: 5px;
    opacity: 0.9;
  }
}

