.middlebodycards1{
    position: relative;
    width: 100%;
}

.middlebodycards2{
    position: relative;
    top:3rem ;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    width: 55%;
    top: 1rem;
    position: relative;
}

.card {
    background-color: rgba(255, 255, 255, 0.411);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
    text-align: center;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 23px;
}

.card-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.card-content button {
    background-color: #22211f;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.card-content button:hover {
    background-color: #555;
}

/* Responsive Design */



.rowcategory{
    width: 40%;
    background-color: transparent;
    position: relative;
    display: inline-flex;
   
}


.colcategory:hover {
    transform: scale(1.05);
}

.colcategory{
    background-color: rgba(255, 255, 255, 0.836);
    box-shadow:1px 2px 10px 2px  rgba(188, 185, 185, 0.434);
    padding: 12px 2px;
    margin: 32px 18px;
    position: relative;
    border-radius: 6px;
    transition: transform 0.2s;
   
             
}
.rowcategory img{
    width: 45%;
    position: relative;   
   
}

.rowcategory strong{
    color: rgb(19, 18, 18);
    position: static;  
}

@media screen and (max-width:1600px) {
 
   
    .rowcategory{
        width: 50%;          
    }
  
}

@media screen and (max-width:1285px) {
 
   
    .colcategory{
        min-width: 20%;          
    }

}

@media screen and (max-width:1285px) {
    
    .colcategory{
        min-width: 20%;          
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        width: 85%;

    }

    .colcategory{
        min-width:10%; 
        width: 40%;
        margin: 12px 9px; 
                 
    }
    
    .rowcategory strong{
       font-size: 0.7rem;
    }
}

@media screen and (max-width:850px) {
    .rowcategory{
        width: 70%;
     }
     
    .colcategory{
        min-width:10%; 
        width: 40%;
        margin: 12px 9px; 
                 
    }
    .rowcategory img{
        width: 30%;
    }
  
    .rowcategory strong{
        font-size:11px;
     }
}

@media (max-width: 778px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width:559px) {
    .rowcategory strong{
       font-size:10px;
    }
    .gallery {
        min-width: 99%;
    }
}

@media screen and (max-width:500px) {
    .rowcategory{
        width: 100%;
     }
     table{
        width: 100%;
     }
     
    .colcategory{
        min-width:10%; 
        width: 40%;
        margin: 12px 9px; 
                 
    }
    .rowcategory img{
        width: 45%;
    }
    
    .rowcategory strong{
       font-size:8px;
    }
}