/* Fundraising CSS */

.fundraising-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fundraising-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../assets/images/pattern-overlay.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.fundraising-hero .container {
    position: relative;
    z-index: 2;
}

.fundraising-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff !important;
}

.fundraising-hero p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.fundraising-section {
    padding: 80px 0;
    background: #f8fafc;
}

.fund-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.fund-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.fund-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.fund-cover {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fund-card:hover .fund-cover {
    transform: scale(1.05);
}

.fund-cover-wrapper {
    overflow: hidden;
    position: relative;
}

.fund-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    z-index: 2;
}

.status-active { background: #8cc63f; color: white; }
.status-completed { background: var(--primary-color); color: white; }

.fund-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fund-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.fund-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.fund-progress-wrapper {
    margin-bottom: 20px;
}

.fund-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.fund-meta span {
    color: var(--accent-color);
}

.progress-bar-bg {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #ffe066);
    border-radius: 4px;
    transition: width 1s ease-out;
}

.fund-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.fund-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.fund-btn-completed {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
}

.fund-btn-completed:hover {
    background: #cbd5e1;
    transform: none;
}

/* Pagination UI for Fundraising */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a {
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s;
}

.pagination a:hover, .pagination a.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
