.activities-slider-wrapper {
    position: relative;
    width: 100%;
}

.activities-slider-wrapper .glide {
    position: relative;
}

.activity-card {
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: visible;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.activity-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 2rem;
}

.activity-presentation-slide {
    display: none;
    transition: all 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.activity-presentation-slide.is-visible {
    display: block !important;
    flex: 0 0 540px;
    width: 540px;
}

.activity-card-presentation {
    width: 540px;
    display: flex;
    padding: 10px;
    border: 1px solid rgba(34, 34, 34, 0.80);
    background: #FFF;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.08);
    animation: slideInFromLeft 0.6s ease-out;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--activity-icon-background, var(--e-global-color-primary));
}

.activity-icon img,
.activity-icon svg {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.activity-title {
    margin: 0;
    font-weight: 600;
}

.activity-card-info .activity-title {
    font-size: 1.25rem;
    writing-mode: sideways-lr;
    white-space: nowrap;
}

.activity-expanded-content {
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
    min-height: 400px;
    width: 100%;
    min-width: 520px;
}

.activity-image {
    flex: 0 0 180px;
    min-width: 180px;
    max-width: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.activity-details {
    flex: 0 0 340px;
    min-width: 340px;
    max-width: 340px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    background: inherit;
}

.activity-icon-top {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-icon-top img,
.activity-icon-top svg {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.activity-details .activity-title {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-right: 80px;
    font-size: 1.75rem;
}

.activity-excerpt {
    flex: 1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.activity-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.activity-button:hover {
    transform: translateY(-2px);
}

.glide__arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.glide__arrow {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid currentColor;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    padding: 0;
}

.glide__arrow:hover {
    transform: scale(1.1);
}

.glide__arrow--left {
    left: -20px;
}

.glide__arrow--right {
    right: -20px;
}

.glide__arrow svg {
    width: 50%;
    height: 50%;
}

.glide__bullets {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.glide__bullet {
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.glide__bullet:hover {
    transform: scale(1.2);
}

@media (max-width: 1024px) {
    .activity-expanded-content {
        flex-direction: column;
        min-height: 500px;
    }

    .activity-image {
        flex: 0 0 200px;
    }

    .activity-details {
        flex: 1;
    }

    .glide__arrow--left {
        left: 10px;
    }

    .glide__arrow--right {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .activity-card-closed {
        padding: 1.5rem;
    }

    .activity-details {
        padding: 1.5rem;
    }

    .activity-details .activity-title {
        font-size: 1.5rem;
        padding-right: 70px;
    }

    .activity-icon-top {
        width: 50px;
        height: 50px;
        top: 1.5rem;
        right: 1.5rem;
    }

    .activity-expanded-content {
        min-height: 450px;
    }

    .activity-image {
        flex: 0 0 150px;
    }
}

.glide__slide {
    height: auto;
    transition: all 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.activity-info-slide {
    flex-shrink: 0;
    border-right: 1px solid #D9D9D9;
}

.activity-info-slide:hover .activity-card-info {
    background-color: #f7f7f7 !important;
    transition: background-color 0.3s ease;
}

.glide__slides {
    align-items: stretch;
    flex-wrap: nowrap !important;
    display: flex !important;
}


.glide__track {
    overflow: hidden;
}

.activities-slider-progress {
    width: 100%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    border-radius: 2px;
    overflow: hidden;
}

.activities-slider-progress-bar {
    height: 100%;
    background-color: currentColor;
    width: 0;
    transition: width 0.3s ease;
    border-radius: 2px;
}