/* ==========================================
   CAPACITY BUILDING & TRAINING WORKSHOPS
   ========================================== */

:root {
    --capacity-hero-height: 70vh;
    --capacity-green: #4a7c59;
    --capacity-dark: #2d4a35;
    --capacity-cream: #fef9f1;
    --capacity-text-light: #f5f3ef;
}

/* --- Hero Section --- */
.capacity-hero {
    position: relative;
    height: 75vh;
    min-height: 550px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-black);
}

.capacity-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../capacity/copy17.JPG');
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    z-index: 1;
}

.capacity-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, var(--bg-cream) 100%);
    z-index: 2;
}

.capacity-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.capacity-hero h1 {
    font-size: 4rem;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.capacity-hero p {
    font-size: 1.5rem;
    color: var(--capacity-text-light);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

/* --- Intro Text --- */
.capacity-intro {
    padding: 80px var(--space-lg);
    background: var(--bg-body);
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.capacity-intro-container {
    max-width: 800px;
    margin: 0 auto;
}

.capacity-intro h2 {
    font-size: 1.85rem;
    color: var(--capacity-green);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.capacity-intro h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.capacity-intro p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
}

/* --- Testimonial Section --- */
.capacity-testimonial {
    background: var(--capacity-cream);
    padding: 80px var(--space-lg);
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    margin-bottom: 40px;
}

.capacity-testimonial::before {
    content: '“';
    position: absolute;
    top: 20px;
    left: 10%;
    font-size: 12rem;
    font-family: 'Playfair Display', serif;
    color: rgba(74, 124, 89, 0.08);
    line-height: 1;
}

.testimonial-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.testimonial-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    line-height: 1.5;
    color: var(--capacity-dark);
    margin-bottom: 1.5rem;
    font-style: italic;
    font-weight: 700;
}

.testimonial-author {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1rem;
}

/* --- Engagement Cards --- */
.engagement-section {
    padding: 80px var(--space-lg);
    background: var(--color-white);
    margin-top: 40px;
    margin-bottom: 40px;
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.engagement-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.engagement-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.engagement-card:hover {
    transform: translateY(-10px);
    background: var(--color-white);
    box-shadow: var(--shadow-xl);
    border-color: var(--capacity-green);
}

.engagement-card h3 {
    font-size: 1.45rem;
    margin-bottom: 1rem;
    color: var(--capacity-dark);
}

.engagement-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* --- Collaborators Section --- */
.collaborators-section {
    padding: 100px var(--space-lg) 120px;
    background: var(--bg-body);
    margin-bottom: 40px;
    margin-top: 40px;
}

.collaborators-container {
    max-width: 1100px;
    margin: 0 auto;
}

.collaborators-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.75rem;
}

.collaborators-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.collaborator-tag {
    background: var(--color-white);
    color: var(--capacity-green);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.collaborator-tag:hover {
    background: var(--capacity-green);
    color: white;
    transform: scale(1.05);
}

/* --- CTA Section --- */
.capacity-cta {
    padding: 80px var(--space-lg);
    background: #344e41;
    color: white;
    text-align: center;
   
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
    
}

.capacity-cta h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.capacity-cta p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .capacity-hero h1 {
        font-size: 2.5rem;
    }

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

    .testimonial-text {
        font-size: 1.5rem;
    }

    .engagement-grid {
        grid-template-columns: 1fr;
    }
}
/* Decorative Illustration Overlay */
.capacity-page-illustration {
    position: absolute;
    top: 2800px;
    right: -270px;
    z-index: 100;
    width: clamp(280px, 40vw, 550px);
    transform: rotate(0deg);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.capacity-page-illustration img {
    width: 65%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

@media (max-width: 768px) {
    .capacity-page-illustration {
        width: 200px;
        right: -50px;
        bottom: 100px;
    }
}
