#header-contact li a {
    color: #000 !important;
}

.header a.icon:not(.button) {
    color: #000 !important;
}

.search-box__input {
    border-radius: 4px !important;
    min-height: 38px;
}

.search-box__input {
    margin-right: 20px !important;
}

@media (max-width: 768px) {
    .header-bottom {
        background-color: unset !important;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .search-box__input {
        margin-right: 0px !important;
        height: 40px !important;
    }
    .header-wrapper, .header-main {
        padding: 0 !important;
    }

    .search-box__submit {
        padding: 0 !important;
    }

    .stuck .header-bottom {
        padding-top: 20px;
        padding-bottom: 15px;
    }
}

/* AJAX Search Results Styles */
.search-box__form {
    position: relative;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 20px; /* Align with input margin-right: 20px */
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 9999;
    overflow: hidden;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-results-dropdown.is-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
.search-results-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: #d4a017;
    border-radius: 10px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: #b88a10;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-item {
    border-bottom: 1px dotted #eee;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.search-result-link:hover {
    background: #fcf8e8;
}

.search-result-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin-right: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    color: #1a2a4e;
    font-size: 14px;
    margin-bottom: 2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-meta {
    font-size: 12px;
    color: #d4a017;
    font-weight: 500;
}

.search-results-footer {
    padding: 10px;
    text-align: center;
    background: #f8f8f8;
    border-top: 1px solid #eee;
}

.search-results-footer a {
    font-weight: 700;
    color: #1a2a4e;
    font-size: 12px;
    text-transform: uppercase;
}

.search-box__form.is-loading .icon-search {
    opacity: 0;
    visibility: hidden;
}

/* Loading Spinner */
.search-box__form.is-loading::after {
    content: "";
    position: absolute;
    right: 35px;
    top: 55%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #d4a017;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 10;
}

@keyframes spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

@media (max-width: 768px) {
    .search-results-dropdown {
        right: 0;
    }
}

/* Fix Navigation Menu Wrapping */
@media (min-width: 992px) {
    .header-nav-main .nav > li > a {
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 13px !important;
    }
}

/* Adjust Sticky Social Sidebar to prevent overlap */
.social-sidebar-wrapper {
    z-index: 1000 !important;
}

/* Ensure no overlap with important content on larger screens */
@media (min-width: 1400px) {
    .social-sidebar-wrapper {
        margin-right: -20px;
    }
}