/* Base dropdown container */
.dropdown {
    position: relative;
}

/* Panel hidden by default */
.dropdown-panel {
    position: absolute;
    top: calc(100% + 5px);
    /* or try 12px/14px for more spacing */
    left: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    gap: 3rem;
    border-radius: 10px;
    z-index: 1000;
    min-width: 600px;
    white-space: nowrap;
    display: none;
    /* key: hidden by default */
    justify-content: space-between;
}

/* Columns inside the panel */
.dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.dropdown-column h4 {
    font-size: 0.75rem;
    /* smaller text */
    font-weight: 600;
    /* bold */
    color: #444;
    /* slightly darker */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    /* all caps like Tesla */
    letter-spacing: 0.05em;
    /* slight spacing for elegance */
}

.dropdown-column a {
    text-decoration: none;
    color: #111;
    /* bold */
    font-size: 0.70rem !important;
    /* smaller, Tesla-style */
    line-height: 1.6;
    /* nice vertical rhythm */
    transition: color 0.2s ease;
}

.dropdown-column a:hover {
    color: #000;
    /* or just #000 for a pure Tesla look */
}

.dropdown>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

/* Hover trigger on desktop */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-panel {
        display: flex;
    }
}

/* Mobile: click to toggle open class */
@media (max-width: 768px) {
    .dropdown-panel {
      position: static;
      flex-direction: column;
      gap: 1rem;
      padding: 1rem 0;
      background: transparent;
      box-shadow: none;
      min-width: auto;
      display: none;
    }
  
    .dropdown.open .dropdown-panel {
      display: flex;
    }
  
    .dropdown-column h4 {
      font-size: 0.9rem;
      color: #111;
      margin-top: 1rem;
    }
  
    .dropdown-column a {
      font-size: 0.95rem !important;
      padding: 0.3rem 0;
      color: #333;
    }
  }