/* =========================================================
   بخش متن بازشدنی - طراحی مینیمال و مدرن
   ========================================================= */

.up-et-section {
    width: 100%;
    padding: 50px 0;
    background: #ffffff;
    border-top: 1px solid #f0f0f5;
    margin-top: 40px;
}

.up-et-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}

.up-et-box {
    position: relative;
}

/* =========================================
   عنوان
   ========================================= */
.up-et-title {
    font-size: 24px;
    font-weight: 800;
    color: #222 !important;
    margin: 0 0 20px;
    text-align: center;
    line-height: 1.4;
    position: relative;
    padding-bottom: 18px;
}

.up-et-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4837F3, #FF6B35);
    border-radius: 3px;
}

/* =========================================
   محتوا
   ========================================= */
.up-et-content {
    position: relative;
    max-height: 180px;
    overflow: hidden;
    transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    color: #555 !important;
    font-size: 14.5px;
    line-height: 2;
    text-align: justify;
}

.up-et-content-inner {
    position: relative;
    z-index: 1;
}

/* استایل محتوای HTML */
.up-et-content p {
    margin: 0 0 15px;
    color: #555;
}

.up-et-content p:last-child {
    margin-bottom: 0;
}

.up-et-content h3,
.up-et-content h4 {
    color: #222;
    font-weight: 800;
    margin: 20px 0 10px;
    font-size: 16px;
}

.up-et-content h3:first-child,
.up-et-content h4:first-child {
    margin-top: 0;
}

.up-et-content strong {
    color: #222;
    font-weight: 700;
}

.up-et-content a {
    color: #4837F3;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1.5px solid rgba(72, 55, 243, 0.3);
    transition: all 0.2s;
}

.up-et-content a:hover {
    border-bottom-color: #4837F3;
}

.up-et-content ul,
.up-et-content ol {
    padding-right: 22px;
    margin: 12px 0;
}

.up-et-content li {
    margin-bottom: 8px;
    line-height: 1.9;
}

/* =========================================
   محو شدن پایین (Fade)
   ========================================= */
.up-et-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 60%, #ffffff 100%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.4s;
}

.up-et-content.is-open .up-et-fade {
    opacity: 0;
    pointer-events: none;
}

.up-et-content.is-short .up-et-fade {
    opacity: 0;
}

/* =========================================
   دکمه باز و بسته
   ========================================= */
.up-et-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px auto 0;
    padding: 11px 28px;
    background: linear-gradient(145deg, #ffffff, #f0f2f9);
    color: #4837F3 !important;
    border: 1.5px solid #e6e8f5;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        4px 4px 10px rgba(72, 55, 243, 0.06),
        -2px -2px 6px rgba(255, 255, 255, 0.95),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

.up-et-toggle:hover {
    background: linear-gradient(135deg, #4837F3, #6b5bff);
    color: #fff !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow:
        0 8px 22px rgba(72, 55, 243, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.up-et-toggle:hover .up-et-toggle-arrow svg {
    stroke: #fff;
}

.up-et-toggle-text {
    position: relative;
    z-index: 2;
}

.up-et-toggle-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.up-et-toggle-arrow svg {
    stroke: #4837F3;
    transition: stroke 0.3s;
}

/* حالت باز - چرخش فلش */
.up-et-toggle[aria-expanded="true"] .up-et-toggle-arrow {
    transform: rotate(180deg);
}

/* =========================================
   ریسپانسیو
   ========================================= */
@media (max-width: 992px) {
    .up-et-section {
        padding: 40px 0;
        margin-top: 30px;
    }

    .up-et-container {
        padding: 0 20px;
    }

    .up-et-title {
        font-size: 21px;
    }

    .up-et-content {
        font-size: 13.5px;
        line-height: 1.95;
    }
}

@media (max-width: 768px) {
    .up-et-section {
        padding: 30px 0;
        margin-top: 20px;
    }

    .up-et-container {
        padding: 0 15px;
    }

    .up-et-title {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 14px;
    }

    .up-et-title::after {
        width: 45px;
        height: 2.5px;
    }

    .up-et-content {
        font-size: 13px;
        line-height: 1.9;
        text-align: right;
    }

    .up-et-content p {
        margin-bottom: 12px;
    }

    .up-et-fade {
        height: 60px;
    }

    .up-et-toggle {
        padding: 10px 22px;
        font-size: 12.5px;
        border-radius: 10px;
    }

    .up-et-toggle-arrow svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .up-et-title {
        font-size: 16px;
    }

    .up-et-content {
        font-size: 12.5px;
        line-height: 1.85;
    }

    .up-et-toggle {
        padding: 9px 18px;
        font-size: 12px;
    }
}