/* --- Global Styles & Variables --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #097e24;
    --secondary-color: #2ecc71;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --text-color: #333333;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Montserrat', sans-serif;
    --border-radius: 8px;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --container-max-width: 800px; /* Slightly narrower for better single-column readability */
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 20px;
}

/* --- Container --- */
.container {
    /* Changed max-width for better single column focus */
    max-width: var(--container-max-width);
    margin: 20px auto;
    padding: 30px; /* Increased padding slightly */
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* --- Header / Intro Section --- */
.intro-section {
    text-align: center;
    margin-bottom: 50px; /* Increased space below intro */
}

/* Style for the new introductory image */
.intro-image {
    max-width: 100%; /* Ensure image is responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: var(--border-radius); /* Optional: round corners */
    margin-bottom: 30px; /* Space below the image */
    display: block; /* Needed for margin auto centering */
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow); /* Optional shadow for the intro image */
}


.intro-slider {
    position: relative;
    max-width: 100%;
    margin: 0 auto 30px auto;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: #eee;
    /* Important - no fixed height here */
    height: auto;
    /* Let height changes be smooth */
    transition: height 0.4s ease-in-out;
    line-height: 0; /* Critical: removes extra space from line-height */
    font-size: 0; /* Removes any potential whitespace between elements */
}

.slides {
    display: flex; /* Aligns slides horizontally */
    transition: transform 0.5s ease-in-out;
    /* No height constraint - will be determined by content */
    height: auto;
    width: 100%;
    line-height: 0;
    font-size: 0;
}

.slide {
    flex: 0 0 100%; /* Each slide takes exactly 100% width of container */
    width: 100%;
    height: auto; /* Let height be determined by content */
    font-size: 0;
    vertical-align: top; /* Prevent any alignment issues */
}

.slide-image {
    width: 100%; /* Full width */
    height: auto; /* CRITICAL: height auto maintains aspect ratio */
    max-width: 100%;
    display: block; /* Remove any extra space */
    /* No object-fit property - let image display at natural ratio */
    margin: 0;
    padding: 0;
    vertical-align: top;
}

/* Styling for the navigation buttons */
.slider-btn {
    position: absolute; /* Position buttons over the slider */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Fine-tune vertical centering */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%; /* Make buttons circular */
    width: 40px; /* Fixed width */
    height: 40px; /* Fixed height */
    display: flex; /* Center icon inside button */
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease; /* Smooth hover effect */
    z-index: 10; /* Ensure buttons are above images */
    font-size: 20px; /* Reset font size for buttons */
    line-height: 1;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Darker background on hover */
}

.prev-btn {
    left: 15px; /* Position previous button on the left */
}

.next-btn {
    right: 15px; /* Position next button on the right */
}

/* Optional: Slightly adjust intro text position if needed */
.intro-section h1 {
    margin-top: 10px; /* Add a bit of space above H1 if slider feels too close */
}

/* --- Adjustments within the @media query for smaller screens --- */
@media (max-width: 600px) {
    .slide-image {
        height: auto;
    }

    .slider-btn {
        font-size: 16px;
        padding: 8px 12px;
        width: 35px;
        height: 35px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

.intro-section h1 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.intro-section p {
    font-size: 1.1em;
    color: #555;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Activities List (Replaces Activities Grid) --- */
.activities-list {
    display: flex; /* Use flexbox */
    flex-direction: column; /* Stack items vertically */
    gap: 40px; /* Space between the activity cards */
    margin-bottom: 40px;
}

/* --- Activity Card Styling (Largely the same, but now full width) --- */
.activity-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    /* Padding is adjusted because image handling changed slightly */
    padding: 0 0 25px 0; /* No horizontal padding, padding bottom for button */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Cards will naturally take full width of the flex container */
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.activity-card h2 {
    font-family: var(--heading-font);
    margin-top: 20px; /* Space above title */
    margin-bottom: 10px;
    font-size: 1.6em; /* Slightly larger title */
    font-weight: 700;
    padding: 0 20px; /* Add horizontal padding for text content */
}

.activity-card p {
    margin-bottom: 25px; /* Space below description */
    flex-grow: 1;
    color: #666;
    padding: 0 20px; /* Add horizontal padding for text content */
    font-size: 1.1em; /* Slightly larger text */
    line-height: 1.7; /* Better line spacing */
}

/* --- Activity Image Styling (Adjusted for full-width card) --- */
.activity-image {
    width: 100%; /* Make image fill the card width */
    height: 250px; /* Adjusted height for single column */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee; /* Still useful separator */
    /* No negative margins needed now as card has no horizontal padding */
}

/* --- Button Styling (Adjusted margin) --- */
.activity-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 14px 30px; /* Slightly larger button */
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: auto; /* Pushes button to the bottom */
    align-self: center; /* Center button within the card */
}

.activity-button:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    cursor: pointer;
}

/* --- Footer Styling --- */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 0.9em;
}

/* --- Responsive Adjustments --- */
/* Media query might be less critical now for layout, but still useful for fine-tuning */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        margin: 10px auto;
        padding: 20px; /* Adjust container padding */
        width: 95%; /* Allow container to be almost full width */
    }

    .intro-section h1 {
        font-size: 1.6em; /* Adjust heading size */
    }
    .intro-section p {
        font-size: 1em; /* Adjust intro text size */
    }

    .activities-list {
        gap: 30px; /* Slightly less gap on mobile */
    }

    .activity-image {
        height: 200px; /* Maybe shorter images on mobile */
    }

    .activity-card h2 {
        font-size: 1.4em; /* Adjust card title size */
    }
    .activity-card p {
        font-size: 1em; /* Adjust card text size */
    }

    .activity-button {
        padding: 12px 25px; /* Slightly smaller button on mobile */
    }
}