.mahii-activity-text p,
.author-img,
.author-desc {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: #000;
    margin: 0;
    padding: 0;
}

.mahii-activity .author-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mahii-activity .author-box img {
    height: 110px;
    width: 110px;
    border-radius: 100%;
    object-fit: cover;
}

.author-desc {
    text-align: right;
    flex: 2;
}

.mahii-activity-subtitle {
    margin: 20px 0;
}

.author-box {
    margin-top: 20px;
}

.mahii-activity {
    cursor: pointer;
}

body:not(.elementor-editor-active) .mahii-activity-content {
    max-height: 2000px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not(.elementor-editor-active) .mahii-activity-content .author-box {
    max-height: 200px; /* Hauteur fixe pour la boîte auteur */
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not(.elementor-editor-active) .mahii-activity-content.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not(.elementor-editor-active) .mahii-activity-content.hidden .author-box {
    opacity: 0;
    transform: translateY(-20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}



.uc_style_activity_elementor_title {
    position: relative;
    display: block;
}

.uc_style_activity_elementor_title::before {
    content: '';
    position: absolute;
    top: 7px;
    right: -12px;
    height: 12px;
    width: 12px;
    border: 4px solid;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    border-radius: 0 0 3px 0;
    transition: transform 0.3s ease-in-out;
    transform-origin: center;
}

@media screen and (min-width: 1024px) {
    .uc_style_activity_elementor_title::before {
        top: 14px;
    }
}
.mahii-activity.active .uc_style_activity_elementor_title::before {
    transform: rotate(-135deg);
}