.testimonial {
    background: #f0fdf4;
    border-left: 4px solid var(--accent-green);
    padding: 20px;
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--text-main);
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}

.testimonial .author {
    text-align: right;
    font-weight: bold;
    color: var(--accent-green);
    margin-top: 10px;
}

.testimonial .post-link {
    display: inline-block;
    margin-top: 8px;
    font-style: normal;
}

.impact-counter {
    background: linear-gradient(135deg, var(--accent-green) 0%, #0d9488 100%);
    color: white;
    width: 100%;
    padding: 20px;
    border-radius: var(--radius-lg);
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
}

.testimonial-slider {
    position: relative;
    max-width: 100%;
    margin: 20px 0;
}

.testimonial-container {
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial.slider-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    margin: 0;
}

.testimonial.slider-item.active {
    opacity: 1;
    position: relative;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.slider-btn {
    background: var(--accent-green);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.slider-btn:hover {
    background: var(--accent-green-dark);
    transform: scale(1.05);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: var(--accent-green);
}

.fundraising-document {
    display: flex;
    width: max-content;
    gap: 12px;
}

.fundraising-carousel {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    align-items: center;
    gap: 12px;
    max-width: 960px;
    margin: 12px auto 0;
}

.fundraising-document-viewport {
    min-width: 0;
    overflow: hidden;
}

.fundraising-document canvas {
    display: block;
    flex: 0 0 282px;
    width: 282px;
    height: auto;
}

.fundraising-carousel-button {
    padding: 0;
}

.fundraising-carousel-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

.fundraising-document-counter {
    grid-column: 1 / -1;
    margin: 0;
    text-align: center;
}

@media (max-width: 600px) {
    .fundraising-carousel {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 6px;
    }

    .fundraising-document canvas {
        flex-basis: 204px;
        width: 204px;
    }

    .fundraising-carousel-button {
        width: 40px;
        height: 40px;
    }
}

#donate .donate-content,
#donate .donate-section,
#donate .donate-hero {
    text-align: left;
}

#donate .donate-section,
#donate .donate-qr-section {
    margin-bottom: 0;
}

#donate .donate-section + .donate-section,
#donate .donate-section + .donate-qr-section,
#donate .donate-qr-section + .donate-section {
    margin-top: 24px;
}

#donate .donate-section h3,
#donate .donate-qr-section h3,
#donate .donate-hero h3 {
    margin: 0 0 10px;
    line-height: 1.3;
}

#donate h1,
#donate h2,
#donate h3,
#donate h4,
#donate .section-title {
    line-height: 1.3;
}

#donate .section p {
    margin: 0 0 10px;
    line-height: 1.5;
}

#donate .section p:last-child {
    margin-bottom: 0;
}

#donate .section li,
#donate .impact-counter,
#donate .testimonial,
#donate .testimonial .author,
#donate .donor-wall {
    line-height: 1.5;
}

#donate .donate-section > p,
#donate .donate-qr-section > p,
#donate .donate-intro p {
    text-align: left;
}

#donate .upi-details {
    gap: 12px;
}

#donate .qr-code-container {
    width: 100%;
    margin: 8px 0 0;
}

.donation-qr-card {
    width: 100%;
    max-width: 320px;
    padding: 16px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at center, #fff 0%, #dedede 100%);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.donation-qr-card img {
    display: block;
    width: 100%;
    height: auto;
    padding: 4px;
    border-radius: 10px;
    background: #d3d3d3;
}

html[data-theme="dark"] .donation-qr-card {
    background: radial-gradient(circle at center, #fff 50%, #555 55%, #000000 100%);
    border-color: #444;
    filter: invert(1) hue-rotate(180deg);
}

html[data-theme="dark"] .donation-qr-card img {
    filter: none;
    mask-image: linear-gradient(to right, transparent, #000 3.5%, #000 96.5%, transparent),
        linear-gradient(to bottom, transparent, #000 3.5%, #000 96.5%, transparent);
    mask-composite: intersect;
}

html[data-theme="dark"] .donation-qr-label,
html[data-theme="dark"] .donation-qr-caption {
    color: #fff;
}

.donation-qr-label,
.donation-qr-caption {
    display: block;
    color: var(--text-main);
    font-weight: 600;
}

.donation-qr-label {
    margin-bottom: 10px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.donation-qr-caption {
    margin-top: 10px;
    font-size: 14px;
}

.upi-copy-button {
    width: 145px;
    height: 40px;
    font: inherit;
    font-size: 14px;
    border: 0;
    cursor: pointer;
    margin: 0;
    padding: 8px;
    transition: background 0.2s ease, color 0.2s ease, font-size 0.2s ease;
}

.upi-copy-button:hover {
    font-size: 16px;
    transform: none;
}

.upi-copy-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

#donate .upi-details > p {
    margin: 0;
}

#donate .upi-info p {
    margin: 0;
}

#donate .upi-info p + p {
    margin-top: 8px;
}

#donate .section-minor-title {
    margin-bottom: 12px;
    line-height: 1.3;
}

#donate .testimonial-slider {
    margin: 0;
}

#donate .donor-wall {
    line-height: 1.5;
}
