/* ===== CUSTOM HEADER DROPDOWN NAVIGATION SYSTEM ===== */
.header__dropdown {
  position: relative;
  display: inline-block;
}

.header__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
}

.header__dropdown-arrow {
  font-size: 8px;
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.header__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  min-width: 220px;
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1001;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.dark .header__dropdown-menu {
  background: rgba(15, 15, 23, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.header__dropdown-item {
  display: block !important;
  padding: 10px 20px !important;
  color: #1f2937 !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
  font-family: inherit !important;
  line-height: 1.5 !important;
  text-align: left !important;
}

body.dark .header__dropdown-item {
  color: #f3f4f6 !important;
}

.header__dropdown-item:hover {
  background: rgba(255, 107, 53, 0.08) !important;
  color: #FF6B35 !important;
  padding-left: 24px !important;
}

/* Hover effects on Desktop */
@media only screen and (min-width: 1180px) {
  .header__dropdown:hover .header__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .header__dropdown:hover .header__dropdown-arrow {
    transform: rotate(180deg);
    color: #FF6B35;
  }
}

/* Responsive (Mobile/Tablet vertical list) */
@media only screen and (max-width: 1179px) {
  .header__dropdown {
    width: 100%;
    margin-bottom: 12px;
  }
  
  .header__dropdown-toggle {
    font-size: 32px !important;
    line-height: 1.25 !important;
    font-family: 'Poppins', sans-serif !important;
    color: rgba(39, 46, 53, 0.7) !important;
    width: 100%;
    justify-content: space-between;
    padding: 10px 0 !important;
    margin-right: 0 !important;
  }

  body.dark .header__dropdown-toggle {
    color: rgba(243, 244, 246, 0.7) !important;
  }
  
  .header__dropdown-menu {
    position: static;
    transform: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 1;
    visibility: visible;
    padding: 4px 0 4px 16px;
    min-width: auto;
    display: none; /* Toggle via JQuery slideToggle */
  }
  
  .header__dropdown.active .header__dropdown-arrow {
    transform: rotate(180deg);
  }
  
  .header__dropdown-item {
    font-size: 20px !important;
    padding: 8px 0 !important;
    color: rgba(39, 46, 53, 0.8) !important;
  }

  body.dark .header__dropdown-item {
    color: rgba(243, 244, 246, 0.8) !important;
  }
  
  .header__dropdown-item:hover {
    background: transparent !important;
    padding-left: 8px !important;
  }
}

@media only screen and (max-width: 767px) {
  .header__dropdown-toggle {
    font-size: 24px !important;
    margin: 16px 0 0 24px !important;
    width: calc(100% - 24px) !important;
  }
}

@media only screen and (max-width: 474px) {
  .header__dropdown-toggle {
    margin: 0 !important;
    width: 100% !important;
  }
}
