/* Styles specific to the Get Involved page */

/* Intro Section */
.get-involved-intro {
    padding: 50px 0;
    background-color: var(--text-white);
    text-align: center;
}

.get-involved-intro .page-title {
    font-size: 2.8em;
    color: var(--header-bg-color);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.get-involved-intro .intro-text {
    font-size: 1.1em;
    color: var(--dark-text);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Projects List Section (Text Slider & Image Column) */
.projects-list-section {
    padding: 50px 0;
}

.project-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0; /* Your preferred gap */
    align-items: stretch;
}

.projects-text-column {
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-header { /* Your custom header for project list */
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 25px; /* Space below header */
}

.projects-list-title {
    font-size: 1.5em;
    color: var(--header-bg-color);
    margin-top: 0;
    margin-bottom: 0;
    text-transform: uppercase;
}

.color-divider { /* Your custom divider next to title */
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-yellow);
    border-radius: 2px;
    margin-right: 10px;
}

.projects-list-title::before { /* Your custom brackets */
    content: "[";
    font-size: 1.6em;
    color: #ffab00;
    display: inline-block;
    margin-right: 4px;
    line-height: 1em;
    position: relative;
    top: -1px;
}

.projects-list-title::after { /* Your custom brackets */
    content: "]";
    font-size: 1.6em;
    color: #ffab00;
    display: inline-block;
    margin-left: 4px;
    line-height: 1em;
    position: relative;
    top: -1px;
}

/* Styling for the cycling project content */
.projects-slider-wrapper { /* NEW: Wrapper for slider content and controls */
    position: relative;
    min-height: 500px; /* Increased min-height to ensure space for controls and content */
    margin-bottom: 40px; /* Space for dots below slider */
}

.projects-slider-content {
    position: relative;
    height: 100%; /* Fill parent wrapper */
    overflow: hidden;
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    margin-left: 60px;
    margin-right: 60px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.project-slide.active-project-slide {
    opacity: 1;
}

.project-slide h4 {
    font-size: 1.4em;
    color: var(--header-bg-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.project-slide p {
    font-size: 1em;
    color: var(--dark-text);
    line-height: 1.6;
}

/* NEW: Slider Navigation Arrows */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 5; /* Above slides */
    pointer-events: none; /* Allows clicks to pass through if not on button */
}

.slider-arrow {
    background-color: var(--light-gray-border);
    border: none;
    color: var(--accent-yellow);
    padding: 0;
    cursor: pointer;
    font-size: 3em;
    border-radius: 50%; /* Round buttons */
    pointer-events: all; /* Make button clickable */
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Fixed width/height for circular shape */
    height: 40px;
}

.slider-arrow:hover {
    background-color: var(--accent-yellow);
    color: var(--text-white);
}


.slider-arrow svg { /* Styling for the SVG icons within arrows */
    width: 24px;
    height: 24px;
}


/* NEW: Slider Dots */
.slider-dots {
    position: absolute;
    bottom: -30px; /* Position below the slider wrapper */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    pointer-events: none; /* Allows clicks to pass through if not on dot */
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(55, 72, 89, 0.4);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all; /* Make dot clickable */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: var(--accent-yellow);
    transform: scale(1.2);
}


.projects-image-column {
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-cycle-wrapper {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    border-radius: 4px;
}

.project-cycler-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.project-cycler-image.active-cycler-image {
    opacity: 1;
}


/* Lobola Boxes Section */
.lobola-boxes-section {
    padding: 50px 0;
    background-color: var(--light-bg-color);
}

.lobola-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    align-items: center;
}

.lobola-image-column {
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lobola-image {
    max-width: 50%;
    height: auto;
    border-radius: 4px;
}

.lobola-text-column {
    padding: 20px;
    border-radius: 8px;
}

.lobola-heading {
    font-size: 2em;
    color: var(--header-bg-color);
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Make a Difference Section (Donation Details) */
.make-difference-section {
    padding: 80px 0;
    background-color: var(--header-bg-color);
    color: var(--text-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.make-difference-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.make-difference-section .container {
    position: relative;
    z-index: 2;
}

.section-sub-heading {
    font-size: 1.8em;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.section-main-heading {
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 400;
}

.make-difference-section .divider {
    background-color: var(--accent-yellow);
    margin: 0 auto 30px auto;
    width: 80px;
    height: 4px;
}

.bank-details-content p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 1em;
}

.section-thank-you-heading {
    font-size: 2.2em;
    margin-top: 40px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Responsive adjustments for Get Involved page */
@media (max-width: 768px) {
    .get-involved-intro .page-title {
        font-size: 2.2em;
    }
    .get-involved-intro .intro-text {
        font-size: 1.2em;
    }

    .project-list-grid,
    .lobola-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Reverse order for image/text columns on mobile */
    .project-list-grid {
        flex-direction: column-reverse; /* Put image above text column */
    }
    .lobola-grid {
        flex-direction: column-reverse; /* Put image above text column */
    }

    .projects-text-column,
    .projects-image-column,
    .lobola-image-column,
    .lobola-text-column {
        padding: 20px;
    }

    .projects-list-title {
        font-size: 1.8em;
    }
    .project-slide h4 {
        font-size: 1.2em;
    }
    .project-slide p {
        font-size: 0.9em;
    }

    .lobola-heading {
        font-size: 1.8em;
    }

    .section-sub-heading,
    .section-main-heading,
    .section-thank-you-heading {
        font-size: 1.8em;
    }
    .bank-details-content p {
        font-size: 1em;
    }

    /* Adjust slider wrapper height for mobile */
    .projects-slider-wrapper {
        min-height: 200px; /* Smaller height on mobile */
        margin-bottom: 50px; /* More space for dots when content wraps */
    }
}