/* Risk Assessment Tool page */
.no-code .description {
    color: var(--primary-text-color);
    font-size: 1.4em;
    max-width: 80%;
}
[dir="rtl"] .section-title {
    max-width: 80%;
}
[dir="rtl"] .no-code .description {
    font-family: Tajawal, sans-serif;
    color: #848484;
}
[dir="ltr"] .no-code .description {
    font-family: "Metro Sans", sans-serif;
}
.banner-container .cta-text-container {
    width: 100%;
    max-width: 80% !important;
}
#lottie-risk-hero {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-width: 820px;
    max-height: 490px;
    margin: auto;
}

.charts-container.no-code {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
}

.chart-image-wrapper {
    flex: 0 0 auto;
    width: 100%;
    max-width: 650px;
}

.charts-container.no-code .chart-image {
    width: 100%;
    height: auto;
    margin-inline-start: auto;
}

.charts-container.no-code .charts-text-container {
    flex: 1;
    padding-top: 2rem;
}

@media screen and (max-width: 991px) {
    .charts-container.no-code {
        flex-direction: column !important;
        align-items: stretch;
        gap: 2rem;
    }

    .chart-image-wrapper {
        max-width: 600px;
        order: 2;
        margin: 0 auto;
    }

    .charts-container.no-code .charts-text-container {
        width: 100%;
        padding-top: 0;
        order: 1;
    }

    .charts-container.no-code .chart-image {
        margin: 2rem auto 0;
    }

    .no-code .description {
        max-width: 100%;
    }
}

@media screen and (max-width: 767px) {
    #lottie-risk-hero {
        min-height: 250px;
        max-height: 400px;
    }

    .charts-container.no-code {
        gap: 1.5rem;
    }

    .chart-image-wrapper {
        max-width: 500px;
    }

    .no-code .description {
        max-width: 100%;
        font-size: 1.2em;
    }
}

@media screen and (max-width: 479px) {
    #lottie-risk-hero {
        min-height: 200px;
        max-height: 300px;
    }

    .charts-container.no-code {
        gap: 1rem;
    }

    .chart-image-wrapper {
        max-width: 100%;
    }

    .no-code .description {
        font-size: 1.1em;
    }
}

/* Utility classes */
[dir="rtl"] .risk-hero-text { font-size: 3em; max-width: 80%; }
[dir="ltr"] .risk-hero-text { font-size: 3em; }
[dir="rtl"] .risk-use-case-title-80 { max-width: 80%; }
[dir="rtl"] .risk-use-case-desc { max-width: 75%; }
[dir="ltr"] .risk-use-case-desc { max-width: 80%; }
.risk-section-title-90 { max-width: 90%; }
