.donate-page {
    margin: 0 auto;
    padding: 70px 1rem 2rem;
    text-align: center;
}

.donate-page .header-section {
    max-width: 1610px;
    width: 100%;
    margin: 0 auto 30px auto;
}

.donate-page .header-section .table-header-with-buttons {
    width: 100%;
}
.donation-cards {
    display: grid;
    gap: 30px;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 1640px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .donation-cards {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .donation-cards {
        grid-template-columns: repeat(2, 380px);
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .donation-cards {
        grid-template-columns: repeat(3, 380px);
    }
}

@media (min-width: 1600px) {
    .donation-cards {
        grid-template-columns: repeat(4, 380px);
    }
}
.donation-card {
    width: 380px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donation-image {
    background-color: #701f27;
    height: 200px;
}

.donation-content {
    padding: 1rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.donation-content h3 {
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.donation-content p {
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem 0;
}

.donation-action {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.donation-action input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.donation-action button {
    background-color: #712026;
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    transition: 0.3s ease;
}

.donation-action button:hover {
    background-color: white;
    color: #701F27;
    outline: 1px solid #701F27;
}
.input-wrapper {
    position: relative;
    display: inline-block;
}

.tl-symbol {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-weight: 400;
    pointer-events: none;
    transition: color 0.3s ease, font-weight 0.3s ease;
}


.input-wrapper input {
    padding-left: 18px;
    height: 36px;
    font-size: 16px;
    box-sizing: border-box;
}

.header-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: -2px;
}

.donate-header {
    margin-bottom: 1.5rem;
}

.donate-header h1 {
    color: #701f27;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.donate-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.donate-filters {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    background-color: #f8f9fa;
    padding: 0.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-buttons .btn-bordeaux {
    min-width: 80px;
    text-align: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-buttons .btn-bordeaux.active {
    background: #a02d39;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(112, 31, 39, 0.3);
}

.scholarship-description {
    color: #555;
    line-height: 1.5;
}

.scholarship-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0.75rem 0;
    font-size: 0.85rem;
}

.scholarship-type {
    color: #701f27;
    font-weight: 600;
}

.scholarship-deadline {
    color: #666;
}

.donation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    background: linear-gradient(135deg, #701f27, #8a252f);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-scholarships {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-scholarships h3 {
    color: #701f27;
    margin-bottom: 1rem;
}

.donationInput.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.input-error-message {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    position: absolute;
    left: 0;
    width: 100%;
}

.donate-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.donation-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.donation-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.donation-notification.notification-success {
    border-left: 4px solid #28a745;
}

.donation-notification.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    gap: 0.25rem;
}

.custom-pagination a,
.custom-pagination a:hover,
.custom-pagination a:focus,
.custom-pagination a:active,
.custom-pagination a:visited,
.custom-pagination .page-item,
.custom-pagination .page-item a,
.custom-pagination .page-item a:hover,
.custom-pagination .page-item a:focus,
.custom-pagination .page-item a:active,
.custom-pagination .page-item a:visited,
.custom-pagination .page-item .page-link,
.custom-pagination .page-item .page-link:hover,
.custom-pagination .page-item .page-link:focus,
.custom-pagination .page-item .page-link:active,
.custom-pagination .page-item .page-link:visited {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
}

.custom-pagination .page-item {
    display: inline-block;
    margin: 0;
}

.custom-pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #701f27;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
    line-height: 1;
}

.custom-pagination .page-item:hover .page-link {
    background: #a02d39;
    transform: none;
    text-decoration: none !important;
}

.custom-pagination .page-item.active .page-link {
    background: #a02d39;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(112, 31, 39, 0.3);
}

.custom-pagination .page-item.active:hover .page-link {
    background: #a02d39;
}

.custom-pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-pagination .page-item.disabled:hover .page-link {
    background: #f8f9fa;
    color: #adb5bd;
    transform: none;
}

@media (max-width: 768px) {
    .pagination .page-item .page-link {
        width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }

    .donate-header h1 {
        font-size: 2rem;
    }

    .donate-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .donation-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
        gap: 20px;
    }

    .filter-buttons {
        flex-direction: column;
        width: 200px;
        margin: 0 auto;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}
