@import url('/_content/ElementorBuilder/css/elementor-content.css');

.taben-elementor-content {
    font-family: var(--taben-font, 'Vazirmatn', Tahoma, sans-serif);
    font-size: clamp(0.92rem, 1.15vw, 1.02rem);
    color: var(--taben-text-body, #374151);
    line-height: 1.9;
    margin-top: 0;
    max-width: 100%;
    overflow-x: clip;
    overflow-wrap: anywhere;
}

.taben-elementor-content .elementor-section,
.taben-elementor-content .elementor-columns,
.taben-elementor-content .elementor-column {
    max-width: 100%;
    min-width: 0;
}

.taben-elementor-content .elementor-section {
    margin-bottom: 0.35rem;
}

.taben-elementor-content .elementor-section:not(:last-child) {
    border-bottom: 1px solid rgba(26, 86, 219, 0.06);
    margin-bottom: 0.75rem;
    padding-bottom: calc(var(--section-padding-bottom, 20px) + 0.35rem);
}

.taben-elementor-content .elementor-widget {
    margin-bottom: 1.1rem;
}

.taben-elementor-content .elementor-widget:last-child {
    margin-bottom: 0;
}

/* Headings */
.taben-elementor-content .widget-heading h1,
.taben-elementor-content .widget-heading h2,
.taben-elementor-content .widget-heading h3,
.taben-elementor-content .widget-heading h4 {
    color: var(--taben-text, #111827);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.45;
    margin: 0 0 0.65rem;
}

.taben-elementor-content .widget-heading h1 {
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.taben-elementor-content .widget-heading h2 {
    font-size: clamp(1.12rem, 2vw, 1.35rem);
    position: relative;
    padding-bottom: 0.45rem;
}

.taben-elementor-content .widget-heading h2::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 2.25rem;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--taben-primary, #1a56db), rgba(26, 86, 219, 0.25));
}

.taben-elementor-content .widget-heading h3 {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
}

/* Text & plain HTML */
.taben-elementor-content .widget-text p,
.taben-elementor-content .elementor-plain-content p {
    color: var(--taben-text-body, #374151);
    margin: 0 0 0.9rem;
    line-height: 1.95;
}

.taben-elementor-content .widget-text p:last-child,
.taben-elementor-content .elementor-plain-content p:last-child {
    margin-bottom: 0;
}

.taben-elementor-content .widget-text a {
    color: var(--taben-primary, #1a56db);
    text-decoration: underline;
}

.taben-elementor-content .widget-text strong,
.taben-elementor-content .widget-text b {
    font-weight: 700;
    color: var(--taben-text, #111827);
}

.taben-elementor-content .widget-text .ql-align-center,
.taben-elementor-content .widget-text [style*="text-align: center"] { text-align: center !important; }
.taben-elementor-content .widget-text .ql-align-left,
.taben-elementor-content .widget-text [style*="text-align: left"] { text-align: left !important; }
.taben-elementor-content .widget-text .ql-align-right,
.taben-elementor-content .widget-text [style*="text-align: right"] { text-align: right !important; }
.taben-elementor-content .widget-text .ql-align-justify,
.taben-elementor-content .widget-text [style*="text-align: justify"] { text-align: justify !important; }

.taben-elementor-content .widget-text blockquote {
    margin: 0.65em 0;
    padding: 0.75em 1em;
    border: none;
    border-right: 4px solid var(--taben-primary, #1a56db);
    background: linear-gradient(145deg, rgba(26, 86, 219, 0.08) 0%, rgba(238, 244, 255, 0.9) 55%, #fff 100%);
    border-radius: 0 12px 12px 0;
}

.taben-elementor-content .widget-text .ql-indent-1 { padding-right: 3em; }
.taben-elementor-content .widget-text .ql-indent-2 { padding-right: 6em; }
.taben-elementor-content .widget-text .ql-indent-3 { padding-right: 9em; }
.taben-elementor-content .widget-text .ql-indent-4 { padding-right: 12em; }
.taben-elementor-content .widget-text .ql-indent-5 { padding-right: 15em; }
.taben-elementor-content .widget-text .ql-indent-6 { padding-right: 18em; }
.taben-elementor-content .widget-text .ql-indent-7 { padding-right: 21em; }
.taben-elementor-content .widget-text .ql-indent-8 { padding-right: 24em; }

.taben-elementor-content .widget-text ul,
.taben-elementor-content .widget-text ol {
    margin: 0.35rem 0 0.85rem;
    padding-right: 1.25rem;
}

.taben-elementor-content .elementor-plain-content ul,
.taben-elementor-content .elementor-plain-content ol,
.taben-elementor-content .widget-list ul,
.taben-elementor-content .widget-list ol {
    margin: 0.35rem 0 0.85rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.taben-elementor-content .elementor-plain-content li,
.taben-elementor-content .widget-list li {
    position: relative;
    padding: 0.55rem 0.85rem 0.55rem 0.85rem;
    padding-inline-start: 2rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--taben-text-body, #374151);
    background: linear-gradient(105deg, rgba(26, 86, 219, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border: 1px solid rgba(26, 86, 219, 0.08);
    border-radius: 10px;
}

.taben-elementor-content .elementor-plain-content ul > li::before,
.taben-elementor-content .widget-list ul > li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0.7rem;
    top: 0.7rem;
    width: 1.05rem;
    height: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    color: #fff;
    background: var(--taben-primary, #1a56db);
    border-radius: 50%;
}

.taben-elementor-content .elementor-plain-content ol,
.taben-elementor-content .widget-list ol {
    counter-reset: taben-ol;
}

.taben-elementor-content .elementor-plain-content ol > li::before,
.taben-elementor-content .widget-list ol > li::before {
    counter-increment: taben-ol;
    content: counter(taben-ol);
    position: absolute;
    right: 0.7rem;
    top: 0.7rem;
    width: 1.05rem;
    height: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: var(--taben-primary, #1a56db);
    border-radius: 50%;
}

/* Quote */
.taben-elementor-content .widget-quote blockquote {
    margin: 0;
    padding: 1rem 1.1rem;
    border: none;
    border-right: 4px solid var(--taben-primary, #1a56db);
    background:
        linear-gradient(145deg, rgba(26, 86, 219, 0.08) 0%, rgba(238, 244, 255, 0.9) 55%, #fff 100%);
    border-radius: 0 14px 14px 0;
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--taben-text, #111827);
}

.taben-elementor-content .widget-quote blockquote p {
    margin: 0;
}

/* Image */
.taben-elementor-content .widget-image img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}

/* Button */
.taben-elementor-content .widget-button .btn-widget {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--taben-primary, #1a56db);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.65rem 1.2rem;
    box-shadow: 0 8px 18px rgba(26, 86, 219, 0.22);
    transition: transform 0.18s ease, background 0.18s ease;
}

.taben-elementor-content .widget-button .btn-widget:hover {
    background: var(--taben-primary-hover, #1648b8);
    color: #fff;
    transform: translateY(-1px);
}

/* Divider */
.taben-elementor-content .widget-divider hr {
    border: none;
    border-top: 1px solid rgba(26, 86, 219, 0.12);
    margin: 0.75rem 0;
}

/* Icon */
.taben-elementor-content .widget-icon i {
    color: var(--taben-primary, #1a56db);
}

/* Audio */
.taben-elementor-content .widget-audio {
    background: linear-gradient(160deg, #f8fafc 0%, #eef4ff 100%);
    border-color: rgba(26, 86, 219, 0.12);
    border-radius: 14px;
}

.taben-elementor-content .widget-audio-title {
    color: var(--taben-text, #111827);
}

.taben-elementor-content .widget-audio-desc {
    color: var(--taben-text-body, #374151);
}

.taben-elementor-content .widget-audio-player {
    max-width: 100%;
}

/* Alert — type colors must win over the generic rule */
.taben-elementor-content .widget-alert {
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.75;
    padding: 0.85rem 1rem;
}
.taben-elementor-content .widget-alert.alert-info {
    border: 1px solid rgba(26, 86, 219, 0.18);
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.08) 0%, rgba(238, 244, 255, 0.95) 100%);
    color: #1e3a8a;
}
.taben-elementor-content .widget-alert.alert-success {
    border: 1px solid #abeFC6;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, #ecfdf3 100%);
    color: #065f46;
}
.taben-elementor-content .widget-alert.alert-warning {
    border: 1px solid #fedf89;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, #fffaeb 100%);
    color: #92400e;
}
.taben-elementor-content .widget-alert.alert-danger {
    border: 1px solid #fecdca;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, #fef3f2 100%);
    color: #912018;
}
.taben-elementor-content .widget-alert[data-dismissible="1"] {
    padding-inline-start: 2rem;
}
.taben-elementor-content .widget-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
}
.taben-elementor-content .widget-alert-icon[hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .taben-elementor-content {
        font-size: 0.92rem;
    }

    .taben-elementor-content .elementor-plain-content li,
    .taben-elementor-content .widget-list li {
        font-size: 0.88rem;
        padding-block: 0.5rem;
    }

    .taben-elementor-content .widget-quote blockquote {
        padding: 0.85rem 0.95rem;
        font-size: 0.9rem;
    }
}
