/* Donors Table Styling */
.donors-controls {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    margin-bottom: 15px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-box button {
    border-radius: 0 4px 4px 0;
    background-color: #f7ca44;
    border-color: #f7ca44;
    color: #222;
    font-weight: 600;
    padding: 0 25px;
}

.search-box button:hover {
    background-color: #e6ba3a;
    border-color: #e6ba3a;
    color: #000;
}

.filter-options {
    position: relative;
}

#filterToggle {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

#filterToggle:hover {
    background-color: #f8f9fa;
    border-color: #f7ca44;
}

.filter-panel {
    display: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    gap: 10px;
}

.filter-actions .btn-primary {
    background-color: #f7ca44;
    border-color: #f7ca44;
    color: #222;
}

.filter-actions .btn-primary:hover {
    background-color: #e6ba3a;
    border-color: #e6ba3a;
}

.filter-actions .btn-secondary {
    background-color: #f8f9fa;
    border-color: #ddd;
    color: #333;
}

.donors-table-wrapper {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.donors-table {
    margin-bottom: 0;
    width: 100%;
}

.donors-table thead th {
    background-color: #f7ca44;
    color: #222;
    font-weight: 600;
    border: none;
    padding: 15px;
    position: sticky;
    top: 0;
}

.donors-table tbody tr {
    transition: all 0.2s ease;
}

.donors-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.donors-table tbody tr:hover {
    background-color: #f1f1f1;
}

.donors-table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-top: 1px solid #eee;
}

.donors-pagination {
    margin-top: 30px;
}

.donors-pagination .page-link {
    color: #222;
    border-color: #ddd;
    padding: 10px 15px;
    margin: 0 3px;
}

.donors-pagination .page-item.active .page-link {
    background-color: #f7ca44;
    border-color: #f7ca44;
    color: #222;
}

.donors-pagination .page-link:hover {
    background-color: #f8f9fa;
    color: #222;
    border-color: #f7ca44;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .search-box {
        flex-direction: column;
    }

    .search-box input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .search-box button {
        border-radius: 4px;
        width: 100%;
    }

    .donors-table th:nth-child(3),
    .donors-table td:nth-child(3) {
        display: none;
    }

    .filter-panel .row {
        margin-right: 0;
        margin-left: 0;
    }

    .filter-panel .col-md-3 {
        padding-right: 0;
        padding-left: 0;
    }

    .donors-table {
        font-size: 14px;
    }
}

/* Larger screen adjustments */
@media (min-width: 992px) {
    .donors-controls {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .search-box {
        width: 50%;
        margin-bottom: 0;
    }

    .filter-options {
        width: 40%;
    }
}


.donor-section {
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

.donor-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: #f7ca44;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: black;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: #f7ca44;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #555;
}

.donor-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.donor-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #f7ca44;
}

.donor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.donor-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: black;
}

.donor-level {
    display: inline-block;
    background-color: #f7ca44;
    color: black;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.donor-info {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media screen and (max-width: 786px) {
    .btn {
        letter-spacing: 0 !important;
    }
}