:root {
    --nav-bg: rgba(0, 0, 0, 0.50);
    --primary-blue: #153a78;
    --primary-green: #32A564;
    --primary-gray: #bfbfbf;
    --primary-red: #ff3131;
    --default-text: #ffffff;
    --page-title: 32px;
    --title: 24px;
    --subtitle: 20px;
    --body: 16px;
    --small: 14px;
    --smaller: 12px;
}

@media (max-width: 768px) {
    :root {
        --page-title: 30px;
        --title: 22px;
        --subtitle: 18px;
        --body: 14px;
        --small: 12px;
        --smaller: 10px;
    }
}

@media (max-width: 480px) {
    :root {
        --page-title: 22px;
        --title: 20px;
        --subtitle: 16px;
        --body: 12px;
        --small: 10px;
    }
}

* {
    font-family: 'Montserrat', sans-serif;
}

.search-container {
    display: flex;
    justify-content: center;
    font-size: var(--body);
    margin: 25px 0;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    border: 2px solid rgba(21, 58, 120, 0.8);
    border-radius: 1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    height: 3.375rem;
    width: 80vw;
    background: var(--default-text);
}

.search-icon {
    height: 1.3125rem;
    width: auto;
    flex-shrink: 0;
    opacity: 0.55;
}

.search-field input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    flex: 1;
    font-size: var(--body);
    color: gray;
    padding: 0;
}

@media (max-width: 575px) {
    .search-container {
        height: 2.375rem;
    }
}

.btn {
    background: var(--primary-blue) !important;
    border-radius: 10px !important;
    font-weight: bold !important;
    border: none !important;
}

.btn:hover {
    background: #0a2b5e;
    transform: scale(1.05);
}

.custom-dropdown-btn {
    font-size: var(--body) !important;
    background: var(--primary-blue);
    border-radius: 10px;
    width: 80vw;
    padding: 10px;
    word-wrap: break-word;
    text-align: center;
    line-height: 1.3;
    display: block;
    font-weight: bold;
    white-space: normal;
    overflow-wrap: break-word;
}

.custom-dropdown-btn:hover {
    background: #0a2b5e;
    transform: scale(1.02);
}

.custom-dropdown-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.custom-dropdown-menu {
    border-radius: 10px !important;
    border-width: 1px;
    border-color: var(--primary-blue) !important;
    padding: 0 !important;
    overflow: hidden;
    width: 80vw;
    min-width: 200px;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 100% !important;
    margin-top: 8px !important;
}

.custom-dropdown-menu .dropdown-item {
    white-space: normal !important;
    word-wrap: break-word !important;
    text-align: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--body);
    color: #333;
    border-bottom: 1px solid rgba(21,58,120,0.30);
}

.custom-dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

.custom-dropdown-menu .dropdown-item:hover {
    background: rgba(21,58,120,0.30);
    color: #333;
}

.custom-dropdown-menu .dropdown-item.active {
    background: rgba(21,58,120,0.30);
    font-weight: bold;
    color: var(--primary-blue);
}

.custom-dropdown-menu .dropdown-item:focus {
    background-color: transparent;
    color: inherit;
    outline: none !important;
    box-shadow: none !important;
}

.search-wrapper {
    position: relative;
    width: 90%;
    max-width: 50rem;
    margin: 1.25rem auto;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: var(--default-text);
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 5px;
    scrollbar-width: thin;
    scrollbar-color: gray transparent;
    border-radius: 10px;
}

.search-results-dropdown.show {
    display: block;
}

.search-result-item {
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(21,58,120,0.30);
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(21,58,120,0.1);
}

.error-message, .loading-message {
    font-size: var(--body);
    text-align: center;
    padding: 2rem;
    width: 100%;
    min-height: 300px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-message { 
    color: var(--default-text); 
    font-weight: 500; 
}