/* AFF Projects Page Styles - CSS for Asset Injection */

/* AFF Brand Colors */
:root {
    --aff-primary-green: #2d5016;
    --aff-secondary-green: #4a7c59;
    --aff-accent-green: #6b8e23;
    --aff-gold: #b8860b;
    --aff-earth-brown: #8b4513;
    --aff-light-green: #90ee90;
    --aff-cream: #f5f5dc;
    --aff-dark-gray: #2c2c2c;
}

/* Projects Section */
.aff-projects-section {
    padding: 60px 0;
    background: #f5f5f5;
   
}

.aff-section-intro {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.aff-section-intro h2 {
    color: var(--aff-primary-green);
    font-size: 2.5em;
    margin-bottom: 20px;
    position: relative;
}

.aff-section-intro h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--aff-gold), var(--aff-accent-green));
    margin: 15px auto;
    border-radius: 2px;
}

.aff-section-intro p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Projects Grid */
.aff-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.aff-project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid transparent;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.aff-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--aff-accent-green);
}

/* Staggered animation delays */
.aff-project-card:nth-child(1) { animation-delay: 0.1s; }
.aff-project-card:nth-child(2) { animation-delay: 0.2s; }
.aff-project-card:nth-child(3) { animation-delay: 0.3s; }
.aff-project-card:nth-child(4) { animation-delay: 0.4s; }
.aff-project-card:nth-child(5) { animation-delay: 0.5s; }
.aff-project-card:nth-child(6) { animation-delay: 0.6s; }
.aff-project-card:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aff-project-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.aff-project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(45,80,22,0.1) 0%, rgba(107,142,35,0.1) 100%);
    transition: all 0.3s ease;
}

.aff-project-card:hover .aff-project-image::after {
    background: linear-gradient(45deg, rgba(45,80,22,0.05) 0%, rgba(107,142,35,0.05) 100%);
}

.aff-project-content {
    padding: 25px;
}

.aff-project-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.aff-status-badge {
    background: linear-gradient(90deg, var(--aff-accent-green), var(--aff-light-green));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aff-project-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--aff-primary-green);
    margin-bottom: 15px;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.aff-project-title:hover {
    color: var(--aff-accent-green);
    text-decoration: none;
}

.aff-project-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.aff-project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--aff-primary-green), var(--aff-secondary-green));
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.aff-project-link:hover {
    background: linear-gradient(135deg, var(--aff-secondary-green), var(--aff-accent-green));
    transform: translateX(5px);
    text-decoration: none;
    color: white;
}

.aff-project-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.aff-project-link:hover::after {
    transform: translateX(3px);
}

/* Specific project images */
.aff-project-1 .aff-project-image {
    background-image: url('https://afforum.org/sites/default/files/2025-09/Cocoa%20production.jpg');
}

.aff-project-2 .aff-project-image {
    background-image: url('https://afforum.org/sites/default/files/2025-09/Luangwa%20Trip%20Part%202%20113oeba.jpg');
}

.aff-project-3 .aff-project-image {
    background-image: url('https://afforum.org/sites/default/files/2025-09/20160715_111310.jpg');
}

.aff-project-4 .aff-project-image {
    background-image: url('https://afforum.org/sites/default/files/2025-09/Tropical%20rain%20forest-Nyungwe%20National%20Park-%20Rwanda-%20via%20Shutterstock.jpg');
}

.aff-project-5 .aff-project-image {
    background-image: url('https://afforum.org/sites/default/files/2025-09/AFF_5858_COMPRESSED.jpg');
}

.aff-project-6 .aff-project-image {
    background-image: url('https://afforum.org/sites/default/files/inline-images/Tamarind-fruit-at-Mombasa-market-Photo-David-Roos_1.jpg');
}

.aff-project-7 .aff-project-image {
    background-image: url('https://afforum.org/sites/default/files/2025-06/Youth-home.jpg');
}

/* Responsive Design */
@media (max-width: 768px) {
    .aff-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .aff-section-intro h2 {
        font-size: 2em;
    }

    .aff-project-content {
        padding: 20px;
    }

    .aff-section-intro {
        padding: 0 15px;
    }

    .aff-projects-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .aff-project-image {
        height: 160px;
    }

    .aff-project-title {
        font-size: 1.2em;
    }

    .aff-section-intro h2 {
        font-size: 1.8em;
    }
}