a {
    text-decoration: none;
    color: inherit;
}

/* Refined Reports Filter Card */
.reports-filter-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 100px;
    padding: 16px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin: 30px 0 30px auto;
    display: flex;
    justify-content: flex-start;
    width: fit-content;
    transition: all 0.3s ease;
}

.reports-filter-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.filter-flex-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    /* Increased gap between items */
    flex-wrap: nowrap;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Increased gap between label and select */
    flex: 0 1 auto;
}

.filter-label {
    font-family: var(--font-family-primary);
    font-weight: 700;
    font-size: 16px;
    /* Slightly larger label */
    color: #333;
    white-space: nowrap;
    margin-bottom: 0;
}

.select-wrapper {
    position: relative;
    min-width: 200px;
    /* Slightly wider select */
}

.filter-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #fdfdfd;
    /* Lighter background */
    border: 1px solid #eeeeee;
    border-radius: 50px;
    padding: 12px 25px 12px 45px;
    /* Increased vertical padding */
    font-family: var(--font-family-primary);
    font-size: 15px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
}

.filter-select:hover {
    background: #ffffff;
    border-color: #f68b64;
    box-shadow: 0 4px 15px rgba(246, 139, 100, 0.12);
}

.select-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    /* Adjusted icon position */
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f68b64' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.filter-action {
    border-right: 2px solid #f0f0f0;
    /* Thicker divider */
    padding-right: 30px;
    /* Increased spacing for divider */
}

.filter-reset-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: #fff5f2;
    color: #f68b64;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-family-primary);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-reset-link:hover {
    background: #f68b64;
    color: white;
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .reports-filter-card {
        width: 100%;
        border-radius: 20px;
        padding: 25px 20px;
        justify-content: flex-start;
        margin-bottom: 40px;
    }

    .filter-flex-container {
        flex-wrap: wrap;
        gap: 20px;
        width: 100%;
    }

    .filter-item {
        width: 100%;
        justify-content: space-between;
    }

    .filter-action {
        border-right: none;
        padding-right: 0;
        width: 100%;
        justify-content: center;
        border-top: 1px solid #f0f0f0;
        padding-top: 15px;
    }
}

/* Navigation Dropdown Hover Improvements */
.nav-dropdown-item:hover {
    background-color: rgba(246, 139, 100, 0.1) !important;
    color: #f68b64 !important;
}

/* Child (Nested) Dropdown Scroll */
.nav-dropdown-nested-menu {
    max-height: 0;
    /* Base state from style.css */
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.nav-dropdown-nested.active .nav-dropdown-nested-menu {
    max-height: 200px !important;
    /* Reduced to force scroll if many items */
}

.nav-dropdown-nested-menu::-webkit-scrollbar {
    width: 4px;
}

.nav-dropdown-nested-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.dashboard-header .nav-dropdown-nested-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.05);
}

/* Strip inline font styles injected by rich-text editors in project/news descriptions */
.project-details-text *,
.news-article-body * {
    font-family: inherit !important;
    font-size: inherit !important;
}

/* ── Header Donate Now button ───────────────────────────── */
.header-donate-btn {
    background: linear-gradient(135deg, #f68962, #e0724c);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.2s;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
}
.header-donate-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff !important;
}
/* On solid/dashboard header, maintain contrast */
.dashboard-header .header-donate-btn {
    background: linear-gradient(135deg, #f68962, #e0724c);
    color: #fff !important;
}
@media (max-width: 768px) {
    .header-donate-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

/* Prevent horizontal overflow on all screens */
body {
    overflow-x: hidden;
}