.poojaService {
    padding: 20px;
    /* background-color: #FFCC00; */
}

.poojaService .info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.poojaService .info-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex: 1 1 calc(33.33% - 20px);
    /* Three items per row */
    max-width: calc(33.33% - 20px);
    /* Adjust for spacing */
}


.poojaService .info-item img {
    width: 100%;
    max-height: 300px;
    transition: transform 0.3s;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 10px solid #ffff;
    border-radius: 20px;
}

.poojaService .info-item h2 {
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    color: black;
    /* background: rgba(0, 0, 0, 0.6); */
    background: #FFD700;
    padding: 12px;
    transition: transform 0.3s;
    font-size: 20px;
    /* width: 100%; */
    margin-bottom: 0;
    text-align: center;
    font-weight: bold;
    overflow: hidden;
    
}


.poojaService .hidden-paragraph {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 10px;
    color: black;
    /* background: rgba(0, 0, 0, 0.7); */
    background: #FFFDD0;
    padding: 10px;
    width: calc(100% - 20px);
}

.poojaService .info-item:hover img {
    transform: scale(1.1);
}

.poojaService .info-item:hover h2 {
    transform: translateY(-200px);
}

.poojaService .info-item:hover .hidden-paragraph {
    display: block;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .poojaService .info-item {
        flex: 1 1 calc(50% - 20px);
        /* Two items per row on tablets */
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .poojaService .info-item {
        flex: 1 1 100%;
        /* One item per row on mobile */
        max-width: 100%;
    }
}