/* Donation/Crowdfunding Feature Styles */
.donation-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #c8e6c9 100%);
    position: relative;
    overflow: hidden;
}

.donation-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.donation-header {
    margin-bottom: 50px;
}
.hero-section{
    margin-top:2rem;
}
.services-grid{
    margin-top:2rem;
}
.service-card{
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover{
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.donation-header h2 {
    font-size: 2.5rem;
    color: #2e7d32;
    margin-bottom: 15px;
    font-weight: 700;
}

.donation-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.campaign-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.campaign-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.campaign-image {
    height: 200px;
    overflow: hidden;
}

.campaign-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.campaign-card:hover .campaign-image img {
    transform: scale(1.05);
}

.campaign-content {
    padding: 25px;
    text-align: left;
}

.campaign-title {
    font-size: 1.5rem;
    color: #2e7d32;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.campaign-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.funding-progress {
    margin-bottom: 20px;
}

.progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #2e7d32);
    border-radius: 5px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.campaign-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2e7d32;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    display: block;
}

.donor-wall {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.donor-wall h4 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
    text-align: left;
}

.donor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.donor-item {
    background: #e8f5e9;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #2e7d32;
}

.donation-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 40px auto 0;
    text-align: left;
}

.donation-form h3 {
    color: #2e7d32;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4caf50;
}

.amount-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.amount-button {
    flex: 1;
    min-width: 80px;
    padding: 12px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.amount-button:hover,
.amount-button.active {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}

.donation-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.donation-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.close-modal:hover {
    color: #333;
}

.donation-success {
    color: #4caf50;
    font-size: 2rem;
    margin-bottom: 15px;
}

.donation-thanks {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .donation-section {
        padding: 60px 15px;
    }
    
    .donation-header h2 {
        font-size: 2rem;
    }
    
    .campaigns-grid {
        grid-template-columns: 1fr;
    }
    
    .amount-buttons {
        flex-direction: column;
    }
}