/* Hero Section */
.projects-hero {
    position: relative;
    margin-top: -100px;
    background-image: url('../images/hdf4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0 6rem;
    margin-bottom: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.65));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 3rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
    margin-bottom: 2rem;
}

.filter-section {
    padding: 2rem 0 3rem;
    position: relative;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.875rem 2rem;
    background: white;
    border: 2px solid #e8f4f8;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-btn:hover {
    border-color: var(--accent-orange);
    background: #fff5f0;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-orange), var(--primary-red));
    color: white;
    border-color: var(--accent-orange);
}

.filter-btn i {
    font-size: 1.1rem;
}

/* Projects Grid Section */
.projects-grid-section {
    padding: 3rem 0 5rem;
    background: #f8f9fa;
}

.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.proj-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 35, 126, 0.08);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.proj-card.card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Category-based left accent border */
.proj-card[data-category="education"]  { border-left: 4px solid #1565c0; }
.proj-card[data-category="economic"]   { border-left: 4px solid #2e7d32; }
.proj-card[data-category="climate"]    { border-left: 4px solid #f57f17; }
.proj-card[data-category="health"]     { border-left: 4px solid #c62828; }
.proj-card[data-category="protection"] { border-left: 4px solid #6a1b9a; }
.proj-card[data-category="women"]      { border-left: 4px solid #ad1457; }
.proj-card[data-category="youth"]      { border-left: 4px solid #00695c; }
.proj-card[data-category="refugee"]    { border-left: 4px solid #4527a0; }
.proj-card[data-category="other"]      { border-left: 4px solid #37474f; }

.proj-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
}

.proj-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-orange);
}

.proj-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.proj-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.proj-card:hover .proj-image img {
    transform: scale(1.05);
}

.proj-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.proj-status.ongoing {
    background: rgba(76, 175, 80, 0.9);
    color: white;
}

.proj-status.completed {
    background: rgba(26, 35, 126, 0.9);
    color: white;
}

.proj-status.planned {
    background: rgba(255, 152, 0, 0.9);
    color: white;
}

.proj-body {
    padding: 1.5rem;
}

.proj-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-orange), var(--primary-red));
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.proj-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
}

.proj-excerpt {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.proj-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.proj-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.88rem;
}

.proj-date i {
    color: var(--accent-orange);
}

.proj-read-more {
    background: var(--primary-blue);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.proj-read-more:hover {
    background: var(--accent-orange);
    color: white;
    transform: translateX(3px);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-orange) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-cta.primary {
    background: white;
    color: var(--primary-blue);
}

.btn-cta.primary:hover {
    background: var(--accent-orange);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-cta.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta.secondary:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-hero {
        padding: 6rem 0 4rem;
        background-attachment: scroll;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .proj-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}