body {
    margin: 0;
    padding: 0px;
    font-family: Arial, sans-serif;
    overflow-x: hidden;}

.containers {
    text-align: center;

}
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

header{
    margin-top: 30px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    max-height: 50px;
    margin-left: 70px;

}

@media (max-width: 768px) {
   nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        display: flex;
        flex-wrap: wrap;
    }

    nav ul li {
        padding: 10px 0;
        width: 100%;
        margin: 0 10px;
        display: block;
    }

    nav ul li a {
        padding: 10px 0;
        width: 100%;
        text-align: left;
    }

    
     .contact-button {
        width: 100%;
        margin-left: 0;
        margin-top: 10px; /* Adds some space above the button */
    }

    .contact-button a {
        width: 100%;
        text-align: center;
        padding: 10px 5px;
        margin: 10px 0;
        font-size: 16px; /* Slightly smaller font size */

        
    }
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin-right: 25px;
    

}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    position: relative;
}

nav ul li {
    list-style: none;
    padding: 0 10px;
    position: relative;
    display: block;
}

nav ul li a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: #6b6767;
    transition: 0.3s ease;
    font-family: 'DM Sans' , Arial , sans-serif;
    padding: 20px;
}

nav ul li a.active {
    color: #000000; /* Bright color for active link */
}

nav ul li a:hover,
nav ul li a.active {
    color: #000000;
}

navbar li a.active::after,
navbar li a:hover::after {
    content: "";
    width: 30%;
    height: 2px;
    background: #ffffff;
    position: absolute;
    bottom: -4px;
    left: 20px;
}

/*nav ul li a:hover {
    text-decoration: underline;
}*/

.contact-button a {
    background-color: #46AF86;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 18px;
    margin-left: 20px;
    white-space: nowrap; /* Prevents text from wrapping */

}

.contact-button a:hover {
    background-color: #218838;
}

header input[type="text"] {
    width: 30%;
    padding: 15px 30px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: #F6F6F6;
}

header input[type="text"]:focus {
    border-color: #ccc;
}

header input::placeholder{
    color: #BFBFBF
}


 h2.welcome {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    color: #554348;
    margin-bottom: -20px;
    margin-top: 80px;

}

 h2 .brand {
    margin-left: 10px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 36px;
    color: #4C9A48;
    margin-bottom: -2px;

}

h2 .agro {
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 36px;
    color: #81BB45;
    margin-bottom: -2px;
}

.containers h3 {
    color: #554348;
    font-size: 30px;
    font-family: 'fredoka', sans-serif;
    font-weight: 500;
}


header {
    margin-bottom: 20px;


}

.categories {
    margin-bottom: 20px;
    padding: 10px 40px;
    text-align: left;
    margin-left: 40px;
}

.categories h2{
    text-align: left;
    font-size: 28;
    font-family: 'fredoka' , sans-serif;
    font-weight: 500;
    color: #554348;
    margin-left: 25px;
}

.categories button {
    padding: 10px;
    margin-left: 25px;
    
}

.category-btn {
    background-color: #fff;
    color: #4C4A4A;
    padding: 30px 50px;
    
    margin-left: 1px;
    border: 2px solid #ccc;
    border-radius: 25px;
    cursor: pointer;
    margin-bottom: -40px;
    font-family: 'DM Sans', sans-serif;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}


.category-btn:hover, .category-btn.active {
    background-color: #46AF86;
    color: #fff;
    border-color: #46AF86;
}

.category-btn.active {
    background-color: #46AF86;
    color: #fff;
}


.products-section {
    text-align: center;
    padding: 50px 65px;
}

.products-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #4E4E4E;
    font-family: 'fredoka', sans-serif;
    font-weight: 500;
    text-align: left;
    margin-left: 50px;
}

.products-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: -40px;
    padding: 0 40px;
}

.product-card {
    
    /*position: relative;
    background: #fff;
    border: 1px solid #ddd;
    padding: 40px;
    width: 180px;
    box-shadow: 0 2px 4px rgba(0.1, 0.1, 0.1, 0.1);
    justify-content: space-between;*/

    flex: 0 1 calc(20% - 20px); /* 5 cards per row, accounting for padding */
    box-sizing: border-box; /* Ensures padding is included in width calculation */
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px; /* Reduced padding */
    width: calc(20% - 20px); /* Ensures cards fit within the container */
    box-shadow: 0 2px 4px rgba(0.1, 0.1, 0.1, 0.1);
    position: relative;
}




.product-card img {
    align-items: center;
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

.product-card img:hover {
    transform: scale(1.05);
    transition: trasform 0.3s ease;
}

.product-card h3 {
    text-align: center;

    font-size: 1.2em;
    margin-bottom: 10px;
    margin-top: 20px;
    color: #000000;
    font-family: 'fredoka', sans-serif;
    font-weight: 500;
    text-align: center;

    /*justify-content: space-between;*/
    
}

.product-card p {
    text-align: center;
    font-size: 0.6em;
    color: #555;
    margin-bottom: 40px;
    width: 100%;
}



.know-more {
    color: #00C9A7;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    display: block; /* Ensures it takes full width of the container */
    margin-top: auto;
    font-family: 'fredoka', sans-serif;
    font-weight: 500;
    transform: translateX(-50%);
    transition: color 0.3s ease, transform 0.3s ease;
    position: absolute;
    bottom: 20px;
    left: 50%;
    
    
}



.know-more:hover{
    font-size: 15px; /* Adjust the size as needed */

}

.contact-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding-bottom: -60px;
    margin-top: -20px;
}

.contact-form-container {
    background-color: #d1f0c8;
    padding: 20px;
    width: 50%;
    height: 580px;
    border-radius: 15px;
    margin-left: -88px;
    margin-top: 50px;
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 70px;
}

.contact-form-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    margin-left: 45px;

}

.contact-form-container form {
    display: flex;
    flex-direction: column;
    padding: 45px;
    margin-bottom: -20px;
}

.contact-form-container label {
    margin-bottom: 5px;
}

/*.contact-form-container input,
.contact-form-container textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}*/

.contact-form-container input,
.contact-form-container textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-bottom: 2px solid #333;
    background-color: transparent;
    border-radius: 0;
    width: 100%;
    /* Ensures full width */
    box-sizing: border-box;
    /* Ensures padding is included in the element's total width */
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    outline: none;
    border-bottom: 2px solid #28a745;
}

.input-field {
    background-color: #A9D7AF;
    /* Light green background */
    border: none;
    border-bottom: solid 2px #333;
    /* Dark line under input field */
    margin-bottom: 15px;
}

.input-field::placeholder {
    color: #666;
    /* Placeholder text color */
}


.contact-form-container button {

    padding: 10px 50px;
    font-size: 14px;
    background-color: #46AF86;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: fit-content;
    align-self: center;
}

.contact-form-container button:hover {
    background-color: #218838;
}

.image-container {
    width: 32%;
    text-align: center;
    margin-right: -70px;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.form-row input {
    flex: 1;
}

/* FOOTER */

footer {
    background-color: #0E4420;
    color: white;
    padding: 20px;
    position: relative;
    overflow: hidden;
    margin: 0;

}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.footer-content h3,
p {
    color: white;
    margin-right: 300px;


}



.footer-info,
.footer-links,
.footer-social {
    margin: 5px;
}

.footer-info {
    margin-top: -20px;
}

.footer-info img {
    margin-top: 10px;
}

.footer-links {
    margin-top: 70px;
    margin-left: -90px;
}

.footer-info h3 {
    margin-top: 40px;
    font-family: 'fredoka', sans-serif;
    font-weight: 500;
    font-size: 25px;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 10px;
    font-family: 'fredoka', sans-serif;
    font-size: 20px;
    font-weight: 500;
}

.footer-links ul {
    list-style-type: none;
    padding: 0;

}

.footer-links ul li {
    margin-bottom: 5px;

}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    font-family: 'Maven Pro', Arial, sans-serif;
    /* Apply Maven Pro font to footer links */
}

.footer-links ul li a:hover {
    text-decoration: underline;
}

.footer-social {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    row-gap: 8px;
    justify-items: center;
    align-items: center;
    margin-top: 65px;
    margin-left: 180px;
}

.footer-social a {
    margin: 0 -10px;
}

.footer-social h4{
    margin-top: 20px;
    margin-right: -40px;
}

.footer-social i {
    size: 50px;
    text-align: center;
    color: white;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 80px;
    background-color: #0E4420;
    color: #ffffff;
    border: 2px solid #cce7d0;
    bottom: 20px;
    right: 10px;
    align-self: center;

}

