/* styles2.css */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FBFBF3; /* Ecru White */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #316128; /* Woodland */
    color: #FBFBF3;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.nav-logo {
    background-color: #FFFFFF; /* White */
    border-radius: 15px; /* Rounded corners */
    padding: 0px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 210px; /* Slightly larger than the image */
    height: 110px; /* Slightly larger than the image */
}

.nav-logo img {
    height: 100px;
    width: auto;
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.nav-links a {
    color: #FBFBF3;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 100%;
    text-align: center;
}

.nav-links a:hover {
    background-color: #406098; /* San Marino */
}

.nav-links a.active {
    background-color: #E0CC06; /* Corn */
    color: #316128; /* Woodland */
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    width: calc(100% - 250px);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

header.hero {
    background: linear-gradient(rgba(49, 97, 40, 0.7), rgba(49, 97, 40, 0.7)), url('hero-image.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 150px 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
    border-radius: 10px;
}

.hero-logo {
    max-width: 300px;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-buttons a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #316128; /* Woodland color */
    color: #FBFBF3; /* Ecru White color */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.hero-buttons a:hover {
    background-color: #406098; /* San Marino color */
}

.social-icon {
    height: 60px; /* Restored original size */
    width: auto;
    display: block;
    margin: 10px auto 0;
    background: none; /* Ensure no background color */
}

main {
    padding-top: 20px; /* Ensure content is below the fixed navbar */
}

.content {
    max-width: 800px;
    margin: 2em auto;
    padding: 2em;
    text-align: center;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Adjusted Footer */
.footer {
    background-color: #FBFBF3; /* Ecru White */
    color: #316128; /* Woodland */
    text-align: center;
    padding: 0; /* Removed extra padding */
    border-top: none;
    width: calc(100% - 250px); /* Align with main content */
    margin-left: 250px;
    box-sizing: border-box;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px; /* Adjusted to match the other pages */
    padding: 10px 0; /* Ensuring consistent spacing */
}

.footer-email {
    color: #316128; /* Woodland */
    text-decoration: none;
}

.footer-email:hover {
    text-decoration: underline;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-media a:hover {
    text-decoration: none;
}

/* Additional styles for the Garden Registration Image */
.registration-image {
    text-align: center;
    margin: 20px 0;
}

/* Ensure the image is fully responsive */
.responsive-image {
    max-width: 100%; /* Image will take up 100% of its container */
    height: auto;    /* Maintain aspect ratio */
    display: block;
    margin: 20px auto;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 10px 0;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 10px;
    }

    .footer {
        width: 100%;
        margin-left: 0;
    }

    .hero-logo {
        max-width: 200px;
    }

    .social-icon {
        height: 40px; /* Adjust size for mobile */
    }

    .responsive-image {
        max-width: 100%; /* Adjusts image size for smaller screens */
    }
}

/* Footer Styling: Accessibility */
@media screen and (max-width: 600px) {
    .footer-content {
        font-size: 14px;
        padding: 10px;
    }

    .social-media {
        margin-top: 10px;
    }

    .social-icon {
        height: 60px; /* Keep original size for mobile as well */
    }
}

/* Contact Page Specific Styles */
#contact {
    text-align: center;
    padding: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px; /* Ensures it doesn't get too wide on larger screens */
}

#contact img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    #contact {
        padding: 15px;
        margin: 10px;
    }
}
