/* --- CSS Variables --- */
:root {
    --primary-color: #2E7D32;
    --secondary-color: #FF8F00;
    --accent-color: #4CAF50;
    --text-color: #333;
    --light-text-color: #f4f4f4;
    --bg-color: #ffffff;
    --alt-bg-color: #f9f9f9;
    --border-color: #ddd;
    --footer-bg-color: #333333;
    --footer-text-color: #cccccc;
    --footer-link-color: #cccccc;
    --footer-link-hover-color: #ffffff;
    --footer-heading-color: #ffffff;
    --footer-bottom-bg-color: #222222;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --container-width: 1100px;
    --border-radius: 8px;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --header-logo-height: 50px; 
}

/* --- Global Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 0.8em;
    line-height: 1.3;
    color: var(--primary-color);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.2rem); text-align: center; margin-bottom: 1.5em; position: relative; }
h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0.3em auto 0;
}
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); color: #444; }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.2rem); }


p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--secondary-color);
}

ul, ol {
    margin-bottom: 1em;
    padding-left: 20px;
}
li {
    margin-bottom: 0.5em;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--bg-color);
    padding: 0.5em 0;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--header-logo-height);
}

.logo img {
    height: var(--header-logo-height);
    width: auto;
    display: block;
    max-width: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 1.8em;
    margin-bottom: 0;
}

.nav-links a {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
    text-transform: capitalize;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

header.nav-open .hamburger {
    background-color: transparent;
}
header.nav-open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
header.nav-open .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}


/* --- Hero Section --- */
#hero {
    background: url('https://i0.wp.com/www.whrdnuganda.org/wp-content/uploads/2022/03/IMG_8455-scaled.jpg') no-repeat center center/cover;
    color: var(--light-text-color);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 40px 0;
}
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    color: var(--light-text-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    margin-bottom: 0.5em;
}
.hero-content .subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 1.5em;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* --- Call to Action Button --- */
.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--bg-color) !important;
    padding: 15px 35px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 2px solid transparent;
}
.cta-button:hover, .cta-button:focus {
    background-color: #e67e00;
    color: var(--bg-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    outline: none;
}
.cta-button.large {
    font-size: 1.2rem;
    padding: 18px 40px;
}

/* --- Content Sections --- */
.content-section {
    padding: 80px 0;
}
.content-section.alt-bg {
    background-color: var(--alt-bg-color);
}

.section-intro {
    font-size: 1.1rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5em auto;
    color: #555;
}

/* --- Problem Section Grid (Static Cards with Images) --- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 30px;
    margin-bottom: 2em;
}

.problem-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.problem-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.problem-card-content {
    padding: 20px;
    flex-grow: 1;
}

.problem-card-content h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.75em;
}

.problem-card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0;
}

.problem-summary {
    text-align: center;
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 2.5em;
    color: #444;
}


/* Solution Section Specifics */
.solution-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 2em;
}
.solution-column {
    flex: 1;
    min-width: 280px;
}
.solution-column ul {
    list-style: none;
    padding-left: 0;
}
.solution-column ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 0.8em;
}
.solution-column ul li::before {
    content: '✔'; 
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.mitigation-list {
    list-style-type: disc;
    padding-left: 20px;
}
.mitigation-list li::marker {
    color: var(--secondary-color);
}

/* Youth & Diversity Section Specifics */
.bullet-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5em;
}
.bullet-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 0.8em;
    font-size: 1.05rem;
}
.bullet-list li::before {
    content: '❖'; 
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}
.two-col-list {
    columns: 2;
    column-gap: 40px;
}

/* --- Partners Section --- */
.partners-title {
    /* Using existing h2 styling, but can be customized */
    color: var(--text-color); /* Darker text like example image */
    font-weight: 700; /* Bold title */
}
.partners-title::after { /* Remove underline from general H2 if not desired here */
    display: none; 
}

.partners-slider {
    /* Tiny Slider will create inner structure. This is the container for items. */
    margin-top: 2em;
}

.partner-logo {
    text-align: center; /* Center the logo image within its slide item */
    padding: 15px 0; /* Vertical padding for spacing */
    box-sizing: border-box;
    height: 100%; /* Ensure items are same height for vertical alignment */
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-height: 70px; /* Adjust max height of partner logos */
    max-width: 150px; /* Adjust max width */
    width: auto;      /* Maintain aspect ratio */
    object-fit: contain; /* Ensure whole logo is visible, don't crop */
    filter: grayscale(100%); /* Optional: Make logos grayscale */
    opacity: 0.7;          /* Optional: Slightly transparent */
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo img:hover {
    filter: grayscale(0%);   /* Optional: Color on hover */
    opacity: 1;            /* Optional: Full opacity on hover */
}

/* Tiny Slider Customizations for Partners (Controls are hidden by default with 'controls: false') */
#partners .tns-nav { /* Target nav dots specifically for partners slider */
    text-align: center;
    margin-top: 25px;
}
#partners .tns-nav button {
    width: 10px;
    height: 10px;
    background-color: #d1d1d1; /* Light grey inactive dot */
    border: none;
    border-radius: 50%;
    margin: 0 5px;
    padding: 0;
    transition: background-color 0.3s ease;
}
#partners .tns-nav button.tns-nav-active {
    background-color: var(--secondary-color); /* Orange active dot like example */
}
#partners .tns-controls { /* Hide default arrows for partner slider */
    display: none;
}


/* --- Project Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2em;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 10px;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}


/* --- Call to Action Section (Join Us) --- */
.cta-section {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 80px 0;
    text-align: center;
}
.cta-section h2 {
    color: var(--light-text-color);
    margin-bottom: 0.8em;
}
.cta-section h2::after {
    background: var(--light-text-color);
}
.cta-section p {
    font-size: 1.15rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}
.cta-section .tagline {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 2em;
}
.cta-section .cta-button {
    background-color: var(--light-text-color);
    color: var(--primary-color) !important;
    border-color: var(--light-text-color);
}
.cta-section .cta-button:hover, .cta-section .cta-button:focus {
    background-color: #e0e0e0;
    color: var(--primary-color) !important;
    border-color: #e0e0e0;
}


/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 60px 0 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.footer-column h4 {
    color: var(--footer-heading-color);
    font-family: var(--font-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column p {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.footer-column p i.fas, .footer-column p i.fab {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-column a {
    color: var(--footer-link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover, .footer-column a:focus {
    color: var(--footer-link-hover-color);
    text-decoration: underline;
    outline: none;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a::before {
    content: "> ";
    margin-right: 5px;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}
.footer-links li a:hover::before {
    color: var(--footer-link-hover-color);
}

/* Social Icons */
.social-icons {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #555555;
    border-radius: 4px;
    color: var(--footer-text-color);
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.social-icons a:hover, .social-icons a:focus {
    background-color: var(--secondary-color);
    color: var(--footer-heading-color);
    border-color: var(--secondary-color);
    text-decoration: none;
}

/* Footer Bottom (Copyright) */
.footer-bottom {
    background-color: var(--footer-bottom-bg-color);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #aaaaaa;
    border-top: 1px solid #444;
}

.footer-bottom p {
    margin: 0;
}


/* --- Responsive Design --- */
@media (max-width: 1100px) { 
    /* Adjustments for grids if needed */
}

@media (max-width: 992px) {
    .two-col-list {
        columns: 1;
    }
    .nav-links li {
        margin-left: 1.5em;
    }
    .problem-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    body { font-size: 0.95rem; }

    .nav-links {
        display: none; 
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: calc(var(--header-logo-height) + 1em);
        left: 0;
        background-color: var(--bg-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding-bottom: 1em;
        border-top: 1px solid var(--border-color);
    }
    .nav-links.active { 
        display: flex;
    }
    .nav-links li {
        margin: 0;
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 1em 1.5em;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }
    .nav-links a::after { display: none; } 

    .nav-toggle {
        display: block; 
    }

    #hero { min-height: 60vh; padding: 60px 0; }
    .content-section { padding: 60px 0; }
    .solution-columns { flex-direction: column; }

    .footer-content {
        gap: 40px;
    }
    .problem-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-logo-height: 40px;
    }
    header {
        padding: 0.4em 0;
    }
    .nav-links {
        top: calc(var(--header-logo-height) + 0.8em);
    }

    .container { width: 95%; padding: 0 10px; }
    .cta-button { padding: 12px 25px; font-size: 1rem; }
    .cta-button.large { padding: 15px 30px; font-size: 1.1rem; }
    h2 { font-size: 1.6rem;}
    h3 { font-size: 1.3rem;}

    .problem-card { margin: 0; } 
    .problem-card img { height: 180px; } 
    .problem-card-content h3 { font-size: 1.1rem; }
    .problem-card-content p { font-size: 0.9rem; }
    .problem-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item img {
        height: 220px;
    }


    .partner-logo img {
        max-height: 50px; /* Smaller partner logos on mobile */
    }
    #partners .tns-nav {
        margin-top: 15px;
    }


    .numbered-list li { padding-left: 40px; } /* This was for old impact section, might be unused */
    .numbered-list li::before { width: 28px; height: 28px; font-size: 0.8rem; } /* This was for old impact section */

    .footer-column h4 { font-size: 1.1rem; }
    .site-footer { font-size: 0.9rem; }
}