/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

/* Header Styles */
header {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
}

header img {
    width: 150px;
}

.social-media {
    text-align: center;
    padding: 10px 0;
}

.social-media a {
    margin: 0 30px;
    display: inline-block;
}

.social-media img {
    width: 48px;  /* Adjust the size of the icons */
    height: auto;
}


/* Navigation Styles */
nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px; /* Adjusted spacing between nav items */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1em; /* Adjust font size for mobile */
}

/* General Section Styles */
section {
    width: 95%;
    margin: auto;
    padding: 20px;
    border-bottom: 1px solid #ccc;
}

/* Application Section Styles */
#application {
    width: 95%; /* Full width on mobile */
    margin: auto;
}

button {
    background-color: #116b1d;  /* Consistent green color for all buttons */
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    font-size: 1em;  /* Ensure the font size is appropriate */
    text-align: center;
    display: inline-block;  /* Proper alignment and block display */
    margin: 10px 0;  /* Space above and below the button */
    border-radius: 5px;  /* Rounded corners for aesthetics */
    transition: background-color 0.3s;  /* Smooth transition for hover effect */
}

button:hover, button:focus {
    background-color: #0f601a;  /* Slightly darker green on hover and focus for better user experience */
}

/* Products Section Styles */
#products h1 {
    margin-bottom: 20px;
}

#products {
    width: 95%;
    margin: auto;
    padding: 20px;
    text-align: center;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.product {
    width: 100%; /* Full width on mobile */
    background-color: #f0f0f0;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
    box-sizing: border-box;
}

.product img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.price {
    font-size: 1em;
    color: #333;
}

/* Sales Fund Bar Styles */
.fund-bar {
    background-color: #ddd;
    width: 100%;
    height: 20px;
    position: relative;
    border-radius: 5px;
}

.fund-filled {
    background-color: #116b1d;
    height: 100%;
    border-radius: 5px;
    position: relative;
}

.fund-amount {
    position: absolute;
    bottom: 5px;
    right: 0;
    color: black;
    font-weight: bold;
    font-size: 1em; /* Adjusted font size for mobile */
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 10px;
    background-color: #000;
    color: #fff;
}

/* Form Element Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 8px;
    margin: 6px 0;
    box-sizing: border-box;
}

/* About Section Styles */
#about {
    width: 95%;
    margin: auto;
    padding: 20px;
    text-align: left;
}

#about h1 {
    color: #116b1d;
    margin-bottom: 20px;
}

#about p {
    font-size: 1em;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

#subscribe {
    width: 95%;
    margin: auto;
    padding: 20px;
    text-align: center; /* Center align the text and form within the section */
    background-color: #f0f0f0; /* Optional: gives a light background to the section */
    border-radius: 8px; /* Optional: rounded corners for the section */
}

#subscribe h1 {
    color: #116b1d; /* Keeping header styles consistent with your site theme */
}

#subscribe p {
    font-size: 1em;
    margin-bottom: 20px;
}

#subscribe form {
    max-width: 400px; /* Maximum width of the form */
    margin: 0 auto; /* Centers the form horizontally */
}

#subscribe input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px; /* Space between the input field and the button */
    border: 1px solid #ccc;
    border-radius: 4px;
}

#subscribe button {
    width: 100%;
    padding: 10px;
    background-color: #116b1d; /* Button color */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

#subscribe button:hover {
    background-color: #0f601a; /* Darker shade for hover effect */
}


/* FAQ Section Styles */
#faq {
    width: 95%;
    margin: auto;
    padding: 20px;
}

.faq-question {
    background-color: #116b1d;
    color: white;
    padding: 10px 15px;
    width: auto;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    margin-top: 10px;
    font-size: 1.25em;
}

.faq-answer {
    padding: 10px;
    background-color: #f0f0f0;
    display: none; /* Hide by default */
    overflow: hidden;
    font-size: 1em;
    line-height: 1.5;
}

.faq-answer p {
    margin: 10px 0;
}

/* Email Capture Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#video-gallery {
    text-align: center;
    padding: 20px;
    margin: auto;
}

.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.video {
    flex: 1 1 30%; /* Each video takes roughly one third of the container width */
    margin: 10px;
    box-sizing: border-box;
}

iframe {
    width: 100%;
    height: 100%;
    max-width: 360px; /* Limits the maximum width of the video */
    aspect-ratio: 16 / 9;
}



/* Media Queries for Larger Screens */
@media (min-width: 768px) {
    nav ul li a {
        font-size: 1.2em; /* Larger font size for nav text on larger screens */
    }

    #products, #application, #about, #faq {
        width: 75%; /* Adjust */
    }
}

        /* Media Queries for Smaller Mobile Devices */
@media (max-width: 550px) {
    header img {
        width: 120px; /* Smaller logo for smaller screens */
    }

    nav ul li {
        margin-right: 10px; /* Smaller margin for navigation items */
    }

    nav ul li a {
        font-size: 0.8em; /* Smaller font size for navigation links */
    }

    .social-media a {
        margin: 0 5px; /* Smaller margin between social media icons */
    }

    .social-media img {
        width: 36px; /* Smaller social media icons */
    }

    section, #application, #products, #about, #faq {
        padding: 10px; /* Reduced padding for content sections */
    }

    button {
        padding: 8px 15px; /* Smaller button padding */
        font-size: 0.9em; /* Smaller font size for buttons */
    }

    .product {
        padding: 5px; /* Reduced padding for product items */
    }

    #faq .faq-question, .faq-answer {
        padding: 8px 10px; /* Smaller padding for FAQ questions and answers */
    }

    .faq-question {
        font-size: 0.9em; /* Smaller font size for FAQ questions */
    }

    .faq-answer p {
        font-size: 0.9em; /* Smaller font size for FAQ answer text */
    }
}