/* * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 20px;
            background: #f9f9f9;
            line-height: 1.6;
        } */

h1 {

    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #003098;
    margin-bottom: 40px;
    font-family:'Times New Roman', Times, serif;

}

.filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

select {
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid #0A1E46;
    background: white;
    color: #0A1E46;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

select:focus {
    outline: none;
    /* border-color: #e26b41; */
    box-shadow: 0 0 0 3px #88aefa;
}

select:hover {
    border-color: #0A1E46;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: 20px;
}

.card {
    background: white;
    /* border-top-left-radius: 80px; */
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.placeholder {
    position: relative;
    height: 180px;
    background: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .placeholder img {
    transform: scale(1.05);
}

.placeholder-text {
    color: #aaa;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

.status {
    position: absolute;
    top: 0;
    right: 0;
    background: #777;
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 0 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status.ongoing {
    background: #e74c3c;
}

.status.scrutiny {
    background: #f39c12;
}

.card-content {
    padding: 20px;
    background-color: #c0d5ff4d;
    border-top-left-radius: 500px;

}

/* .tag {
    background: #0A1E46;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
} */

.cost {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.cost-amount {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.1em;
}

.title {
    margin-bottom: 15px;
    text-transform: capitalize;
    font-weight: 600;
    font-size: 1.1em;
    color: #2c3e50;
    line-height: 1.4;

    height: 56px;
}

.view-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #6a97f2;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.view-link:hover {
    color: #0055ff;
    transform: translateX(3px);
}

.view-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.view-link:hover::after {
    transform: translateX(3px);
}

.no-results {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-top: 3rem;
    padding: 2rem;
}

.donate-progress {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.raised-amount {
    font-weight: 600;
    color: #113f9d;
}

.target-amount {
    color: #777;
}

.progress-bar {
    height: 6px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0A1E46 0%, #88aefa 100%);
    border-radius: 10px;
    transition: width 0.8s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        margin: 15px;
    }

    h1 {
        font-size: 1.8em;
        margin-bottom: 1.5rem;
    }

    .filters {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 25px;
    }

    select {
        width: 100%;
        max-width: 280px;
        padding: 10px 15px;
    }

    .projects {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .card {
        max-width: 400px;
        margin: 0 auto;
    }

    .placeholder {
        height: 160px;
    }

    .card-content {
        padding: 18px;

    }
}

@media (max-width: 480px) {
    body {
        margin: 10px;
    }

    h1 {
        font-size: 1.6em;
    }

    .placeholder {
        height: 140px;
    }

    .card-content {
        padding: 15px;

    }

    .title {
        font-size: 1em;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .projects {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .projects {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .projects {
        grid-template-columns: repeat(4, 1fr);
    }
}






































/* 
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background-color: #f8fafc;
            color: #334155;
            line-height: 1.6;
        } */

/* Container styling */
section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f54e9;
    margin-bottom: 40px;
}

/* Filters */
.filters {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 20px;
}

.filters select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filters select:focus {
    outline: none;
    border-color: #0A1E46;
    box-shadow: 0 0 0 3px rgba(10, 30, 70, 0.1);
}

.filters select:hover {
    border-color: #cbd5e1;
}

/* Projects Grid */
.projects {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
    padding: 20px 0;
}

/* Responsive Grid for 6 projects */
@media (min-width: 1200px) {
    .projects {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 0 auto 40px auto;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .projects {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto 40px auto;
    }
}

@media (max-width: 767px) {
    .projects {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 40px auto;
        gap: 20px;
    }
}

/* Project Cards */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: fit-content;
    min-height: 480px;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

/* Status Badge */
.status {
    position: absolute;
    top: 0;
    right: 0;
    color: white;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 0 16px 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.proposed-status {
    background: #dc2626 !important;
}

.ongoing-status {
    background: #16a34a !important;
}

.completed-status {
    background: #2563eb !important;
}

.onhold-status {
    background: #ea580c !important;
}

.unknown-status {
    background: #64748b !important;
}

/* Image placeholder */
.placeholder {
    height: 240px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-text {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

/* Card Content */
.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 240px;
}

.tag {
    /* background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); */
     background: #e5f3ff;
    color: #0066cc;
    padding: 4px 12px;
    border-radius: 20px;
     font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
    display: inline-block;
    width: fit-content;
    text-transform: capitalize;
    letter-spacing: 0.5px;   
}

.cost {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.cost-amount {
    font-weight: 700;
    color: #0f172a;
    font-size: 16px;
}

.title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 50px;
}

/* Progress bar */
.donate-progress {
    margin: 16px 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}

.raised-amount {
    font-weight: 700;
    color: #16a34a;
}

.target-amount {
    color: #64748b;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
    transition: width 0.3s ease;
}

/* View Details Button */
.view-link {
    display: inline-block;
    /* background: linear-gradient(135deg, #0A1E46 0%, #1e40af 100%); */
    color: #91a2ce;
    /* padding: 14px 28px; */
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    /* text-align: center; */
    transition: all 0.3s ease;
    margin-top: auto;
    /* box-shadow: 0 4px 6px -1px rgba(10, 30, 70, 0.3); */
}

.view-link:hover {
    /* background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%); */
    transform: translateY(-2px);
    color: #1e40af;
    /* box-shadow: 0 10px 15px -3px rgba(10, 30, 70, 0.4); */
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
    grid-column: 1 / -1;
}

.no-results p {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.no-results button {
    background: linear-gradient(135deg, #0A1E46 0%, #1e40af 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.no-results button:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transform: translateY(-2px);
}

/* Pagination */
.pagination-container {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 2px solid #e2e8f0;
}

.projectpagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    bottom: 400px !important;
}

.pagination-info {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    height: 44px;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #0f54e9 0%, #1e40af 100%);
    /* border-color: #0A1E46; */
    border: none;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(10, 30, 70, 0.3);
}

.pagination-btn.disabled {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-ellipsis {
    padding: 10px 6px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
}

.pagination-btn span {
    font-size: 16px;
    line-height: 1;
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .filters {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .filters select {
        min-width: 280px;
    }

    .card {
        min-height: 450px;
    }

    .pagination {
        gap: 20px;
    }

    .pagination-info {
        font-size: 12px;
        text-align: center;
    }

    .pagination-controls {
        gap: 4px;
    }

    .pagination-btn {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 20px 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .filters select {
        min-width: 250px;
    }

    .card-content {
        padding: 20px;
    }

    .pagination-container {
        margin-top: 30px;
        padding: 20px 0;
    }

    .pagination-btn {
        padding: 6px 8px;
        font-size: 11px;
        min-width: 36px;
        height: 36px;
    }
}