.events-container {
    margin: 20px auto;
    overflow: hidden;
    padding-inline-start: 15px;
    position: relative;
}

.events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* This will space out the title and button */
    margin-bottom: 10px;
    /* Optional, adjust for spacing below */
}

.events-title {
    margin: 0;
    /* Remove margin for better alignment */
    font-size: 24px;
}

/* .more-arrow {
    background-color: #45494D;
    color: #fff;
    padding: 1px;
    padding-right: 5px;
    padding-left: 5px;
    border-radius: 50%;
}

.more-text {
    color: #45494D;
    margin-inline-end: 10px;
} */

.events-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.event-card {
    /* min-width: 300px; */
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    /* Added this line to make .event-date position relative to .event-card */
    height: 300px;
}

.event-card img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
}

.event-date {
    background: var(--t-50, #F1F7FB);
    color: var(--p-500, #4C7D9E);
    padding: 10px 15px;
    /* Add padding for a card-like feel */
    font-size: 14px;
    /* Font size adjustment */
    height: 70px;
    width: 80px;
    text-align: center;
    position: absolute;
    top: 15px;
    /* Adjust position */
    right: 15px;
    /* Adjust position */
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Shadow for a lifted effect */
    width: auto;
    /* Adjust to fit content */
    min-width: 50px;
    /* Ensures enough space for text */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    line-height: 1.1;
}

.date-day {
    font-size: 36px;
    color: #21485F;
    font-weight: bold;
}

.event-content {
    padding: 10px;
    overflow: visible;
    /* Make sure it's visible */
}

.event-time {
    font-size: 12px;
    color: gray;
    margin-bottom: 5px;
}

.event-title {
    font-size: 16px;
    font-weight: bold;
}

.nav-button {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    position: absolute;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
    font-size: 27px;
    top: 48%;
    /* Center vertically */
    transform: translateY(-50%);
    /* Center vertically */
}

.nav-button.left {
    left: 0;
}

.nav-button.right {
    right: 0;
}

.show-more {
    display: block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
}


/* Styling for horizontal scroll wrapper */

#eventsWrapper {
    display: flex;
    gap: 0px;
    /* Space between event cards */
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    /* Ensure it takes up the full width */
    flex-wrap: nowrap;
    /* Ensure no wrapping occurs */
    overflow: hidden;
}


/* General event card styling */

.event-card {
    min-width: 300px;
    /* Ensure the card width is set */
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    /* Ensures the card does not shrink */
}

.event-card1 {
    margin-right: 10px;
    /* يمكنك تعديل القيمة حسب الحاجة */
}

@media (max-width: 768px) {
    #eventsWrapper {
        overflow: auto;
    }
}

.primeCard {
    border-radius: 25px;
    position: relative;
    width: 100%;
    margin: 1em auto;
    padding: 0;
    margin-bottom: 2em;
}

.section-header {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.section-header .more-text {
    color: #000;
    text-decoration: none;
    content: '->';
    padding: 0px;
}

.more-arrow {
    /*background-color: #45494D;*/
    color: #fff;
    /*padding: 3px 6px;*/
    border-radius: 50%;
    font-size: 16px;
    /* Default size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}


.primeCard .header .view {
    cursor: pointer;
    color: var(--primary);
}

.primeCard .back-img {
    position: absolute;
    top: -250px;
    right: -110px;
    z-index: -111;
    transform: scaleX(-1);
}

.primeCard h3 {
    font-size: 25px;
    margin: 1em 0px;
    font-weight: bolder;
    color: var(--light-text-color);
}

.primeCard .swiper-button-next,
.primeCard .swiper-button-prev {
    color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity));
    cursor: pointer;
    width: 40px;
    height: 40px;
    background-color: var(--lighter-box);
    /* border: 1px solid rgba($color: var(--text-color), $alpha: 0.5); */
    border-radius: 100%;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 64%;

    &::after {
        content: '';
        font-size: 17px;
    }
}

.swiper-button-next {
    right: -15px;
}

.swiper-button-prev {
    left: -15px;
}

svg {
    path {
        stroke: var(--light-text-color);
    }
}

@media (min-width: 50px) and (max-width: 575px) {
    .primeCard .swiper-button-next {
        /* right: 5px; */
    }

    .primeCard .swiper-button-prev {
        /* left: 5px; */
    }
}

.primeCard .box {
    box-sizing: border-box;
    width: 100%;
    height: 240px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    direction: ltr;
}

@media (min-width: 50px) and (max-width: 1023px) {
    /*.primeCard .box {*/
    /*    width: 190px;*/
    /*}*/
}

.primeCard .box .labels {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.primeCard .box .labels .perLabel {
    position: relative;
    z-index: 1;
    width: 100%;
    font-size: 15px;
    text-align: center;
    border-radius: 15px;
    width: 60px;
    line-height: 1.1;
    padding: 7px;
}

.primeCard .box .labels .perLabel.discount {
    background-image: linear-gradient(to right, #ec335a, #a82440);
    color: #fff;
    direction: ltr;
}

.primeCard .box .labels .perLabel.date {
    background: var(--t-50, #F1F7FB);
    color: var(--p-500, #4C7D9E);
}

.primeCard .box .labels .perLabel:nth-child(even) {
    padding-top: calc(0.6em + 16px);
    margin-top: -16px;
    z-index: 0;
}

.primeCard .box .labels .perLabel .date-day {
    font-size: 17px;
    color: #21485F;
    font-weight: bold;
}

.primeCard .box .text-overlay {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    background-color: #fff;
    padding: 0.8em;
    color: #000;
    text-wrap: auto;
}

.primeCard .box .text-overlay .strikethrough {
    position: relative;
    opacity: 0.5;
    margin-right: 0.3em;
}

.primeCard .box .text-overlay .cardName {
    font-size: 17px;
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.primeCard .box .text-overlay .cardName .strikethrough {
    font-size: 15px;
}

.primeCard .box .text-overlay .cardName .strikethrough::after {
    content: '';
    position: absolute;
    top: 33%;
    left: -1px;
    width: calc(100% + 2px);
    height: 1px;
    background-color: #fff;
    opacity: 0.8;
}


/* header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

header h1 {
    font-size: 1.5em;
    color: #333;
} */

header button {
    background: none;
    border: none;
    font-size: 1em;
    color: #333;
    cursor: pointer;
}





/* Responsive adjustments */

@media (min-width: 768px) {
    .hidden-mobile {
        display: inherit;
    }

    .grid {
        grid-template-columns: repeat(4, 1fr);
        /* Keep 4 columns on larger screens */
    }

    .cat-card {
        flex: unset;
        height: 200px;
        /* Maintain standard height */
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        /* 4 cards per row */
        gap: 10px;
        padding-bottom: 10px;
    }

    .cat-card {
        position: relative;
        width: 100%;
        height: 200px;
        /* Standard height for all cat-cards */
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        scroll-snap-align: start;
        flex-shrink: 0;
        /* Prevent shrinking */
    }

    .cat-card.large {
        grid-column: span 2;
        /* Large card spans 2 columns */
        grid-row: span 2;
        /* Large card spans 2 rows */
        height: 410px;
        /* Increased height for large card */
    }

    .cat-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .cat-card span {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background-color: rgba(0, 0, 0, 0.6);
        color: #fff;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 1em;
    }

    /* Hover effects */

    .cat-card:hover {
        transform: scale(1.02);
        /* Slightly scale up the card */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        /* Increase shadow on hover */
    }

    .cat-card:hover img {
        /* transform: scale(1.1);  */
        /* transform: translateY(-5px); */
    }

    .cat-card:hover span {
        font-size: 1.2em;
        /* Increase font size on hover */
        transform: translateY(-5px);
        /* Move text up slightly on hover */
    }

}

@media (max-width: 767px) {
    .primeCard .box .labels .perLabel .date-day {
        font-size: 24px;
    }

    .primeCard .box .labels .perLabel .date-month {
        font-size: 8px;
    }

    .more-arrow {
        font-size: 12px;
        /* Smaller size for mobile */
        /* padding: 2px 4px; */
        width: 20px;
        height: 20px;
    }

    .hidden-mobile {
        display: none !important;
    }

    .section-header .more-text {
        font-size: 12px;
        /* Adjust text size for better balance */
    }

    .primeCard .box .labels .perLabel {
        width: 45px;
        height: 45px;
        line-height: 1.1;
        border-radius: 5px;
        padding: 0px;
    }

    .primeCard h3 {
        font-size: 18px;
        margin: 1em 0px;
        font-weight: bolder;
        color: var(--light-text-color);
    }

    /* .grid {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .cat-card {
        flex: 0 0 300px;
        height: 110px;
    }
    .cat-card.large {
        height: 200px;
    }
    .cat-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .cat-card span {
        font-size: 1em;
    } */
    .grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        /* Space between items */
        padding-bottom: 10px;
        /* white-space: nowra   p; */
    }

    .cat-card {
        flex: 0 0 100px;
        /* Fixed width */
        height: auto;
        /* Allow content to define height */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        scroll-snap-align: start;
        border-radius: 8px;
        overflow: hidden;
    }

    .cat-card img {
        width: 100px;
        /* Fixed width */
        height: 110px;
        /* Fixed height */
        object-fit: cover;
        /* Ensures images don’t stretch */
        display: block;
        border-radius: 8px;
    }

    .category-text {
        font-size: 0.9em;
        margin-top: 5px;
        /* Space between image and text */
        font-weight: bold;
        /* Make the text bold */
        color: black;
        /* Set text color to black */
        text-align: center;
        width: 100%;
        display: block;
    }

    .cat-card.large {
        height: auto;
    }

    /* Optional: Hide scrollbar */
    .grid::-webkit-scrollbar {
        display: none;
    }
}