/* Global styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar Container */
nav {
    background: #3a9422; /* Green background for navbar */
    color: white;
    width: 100%;
    padding: 10px 0;
    position: relative;
}

/* Flex container for the navbar content */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 15px;  /* Add horizontal padding for spacing */
    flex-wrap: wrap;  /* Allow for flexible wrapping on small screens */
}

/* Hamburger Menu for Mobile */
nav .menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;   /* Adjusted width */
    height: 20px;  /* Adjusted height */
    cursor: pointer;
    position: absolute;  /* Position it at the top-right corner */
    top: 15px;   /* Move it down a bit for better spacing */
    right: 15px;  /* Align it to the right edge of the navbar */
    z-index: 2;  /* Ensure the hamburger icon is on top of other elements */
    background-color: transparent;  /* Remove the background color */
    border: none;  /* Remove any border if present */
}

/* Hamburger Bars */
nav .menu-toggle .bar {
    background-color: white;  /* White color for the bars */
    height: 4px;  /* Adjusted thickness of the bars */
    width: 100%;
    border-radius: 2px; /* Slightly rounded edges for the bars */
    transition: all 0.3s ease;  /* Smooth transition for menu animation */
}

/* Logo container for mobile */
.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 40px;  /* Add margin-top to create space below the hamburger icon */
}

/* Left logo */
nav .logo img {
    height: 60px;
}

/* Right logo */
nav .logo2 img {
    height: 100px;
}

/* Centered text */
.navbar-text {
    text-align: center;
    flex-grow: 1;
}

.navbar-text h1 {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

/* Navbar links */
nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 10px;  /* Reduced spacing between items further */
    margin: 0;
    padding: 0;
}

/* Navbar link item styles */
nav ul li {
    display: inline-block;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 6px 10px;  /* Reduced padding for more compact items */
    font-size: 12px;  /* Even smaller font size */
    font-weight: normal;
    transition: background-color 0.3s ease;
}

/* Hover Effect */
nav ul li a:hover {
    background-color: #555;
    border-radius: 4px;
}

/* Horizontal Sliding Menu (Top layer) */
nav ul.show {
    display: flex;
    position: fixed;
    top: 0;
    left: -100%;  /* Initially hide the menu off the screen */
    background-color: #3a9422;
    height: 50px;  /* Thin height for the horizontal menu */
    width: 100%;  /* Full width */
    padding: 0 10px;  /* Reduced padding for compactness */
    box-sizing: border-box;
    transition: left 0.3s ease;  /* Smooth sliding transition */
    z-index: 1;  /* Ensure the menu is above other content */
}

/* Show menu when hamburger is clicked */
nav ul.show.active {
    left: 0;  /* Slide the menu in from the left */
}

/* Each menu item in the horizontal menu */
nav ul.show li {
    margin: 0 5px;  /* Further reduce margin between items */
}

/* Style for active mobile menu items */
nav ul.show li a {
    padding: 6px 10px;  /* Reduced padding for compactness */
    font-size: 10px;  /* Make the font even smaller for the hamburger menu */
    text-align: center;  /* Center the text horizontally */
    display: inline-block;
}

/* Media Queries for mobile responsiveness */
@media (max-width: 600px) {
    /* Hide navbar links by default on small screens */
    nav ul {
        display: none;
    }

    /* Show the hamburger menu */
    nav .menu-toggle {
        display: flex;  /* Make it visible on small screens */
    }

    /* Adjust navbar items to center them */
    .navbar-container {
        flex-direction: column;
        align-items: center;
    }

    /* Stack navbar items vertically on mobile */
    nav ul.show {
        display: flex;
        flex-direction: row;
    }

    nav ul li {
        width: auto;  /* Allow each item to take its natural width */
    }

    nav ul li a {
        padding: 6px 10px;  /* Reduced padding for easier tapping */
        font-size: 10px;  /* Smaller font size for mobile */
        text-align: center;
    }

    /* Button for more information */
    .info-button {
        display: block; /* Show the button on small screens */
        text-align: center;
        background-color: #000000; /* Dark orange color */
        color: white;
        padding: 12px 20px;
        font-size: 16px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin-top: 20px;
    }

    .info-button:hover {
        background-color: #e64a19; /* Darker orange on hover */
    }
}

@media (max-width: 374px) {
    .logo img {
        height: 50px;
    }

    .logo2 img {
        height: 50px;
    }

    .navbar-text h1 {
        font-size: 18px; /* Reduce the size of the text on very small screens */
    }

    .info-button {
        font-size: 12px; /* Smaller button text */
        padding: 8px 14px; /* Adjust padding for smaller screen */
    }
}

/* Hero Background Section */
.hero-background {
    background-image: url('images/Home.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    height: 100%;
    flex: 1;
    position: relative;
    transition: background-image 1s ease-in-out, opacity 1s ease-in-out;
    opacity: 1; /* Ensure it's visible */
}

/* Smooth transition for background image change */
.hero-background.fade {
    opacity: 0;  /* Fade out the current image */
}

/* You can add a specific effect if needed for the content */
.hero-content {
    z-index: 2; /* Ensure the content is always visible over the background */
}


/* Card styles */
.card {
    background-color: rgba(0, 0, 0, 0.7); /* Black transparent background */
    padding: 15px; /* Some padding around the text */
    margin: 15px; /* Some margin around the card */
    border-radius: 10px; /* Rounded corners for the card */
    color: white; /* White text color for contrast */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Subtle shadow for better visibility */
    display: none; /* Initially hidden on mobile */
}

.card h5 {
    font-size: 12px; /* Smaller font size for all screens */
    line-height: 1.5; /* Increase line-height for readability */
    margin: 0; /* Remove any default margin */
    font-weight: normal; /* Make text a bit lighter */
}

/* Button for more information */
.info-button {
    display: none; /* Hidden by default */
    background-color: #000000; /* Dark orange color */
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.info-button:hover {
    background-color: #e64a19; /* Darker orange on hover */
}

@media (max-width: 600px) {
    .info-button {
        display: block; /* Show the button on small screens */
        text-align: center;
    }

    /* Adjust the size of the button for smaller screens */
    .info-button {
        font-size: 14px;
        padding: 10px 16px;
    }
}

@media (max-width: 374px) {
    .info-button {
        font-size: 12px; /* Smaller button text */
        padding: 8px 14px; /* Adjust padding for smaller screen */
    }
}

/* Ensure the card is displayed on larger screens without the button */
@media (min-width: 601px) {
    .card {
        display: block; /* Always show the card on larger screens */
    }

    .info-button {
        display: none; /* Hide the button on larger screens */
    }
}
.site-footer {
    background-color: #3a9422;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content,
.footer-links,
.footer-mission,
.footer-contact {
    margin-bottom: 20px;
    max-width: 800px; /* Limit width for readability */
}

.social-links a {
    color: #ffa500;
    margin: 0 10px;
    text-decoration: none;
}

.social-links a:hover {
    text-decoration: underline;
}

.footer-links h3,
.footer-mission h4,
.footer-contact h4 {
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 5px 0;
}

.footer-links ul li a {
    color: #ffffff;
    text-decoration: none;
}

.footer-links ul li a:hover {
    color: #ffa500;
}

.footer-bottom {
    border-top: 1px solid #ffffff;
    padding-top: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }

    .footer-content,
    .footer-links,
    .footer-mission,
    .footer-contact {
        margin-bottom: 15px;
        text-align: center; /* Center text on smaller screens */
    }
}
/* Initially hide the info button */
.info-button {
    display: none; /* Hidden by default */
}

/* Show the info button on smaller screens */
@media (max-width: 600px) {
    .info-button {
        display: block; /* Show the button on small screens */
        text-align: center;
        background-color: #000000; /* Dark orange color */
        color: white;
        padding: 12px 20px;
        font-size: 16px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin-top: 20px;
    }

    .info-button:hover {
        background-color: #e64a19; /* Darker orange on hover */
    }
}

/* Show the info button and card on larger screens */
@media (min-width: 601px) {
    .info-button {
        display: block; /* Show the button on large screens too */
        text-align: center;
        background-color: #000000; /* Dark orange color */
        color: white;
        padding: 12px 20px;
        font-size: 16px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin-top: 20px;
    }

    .info-button:hover {
        background-color: #e64a19; /* Darker orange on hover */
    }

    .card {
        display: block; /* Show the card on larger screens */
    }
}
/* Initially hide the modal */
.modal {
    display: none;  /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);  /* Semi-transparent background */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top of other content */
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    color: black;
}

.modal-close {
    font-size: 30px;
    color: black;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.modal-close:hover {
    color: #000000; /* Color change on hover */
}

/* Show the modal on small screens when the info button is clicked */
@media (max-width: 600px) {
    .info-button {
        display: block;  /* Show the button on small screens */
        text-align: center;
        background-color: #000000;
        color: white;
        padding: 12px 20px;
        font-size: 16px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin-top: 20px;
    }

    .info-button:hover {
        background-color: #000000;
    }
}

@media (min-width: 601px) {
    /* Show the card directly on larger screens */
    .card {
        display: block;
    }
    
    .info-button {
        display: block;  /* Show the button on large screens as well */
        text-align: center;
        background-color: #000000;
        color: white;
        padding: 12px 20px;
        font-size: 16px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin-top: 20px;
    }

    .info-button:hover {
        background-color: #000000;
    }
}


