.elementor-2404 .elementor-element.elementor-element-9a1bfc9{--display:flex;--background-transition:0.3s;}/* Start custom CSS for html, class: .elementor-element-0027d51 */.terms-container {
    direction: rtl;
    font-family: 'Arial', sans-serif;
    color: #000;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 900px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #1871a2;
    text-align: right;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.terms-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.terms-container h1, .terms-container h2, .terms-container h3 {
    color: #1871a2;
    margin-bottom: 15px;
    text-align: right;
    position: relative;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px; /* کاهش فاصله بین حروف */
}

.terms-container h1::after, .terms-container h2::after, .terms-container h3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #1871a2;
    bottom: -8px;
    right: 0;
    transition: width 0.4s ease-in-out;
}

.terms-container h1:hover::after, .terms-container h2:hover::after, .terms-container h3:hover::after {
    width: 120px;
}

.main-list {
    counter-reset: main-counter;
    padding-right: 20px;
    margin-bottom: 20px;
}

.main-list > li {
    counter-increment: main-counter;
    margin-bottom: 15px;
    list-style-type: none;
    position: relative;
    background-color: #f5faff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.main-list > li:hover {
    background-color: #e0f0ff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.main-list > li::before {
    content: counter(main-counter) ". ";
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    color: #1871a2;
    font-weight: bold;
    font-size: 16px;
}

.main-list ol {
    counter-reset: sub-counter;
    margin-bottom: 20px;
    padding-right: 40px;
}

.main-list ol > li {
    counter-increment: sub-counter;
    margin-bottom: 12px;
    list-style-type: none;
    position: relative;
    background-color: #eef5fc;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.main-list ol > li:hover {
    background-color: #d9e6f3;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.main-list ol > li::before {
    content: counter(main-counter) "." counter(sub-counter) " ";
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    color: #1871a2;
    font-weight: bold;
    font-size: 16px;
}

.terms-container p {
    margin-bottom: 20px;
    text-align: right;
    color: #333;
    transition: color 0.3s ease-in-out;
    line-height: 1.8;
}

.terms-container p:hover {
    color: #1871a2;
}

.terms-container strong {
    color: #1871a2;
    font-weight: bold;
}

/* شماره‌گذاری h2 */
.terms-container {
    counter-reset: h2-counter;
}

.terms-container h2 {
    counter-increment: h2-counter;
}

.terms-container h2::before {
    content: counter(h2-counter) ". ";
    font-weight: bold;
    color: #1871a2;
    margin-left: 5px;
    letter-spacing: 0; /* حذف فاصله بین حروف */
}/* End custom CSS */