body {
    background-color: #f5f7fa;
    text-align: center;
    margin: 0;
    padding: 0;
}

.container_cards_only {
    padding:0px 40px;
}

h2 {
    color: #19314B;
    font-size: 40px;
    margin-bottom:10px;
    font-family: 'Poppins',sans-serif;
    font-weight: 600px;
}

.sub-text {
    color: #555;
    margin-bottom: 30px;
}


.deals {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.deal-card {
    background: white;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 260px;
    position: relative;
    border-radius: 10px;
}

.deal-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.deal-card:hover img {
    transform: scale(1.1);
}

.explore-btn {
    margin-bottom:20px;
    margin-left:25px;
    margin-right:25px;
    background-color: #17304A;
    color:#fff;
    height:35px;
    border-radius:10px;
    font-family:'Poppins',sans-serif;
    font-weight:500px;
}

.explore-btn:hover {
    background-color: #e55b00;
}

.deal-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.deal-content h3 {
    color: #ff6600;
    margin-top: 10px;
    font-weight: 600;
    font-family: 'Poppins',sans-serif;

}
.deal-content p {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}


.price {
    font-size: 18px;
    color: #ff6600;
    font-weight: 400px;
    font-family: 'Poppins',sans-serif;
}
.featured {
    position: absolute;
    background: green;
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    top: 10px;
    left: 10px;
}
.card-wrapper {
    position: relative;
}

.top-right-text {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(247, 247, 247, 0.7);
    color: #000;
    padding: 5px 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    border-radius: 5px;
    z-index: 2;
}


/* Mobile responsiveness */
@media (max-width: 768px) {
    .deal-card {
        width: 328px; /* Makes cards take more width on smaller screens */
    }
    .deal-card img {
        height: 180px;
        width:329px;
    }
    .deal-content h3, .price {
        font-size: 24px;
    }
    .deal-content p {
        font-size: 16px;
    }
    .explore-btn {
        width: 275px;
        height: 45px;
    }
}

.heading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin:10px 38px;
}

.view-more-btn {
    background-color: #17304A;
    color: white;
    padding: 9px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Poppins',sans-serif;
    font-weight: 500px;
}

.view-more-btn:hover {
    background-color: #e55b00;
}

@media(max-width:768px) {
    .heading-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin:auto 2px;
    }
    
    h2 {
        font-size: 30px;
        margin-right:40px;
        text-align: left;
    }
    
    .view-more-btn {
        background-color: #17304A;
        color: white;
        padding: 5px 10px;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        font-size: 12px;
       
    }
}

@media (min-width: 1465px) {
    .deals {
        justify-content: center;
        gap: 30px; /* Increased spacing for better layout */
    }

    .deal-card {
        width: 320px; /* Increased width for larger screens */
    }

    .top-right-text {
        top: 15px; /* Adjust position for larger screens */
        right: 15px;
        font-size: 16px; /* Slightly increase font size */
        padding: 6px 12px; /* Adjust padding for better visibility */
    }


}
