/* Training needs assessment call-to-action */
.cta-two {
    position: relative;
    padding: 3rem 0;
    scroll-margin-top: 90px;
    font-family: 'Tajawal', 'Cairo', 'Amiri', sans-serif;
}

.cta-two a {
    text-decoration: none;
}

.cta-two__bg {
    position: relative;
    overflow: hidden;
    padding: 9px;
    border-radius: 20px;
    background: var(--gradient-elegant);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: var(--shadow-xl);
}

.cta-two__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
            circle at 20% 80%,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 50%
        );
    pointer-events: none;
}

.cta-two .row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: stretch;
    min-height: 252px;
    direction: ltr;
}

.cta-two .col-lg-3,
.cta-two .col-lg-6 {
    min-width: 0;
}

.cta-two__info {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 234px;
    padding: 20px;
    overflow: hidden;
    border-radius: 25px;
    background-color: var(--bg-card);
    background-position: left;
    background-repeat: no-repeat;
    background-size: contain;
    text-align: center;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.cta-two__info::after {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 86%;
    content: "";
}

.cta-two__info__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 135px;
    margin: 0 auto;
    color: var(--primary-color);
}

.cta-two__info__icon .img-ic-n {
    display: block;
    width: 100%;
    height: auto;
    max-height: 180px;
}

.cta-two__content {
    position: relative;
    z-index: 2;
    padding: 29px 60px 20px 11px;
    direction: rtl;
}

.cta-two__content__title {
    margin: 0 0 12px;
    /* color: var(--text-light); */
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.cta-two__content__text {
    margin: 0 0 14px;
    /* color: rgba(255, 255, 255, 0.85); */
    font-size: 16px;
    line-height: 28px;
}

.cta-two__content__rm {
    display: inline-block;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-two__content__rm:hover {
    color: var(--accent-color);
    transform: translateX(-3px);
}

.cta-two__content__rm span {
    position: relative;
    top: 1px;
    display: inline-block;
    margin-right: 6px;
    line-height: inherit;
    transform: rotate(180deg);
}

.cta-two__call-text {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 32px;
    border: none;
    border-radius: 50px;
    background: var(--gradient-primary);
    color: var(--text-light);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.cta-two__call-text:hover,
.cta-two__call-text:focus-visible {
    color: var(--text-light);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.35);
    transform: translateY(-3px);
}

.cta-two__call-text:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.cta-two__call-text:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
}

.cta-two__image {
    position: absolute;
    right: 30px;
    bottom: 0;
    z-index: 1;
    animation: ctaMessageMove 3s linear infinite;
}

.cta-two__image img {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
}

@keyframes ctaMessageMove {
    0%,
    100% {
        transform: translateX(0);
    }

    25%,
    75% {
        transform: translateX(5px);
    }

    50% {
        transform: translateX(10px);
    }
}

@media (min-width: 991px) and (max-width: 1399px) {
    .cta-two__bg {
        background-image: none !important;
    }

    .cta-two__content {
        padding-right: 35px;
    }

    .cta-two__image {
        right: 0;
    }
}

@media (max-width: 991px) {
    .cta-two__bg {
        background-image: none !important;
        background-position: left;
    }

    .cta-two .row {
        grid-template-columns: minmax(180px, 1fr) 2fr;
    }

    .cta-two__content {
        padding: 30px;
    }

    .cta-two__image {
        display: none;
    }
}

@media (max-width: 767px) {
    .cta-two {
        padding: 2rem 0;
    }

    .cta-two .row {
        grid-template-columns: 1fr;
    }

    .cta-two__info {
        min-height: 180px;
    }

    .cta-two__info__icon {
        width: 105px;
    }

    .cta-two__content {
        padding: 30px 20px;
        text-align: center;
    }

    .cta-two__content__title {
        font-size: 21px;
    }

    .cta-two__content__text {
        font-size: 15px;
        line-height: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta-two__image {
        animation: none;
    }
}