/* Donation Impact Cards Widget Styles */

.donation-impact-cards-wrapper {
    position: relative;
    width: 100%;
    padding: 2rem 0;
    overflow: hidden;
}

.donation-cards-main-heading {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3rem;
    line-height: 1.2;
}

/* Cards Container */
.donation-cards-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 1rem 2rem 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.donation-cards-container::-webkit-scrollbar {
    display: none; /* WebKit */
}

/* Individual Card */
.donation-impact-card {
    flex: 0 0 350px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.donation-impact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

/* Card Background */
.donation-card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 220px;
    overflow: hidden;
    z-index: 1;
}

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

.donation-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--card-accent-color, #4F81FF) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    opacity: 0.8;
}

/* Card Content */
.donation-card-content {
    position: relative;
    z-index: 2;
    padding: 0;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

/* Card Header */
.donation-card-header {
    padding: 1.5rem;
    color: white;
    text-align: center;
    background: transparent;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.donation-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.donation-card-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
    line-height: 1.4;
}

/* Donate Button */
.donation-card-donate-btn {
    display: inline-block;
    background: white;
    color: var(--card-accent-color, #4F81FF);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.donation-card-donate-btn:hover {
    background: var(--card-accent-color, #4F81FF);
    color: white;
    transform: translateY(-2px);
}

/* Dotted Divider */
.donation-card-divider {
    margin: 0 1.5rem;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        #d1d5db 0px,
        #d1d5db 8px,
        transparent 8px,
        transparent 16px
    );
}

/* Pricing Options */
.donation-pricing-options {
    background: white;
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.donation-pricing-item {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.donation-pricing-item:hover {
    border-color: var(--card-accent-color, #4F81FF);
    background: #f8faff;
}

.donation-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--card-accent-color, #4F81FF);
    margin-bottom: 0.5rem;
}

.donation-description {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.donation-type {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Impact Message */
.donation-impact-message {
    background: #f9fafb;
    padding: 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #374151;
    font-style: italic;
    line-height: 1.5;
    border-left: 4px solid var(--card-accent-color, #4F81FF);
}

/* Scroll Indicators */
.donation-cards-scroll-indicators {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 1rem;
}

.scroll-indicator {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    opacity: 0.8;
    color: #374151;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .donation-cards-main-heading {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .donation-impact-card {
        flex: 0 0 300px;
    }
    
    .donation-card-content {
        min-height: 550px;
    }
    
    .donation-card-title {
        font-size: 1.3rem;
    }
    
    .donation-card-subtitle {
        font-size: 0.9rem;
    }
    
    .donation-cards-scroll-indicators {
        display: none;
    }
}

@media (max-width: 480px) {
    .donation-impact-cards-wrapper {
        padding: 1rem 0;
    }
    
    .donation-cards-container {
        padding: 0 0.5rem 1.5rem 0.5rem;
    }
    
    .donation-impact-card {
        flex: 0 0 280px;
    }
    
    .donation-card-content {
        min-height: 500px;
    }
    
    .donation-card-header {
        padding: 1.25rem;
        min-height: 180px;
    }
    
    .donation-card-title {
        font-size: 1.2rem;
    }
    
    .donation-pricing-options {
        padding: 1.25rem;
    }
}

/* Animation for cards on scroll into view */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.donation-impact-card {
    animation: slideInUp 0.6s ease forwards;
}

.donation-impact-card:nth-child(1) {
    animation-delay: 0.1s;
}

.donation-impact-card:nth-child(2) {
    animation-delay: 0.2s;
}

.donation-impact-card:nth-child(3) {
    animation-delay: 0.3s;
}

.donation-impact-card:nth-child(4) {
    animation-delay: 0.4s;
}

.donation-impact-card:nth-child(5) {
    animation-delay: 0.5s;
}

.donation-impact-card:nth-child(6) {
    animation-delay: 0.6s;
}