* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #333;
    overflow-x: hidden;
}

/* Section Heading */
.campaigns-section {
    padding: 60px 20px;
    background-color: #fff;
    /* Optional */
}

.campaigns-section h1 {
    font-size: 36px;
    color: #0e4037;
    text-align: center;
    position: relative;
    margin-bottom: 40px;
    font-weight: 700;
}

.campaigns-section h1::after {
    content: "";
    display: block;
    width: 180px;
    height: 4px;
    background-color: #f57c00;
    margin: 12px auto 0;
    border-radius: 2px;
}


/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-buttons button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: #eee;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
}

.filter-buttons button i {
    font-size: 24px;
    margin-bottom: 6px;
    color: #0e4037;
}

.filter-buttons button span {
    font-size: 14px;
    color: #0e4037;
}

.filter-buttons button:hover,
.filter-buttons button.active {
    background: #f57c00;
    color: #fff;
}

.filter-buttons button:hover i,
.filter-buttons button.active i {
    color: #fff;
}

.filter-buttons button:hover span,
.filter-buttons button.active span {
    color: #fff;
}

/* Card Container */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    overflow-x: hidden;
}

/* Each Card */
.cause-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-width: 280px;
    max-width: 300px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    display: none;
    /* Default hidden for filtering */
}

.cause-card.show {
    display: block;
}

.cause-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Image Section */
.cause-image {
    height: 200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.cause-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Title */
.cause-title {
    padding: 10px;
    color: #333;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
    margin: 0;
}

/* Card Body */
.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Fund Info */
.fund-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.raised,
.backers {
    display: flex;
    align-items: center;
}

.raised strong {
    margin-right: 3px;
}

.raised span {
    margin-left: 3px;
    margin-right: 10px;
}

.backers .icon {
    margin-right: 3px;
    margin-left: 15px;
    font-size: 16px;
    color: #444;
}

.backers strong {
    margin-left: 3px;
    margin-right: 3px;
}

.backers span {
    margin-left: 3px;
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, #fb8c00, #e65100);
    border-radius: 4px 0 0 4px;
    transition: width 1s ease-in-out;
}

/* Action Buttons */
.cause-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-donate {
    background-color: #f57c00;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.btn-donate:hover {
    background-color: #e65100;
    transform: translateY(-2px) scale(1.05);
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.read-more:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Responsive */
@media (max-width: 600px) {
    .card-container {
        flex-direction: column;
        align-items: center;
        overflow-x: hidden;
    }

    .cause-card {
        width: 90%;
        max-width: none;
        min-width: auto;
    }
}