@import url('https://fonts.googleapis.com/css?family=Poppins:400,700,900');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    
}


header{
    position: fixed;
    top: 0;
    z-index: 2;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
   padding: 3%;
   background-color: rgb(246,246,246);
}
.logo img{
    width: 40%;
    }
    nav{
        border-radius: 5px;
        /* transform: translateX(-150px); */
        display: flex;
        gap: 50px;
    }
    .serch {
        position: relative;
        width: 300px; 
    }
    .serch input[type="search"] {
        width: 100%;
        padding: 10px 40px 10px 10px; 
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 7px;
    }
    .serch .fa-magnifying-glass {
        position: absolute;
        top: 50%;
        right: 10px; 
        transform: translateY(-50%);
        color: #aaa;
    }
        
     /* media querry for header   */
     @media screen and (max-width:768px) {
        nav{
            position: absolute;
            top: 50px;
            right: 0;
            height: 60vh;
            background-color:  rgb(21, 90, 3);
            display: flex;
            opacity: 0.9;
            flex-direction: column;
            width: 100%;
            transition: 1s ease-in-out;
            transform: translateX(-100%);
            justify-content: center;
           text-align: center;
    
        }
        nav a{
            color: white;
            font-size: 1.5rem;
        }
    
        .menu{
            display: flex;
            
        }
        
        nav.hidden{
            transform: translateX(0);
        }
        .log button{
            width: 80px;
            height: 40px;
        }
        .btn button{
            width: 100px;
            height: 40px;
        }
        .serch{
            transform: translateX(-50px);
        }
        .icon{
            display: flex;
            gap: 5px;
        }
    }
    @media screen and (max-width:470px) {
        .logo img{
            width: 50%;
            }
            .log button{
                width: 80px;
                height: 40px;
            }
            .btn button{
                width: 100px;
                height: 40px;
            }
    }

    aside {
        margin-top: 100px;
         width: 200px;
         padding: 20px;
         background-color: white;
         }
         .item a { 
            display: block; 
            margin-bottom: 10px; 
            text-decoration: none; 
            color: #333; 
        }
        aside :hover  {
            color: rgb(4, 82, 4);
        }
        
    .cont{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .active-link {
        color: rgb(5, 91, 5) !important; 
        font-weight: bold; 
    }    
    
    main { flex-grow: 1; 
        padding: 20px; }


/* Wrap the entire section with a single box */
section {
    margin: 20px auto;
    width: 90%; /* Constrain width */
    max-width: 700px; /* Similar to your image */
    border: 1px solid #ccc; /* Single border around the section */
    border-radius: 8px;
    padding: 15px; /* Padding for inner spacing */
    background-color: #f9f9f9;
}

/* Header styling */
h5 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
    text-align: center; /* Center-align title */
    font-weight: bold;
}

/* Flex container for buy items */
.buy-cont {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px; /* Minimal gap between items */
    flex-wrap: wrap; /* Ensure wrapping for smaller screens */
}

/* Individual buy items */
.buy-item {
    flex: 1; /* Equal width for all items */
    max-width: calc(33.33% - 10px); /* Constrain each item width */
    padding: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    text-align: center;
}

/* Reduce image size */
.buy-item img {
    width: 40px; /* Small image */
    height: auto;
    margin-bottom: 8px; /* Spacing under image */
}

/* Styling for UL */
.buy-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Styling for list items */
.buy-item ul li {
    display: block; /* Each item in a new line */
    margin: 5px 0; /* Compact spacing between list items */
    font-size: 14px;
    color: #555;
}

/* Button inside list items */
.buy-item ul li a {
    display: inline-block;
    padding: 6px 12px;
    background-color: green;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
}

.buy-item ul li a:hover {
    background-color: darkgreen;
}

/* Align icons in list items */
.buy-item ul li i {
    margin-right: 5px;
    color: #555;
}

/* Responsive behavior for smaller screens */
@media (max-width: 768px) {
    .buy-cont {
        flex-direction: column; /* Stack items vertically */
        gap: 15px; /* Larger gap when stacked */
    }

    .buy-item {
        max-width: 100%; /* Full width for each item */
    }
}


      