/*************************************************Sucess Stories Section Style**********************************************/

[dir="rtl"] .success-story-text {
    text-align: right;
}

/* Hidden by default */
.success-story {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Visible state */
.success-story.visible {
    opacity: 1;
    transform: translateY(0);
}

.success-stories-hero {
    text-align: center;
    margin: 10px 0;
    padding: 100px 0 0;
}

.success-stories-hero h1 {
    font-size: 2.5em;
    font-weight: bold;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.success-story h2 {
    font-size: 2em;
    font-weight: bold;
    color: #666;
    margin-bottom: 10px;
}

.success-story p {
    color: #555;
    line-height: 1.6;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .success-story h2 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .success-story p {
        font-size: 1.4em;
        line-height: 1.8;
        margin-bottom: 15px;
    }

    .read-more-link a {
        font-size: 1.3em;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .success-story h2 {
        font-size: 1.6em;
        margin-bottom: 8px;
    }

    .success-story p {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .read-more-link a {
        font-size: 1.2em;
        line-height: 1.5;
    }
}

.success-story-container {
    margin-bottom: 40px;
}

.success-story-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-story-content img {
    border: 4px solid #8bc34a;
    border-radius: 15px;
    max-width: 200px;
    margin-right: 20px;
}

.success-story-text {
    max-width: 500px;
    text-align: left;
}

.read-more-link {
    margin-bottom: 20px;
}

.read-more-link a {
    color: var(--primary-color);
}

/* Standardize both .success-story and .reverse-story */
@media (max-width: 768px) {
    .success-story-content,
    .success-story.reverse-story .success-story-content {
        flex-direction: column;
        text-align: center;
    }

    .success-story-content img {
        margin-right: 0;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .success-story-text {
        text-align: center;
        max-width: 100%;
    }
}

.success-stories-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    padding: 20px;
}

.success-story,
.success-story.reverse-story {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 20px;
    background: #fff;
}

.success-story.reverse-story {
    flex-direction: row-reverse;
}

.success-story-text {
    flex: 1;
    padding: 20px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
}

.success-story-text h3 {
    font-size: 1.2em;
    color: #888;
    margin-bottom: 15px;
}

.success-story-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.success-story-text a:hover {
    text-decoration: underline;
}

.success-story-image {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.success-story-image img {
    width: 400px;
    height: 300px;
    display: block;
    border: 4px solid #8bc34a;
    border-radius: 23px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .success-story,
    .success-story.reverse-story {
        padding: 0;
        flex-direction: column;
        text-align: center;
    }

    .success-story-text {
        padding: 10px;
    }

    .success-story-image {
        margin: 10px 0;
    }

    .success-story-image img {
        max-width: 100%;
        max-height: auto;
    }
}
