/* AG Image Text Block Styles */
.ag-image-text {
    --ag-it-accent: #FAB93A;
    --ag-it-font: 'Al-Jazeera-Arabic', sans-serif;

    padding: 80px 0;
    direction: rtl;
    color: white;
    width: 100%;
}

/* LTR Direction Modifier */
.ag-image-text--dir-ltr {
    direction: ltr;
}

.ag-image-text--dir-ltr .ag-image-text__content-side {
    text-align: left;
}

.ag-image-text__container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 60px;
    padding: 0 20px;
}

/* Layout Variants */
.ag-image-text--img-right .ag-image-text__container {
    flex-direction: row;
}

.ag-image-text--img-left .ag-image-text__container {
    flex-direction: row-reverse;
}

.ag-image-text__image-side {
    flex: 1 1 50%;
    min-height: 542px;
}

.ag-image-text__image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.ag-image-text__content-side {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: right;
}

.ag-image-text__header {
    margin-bottom: 20px;
}

.ag-image-text__title {
    font-family: var(--ag-it-font);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.ag-image-text__title::after {
    display: none;
}

.ag-image-text__subtitle {
    font-family: var(--ag-it-font);
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #ffffff;
}

.ag-image-text__description {
    font-family: var(--ag-it-font);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 30px;
}

.ag-image-text__divider {
    height: 1px;
    background-color: var(--ag-it-accent);
    margin: 30px 0;
    align-self: flex-start;
}

/* When divider comes right after title/subtitle (no description shown) */
.ag-image-text__header+.ag-image-text__divider,
.ag-image-text__subtitle+.ag-image-text__divider {
    margin-top: 10px;
}

.ag-image-text__bullets {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.ag-image-text__bullets--two-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
}

.ag-image-text__bullet-item {
    font-family: var(--ag-it-font);
    font-size: 26px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ag-image-text__bullet-item::before {
    content: '';
    width: 12px;
    height: 12px;
    background-color: var(--ag-it-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.ag-image-text__text-content {
    font-family: var(--ag-it-font);
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.ag-image-text__buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.ag-image-text__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 47px;
    padding: 0 40px;
    border-radius: 10px;
    border: 1px solid var(--ag-it-accent);
    color: white;
    font-family: var(--ag-it-font);
    font-size: 15px;
    font-weight: 300;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ag-image-text__btn:hover {
    background-color: var(--ag-it-accent);
    color: #121932;
    transform: translateY(-2px);
}

.ag-image-text__btn2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 47px;
    padding: 0 40px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, #2673B7 0%, #3192E8 100%);
    color: white;
    font-family: var(--ag-it-font);
    font-size: 15px;
    font-weight: 300;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ag-image-text__btn2:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 115, 183, 0.4);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .ag-image-text__container {
        flex-direction: column !important;
        gap: 40px;
    }

    .ag-image-text__image-side,
    .ag-image-text__content-side {
        flex: 1 1 100% !important;
        width: 100%;
    }

    .ag-image-text__image-side {
        min-height: 350px;
    }

    .ag-image-text__title {
        font-size: 36px;
    }

    .ag-image-text__description,
    .ag-image-text__text-content,
    .ag-image-text__bullet-item {
        font-size: 20px;
    }

    .ag-image-text__bullets--two-cols {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}