/* Custom styles for enhanced icon visibility and color */

.feature-icon {
    /* font-size: 2.5rem; */ /* Removed explicit font-size to allow normal sizing */
    color: #007bff; /* A distinct color, e.g., blue */
    margin-bottom: 1rem;
    display: flex; /* Use flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    /* text-align: center; */ /* No longer needed with flexbox */
}

/* Specific styles for the requested icons */
.fas.fa-award {
    color: gold; /* Gold color for award icon */
  }

  .fas.fa-mobile-alt {
    color: black; /* Black color for mobile icon */
  }

  .fas.fa-shield-alt {
    color: silver; /* Silver color for shield icon */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Adds a subtle shadow for an outline effect */
  }

  .fas.fa-clock {
    color: white; /* White color for clock icon */
  }

  .fas.fa-map-marker-alt,
  .fas.fa-phone {
    color: white; /* White color for map marker and phone icons */
  }

  .fas.fa-calendar-alt {
    color: #FFFFFF;
  }

.btn-primary-custom.btn-custom {
    border: 2px solid white; /* White border for the button, not too thin, not too thick */
  }

  .main-heading {
    color: #FFFFFF;
    font-family: 'Arial', sans-serif; /* Placeholder font, can be changed later */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }

  /* Car icon floating animation */
  .hero-animation .fa-car {
      animation: float 3s ease-in-out infinite;
  }
  
  @keyframes float {
      0%, 100% {
          transform: translateY(0px);
      }
      50% {
          transform: translateY(-10px);
      }
  }
  
  /* Responsive adjustments for feature icons */
  @media (max-width: 768px) {
      .feature-icon {
          font-size: 2rem !important;
      }
  }
  
/* Enhanced dropdown visibility and functionality */
.dropdown-menu {
    background: white !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    z-index: 1050 !important;
    min-width: 200px !important;
    padding: 0.5rem 0 !important;
    margin: 0.125rem 0 0 !important;
    font-size: 0.875rem !important;
    color: #212529 !important;
    text-align: left !important;
    list-style: none !important;
    background-clip: padding-box !important;
    display: none !important;
}

.dropdown-menu.show {
    display: block !important;
}

.dropdown-item {
    display: block !important;
    width: 100% !important;
    padding: 0.5rem 1rem !important;
    clear: both !important;
    font-weight: 400 !important;
    color: #212529 !important;
    text-align: inherit !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    background-color: transparent !important;
    border: 0 !important;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #1e2125 !important;
    background-color: #e9ecef !important;
}

.dropdown-item.active,
.dropdown-item:active {
    color: #fff !important;
    text-decoration: none !important;
    background-color: #0d6efd !important;
}

.dropdown-item.disabled,
.dropdown-item:disabled {
    color: #adb5bd !important;
    pointer-events: none !important;
    background-color: transparent !important;
}

.dropdown-header {
    display: block !important;
    padding: 0.5rem 1rem !important;
    margin-bottom: 0 !important;
    font-size: 0.75rem !important;
    color: #6c757d !important;
    white-space: nowrap !important;
}

.dropdown-divider {
    height: 0 !important;
    margin: 0.5rem 0 !important;
    overflow: hidden !important;
    border-top: 1px solid rgba(0, 0, 0, 0.15) !important;
}

/* Dark mode dropdown styles */
[data-theme="dark"] .dropdown-menu {
    background: #1e1e1e !important;
    border-color: #444 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .dropdown-item {
    color: #ffffff !important;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background: #2d2d2d !important;
    color: #ffffff !important;
}

[data-theme="dark"] .dropdown-header {
    color: #adb5bd !important;
}

[data-theme="dark"] .dropdown-divider {
    border-top-color: #444 !important;
}

/* Navigation specific dropdown styles */
.navbar .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
    transform: none !important;
}

/* Mobile responsive dropdown adjustments */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none !important;
        width: auto !important;
        margin-top: 0 !important;
        background-color: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.5rem 1.5rem !important;
    }
    
    [data-theme="dark"] .navbar-nav .dropdown-menu {
        background-color: transparent !important;
    }
    
    .navbar-nav .dropdown-toggle::after {
        display: none !important;
    }
}

/* Desktop dropdown styles */
@media (min-width: 992px) {
    .navbar-nav .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: auto !important;
        right: 0 !important;
        background: white !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 0.375rem !important;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
        z-index: 1050 !important;
        min-width: 200px !important;
        padding: 0.5rem 0 !important;
        margin: 0.125rem 0 0 !important;
    }
    
    [data-theme="dark"] .navbar-nav .dropdown-menu {
        background: #1e1e1e !important;
        border-color: #444 !important;
    }
    
    .dropdown-item i {
        margin-right: 0.75rem !important;
        width: 1.25rem !important;
        text-align: center !important;
    }
}

/* Ensure dropdown works with touch devices */
.dropdown-toggle {
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Fix for Bootstrap dropdown arrow */
.dropdown-toggle::after {
    display: inline-block !important;
    margin-left: 0.255em !important;
    vertical-align: 0.255em !important;
    content: "" !important;
    border-top: 0.3em solid !important;
    border-right: 0.3em solid transparent !important;
    border-bottom: 0 !important;
    border-left: 0.3em solid transparent !important;
}

/* Navbar dropdown specific styles */
.navbar-nav .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
}

/* Ensure proper z-index for navbar dropdowns */
.navbar .dropdown-menu {
    z-index: 1030 !important;
}