/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
} */

/* .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
} */

.category-section {
    margin-top: 20px;
    margin-bottom: 20px;
    background: rgb(243, 243, 243);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

h2 {
    color: #333;
    margin-bottom: 20px;
}

.show-all {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 16px;
}

/* Scroll Containers */
.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    /* padding: 10px 0; */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

/* Company Cards */
.companies-container {
    padding-bottom: 20px;
}

.company-card {
    scroll-snap-align: start;
    flex: 0 0 auto;
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    width: 150px;
}

.company-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
}

/* Category Cards */
.categories-container {
    /* padding-bottom: 20px; */
}

.category-card {
    scroll-snap-align: start;
    flex: 0 0 auto;
    text-align: center;
    /* padding: 10px; */
    width: 150px;
    margin-top: 5px;
}

.category-card img {
    width: 100px;
    height: 80px;
    border-radius: 10px;
    margin-bottom: 8px;
    object-fit: cover;
}

/* Services Grid */
.services-grid {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-evenly;
        flex-direction: row;
        align-content: start;
    }

.service-card {
    /* background: white; */
    /* padding: 15px; */
    text-align: left;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
}

.service-card img {
    border-radius: 8px;
    width: 200px;
    height: 150px;
    margin-bottom: 10px;
    object-fit: cover;
}

.service-card p {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* Ad Cards */
.ads-container {
    padding-bottom: 20px;
}

.ad-card {
    scroll-snap-align: start;
    flex: 0 0 auto;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
}

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

.ad-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .show-all {
        margin-top: 10px;
    }

    .company-card {
        width: 150px;
    }

    .category-card {
        width: 100px;
    }
    .service-card img {
        width: 100px;
        height: 110px;
    }

    .ad-card {
        width: 150px;
    }
}