/* Responsive Vertical Spacing for the Banner Section */
.post-intro-banner {
    padding-top: 80px !important;
    padding-bottom: 40px !important;
}

@media (max-width: 991px) {
    .post-intro-banner {
        padding-top: 50px !important;
        padding-bottom: 30px !important;
    }
}

@media (max-width: 767px) {
    .post-intro-banner {
        padding-top: 30px !important;
        padding-bottom: 20px !important;
    }
}

/* Single Cause Content Spacing Customization */
.post-intro-banner img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 21 / 9 !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 20px !important;
    max-height: 550px !important;
    min-height: 250px !important;
}

.cause-content p {
    line-height: 28px;
    color: #444;
    font-size: 16px;
}

.causes-detail-page .cause-content {
    margin: 50px 0px !important;
}

.causes-detail-page .cause-content h3 {
    padding-top: 30px !important;
    padding-bottom: 20px !important;
    margin-bottom: 0;
    font-weight: 700;
    color: #222;
}

.cause-content ul {
    padding-left: 20px;
}

.cause-content ul li {
    margin-bottom: 10px;
    list-style-type: disc;
    color: #444;
}

/* Donation Progress Bar Styling */
.donation-progress .progress-wrapper {
    position: relative;
    margin-top: 40px;
}

.donation-progress .progress {
    height: 24px;
    background-color: #f0f0f0;
    border-radius: 12px;
    position: relative;
    width: 100%;
    overflow: visible;
}

.donation-progress .progress-bar {
    border-radius: 12px;
    transition: width 0.3s ease;
    background-color: #28a745;
    height: 100%;
}

.donation-progress .progress-percentage {
    position: absolute;
    top: -35px;
    transform: translateX(-50%);
    color: #333;
    font-size: 14px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    z-index: 15;
    border: 1px solid #ddd;
}

/* Percentage positioning edge cases */
.donation-progress .progress-percentage[style*="left: 0%"],
.donation-progress .progress-percentage[style*="left: 1%"],
.donation-progress .progress-percentage[style*="left: 2%"],
.donation-progress .progress-percentage[style*="left: 3%"],
.donation-progress .progress-percentage[style*="left: 4%"],
.donation-progress .progress-percentage[style*="left: 5%"] {
    left: 30px !important;
    transform: translateX(0) !important;
}

.donation-progress .progress-percentage[style*="left: 95%"],
.donation-progress .progress-percentage[style*="left: 96%"],
.donation-progress .progress-percentage[style*="left: 97%"],
.donation-progress .progress-percentage[style*="left: 98%"],
.donation-progress .progress-percentage[style*="left: 99%"],
.donation-progress .progress-percentage[style*="left: 100%"] {
    left: calc(100% - 30px) !important;
    transform: translateX(-100%) !important;
}