/* Header Navigation Styles */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 54px;
    width: auto;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #2CCFBC;
}

.navbar-nav .nav-link.active {
    color: #2CCFBC;
    font-weight: 600;
    position: relative;
}



.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    color: #333;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(44, 207, 188, 0.1);
    color: #2CCFBC;
}

/* Mobile Responsive Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
    }

    .navbar-nav .nav-link.active::after {
        left: 10px;
        transform: none;
        width: 12px;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .navbar-toggler {
        border: none;
        padding: 0.25rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
}

/* Footer Styles */
.footer-copyright {
    background-color: #0093B5;
    width: 100%;
    z-index: 1000;
    font-size: 14px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-copyright p {
    margin-bottom: 0;
    font-weight: 500;
}


.lyme-footer-copyright {
    background-color: #0D762C;
    color: #ffffff;
    width: 100%;
    z-index: 1000;
    font-size: 14px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.lyme-footer-copyright p {
    margin-bottom: 0;
    font-weight: 500;
}

.backpain-footer-copyright {
    background-color: #048AAE;
    color: #ffffff;
    width: 100%;
    z-index: 1000;
    font-size: 14px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.backpain-footer-copyright p {
    margin-bottom: 0;
    font-weight: 500;
}


.migraine-footer-copyright {
    background-color: #D36639;
    color:#ffffff;
    width: 100%;
    z-index: 1000;
    font-size: 14px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.migraine-footer-copyright p {
    margin-bottom: 0;
    font-weight: 500;
}


.fibromyalgia-footer-copyright {
    background-color: #048AAE;
    color: #ffffff;
    width: 100%;
    z-index: 1000;
    font-size: 14px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.fibromyalgia-footer-copyright p {
    margin-bottom: 0;
    font-weight: 500;
}

.arthrist-footer-copyright {
    background-color:#1E62C7;
    color:#ffffff;
    width: 100%;
    z-index: 1000;
    font-size: 14px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.arthrist-footer-copyright p {
    margin-bottom: 0;
    font-weight: 500;
}



body {
    min-height: 100vh;
    position: relative;
}

/* Foot Section Styles */
.foot-section {
    width: 100%;
    z-index: 1000;
    padding-bottom: 80px;
    background-color: #43BDA7;
}

.lyme-foot-section {
    width: 100%;
    z-index: 1000;
    padding-bottom: 80px;
    background-color: #DCFBDC;
}

.backpain-foot-section {
    width: 100%;
    z-index: 1000;
    padding-bottom: 80px;
    background-color: #CEE8F4;
}

.migraine-foot-section {
    width: 100%;
    z-index: 1000;
    padding-bottom: 80px;
    background-image: linear-gradient(180deg, #ff9e75  0%, #FFF8EF 150%);
}

.fibromyalgia-foot-section {
    width: 100%;
    z-index: 1000;
    padding-bottom: 80px;
    background-color: #FAD5FC;
}

.arthrist-foot-section {
    width: 100%;
    z-index: 1000;
    padding-bottom: 80px;
    background-image: linear-gradient(180deg, #81c1ebcc  0%, #F9F9F9 150%);
}

.foot-logo {
    max-width: 260px;
    height: auto;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 15px;
}

.contact-info i {
    color: #394e6a;
    width: 20px;
    text-align: center;
}

.newsletter-form input {
    padding: 7px 15px;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.btn-subscribe {
    background-color: #2B3F60;
    color: white;
    padding: 7px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background-color: #1e2d45;
    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #324C66;
    color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: #2CCFBC;
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #0093b5;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.back-to-top:hover {
    background-color: #0093b5;
    color: white;
}

.lyme-h5, .backpain-h5, .migraine-h5, .fibromyalgia-h5, .arthrist-h5{
    color: #2E2E2E;
}
.normal-h5{
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .social-links {
        justify-content: center;
        margin-top: 20px;
    }

    .contact-info {
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) {
    .foot-section {
        text-align: center;
    }

    .contact-info p {
        justify-content: center;
    }

    .newsletter-form {
        max-width: 400px;
        margin: 0 auto;
    }
}


.search-tab {
    cursor: pointer;
    border: none;
    border-bottom: 2px solid #e9ecef;
    border-radius: 0;
    transition: all 0.3s ease;
    color: #333;
    padding: 0px;
}

.search-tab.active {
    color: #20b9a3 !important;
    border-bottom: 2px solid #20b9a3 !important;
    font-weight: 600;
}

.search-tab:hover:not(.active) {
    color: #20b9a3;
    border-bottom: 2px solid #eee;
    background-color: rgba(168, 216, 225, 0.1);
}

#searchIllustrationContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#modalityImage {
    transition: all 0.3s ease-in-out;
}

.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.hero-banner {
    padding: 13px 0;
}

.btn-primary {
    background-color: #20b9a3 !important;
}

/* Add fade effect for image transition */
.search-illustration {
    transition: opacity 0.3s ease-in-out;
}


/* Adjust nav tabs to match design */
.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link {
    border: none;
}

.form-select, .form-control {
    border-radius: 4px;
    font-size: 0.9rem;
    padding: 0.5rem;
}

.card {
    overflow: hidden;
}

#training-tab, #events-tab, #products-tab, #books-tab, #disease-tab, #modality-tab{
   display: flex;
   flex-direction: column;
   row-gap: 13px;
}

.search-tab i {
    font-size: 40px;
    transition: all 0.3s ease;
}


.search-tab.active i {
    font-size: 45px;
}


.search-tab:hover i {
    font-size: 55px;
}

span#mytitle{
    font-weight: 700;
    font-size: 18px;
}

.form-label {
    margin-bottom: .5rem;
    color: #000;
    font-weight: 600;
}


/* Improved responsive styles for search tabs */
@media (max-width: 768px) {
    #searchTabs {
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-tab {
        flex: 1 0 calc(33.333% - 10px);
        text-align: center;
        font-size: 0.9rem;
        min-width: 100px;
        padding: 0px;
    }

    .search-tab i {
        display: block;
        margin: 0 auto 0.25rem;
        font-size: 24px !important;
    }

    #mytitle {
        display: block;
        font-size: 0.8rem;
    }

    .card-body {
        padding: 1rem;
    }

    .business-info {
        width: 100% !important;
    }

    .text-end {
        width: 100% !important;
        margin-top: 1rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .action-buttons .btn {
        width: 100%;
    }
}

/* Ensure tab content is fully visible */
.tab-content {
    min-height: 200px;
}

/* Fix for form fields alignment */
.form-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* Make search button more prominent */
.btn-primary.bg-success {
    transition: background-color 0.3s;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #20b9a3 !important;
    font-weight: 500;
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary.bg-success:hover {
    background-color: #218838 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Fix dropdown overlapping */
.singlecustom-select-container {
    z-index: 1;
     position: relative;
    width: 100%;
    display: inline-block;
}

.singlecustom-select-dropdown {
    z-index: 1050;
}

/* Improved dropdown styles */
.singlecustom-select-trigger {
    background: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    width: 100%;
    box-sizing: border-box;
}

.singlecustom-select-trigger:after {
    content: '';
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    margin-left: 8px;
}

.singlecustom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-top: 4px;
    max-height: 150px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.singlecustom-select-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.singlecustom-select-option:hover {
    background-color: #0489aea6;
}

.singlecustom-select-option.selected {
    background-color: #20b9a3;
}

/* Loading spinner styles */
.dropdown-spinner {
    position: absolute;
    right: 10px;
    top: 70%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Clear filter button styles */
.clear-form {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.clear-form:hover {
    background-color: #5a6268;
}

/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

/* Infinite scroll loading indicator */
.loading-more {
    text-align: center;
    padding: 20px;
    display: none;
}

.loading-more .spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}



