.phone_div1 form {
    display: none;
    justify-content: end;
}
.hamburger{
    display: none;
}
.footer{
    margin-left: 0px;
    left: 0px;
    width: 100%;
}

.agri-section {
    background-color: whitesmoke;
    padding-top: 8rem;
}
.hedding {
    color: #000000;
    text-align: center;
    font-size: 22px;
}
.hpmain1 {
    display: grid;
    gap: 12px;
    padding: 1rem;
    width: 97%;
    margin: auto;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
}

.hpcard1 {
    border-radius: 7px;
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.3);
    background-color: white;
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    
}

.hpcard1:hover {
    transform: translateY(-5px);
}

.hpcard1 a {
    font-size: 15px;
    color: #000000;
    padding: 2px 10px;
    display: block;
    text-decoration: none;
    /* font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; */
    text-align: center;
}

.hpcard1 a div img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    margin: 12px auto 20px auto;
}

.hpcard1 img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-name {
    white-space: normal; 
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    margin: 0 10px 0.5rem 10px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
}

.card-btn {
    background-color: #0f5937;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 0.9rem;
    width: 80%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hpcard1 {
        height: 280px;
    }
}

@media (max-width: 768px) {
    /* .hpcard1 {
        height: 280px;
    } */
    .hpmain1{
    display: grid;
    gap: 12px;
    padding: 1rem;
    width: 100%;
    margin: auto;
    grid-template-columns: repeat(auto-fit, minmax(163px, 1fr));
    }
}

@media (max-width: 450px) {
    /* .hpcard1 {
        height: 260px;
    } */
    .product-name {
        font-size: 0.85rem;
    }
    .card-btn {
        font-size: 0.8rem;
    }
}
