/**
 * Mobile sliding drawer — NEFSA / fire academy theme (loads after firdip.css).
 */

.mobile-nav__wrapper.nefsa-mobile-drawer .mobile-nav__overlay {
  background: rgba(23, 24, 24, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.35s ease;
}

.mobile-nav__wrapper.nefsa-mobile-drawer.expanded .mobile-nav__overlay {
  background: rgba(23, 24, 24, 0.72);
}

.mobile-nav__wrapper.nefsa-mobile-drawer .mobile-nav__content.nefsa-mobile-drawer__panel {
  width: min(100vw - 32px, 320px);
  padding: 28px 18px 36px 22px;
  background: linear-gradient(
    165deg,
    #2e3234 0%,
    #232728 22%,
    #171818 55%,
    #0f1010 100%
  );
  box-shadow: 12px 0 48px rgba(0, 0, 0, 0.45);
}

.mobile-nav__wrapper.nefsa-mobile-drawer .mobile-nav__content.nefsa-mobile-drawer__panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    #e8c96a 0%,
    var(--firdip-base, #ca4445) 45%,
    #9e2a2b 100%
  );
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}

.mobile-nav__wrapper.nefsa-mobile-drawer .nefsa-mobile-drawer__close {
  top: 18px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 16px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
}

.mobile-nav__wrapper.nefsa-mobile-drawer .nefsa-mobile-drawer__close:hover {
  color: var(--firdip-white, #fff);
  background: var(--firdip-base, #ca4445);
  border-color: var(--firdip-base, #ca4445);
  transform: rotate(90deg);
}

.mobile-nav__wrapper.nefsa-mobile-drawer .nefsa-mobile-drawer__brand {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav__wrapper.nefsa-mobile-drawer .nefsa-mobile-drawer__brand img {
  max-width: 148px;
  height: auto;
}

/* Menu list */
.mobile-nav__wrapper.nefsa-mobile-drawer .mobile-nav__content .main-menu__list li:not(:last-child) {
  border-bottom: none;
  margin-bottom: 5px;
}

.mobile-nav__wrapper.nefsa-mobile-drawer .mobile-nav__content .main-menu__list li > a {
  font-family: "Oswald", var(--firdip-font, "Roboto", sans-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.09em;
  height: auto;
  min-height: 50px;
  padding: 12px 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.mobile-nav__wrapper.nefsa-mobile-drawer
  .mobile-nav__content
  .main-menu__list
  li
  > a:active {
  background: rgba(202, 68, 69, 0.2);
}

.mobile-nav__wrapper.nefsa-mobile-drawer .mobile-nav__content .main-menu__list li a.expanded {
  color: var(--firdip-white, #fff);
  background: rgba(202, 68, 69, 0.18);
  border-color: rgba(202, 68, 69, 0.35);
}

.mobile-nav__wrapper.nefsa-mobile-drawer .mobile-nav__content .main-menu__list ul {
  border-top: none;
  margin: 6px 0 10px 0;
  padding: 4px 0 4px 10px;
  border-left: 2px solid rgba(232, 201, 106, 0.45);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 6px 6px 0;
}

.mobile-nav__wrapper.nefsa-mobile-drawer .mobile-nav__content .main-menu__list ul li > a {
  padding-left: 12px;
  min-height: 46px;
  font-family: var(--firdip-font, "Roboto", sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: none;
  border-radius: 4px;
}

.mobile-nav__wrapper.nefsa-mobile-drawer
  .mobile-nav__content
  .main-menu__list
  ul
  li
  > a:hover {
  color: #e8c96a;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav__wrapper.nefsa-mobile-drawer .mobile-nav__content .main-menu__list li a button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(202, 68, 69, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  margin-left: 8px;
}

.mobile-nav__wrapper.nefsa-mobile-drawer
  .mobile-nav__content
  .main-menu__list
  li
  a
  button.expanded {
  background: var(--firdip-white, #fff);
  border-color: var(--firdip-white, #fff);
  color: var(--firdip-base, #ca4445);
}

/* Drawer footer micro-headings (contact + social) */
.mobile-nav__wrapper.nefsa-mobile-drawer .nefsa-mobile-drawer__footer-label {
  font-family: "Oswald", var(--firdip-font, "Roboto", sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.35;
  color: rgba(232, 201, 106, 0.92);
  margin: 26px 0 12px 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav__wrapper.nefsa-mobile-drawer .nefsa-mobile-drawer__footer-label:first-of-type {
  margin-top: 8px;
}

.mobile-nav__wrapper.nefsa-mobile-drawer .nefsa-mobile-drawer__footer-label--social {
  margin-top: 22px;
  padding-top: 18px;
}

.mobile-nav__wrapper.nefsa-mobile-drawer .nefsa-mobile-drawer__footer-label::after {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(232, 201, 106, 0.95) 0%,
    var(--firdip-base, #ca4445) 70%,
    rgba(158, 42, 43, 0.85) 100%
  );
}

/* Contact block */
.mobile-nav__wrapper.nefsa-mobile-drawer .nefsa-mobile-drawer__contact {
  margin-top: 0;
  margin-bottom: 24px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.mobile-nav__wrapper.nefsa-mobile-drawer .nefsa-mobile-drawer__contact li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.mobile-nav__wrapper.nefsa-mobile-drawer .nefsa-mobile-drawer__contact li > i {
  background: linear-gradient(145deg, #e8c96a 0%, var(--firdip-base, #ca4445) 100%);
  box-shadow: 0 4px 12px rgba(202, 68, 69, 0.25);
}

.mobile-nav__wrapper.nefsa-mobile-drawer .nefsa-mobile-drawer__contact li a:hover {
  color: #e8c96a;
}

/* Social row */
.mobile-nav__wrapper.nefsa-mobile-drawer .nefsa-mobile-drawer__social {
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.mobile-nav__wrapper.nefsa-mobile-drawer .nefsa-mobile-drawer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 !important;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
}

.mobile-nav__wrapper.nefsa-mobile-drawer .nefsa-mobile-drawer__social a:hover {
  color: var(--firdip-base, #ca4445);
  background: var(--firdip-white, #fff);
  border-color: var(--firdip-white, #fff);
  transform: translateY(-2px);
}

.mobile-nav__wrapper.nefsa-mobile-drawer .nefsa-mobile-drawer__social a + a {
  margin-left: 0;
}
