/* General Styles */
html {
    background-color: #231f20;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #231f20;
    background-color: #f5f5f5;
}

.container {
    width: 80%;
    margin: 0 auto;
}



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

header {
    /*background-color: #007940;*/
    /*padding: 20px 0;*/
    background-color: #1c6f33;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}





header a {
    display: inline-block;
}

header h1 {
    color: #ffffff;
}

nav {
    margin-top: 10px;
}

nav ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    display: block;
    padding: 5px 10px;
}

/* Responsive Header Styles */
@media (max-width: 1024px) {
    .container {
        width: 90%;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav {
        order: 1;
    }

    nav ul {
        justify-content: center;
    }

    nav ul li {
        margin-bottom: 10px;
    }

    body {
        padding-top: 220px; /* Increased padding further */
    }
}

@media (max-width: 480px) {
    nav ul li a {
        padding: 5px 8px;
    }
}

/* Header hide nav */
header.condensed {
    /*height: 60px;*/
    transition: height 0.5s ease-in-out;
}

header.condensed .container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    header.condensed nav {
        display: flex;
    }
}

/* include middle viewport */
@media (max-width: 768px) {
    header.condensed nav {
        display: none;
    }
}

header.condensed nav {
    display: none;
    transition: height 0.5s ease-in-out;
}

/* Hero Section */
.hero {
    /*background-color: #61a744;*/
    background-color: #005c28;
    padding: 50px 0;
    text-align: center;
    padding-top: 120px;
}

.hero h2 {
    font-size: 40px;
    color: #ffffff;
}

.hero button {
    background-color: #114734;
    border: none;
    padding: 10px 20px;
    color: #ffffff;
    cursor: pointer;
}
/* ================================== */
/* Hero Section Enhancements          */
/* ================================== */


.hero-blurb {
    font-size: 20px;
    line-height: 1.8;
    color: #ffffff;
    font-weight: 300; /* Note: current blurb is light */
    margin: 20px auto;
    max-width: 800px;
    text-align: justify;
    text-justify: inter-word;
}

/* --- New Style for Sub-headline --- */
.hero-subheadline {
    font-size: 1.25em; /* Slightly larger than default text, adjust as needed (e.g., 22px or 1.3em) */
    color: #ffffff;    /* White for contrast on the green background */
    font-weight: 500; /* Medium weight - bolder than the light blurb, less bold than a main heading */
    line-height: 1.6;  /* Good readability */
    max-width: 850px;  /* Keep line length manageable, slightly wider allowed than blurb */
    margin: 25px auto 20px auto; /* Top margin to separate from main headline, bottom margin before blurb/button */
    text-align: center; /* Center align this specific line for emphasis */
}

/* --- Optional: Adjust main headline margin if needed --- */
.hero h2.hero-headline { /* Target the new class if you added it */
    font-size: 40px;
    color: #ffffff;
    margin-bottom: 15px; /* Reduce bottom margin slightly to bring subheadline closer */
}


/* Responsive Adjustments for Hero */
@media (max-width: 768px) {
    /* Adjust existing .hero-blurb rule if needed */
    .hero-blurb {
        font-size: 18px;
        max-width: 90%;
    }

    /* Adjust new .hero-subheadline for smaller screens */
    .hero-subheadline {
        font-size: 1.15em; /* Slightly smaller */
        max-width: 90%;   /* Use percentage width */
        margin: 20px auto 15px auto; /* Adjust spacing */
    }

     /* Adjust main headline size */
    .hero h2.hero-headline {
        font-size: 32px; /* Match existing responsive rule */
    }
}

@media (max-width: 480px) {
     /* Adjust new .hero-subheadline for small screens */
    .hero-subheadline {
        font-size: 1.1em; /* Further refinement */
    }

     /* Adjust main headline size */
    .hero h2.hero-headline {
        font-size: 28px; /* Match existing responsive rule */
    }
}

/* Features Section */
.features {
    background-color: #ffffff;
    padding: 50px 0;
    text-align: center;
}

.features h3 {
    font-size: 24px;
    color: #007940;
}

.features p {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 0;
}


/* Technology Expertise Styles */
.technology-expertise {
    background-color: #ffffff;
    padding: 50px 0;
    text-align: center;
}

@media (min-width: 1024px) {
    .technology-expertise {
        scroll-margin-top: 1px;
    }
}

@media (min-width: 768px) {
    .technology-expertise {
        scroll-margin-top: 64px;
    }
}

@media (min-width: 480px) {
    .technology-expertise {
        scroll-margin-top: 64px;
    }
}

@media (max-width: 480px) {
    .technology-expertise {
        scroll-margin-top: 64px;
    }
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.tech-item {
    padding: 20px;
}

.tech-item i {
    font-size: 48px;
    color: #007940;
}

.tech-item h3 {
    margin-top: 20px;
    font-size: 24px;
    font-weight: bold;
}


/* Testimonials Section */
.testimonials {
    background-color: #f5f5f5;
    padding: 50px 0;
    text-align: center;
}

.testimonials h4 {
    font-size: 18px;
    color: #007940;
}

.testimonials p {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Footer */
footer {
    background-color: #231f20;
    padding: 30px 0;
    text-align: center;
}

footer p {
    color: #ffffff;
}

footer a {
    text-decoration: none;
    color: #61a744;
    margin: 0 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .container {
        width: 90%;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        margin-top: 15px;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .features h3 {
        font-size: 22px;
    }

    .testimonials h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 28px;
    }

    .features h3 {
        font-size: 20px;
    }

    .testimonials h4 {
        font-size: 14px;
    }
}

/* Logo Styles */
.logo img {
    max-width: 260px;
    width: 100%;
}



/* Responsive Logo Styles */
@media (max-width: 768px) {
    .logo img {
        max-width: 230px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-width: 200px;
    }
}



/* Contact Form Styles */
.contact-form {
    background-color: #ffffff;
    padding: 50px 0;
    text-align: center;
    margin: 0 auto;
    padding-top: 120px;
    width: 100%;
    /*max-width: 800px;*/
    box-sizing: border-box;
}

/* Responsive Contact Form Styles */
@media (max-width: 1024px) {
    .contact-form {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .contact-form {
        max-width: 85%;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        max-width: 100%;
        margin: 5px auto;
        display: block;
        padding: 10px;
        font-size: 16px;
        border: 1px solid #cccccc;
        box-sizing: border-box;
    }

}

@media (max-width: 480px) {
    .contact-form {
        max-width: 95%;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        max-width: 100%;
        margin: 5px auto;
        display: block;
        padding: 10px;
        font-size: 16px;
        border: 1px solid #cccccc;
        box-sizing: border-box;
    }

}

.contact-form label {
    display: block;
    font-size: 18px;
    margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 500px;
    margin: 5px auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #cccccc;
}


.contact-form input[type="submit"] {
    background-color: #007940;
    border: none;
    color: #ffffff;
    padding: 10px 20px;
    cursor: pointer;
}

.contact-form input[type="submit"]:hover {
    background-color: #114734;
}


/* Bio Section */
.bio {
    padding: 40px 0;
    padding-top: 120px;
    
}

.bio .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.bio-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.bio-image {
    flex: 1;
    padding: 20px;
    text-align: center;
}

.bio-image img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
}

.bio-text {
    flex: 1;
    max-width: 800px; 
    margin-left: 20px;
    margin-right: 20px;
}

.bio-text h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.bio-text p {
    font-size: 1.4em;
    line-height: 1.6;
    margin-bottom: 1em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .bio-image {
        margin-bottom: 20px;
    }

    .bio-image,
    .bio-text {
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {
    .bio-text h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .bio {
        padding: 20px 0;
        padding-top:120px;
    }

    .bio-image img {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .bio-text {
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }
}

/* Testimonials Section */
/* ================================== */
/* Testimonials Enhancements Styles   */
/* ================================== */

.testimonials {
    background-color: #f5f5f5; /* Keeping existing light grey background */
    padding: 50px 0;
    text-align: center;
}

.testimonials h4 {
    font-size: 22px; /* Slightly larger heading */
    color: #005c28;  /* Using a darker shade from your palette */
    margin-bottom: 35px; /* More space below heading */
}

.testimonial-item {
    margin-bottom: 40px; /* Space between multiple testimonials */
    max-width: 650px;    /* Constrain width */
    margin-left: auto;   /* Center the item block */
    margin-right: auto;
}

.testimonial-item:last-child {
    margin-bottom: 0; /* No margin below the last testimonial */
}

.testimonial-item blockquote {
    font-size: 1.1em;        /* Slightly larger quote text */
    font-style: italic;      /* Italicize the quote */
    color: #333;            /* Darker grey for readability */
    line-height: 1.6;        /* Improve line spacing */
    margin: 0 0 15px 0;      /* Remove default blockquote margins, add bottom margin */
    padding: 0;              /* Remove default padding if any */
    position: relative;      /* Needed if adding pseudo-element quotes later */
}

/* Optional: Add subtle quote marks visually */
/*
.testimonial-item blockquote::before {
    content: '"';
    font-size: 2.5em;
    color: #1c6f33; // Brand green
    opacity: 0.3;
    position: absolute;
    left: -15px;
    top: -10px;
}
*/

.testimonial-item cite {
    display: block;          /* Put citation on its own line */
    font-size: 0.95em;       /* Slightly smaller than body text */
    color: #007940;         /* Use a brand green for the name/title */
    font-weight: bold;       /* Make citation stand out slightly */
    font-style: normal;      /* Override default italic for cite if needed */
    margin-top: 10px;        /* Space above the citation */
}

/* ================================== */
/* Client Logos Section Styles        */
/* ================================== */

.client-logos {
    background-color: #ffffff; /* White background for clean look */
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0; /* Subtle separator line */
    border-bottom: 1px solid #e0e0e0; /* Subtle separator line */
}

.client-logos h4 {
    font-size: 20px;      /* Consistent heading size */
    color: #005c28;     /* Darker brand green */
    margin-bottom: 35px; /* Space below heading */
}

.logo-grid {
    display: flex;          /* Use flexbox for alignment */
    flex-wrap: wrap;        /* Allow logos to wrap on smaller screens */
    justify-content: center;/* Center logos horizontally */
    align-items: center;    /* Center logos vertically */
    gap: 50px 60px;         /* Add space between logos (row-gap column-gap) */
    max-width: 900px;       /* Max width for the grid container */
    margin: 0 auto;         /* Center the grid container */
}

.logo-grid img {
    max-height: 60px;       /* Control max logo height */
    max-width: 160px;       /* Control max logo width */
    height: auto;           /* Maintain aspect ratio */
    width: auto;            /* Maintain aspect ratio */
    object-fit: contain;    /* Ensure logo fits within dimensions without distortion */
    /* Optional: subtle effect to make logos blend more */
    /* filter: grayscale(80%) opacity(0.8); */
    /* transition: filter 0.3s ease, opacity 0.3s ease; */
}

/* Optional: remove grayscale/opacity on hover */
/*
.logo-grid img:hover {
    filter: grayscale(0%) opacity(1);
}
*/

/* Responsive Adjustments for Logos */
@media (max-width: 768px) {
    .logo-grid {
        gap: 40px 50px; /* Slightly reduce gap on medium screens */
    }

    .logo-grid img {
        max-height: 50px;
        max-width: 130px;
    }
    .client-logos h4 {
         font-size: 18px;
    }
}

@media (max-width: 480px) {
    .logo-grid {
        gap: 30px 40px; /* Further reduce gap on small screens */
    }
     .logo-grid img {
        max-height: 45px;
        max-width: 110px;
    }
     .client-logos h4 {
         font-size: 17px;
    }
}

/* ==================================
/* General Page Padding
/* ================================== */

main {
    padding-top: 100px; /* Adjust based on final header height */
    padding-bottom: 40px;
}

/* Adjust padding for smaller screens where header might change */
@media (max-width: 768px) {
    /* main {
        padding-top: 140px; /* Increased padding for potentially taller stacked header - REMOVED */
    /* } */

    #partners h2 {
        margin-top: 40px; /* Add specific margin above partners heading on small screens - Increased */
    }
}


/* ==================================
/* Team Page Styles
/* ================================== */

#team .container,
#partners .container,
#press .container /* Add container class to these sections if not present */
{
    width: 80%;
    margin: 0 auto;
}

#team h2, #partners h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: #1c6f33; /* Match header color */
}

/* Specific heading style for Press page if needed, otherwise it uses the above */
#press h2 {
    text-align: center; 
    margin-bottom: 20px; /* Less margin maybe */
    font-size: 2em;
    color: #1c6f33; 
}


.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

.team-member {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    width: 100%; /* Ensure takes full grid column width */
    max-width: 300px; /* Optional: prevent excessive stretching */
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    border-radius: 50%;
    margin-bottom: 15px;
    width: 150px; /* Fixed width */
    height: 150px; /* Fixed height */
    object-fit: cover; /* Ensure image covers the area well */
}

.team-member h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #1c6f33;
    font-size: 1.2em;
}

.team-member p {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
}

.team-member a {
    color: #007940;
    text-decoration: none;
    font-weight: bold;
}

.team-member a:hover {
    text-decoration: underline;
}

/* ==================================
/* Partners Page Styles
/* ================================== */

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px; /* Increased gap for logos */
    align-items: center; /* Vertically align logos */
    justify-items: center;
}

.partner-logo {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex; /* Use flex to center image within */
    justify-content: center;
    align-items: center;
    min-height: 100px; /* Ensure consistent height */
    width: 100%; /* Take full column width */
}

.partner-logo img {
    max-width: 100%;
    max-height: 80px; /* Limit logo height */
    height: auto;
}

/* ==================================
/* Press Page Styles
/* ================================== */

/* Container for flex layout already in HTML, refine styles */
.press-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 30px;
    width: 80%; /* Use container width */
    margin: 20px auto 0 auto; /* Add margin */
}

.press-sidebar {
    flex: 0 0 200px; /* Fixed width, don't grow or shrink initially */
    border-right: 1px solid #ddd;
    padding-right: 20px;
}

.press-sidebar h3 {
    color: #1c6f33;
    margin-top: 0;
    margin-bottom: 15px;
}

.press-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.press-sidebar li {
    margin-bottom: 10px;
}

.press-sidebar a {
    text-decoration: none;
    color: #007940;
}

.press-sidebar a:hover {
    text-decoration: underline;
}

.press-content {
    flex: 1; /* Take remaining space */
    min-width: 300px; /* Prevent content from getting too squished */
    padding-left: 20px;
}

.press-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.press-item h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #1c6f33;
    font-size: 1.1em;
}

.press-item p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 0.95em;
    color: #333;
}

.press-item p:last-of-type {
    margin-bottom: 15px; /* More space before 'Read More' */
}

.press-item a {
    color: #007940;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
}

.press-item a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for Press Page */
@media (max-width: 768px) {
    .press-container {
        flex-direction: column;
    }

    .press-sidebar {
        flex-basis: auto; /* Allow sidebar to take full width */
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-right: 0;
        padding-bottom: 20px; /* Space below sidebar */
        margin-bottom: 30px; /* Space between sidebar and content */
    }

    .press-content {
        padding-left: 0; /* Remove padding when stacked */
    }
}

/* General Container Adjustments for smaller screens */
@media (max-width: 1024px) {
    #team .container,
    #partners .container,
    .press-container /* Adjust press container width directly */
    {
        width: 90%;
    }
}

@media (max-width: 480px) {
    #team h2, #partners h2, #press h2 {
        font-size: 1.6em; /* Slightly smaller */
    }

    .team-grid {
        grid-template-columns: 1fr; /* Stack team members */
        gap: 20px;
    }

    .partner-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Smaller min size */
        gap: 15px;
    }

    .press-sidebar {
        flex: 0 0 auto; /* Reset flex basis */
    }

     .press-sidebar h3{
        font-size: 1.2em;
     }

     .press-item h4 {
        font-size: 1em;
     }
}

/* ==================================
/* Optional Partner Logo Backgrounds
/* ================================== */

.partner-logo.bg-blue {
    background-color: #4285F4; /* Example Google Blue */
}

.partner-logo.bg-lightblue {
    background-color: #ADD8E6; /* Standard Light Blue */
}

.partner-logo.bg-lightgrey {
    background-color: #f4f4f5; /* Standard Light Grey */
}

.partner-logo.bg-darkgrey {
    background-color: #333333; /* Standard Dark Grey */
}

/* Add more background classes as needed */


/* Responsive adjustments for Press Page */
@media (max-width: 768px) {
}

/* ================================== */
/* Banner Image                       */
/* ================================== */

.banner {
    display: flex; /* Enable Flexbox */
    align-items: center; /* Center vertically (optional but good practice) */
    background-color: #f5f5f5; /* Match body background or choose another */
    overflow: hidden; /* Prevent potential overflow issues */
}

.banner img {
    width: 100%; /* CHANGED - Force image to take full container width */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
}