.site-footer {
    position: relative;
    background-color: #1c1c27;
    color: #fff;
    padding: 5rem 0 2rem;
    z-index: 1;
}

.site-footer a {
    color: #9e9e9e;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: none;
}

/* Footer widget titles */
.footer-widget__title {
    color: #7596b3;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Footer links */
.footer-widget__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.footer-widget__list li {
    margin-bottom: 0.5rem;
}

.footer-widget__list li a {
    display: inline-block;
    padding: 3px 0;
    position: relative;
    z-index: 2;
}

/* Footer background */
.site-footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

/* Footer bottom section */
.footer-bottom {
    position: relative;
    z-index: 2;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer social icons */
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    z-index: 2;
}

.footer-social a:hover {
    background-color: #251e53;
}

/* Donate button */
.footer-widget__about-btn {
    display: inline-block;
    background-color: #251e53;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 10px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.footer-widget__about-btn:hover {
    background-color: #1a1540;
}

/* Mobile accordion styles */
.accordion-header {
    cursor: pointer;
    padding: 0;
}

.accordion-header .footer-widget__title {
    margin-bottom: 0;
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    margin-top: 8px;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

/* Direct link items (no dropdown) */
.accordion-button.no-toggle {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    padding: 15px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

footer .accordion-button::after {
    filter: invert(1);
}

.accordion-button.no-toggle::after {
    display: none;
    /* Remove dropdown arrow */
}

/* Fix for accordion body links */
.accordion-body ul li a {
    display: block;
    padding: 8px 0;
    color: #9e9e9e;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btnMap {
    border-radius: 6px;
    border: #ffffff solid 1px;
}

.btnMap:hover {
    border: var(--thm-primary) solid 1px;
    background: var(--thm-primary);
}

.btnMap:focus {
    box-shadow: none !important;
}

.accordion-body ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Ensure proper spacing in mobile view */
@media (max-width: 991.98px) {
    .site-footer {
        padding: 2rem 0 1rem;
    }

    .footer-links-column {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 10px;
    }

    .footer-links-column:last-child {
        border-bottom: none;
    }

    .collapse:not(.show) {
        display: none;
    }

    .footer-widget__list {
        padding-left: 10px;
    }

    /* Add animation to collapse */
    .collapse {
        transition: all 0.35s ease;
    }

    /* Fix for accordion items */
    .accordion-item {
        background-color: transparent;
        border: none;
        margin-bottom: 5px;
    }

    footer .accordion-button {
        background-color: rgba(255, 255, 255, 0.05);
        color: #fff;
        border-radius: 5px;
        padding: 12px 15px;
        font-weight: 600;
    }

    .accordion-button:not(.collapsed) {
        background-color: #251e51;
        color: #fff;
    }

    .accordion-button:focus {
        box-shadow: none;
        border-color: transparent;
    }

    .accordion-button:hover {
        box-shadow: none;
        background-color: #211c42;
        color: #fff;
    }

    .accordion-body {
        padding: 15px;
        background-color: rgba(255, 255, 255, 0.03);
        border-radius: 0 0 5px 5px;
    }
}

/* Ensure proper spacing in desktop view */
@media (min-width: 992px) {
    .footer-links-column {
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        padding-left: 30px;
    }

    .footer-links-column:first-child {
        border-left: none;
        padding-left: 15px;
    }
}