.activity-section {

    h2 {
        text-transform: capitalize;
        letter-spacing: 0.025em;
        font-size: clamp(2rem, 1.8125rem + 0.75vw, 2.6rem);
    }

    a {
        display: inline-block;
        text-decoration: none;
    }

    .activity-carousel {
        margin-top: 2em;
        margin-bottom: 1em;
        display: flex;
        gap: 2rem;


        .card-inner {
            position: relative;
            height: 10rem;
            background: var(--clr);
            border-radius: 1.25rem;
            overflow: hidden;

            .box {
                width: 100%;
                height: 100%;
                background: #fff;
                border-radius: 1.25rem;
                overflow: hidden;

                .imgBox {
                    position: absolute;
                    inset: 0;

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }

                .icon {
                    position: absolute;
                    bottom: -0.375rem;
                    left: 2.625rem;
                    width: 4.5rem;
                    height: 4.5rem;
                    background: var(--clr);
                    border-top-left-radius: 50%;
                    border-top-right-radius: 50%;

                    &:hover .iconBox {
                        transform: scale(1.1);
                    }

                    &::before {
                        position: absolute;
                        content: "";
                        bottom: 0.375rem;
                        left: -1.25rem;
                        background: transparent;
                        width: 1.25rem;
                        height: 1.25rem;
                        border-bottom-right-radius: 1.25rem;
                        box-shadow: 0.313rem 0.313rem 0 0.313rem #fff;
                    }

                    &::after {
                        position: absolute;
                        content: "";
                        bottom: 0.375rem;
                        left: 4.5rem;
                        background: transparent;
                        width: 1.25rem;
                        height: 1.25rem;
                        border-bottom-right-radius: 1.25rem;
                        box-shadow: 0.313rem 0.313rem 0 0.313rem #fff;
                        transform: scaleX(-1);
                    }

                    .iconBox {
                        position: absolute;
                        inset: 0.625rem;
                        border-radius: 50%;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        transition: 0.3s;

                        span {
                            color: #fff;
                            font-size: 1.5rem;
                        }
                    }
                }
            }
        }
    }
}

.iconBox {
    background: var(--maroon);
}

.activity-title {
    color: var(--green);
    font-weight: bold;
    text-transform: capitalize;
}

.activity-text {
    columns: var(--main);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-size: small;
}

.activity-label {
    font-size: x-small;
    background-color: var(--light);
    border-radius: 1rem;
    padding: 5px 10px;
    width: fit-content;
}

.activiy-img{
    border-radius: 2.4rem;
    height: 100%;
    object-fit: cover;
}

/* Fix card width to prevent expansion */
.owl-carousel-activity .card {
    max-width: 300px; /* adjust as needed */
    width: 100%;
    flex: 0 0 auto;
    flex-shrink: 0;
}

/* Prevent layout changes when modal opens */
body.modal-open .activity-section {
    overflow: hidden;
}

/* Ensure carousel layout remains consistent */
.owl-carousel-activity {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
}


.card {
    flex: 1;
    min-width: 165px;
    border: rgba(102, 102, 102, 0.08) solid 1.94px;
}

.owl-carousel-activity{
    overflow-x: hidden;
}

.btn-outline-danger{
    color: var(--maroon);
    border-color: var(--maroon);
    width: 2.5rem;
    height: 2.5rem;
}

.activity-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* Space between images */
    justify-content: center;
}

.gallery-img {
    border-radius: 1rem;
    width: calc((100% - 2rem) / 3); /* Ensures 3 images fit with gaps */
    height: 10rem;
    cursor: pointer;
    object-fit: cover;
}

/* Stack images in a column when screen is small */
@media (max-width: 768px) {
    .gallery-img {
        width: 100%; /* Full width */
    }
}

.direction-btn:dir(ltr) i {
    content: "\F146"; /* Unicode for bi-arrow-up-right */
    font-family: "Bootstrap Icons";
}

.gallery-img.selected {
    border: 5px solid var(--primary); 
}

.news-card-content{
    text-align:start !important;
}

.activity-modal{
    height: 0;
    width: 0;

    button{
        background-color: white;
        top: -30px;
        position: relative;
        border-radius: 50%;
        opacity: 100%;
        font-size: xx-small;
        padding: 0.7rem;
    
    }
}