@import url('https://fonts.googleapis.com/css2?family=Stint+Ultra+Condensed&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Marcellus&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Hepta+Slab:wght@1..900&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x:hidden;
}
.container {
    max-width: 100%;
    margin: 0 auto;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: #5c703a; /* Main navbar color */
    padding: 4rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;

}
/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    position: absolute;
    top: 4rem;
    right: 5%;
    z-index: 1001; /* Ensure it's above other elements */
}

.social-icon {
    width: 40px; /* Adjusted size */
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Logo */
.logo {
    margin-right: auto;
    position: absolute;
    top: 2rem;
    left: 5%;
    z-index: 1001;
}

.logo-img {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.logo-img:hover {
    transform: scale(1.1);
}

.navbar {
    flex-grow: 1;
    background-color: transparent;
    z-index: 1000;
}

.nav-list {
    list-style: none;
    display: flex;
    margin: 0; /* Remove any extra margin */
    padding: 0;
    align-items: center;
    justify-content: center; /* Center the navigation items horizontally */
    gap: 1.5rem; /* Space between items */
}
.nav-list li {
    margin: 0 15px;
    background-color: transparent;
}

.nav-list li a {
    background-color: transparent; /* Ensures no background color */
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    padding: 0.75rem 0.5rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    font-family: 'Stint Ultra Condensed', sans-serif;
}

.nav-list li a:hover {
    color: #fff100;
}

/* Icon Animations */
.icon, .house-icon {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    width: 40px; /* Adjusted size */
    height: 40px;
    top: 5px;
}

.home-link:hover .house-icon,
.crops-link:hover .crops-icon,
.products-link:hover .products-icon,
.blogs-link:hover .blog-icon,
.calendar-link:hover .calendar-icon,
.partners-link:hover .partner-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #046637;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    border: 2px solid #fff100;
    text-align: left;
    padding: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.dropdown-menu li a {
    color: #fff100;
    font-size: 18px;
    padding: 10px 5px;
    text-decoration: none;
    font-family: 'Stint Ultra Condensed', sans-serif;
    width: 100%;
    display: block;
}

.dropdown-menu li a:hover {
    background-color: #056637;
    text-decoration: underline;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: absolute;
    top: 1.5rem;
    left: 50%; /* Center the hamburger on smaller screens */
    transform: translateX(-50%);
    z-index: 1001;
}
.hamburger span {
    width: 32px;
    height: 4px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: absolute;
        top: 2rem;
        right: 2rem;
        z-index: 1001;
    }

    .nav-list {
        position: absolute;
        top: 20rem; /* Set top value to push the dropdown lower down */
        left: 0;
        right: 0;
        height: auto; /* Adjust height if needed */
        margin-top: 2rem; /* Add extra margin to further push it down */
        background-color: #046637;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 1rem;
        transform: translateY(-100%);
        transition: transform 0.5s ease-in-out, opacity 0.5s;
        opacity: 0;
        visibility: hidden;
        border: 2px solid #000;
        border-radius: 15px;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav-list.active {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }

    .nav-list li {
        margin: 0;
        padding: 1rem 0;
    }

    .nav-list li a {
        color: #fff100;
        text-decoration: none;
        font-size: 4rem !important; /* Added !important to force the font size to grow */
        line-height: 5rem; /* Added line-height to maintain spacing between larger text */
        text-align: center;
        transition: color 0.3s ease, font-size 0.3s ease; /* Added transition for smoother growth */
    }

    .nav-list li a:hover {
        color: #ffffff;
    }

    .social-icons {
        position: absolute;
        top: 2.5rem;
        right: 1rem;
        display: flex;
        gap: 10px;
    }

    .dropdown-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 0.5rem;
        background-color: #046637;
        min-width: 12rem;
        padding: 1rem;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 1;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.5s, transform 0.5s;
        border: 2px solid #fff100;
        border-radius: 10px;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Larger Tablet Screens and Smaller Laptops (Max Width 1320px) */
@media (max-width: 1320px) {
    .hamburger {
        display: flex;
        position: absolute;
        top: 4rem;
        right: 34rem;
    }

    .nav-list {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 50vh;
        margin-top: 8rem;
        background-color: #046637;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 1rem;
        transform: translateY(-100%);
        transition: transform 0.5s ease-in-out, opacity 0.5s;
        opacity: 0;
        visibility: hidden;
        border: 2px solid #000;
        border-radius: 15px;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav-list.active {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }

    .social-icons {
        position: absolute;
        top: 3rem;
        right: 4rem;
    }

    .logo {
        position: absolute;
        top: 1.5rem;
        right: 4rem;
    }

    .dropdown-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 5rem;
        margin-top: -2rem;
        background-color: #046637;
        min-width: 10rem;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 1;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.5s, transform 0.5s;
        border: 2px solid #fff100;
    }
}
#breadcrumb {
    display:flex;
    max-width: fit-content;
    min-width: fit-content;
    padding: 10px;
    margin-top: 5px;
    list-style-type: none;
    overflow: hidden;
    background-color: #056637;
}

#breadcrumb li {
    float: left;
    font-size: 1.2em;
    font-family: 'Stint Ultra Condensed', sans-serif; /* Added a fallback font */
}

#breadcrumb a {
    display: block;
    color: white;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-size: 1.2em;
    font-family: 'Stint Ultra Condensed', sans-serif;
}

#breadcrumb a:hover {
    color: #fff100;
}

.arrow{
    color: #fff100;
    margin: 5px 5px;
    margin-top: 12px;
}
p{
    font-family: 'Marcellus', sans-serif;
}
h1, h2, h3{
    font-family: 'Stint Ultra Condensed', sans-serif;
    color:#056637;
}
.container1{
    margin-top:100px;
    display:grid;
    grid-template-columns: 1fr 1fr;
    margin-left: 10%; margin-right:10%;
    margin-bottom:20px;
    background-color: #f5f5f5;
    border-radius: 5px;
}
.backim{
    background-image: url('Pictures/potatoes plant.jpg');
    background-size: cover; 
    background-position: center;
}
.buttons{
    background-color: #056637;
    color:#fff;
    font-family: 'Stint Ultra Condensed', sans-serif;
    font-size:1em;
    border:none;
    margin:5px;
    padding:20px;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.buttons:hover{
    background-color: #fff;
    color:#056637;
    cursor: pointer;
}
ul{
    list-style-type: none;
}
li{
    margin-left:5%;
    font-size: 0.75em;
}
input[type="checkbox"]{
    margin:10px;
}
input[type="checkbox"]:checked + span {
    text-decoration: line-through;
    color: #923524; 
}
#modal{
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content{
    background-color: #f5f5f5;
    padding: 0 5px;
    border-radius: 0.25em;
    height: fit-content;
    width: 85%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
@media (max-width: 800px){
    .modal-content {
        width: 100%; 
        border-radius: 0; 
        max-height: 100vh;
    }
}
.modal-header{
    display: flex;
    justify-content: flex-end;
}
.modal-footer{
    display:flex;
    justify-content: center;
}
.close{
    color:#056637;
    float: right;
    font-size: 24px;
    cursor: pointer;
    margin:0;
    padding:0.25em 0.5em; /*top, left*/
    transition: color 0.3s ease, background-color 0.3s ease;
}
.close:hover{
    color:#fff;
    background-color: #056637;
}
.modal-body{
    max-height: 80vh;
    /*overflow-y: auto;*/
    font-size: 1.5em;
}
.vidiv{
    display:flex;
    justify-content: center;
    align-items: center;
    margin:1em auto;
}
.vid{
    width:1000px;
    height:562px;
}
.footer-section {

    background-color: #046637;
    color: white;
    padding: 40px 20px; /* Added side padding for smaller screens */
    font-family: 'Marcellus', sans-serif;
}

.footer-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section .row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Ensure columns wrap on smaller screens */
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    margin-left: 50px;
}

.footer-col h6 {
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #fff100;
    font-size: 18px;
}

.footer-col p, .footer-col ul {
    font-size: 14px;
    color: white;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #fff100;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #fff100;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

.footer-bottom p {
    font-size: 14px;
    margin: 10px 0; /* Added margin for better spacing on small screens */
}

.social-icons2 {
    display: flex;
    gap: 10px;
    justify-content: center; /* Center icons on smaller screens */
}

.social-icons2 img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.social-icons2 img:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .footer-col {
        min-width: 100%; /* Make columns take full width */
        margin-left: 0; /* Remove side margin */
        text-align: center; /* Center text for smaller screens */
    }

    .footer-bottom {
        flex-direction: column; /* Stack elements vertically */
    }

    .social-icons2 {
        margin-bottom: 10px; /* Add space below icons */
    }
}

@media (max-width: 480px) {
    .footer-section {
        padding: 20px 10px; /* Reduce padding for very small screens */
    }

    .footer-col h6 {
        font-size: 16px; /* Adjust font size for headers */
    }

    .footer-col p, .footer-col ul {
        font-size: 12px; /* Reduce text size for better fit */
    }

    .social-icons2 img {
        width: 20px; /* Smaller icons for mobile */
        height: 20px;
    }

    .footer-bottom p {
        font-size: 12px; /* Smaller text for footer note */
    }
}
::-webkit-scrollbar {
    width: 24px;
}
::-webkit-scrollbar-track {
    background: #046637;
}
::-webkit-scrollbar-thumb {
    background-color: #046637;
    border-radius: 10px;
    border: 4px solid #000;
}