﻿

p, h1, h2, h3, h4, h5, h6, h7 {
    font-family: 'Cairo', 'sans-serif';
}


.ads-carousel {
    display: flex;
    justify-content: start;
    align-items: center;
    overflow-x: scroll; /* Ensure scrolling works for all browsers */
    gap: 50px;
    padding: 10px 20px; /* Add padding for spacing */
    scroll-snap-type: x mandatory; /* Ensures proper snap scrolling */
    scroll-behavior: smooth; /* Smooth scroll transition */
    /* Hide scrollbar across all browsers */
    -ms-overflow-style: none; /* For IE and older Edge */
    scrollbar-width: none;
}
    .ads-carousel::-webkit-scrollbar {
        display: none; /* Chrome, Safari, and Edge */
    }
.ad-card {
    flex: 0 0 auto;
    width:400px;
    border-radius: 10px;
    background-color: #1a2e50;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    scroll-snap-align: center;
    opacity: 0.6;
    position: relative; /* Make the card a relative container for positioning */
}



    .ad-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .ad-card .ad-content {
        position: absolute; /* Position content over the image */
        bottom: 0; /* Align at the bottom of the card */
        left: 0;
        right: 0;
        color: white;
        padding: 10px;
        box-sizing: border-box;
        text-align: center;
    }


    .ad-card h3 {
        font-size: 18px;
        margin: 20;
    }

    .ad-card p {
        font-size: 14px;
        margin: 5px;
    }

    .ad-card.active {
        flex: 0 0 500px;
        opacity: 1;
        transform: scale(1.1);
    }


