﻿.about-us-wrapper {
    padding: 0 95px;
}

.about-us-header-mobile {
    display: none;
}

.about-us-container {
    padding: 24px 79px 79px 79px;
    margin: 158px 0 200px 0;
    border-radius: 30px;
    background: linear-gradient(to bottom, #E0EBFF 0%, #FAFCFF 100%);
    border: 1px solid #D0DEFF;
    box-shadow: 0 4px 30px rgba(22, 8, 97, 0.21);
    box-sizing: border-box; 
    overflow: hidden;
}

.about-us-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    min-height: 300px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.about-us-image {
    margin: auto 0;
    flex: 1 1 400px;
    max-width: 532px;
    height: auto;
    width: 100%;
    object-fit: cover;
    box-sizing: border-box;
}

.about-us-text {
    flex: 1 1 400px;
    box-sizing: border-box;
    min-width: 300px;
    max-width: 600px;
}

/* RTL */
[dir="rtl"] .about-us-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .about-us-text {
    text-align: right;
}

/* Desktop */
.desktop-title {
    font-family: 'PloniMLv2AAA-Bold', Arial, sans-serif;
    font-weight: 700;
    font-size: 35px;
    line-height: 50px;
    text-align: right;
    color: #112C55;
    letter-spacing: 0px;
    margin-block-start: 40px;
    margin-block-end: 40px;
}

.about-us-text p {
    font-family: 'PloniMLv2AAA-Regular', Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    text-align: right;
    color: #160861;
    letter-spacing: 0px;
    margin-block-end: 20px;
}

.about-us-text p:last-child {
    margin-block-end: 0;
}

.about-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.about-link:hover {
    text-decoration: underline;
}

/* Wide screens */
@media (min-width: 1600px) {
    .about-us-content {
        max-width: 1400px;
        gap: 70px;
    }

    .about-us-text {
        max-width: 650px;
    }

    .about-us-image {
        max-width: 580px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .about-us-wrapper {
        padding: 0 14px;
    }

    .about-us-header-mobile {
        display: flex;
        align-items: baseline;
        gap: 17px;
        margin: 128px 7px 43px 7px;
        direction: rtl;
        justify-content: flex-start;
    }

    .about-us-header-mobile h3 {
        font-family: 'PloniMLv2AAA-Bold', Arial, sans-serif;
        font-weight: 700;
        font-size: 35px;
        line-height: 50px;
        text-align: right;
        color: #112C55;
        letter-spacing: 0px;
        margin: 0;
        padding: 0;
    }

    .header-rectangle {
        width: 14px;
        height: 33px;
        background: #F1481F;
        border-radius: 100px;
        flex-shrink: 0;
        margin-top: 8px;
        align-self: stretch;
        display: flex;
        align-items: center;
    }

    .desktop-title {
        display: none;
    }

    .about-us-container {
        margin: 0 auto 50px auto;
        padding: 34px;
        border-radius: 15px;
    }

    .about-us-content {
        flex-direction: column;
        gap: 25px;
        min-height: auto;
    }

    [dir="rtl"] .about-us-text,
    .about-us-text p {
        text-align: right;
    }

    .about-us-image {
        display: none;
    }

    .about-us-text {
        flex: none;
        width: 100%;
    }
}
