/* Brand Colors */
:root {
    --deep-forest-green: #1B4D34;
    --deep-plum-purple: #551842;
    --earth-brown: #6B4C2A;
    --soft-stone-gray: #D0D2D0;
    --white: #ffffff;
    --off-white: #f9f9f9;
    --dark-gray: #333333;
    --light-green: #e9f5ef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--off-white);
    color: var(--dark-gray);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--deep-forest-green);
    color: var(--white);
    padding: 10px 0; /* Adjusted padding */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    /* Removed width, height, and background-color */
}
.logo-img img {
    width: 120px; /* Set a specific width for the logo */
    height: auto;
}


.logo-text h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 14px;
    color: var(--soft-stone-gray);
    letter-spacing: 1px;
}

.tagline {
    font-weight: bold;
    color: var(--white);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--soft-stone-gray);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--deep-plum-purple);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(27, 77, 52, 0.85), rgba(27, 77, 52, 0.9)), url('images/edited-image.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 52px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 22px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--deep-plum-purple);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    border: 2px solid var(--deep-plum-purple);
    cursor: pointer;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--white);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--deep-forest-green);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--deep-plum-purple);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.about-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image img:hover,
.value-card img:hover,
.program-card img:hover,
.impact-image img:hover,
.contact-info img:hover,
.footer-logo img:hover {
    transform: scale(1.05);
}

.about-text h3 {
    color: var(--deep-forest-green);
    margin-bottom: 20px;
    font-size: 28px;
}

.about-text p {
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--deep-plum-purple);
    transition: transform 0.3s, box-shadow 0.3s;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.value-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.value-card i {
    font-size: 30px;
    color: var(--deep-forest-green);
    margin-bottom: 15px;
}

.value-card h4 {
    color: var(--deep-forest-green);
    margin-bottom: 10px;
}

/* Programs Section */
.programs-section {
    background-color: var(--light-green);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.program-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.program-header {
    background-color: var(--deep-forest-green);
    color: var(--white);
    padding: 20px;
}

.program-header h3 {
    font-size: 20px;
}

.program-body {
    padding: 25px;
}

.program-body ul {
    margin-left: 20px;
    margin-top: 15px;
}

.program-body li {
    margin-bottom: 8px;
}

/* Impact Section */
.impact-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-width: 200px;
}

.stat-number {
    font-size: 42px;
    font-weight: bold;
    color: var(--deep-plum-purple);
    margin-bottom: 10px;
}

.stat-text {
    color: var(--deep-forest-green);
    font-weight: 600;
}

.impact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.impact-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.impact-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact Section */
.contact-section {
    background-color: var(--soft-stone-gray);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-gray);
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--soft-stone-gray);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--deep-plum-purple);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-info h3 {
    color: var(--deep-forest-green);
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 30px;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details i {
    color: var(--deep-plum-purple);
    width: 20px;
}

.contact-info img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Footer */
footer {
    background-color: var(--deep-forest-green);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.footer-logo p {
    color: var(--soft-stone-gray);
    font-size: 14px;
}

.footer-logo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--soft-stone-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: var(--white);
    background-color: var(--deep-plum-purple);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--white);
    color: var(--deep-plum-purple);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--soft-stone-gray);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content, .contact-container, .impact-content {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {

    header {
        padding: 5px 0; /* Reduced padding for smaller header */
    }
    .container {
        padding: 0 10px; /* Reverted horizontal padding for mobile */
    }
    .header-container {
        flex-direction: row; /* Keep elements in a row */
        justify-content: space-between; /* Push logo/text left, toggle right */
        align-items: center; /* Vertically center items */
    }

    .logo {
        flex-direction: column; /* Stack logo and text vertically */
        align-items: flex-start; /* Align logo and text to the left */
        gap: 0px; /* Reduce gap between logo and text */
    }

    .logo-img img {
        width: 60px; /* Further adjust logo size for better mobile fit */
        margin-bottom: 0; /* Remove bottom margin from logo image */
    }

    .logo-text {
        margin-top: 0; /* Remove top margin from logo text container */
    }

    .logo-text h1 {
        font-size: 18px; /* Smaller font size for h1 on mobile */
        margin-bottom: 0px; /* Reduced margin-bottom for h1 */
    }

    .logo-text p {
        font-size: 12px; /* Smaller font size for p on mobile */
        margin: 0; /* Remove all margins */
        padding: 0; /* Remove all paddings */
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--deep-forest-green);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.show {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-stats {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    section {
        padding: 50px 0;
    }
}

.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--deep-plum-purple);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(27, 77, 52, 0.85), rgba(27, 77, 52, 0.9)), url('images/edited-image.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

/* Custom styles for Splide.js Slider */
.splide {
    margin-bottom: 2rem;
}

.splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
