.pooja-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card-parent {
    width: 100%;
    height: 320px;
    justify-self: center;
}

.pooja-card {
    position: relative;
    padding-top: 40px;
    border: 2px solid rgb(255, 215, 163);
    background: #fffaf0;
    width: 100%;
    height: 100%;
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 6px;
    border-radius: 8px;
    overflow: hidden;
}

.pooja-card * {
    transform: none !important;
}

.pooja-content-box {
    background: linear-gradient(135deg, #f87912 0%, #fa6800 100%);
    padding: 1.5rem 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pooja-content-box .pooja-title {
    display: inline-block;
    color: white;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.special-badge {
    display: inline-block;
    background: #b14040;
    color: #000000;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    transform: translate3d(0px, 0px, 55px);
    transition: none;
}

.pooja-content-box .pooja-description {
    margin: 0.5rem 0;
    font-size: 10px;
    font-weight: 500;
    color: #fff7ed;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    text-align: left;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.pooja-content-box .pooja-description.expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: none;
    overflow: visible;
}

.read-more-btn {
    color: #fef3c7;
    font-size: 10px;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
    margin-top: 5px;
    display: inline-block;
    transition: color 0.2s ease;
}

.read-more-btn:hover {
    color: #fffbeb;
}

.pooja-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.pooja-amount {
    font-size: 16px;
    font-weight: 800;
    color: #fef3c7;
}

.book-now-btn {
    cursor: pointer;
    display: inline-block;
    font-weight: 900;
    font-size: 10px;
    text-transform: uppercase;
    color: #ea580c;
    background: white;
    padding: 0.6rem 1rem;
    border: none;
    transition: none;
    transform: none;
    white-space: nowrap;
}

.date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    height: 50px;
    width: 50px;
    background: white;
    border: 2px solid #fb923c;
    padding: 5px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.date-badge .month {
    color: #fb923c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.date-badge .date {
    font-size: 18px;
    font-weight: 800;
    color: #ea580c;
    line-height: 1;
}

.date-badge .year {
    font-size: 9px;
    font-weight: 600;
    color: #fb923c;
}

.section-header {
    text-align: center;
    padding: 3rem 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.no-poojas {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 1.2rem;
    color: #9a3412;
}

/* pooja search  */

/* Mobile Responsive Styles */
@media (max-width: 640px) {
    .pooja-cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .card-parent {
        height: 280px;
    }
    
    .pooja-card {
        padding-top: 35px;
    }
    
    .pooja-content-box {
        padding: 1rem;
    }
    
    .pooja-content-box .pooja-title {
        font-size: 16px;
        line-height: 1.2;
    }
    
    .pooja-content-box .pooja-description {
        font-size: 12px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .pooja-amount {
        font-size: 16px;
    }
    
    .date-badge {
        height: 45px;
        width: 45px;
        top: 10px;
        right: 10px;
    }
    
    .date-badge .date {
        font-size: 16px;
    }
    
    .date-badge .month {
        font-size: 9px;
    }
    
    .date-badge .year {
        font-size: 8px;
    }
    
    .special-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .section-header {
        padding: 2rem 1rem 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .no-poojas {
        padding: 3rem 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .pooja-cards-container {
        padding: 0.75rem;
    }
    
    .card-parent {
        height: 260px;
    }
    
    .pooja-content-box {
        padding: 0.75rem;
    }
    
    .pooja-content-box .pooja-title {
        font-size: 15px;
    }
    
    .pooja-content-box .pooja-description {
        font-size: 11px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .pooja-amount {
        font-size: 15px;
    }
    
    .date-badge {
        height: 40px;
        width: 40px;
    }
    
    .date-badge .date {
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* Tablet Responsive Styles */
@media (min-width: 641px) and (max-width: 1024px) {
    .pooja-cards-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
        padding: 1.25rem;
    }
    
    .card-parent {
        height: 300px;
    }
}

/* Large Mobile / Small Tablet */
@media (min-width: 481px) and (max-width: 640px) {
    .pooja-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
}