:root {
    --primary-color: #0033A0; /* Dark Blue from PDF */
    --secondary-color: #D00000; /* Red accent */
    --text-color: #333;
    --light-text-color: #f8f9fa;
    --background-color: #FFFFFF;
    --alt-background-color: #f0f4f8; /* Light blueish grey */
    --card-shadow: 0 4px 8px rgba(0,0,0,0.1);
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
    color: var(--primary-color);
}
h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
}
section h2 { /* To center the heading block */
    display: block;
}


p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

img.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}
img.content-image {
    display: block;
    margin: 1.5rem auto;
    max-width: 70%;
}

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--light-text-color);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}
.btn:hover {
    background: darken(var(--secondary-color), 10%);
    text-decoration: none;
}

/* Header & Nav */
header {
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-link {
    display: flex;
    align-items: center;
    color: var(--light-text-color);
    font-size: 1.5rem;
    font-weight: bold;
}
.logo-link:hover {
    text-decoration: none;
}



.nav-links {
    list-style: none;
    display: flex;
}
.nav-links li {
    margin-left: 20px;
}
.nav-links a {
    color: var(--light-text-color);
    padding: 5px 10px;
    transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 2px solid var(--secondary-color);
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--light-text-color);
    position: relative;
    transition: background 0.2s ease-out;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--light-text-color);
    left: 0;
    transition: transform 0.2s ease-out, top 0.2s ease-out 0.2s;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Hero Section */
.hero-section {
    background: url('../images/hero-bg.jpg') no-repeat center center/cover; /* Add a nice background image */
    background-color: var(--primary-color); /* Fallback */
    color: var(--light-text-color);
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--light-text-color);
}
.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.hero-section .motto {
    font-size: 1.8rem;
    font-style: italic;
    color: #ffd700; /* Gold-like color for motto */
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}
.content-section.alt-bg {
    background-color: var(--alt-background-color);
}

.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.about-text {
    flex: 2;
}
.about-content img {
    flex: 1;
    max-width: 400px; /* Limit image size */
}

/* Grid Containers */
.grid-container {
    display: grid;
    gap: 1.5rem;
}
.two-cols { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.three-cols { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.card h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Ethics & Values specific */
.ethics-container, .values-container {
    margin-bottom: 3rem;
}
.values-container .intro-text {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Goals specific */
.goals-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.styled-list {
    list-style: none;
    padding-left: 0;
    flex: 1.5;
}
.styled-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    border-bottom: 1px dashed #eee;
}
.styled-list li:last-child {
    border-bottom: none;
}
.styled-list li::before {
    content: '✔'; /* Or use an SVG icon */
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.goals-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.goals-images img {
    width: 100%;
}


/* What We Do - Service Items */
.service-item img.service-img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 1rem;
}
.service-item h4 {
    text-align: center;
}

/* Programs */
.program-article {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}
.program-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.gallery {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}
.gallery-img {
    flex: 1; /* Distribute space */
    min-width: 250px; /* Minimum width before wrapping */
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}


/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.team-member {
    text-align: center;
}
.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--secondary-color);
}
.team-member h4 {
    margin-bottom: 0.25rem;
}
.team-member p {
    font-size: 0.9rem;
    color: #555;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    display: grid;
    gap: 1rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}
.contact-form textarea {
    resize: vertical;
}
.contact-section p {
    text-align: center;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}
footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide on mobile by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        background: var(--primary-color);
        padding: 1rem 0;
    }
    .nav-links.active {
        display: flex; /* Show when active */
    }
    .nav-links li {
        margin: 0;
        text-align: center;
    }
    .nav-links a {
        display: block;
        padding: 1rem;
    }
    .nav-toggle {
        display: block; /* Show hamburger on mobile */
    }

    /* Hamburger animation when active */
    .nav-toggle.active .hamburger {
        background: transparent; /* Middle line disappears */
    }
    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
        transition: transform 0.2s ease-out 0.2s, top 0.2s ease-out;
    }
    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
        transition: transform 0.2s ease-out 0.2s, top 0.2s ease-out;
    }


    .hero-section h1 { font-size: 2.2rem; }
    .hero-section p { font-size: 1.2rem; }
    h2 { font-size: 1.8rem; }

    .about-content {
        flex-direction: column;
    }
    .about-content img {
        margin-top: 1.5rem;
        max-width: 80%;
    }
    .goals-content {
        flex-direction: column;
    }
    .gallery {
        flex-direction: column;
    }
    .gallery-img {
        min-width: 100%;
    }
}