/* Custom Styles for United Local */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --warning-color: #ffc107;
    --dark-color: #212529;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Hero Section */
.hero-section {
    background: #0a58ca;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-section .card {
    border-radius: 15px;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Input Groups */
.input-group-text {
    border-right: none;
}

.form-control.border-start-0 {
    border-left: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    padding: 0.5rem 1.5rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Footer */
footer {
    margin-top: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

footer h6 {
    text-transform: uppercase;
    font-weight: 600;
}

footer p,
footer a {
    font-size: 0.75rem;
    color: #adb5bd !important;
}

footer .text-muted {
    color: #adb5bd !important;
}

main {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 350px;
        padding: 2rem 0 !important;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }
}

/* Badge Styling */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-warning {
    color: var(--dark-color);
    font-weight: 600;
}

.btn-warning:hover {
    background-color: #ffca2c;
    border-color: #ffca2c;
    color: var(--dark-color);
}

/* Select2 placeholder text alignment */
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
    text-align: left !important;
    display: block !important;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    text-align: left !important;
}

.hero-section .select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.hero-section .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    text-align: left !important;
}

/* Search Form Styling */
.hero-section #searchForm {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
}

/* Search Form Dropdown Styling */
.hero-section .form-select-lg,
.hero-section .select2-container--bootstrap-5 .select2-selection--single {
    background-color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
}

.hero-section .form-select-lg:focus,
.hero-section .select2-container--bootstrap-5.select2-container--focus .select2-selection--single {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25) !important;
    outline: none !important;
}

.hero-section .select2-container--bootstrap-5 .select2-selection--single {
    height: auto !important;
    min-height: calc(1.5em + 1.5rem + 4px) !important;
}

.hero-section .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 1.5 !important;
    padding-left: 0 !important;
    padding-right: 2.5rem !important;
    color: #212529 !important;
}

.hero-section .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 0.75rem !important;
}

.hero-section .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow b {
    border-color: #6c757d transparent transparent transparent !important;
}

