/* Styles for the main content area */
.site-content {
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh; /* Your change */
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
    box-sizing: border-box;
    border-bottom: 10px solid var(--accent-yellow); /* Your change */
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Your change: Removed background-color here. */
    /* If you still want the overlay effect, you'll need to re-add background-color: rgba(0, 0, 0, 0.5); */
    z-index: 1;
}

.hero-text-container {
    position: relative;
    z-index: 2;
    padding: 0;
    max-width: 100%;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.hero-title {
    font-size: 1.2em;
    font-weight: 400; /* Your change */
    margin: 0;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    text-align: right;
    max-width: 350px; /* Your change */
    color: var(--text-white);
    padding: 10px;
    /* Your change: Removed background-color and border-radius here. */
    /* If you still want the text background, you'll need to re-add them. */
    border-radius: 5px; /* Keeping border-radius for consistency if you re-add background */
}

.key-features-section {
    background-color: var(--light-bg-color);
    padding: 50px 30px 50px 30px; /* Your change */
    position: relative;
    z-index: 10;
}

.features-grid {
    margin-top: -10%; /* Your change */
    margin-left: auto; /* Your change */
    margin-right: auto; /* Your change */
    padding: 50px 30px 50px 30px; /* Your change */
    max-width: 1000px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    z-index: 10;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    padding: 0px; /* Your change */
    border-radius: 8px;
    background-color: var(--text-white);
}

.feature-icon {
    width: 60px; /* Your change */
    height: auto;
    margin-right: 15px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.feature-item h3 {
    font-size: 1em; /* Your change */
    text-transform: uppercase; /* Your change */
    color: var(--header-bg-color);
    margin-top: 0;
}

.feature-item p {
    font-size: 1em; /* Your change */
    color: var(--medium-text);
}

/* --- NEW: Image Gallery and Welcome Grid Section --- */
.gallery-welcome-grid-section {
    padding: 50px 0;
    background-color: var(--text-white);
}

.content-grid-2col { /* Generic 2-column grid class */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center; /* Vertically align items in the grid */
}

.image-gallery-slider { /* Renamed from gallery-wrapper, now for cycling */
    position: relative; /* Needed for absolute positioning of images */
    width: 100%;
    height: 350px; /* Fixed height for the image display area */
    overflow: hidden; /* Hide overflowing images */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.image-gallery-slider .gallery-image { /* Specific to the slider now */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Hidden by default */
    transition: opacity 1s ease-in-out; /* Smooth transition for fading */
}

.image-gallery-slider .gallery-image.active-slide {
    opacity: 1; /* Show active image */
}


/* --- NEW: Our Vision Grid Section --- */
.vision-grid-section {
    padding: 50px 0;
    background-color: var(--light-bg-color);
}

/* Styles for Welcome & Vision Columns (re-used) */
.welcome-column,
.vision-column {
    /* flex: 1; and min-width will now be handled by grid */
    min-width: unset; /* Remove previous flex min-width */
}

/* General Section Titles & Dividers (re-used) */
.section-title {
    font-size: 2em;
    color: var(--header-bg-color);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent-yellow);
    margin-bottom: 25px;
}

.welcome-column h4,
.vision-column h4 { /* Adjusted selector for h4 within columns */
    font-size: 1.1em;
    color: var(--header-bg-color);
    margin-top: 0;
    text-transform: uppercase;
}

.welcome-column p,
.vision-column p { /* Adjusted selector for p within columns */
    color: var(--medium-text);
}


.vision-image-container {
    margin-top: 0; /* Remove top margin if within grid */
    text-align: center;
}

.vision-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Featured Projects Section */
.featured-projects-section {
    padding: 50px 0;
    position: relative; /* Essential for positioning the image and overlay */
    overflow: hidden; /* Hide overflowing parts of the image */
    height: auto; /* Give it a minimum height to see the background */
    display: flex; /* Use flexbox to center content */
    align-items: center;
    justify-content: center;
    color: var(--text-white); /* Ensure text is white over the image */
    border-bottom: 10px solid var(--accent-yellow);
}

.featured-title{
    font-size: 2em;
    color: var(--text-white);
    margin-bottom: 15px;
    text-transform: uppercase;
    text-align: center;
}

.section-background-image { /* NEW: Style for the img tag */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire section */
    transform-origin: top center;
    transform: translateZ(0); /* Enable hardware acceleration for smooth scrolling */
    backface-visibility: hidden; /* Prevent flickering */
    perspective: 1px; /* Required for fixed attachment to work on image tag */
    z-index: -10; /* Behind content and overlay */
}

.section-overlay { /* NEW: Overlay div styling */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent dark overlay */
    z-index: 1; /* On top of image, below content */
}

.featured-projects-section .container {
    position: relative;
    z-index: 2; /* Content above the overlay */
}

.project-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: white;
    color: var(--dark-text);
    margin-bottom: 100px;
}

.project-thumbnail {
    width: 100%;
    height: 95%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.project-text {
    padding: 20px;
    flex-grow: 1;
}

.project-title {
    font-size: 1.4em;
    color: var(--header-bg-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.project-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: var(--accent-yellow);
}

.project-excerpt p {
    font-size: 0.9em;
    color: var(--medium-text);
    margin-bottom: 15px;
}

.project-read-more {
    display: inline-block;
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.project-read-more:hover {
    color: var(--header-bg-color);
}


/* What Can You Do Section */
.what-can-you-do-section {
    padding: 50px 0;
    background-color: var(--body-bg-color);
}

.progress-item {
    margin-bottom: 25px;
}

.progress-title {
    display: block;
    font-size: 1.1em;
    color: var(--header-bg-color);
    margin-bottom: 8px;
}

.progress-wrapper {
    background-color: var(--light-gray-border);
    border-radius: 5px;
    height: 20px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--accent-yellow);
    height: 100%;
    width: 0%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    box-sizing: border-box;
    color: var(--text-white);
    font-size: 0.85em;
    font-weight: bold;
    border-radius: 5px;
}

/* FAQ Section (Accordion) */
.faq-section {
    padding: 50px 0;
    background-color: var(--text-white);
}

.accordion-item {
    border: 1px solid var(--light-gray-border);
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-title {
    background-color: var(--header-bg-color);
    color: var(--text-white);
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-title:hover {
    background-color: rgba(55, 72, 89, 0.9);
}

.accordion-title::after {
    content: '+';
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.accordion-title[aria-expanded="true"]::after {
    content: '-';
    transform: rotate(0deg);
}

.accordion-content {
    padding: 0 20px;
    background-color: var(--light-bg-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.accordion-content p {
    padding: 15px 0;
    margin: 0;
    color: var(--medium-text);
}

/* When accordion is open, expand content */
.accordion-title[aria-expanded="true"] + .accordion-content {
    max-height: 500px;
    padding: 20px;
}

/* Recent Activity Section */
.recent-activity-section {
    padding: 50px 0;
    background-color: var(--body-bg-color);
    text-align: center;
}

.facebook-feed {
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}

/* Mobile Responsiveness for Content Sections */
@media (max-width: 768px) {

    .hero-section {
        position: relative;
        height: 200px; /* Your change */
    }

    .hero-background-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        object-fit: cover;
        z-index: 0;
    }

    .gallery-welcome-grid-section{
        padding: 0 15px;
    }

    .vision-grid-section{
        padding: 0 15px;
    }

    .project-card-grid{
        padding: 0 15px;
    }



    .hero-title {
        font-size: 1em;
        max-width: 200px;
        padding: 5px;
    }

    .key-features-section {
        background-color: var(--light-bg-color);
        padding: 10px; /* Your change */
        position: relative;
        z-index: 10;
    }

    .features-grid {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .feature-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    /* NEW: Grid for mobile - always 1 column on mobile */
    .content-grid-2col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .content-columns {
        flex-direction: column;
        padding: 0 15px;
    }

    .reverse-on-mobile {
        flex-direction: column-reverse;
    }

    .accordion{
        padding: 0 15px;
    }

    .section-title{
        padding: 0 15px;
    }

    .welcome-column,
    .vision-column,
    .what-can-do-text,
    .progress-bars {
        min-width: unset;
        width: 100%;
    }
}