/* Custom RTL styles for AI Assistant Exams Arabic Page */

@media only screen and (max-width: 767px) {
    .hero-section-new {
        margin-top: 0px;
        padding: 40px 0;
        text-align: center !important;
    }

    .hero-section-new h1,
    .hero-section-new p {
        text-align: center !important;
    }

    .hero-section-new .d-flex {
        justify-content: center !important;
    }

    .hero-badges-chips {
        justify-content: center !important;
    }
}

.hero-section-new {
    background: linear-gradient(135deg, #f8fbfd 0%, #edf4fc 100%);
    padding: 80px 0 60px 0;
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

@media only screen and (max-width: 767px) {
    .hero-section-new {
        margin-top: 60px;
        padding: 40px 0;
    }
}

@media only screen and (min-width: 768px) {
    .hero-section-new .row {
        position: relative;
    }

    .hero-section-new .col-lg-6:first-child {
        position: relative;
        z-index: 3;
    }

    .hero-section-new .QB_Banner_Img {
        position: relative;
        z-index: 1 !important;
    }

    .hero-section-new .QB_Banner_Img img {
        width: 130% !important;
        margin-right: -50px !important;
        margin-left: 0px !important;
        height: auto;
    }
}

.hero-section-new h1 {
    color: #24275e !important;
    font-size: 44px !important;
    font-weight: 800 !important;
    line-height: 1.25;
    margin-bottom: 20px;
}

@media only screen and (max-width: 991px) {
    .hero-section-new h1 {
        font-size: 32px !important;
    }
}

.hero-section-new p.lead {
    color: #465061 !important;
    font-size: 20px !important;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-section-new .btn-primary-orange {
    background-color: #f97316 !important;
    border: 2px solid #f97316 !important;
    color: #ffffff !important;
    padding: 11px 28px;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.2);
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
}

.hero-section-new .btn-primary-orange:hover {
    background-color: #ffffff !important;
    border-color: #f97316 !important;
    color: #f97316 !important;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.15);
}

.hero-section-new .btn-outline-orange {
    background-color: transparent !important;
    border: 2px solid #f97316 !important;
    color: #f97316 !important;
    padding: 11px 28px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
}

.hero-section-new .btn-outline-orange:hover {
    background-color: #f97316 !important;
    color: #ffffff !important;
}

.hero-badges-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
    border-top: 1px solid rgba(36, 39, 94, 0.08);
    padding-top: 30px;
}

.hero-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid #d0e3ff;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #24275e;
    box-shadow: 0 2px 6px rgba(41, 119, 255, 0.02);
    transition: all 0.25s ease;
}

.hero-badge-chip:hover {
    border-color: #2977ff;
    background-color: #f8fbfd;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(41, 119, 255, 0.08);
}

.hero-badge-chip svg {
    color: #2977ff;
    flex-shrink: 0;
}

/* Why It Matters Section */
.why-matters-section {
    padding: 90px 0;
    background-color: #ffffff;
}

.why-matters-section h2 {
    color: #24275e;
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
}

.why-matters-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #465061;
    margin-bottom: 24px;
    text-align: right;
}

.why-matters-callout {
    border-right: 3px solid #f97316;
    border-left: none;
    padding-right: 20px;
    padding-left: 0;
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    color: #24275e;
    font-weight: 500;
    margin-bottom: 24px;
    text-align: right;
}

/* Video Wrapper */
.ai-video-card {
    background-color: #f8fbfd;
    border: 1px solid #eef3ff;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    margin-bottom: 20px;
}

.ai-video-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.ai-video-wrap video {
    width: 100%;
    height: auto;
    display: block;
}

.ai-video-subtitle-bar {
    display: flex;
    align-items: center;
    background-color: #ebf3fb;
    border: 1px solid #d0e3ff;
    border-radius: 10px;
    padding: 12px 20px;
    width: 100%;
    gap: 15px;
}

.ai-video-subtitle-bar .icon-wrapper {
    background-color: #2977ff;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-video-subtitle-bar p {
    color: #24275e;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.4;
    text-align: right;
}

/* Features Grid */
.features-grid-section {
    background-color: #0b0f19 !important;
    padding: 80px 0;
}

.features-grid-section .container {
    max-width: 1280px !important;
}

.features-lens-container {
    background-color: #1b2b4c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 60px 45px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.features-lens-container h2 {
    color: #ffffff !important;
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
}

.features-grid-section .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    justify-content: center;
}

@media (max-width: 991px) {
    .features-grid-section .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .features-grid-section .features-grid {
        grid-template-columns: 1fr;
    }
}

.features-grid-section .feature-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 8px 24px rgba(34, 169, 240, 0.05);
    border: 1px solid #ebf3fb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.features-grid-section .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(34, 169, 240, 0.12);
    border-color: #2977ff;
}

.features-grid-section .feature-card h3 {
    color: #24275e !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    margin-bottom: 12px;
    line-height: 1.4;
    text-align: right;
}

.features-grid-section .feature-card p {
    color: #000000;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 0;
    flex-grow: 1;
    text-align: right;
}

.features-grid-section .feature-card ul {
    padding-right: 18px;
    padding-left: 0;
    margin-top: 10px;
    font-size: 14px;
    color: #5a6679;
    text-align: right;
}

.features-grid-section .feature-card ul li {
    font-weight: 400 !important;
    color: #000000 !important;
    margin-bottom: 6px;
}

.features-grid-section .feature-card .feature-card-icon {
    width: 70px !important;
    height: 70px !important;
    border-radius: 12px !important;
    background-color: #ebf3fb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #2977ff;
    font-size: 22px;
    transition: all 0.3s ease;
}

.features-grid-section .feature-card:hover .feature-card-icon {
    background-color: #2977ff;
    color: #ffffff;
}

.features-grid-section .feature-card .feature-card-icon svg {
    width: 36px !important;
    height: 36px !important;
}

/* Timeline/Workflow Section */
.ai-workflow-section {
    padding: 90px 0;
    background-color: #ffffff;
}

.ai-workflow-section h2 {
    color: #24275e;
    font-size: 38px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
}

.timeline-steps-container {
    padding-right: 20px;
    padding-left: 0;
    position: relative;
}

.timeline-step-item {
    position: relative;
    display: flex;
    gap: 24px;
    padding-bottom: 40px;
    cursor: pointer;
}

.timeline-step-item:last-child {
    padding-bottom: 0;
}

/* Vertical timeline connector line */
.timeline-step-item::before {
    content: '';
    position: absolute;
    top: 40px;
    bottom: 0;
    right: 19px;
    left: auto;
    width: 2px;
    background-color: #d0e3ff;
}

.timeline-step-item:last-child::before {
    display: none;
}

.timeline-step-item.active::before {
    background-color: #f97316;
}

/* Stepper Circle */
.timeline-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
    transition: all 0.25s ease;
}

.timeline-step-item.active .timeline-step-circle {
    background-color: #f97316;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.timeline-step-item.inactive .timeline-step-circle {
    background-color: #24275e;
}

/* Stepper Content */
.timeline-step-content {
    margin-top: -6px;
    padding: 10px 18px;
    border: 2px dotted transparent;
    border-radius: 12px;
    text-align: right;
    transition: all 0.25s ease;
}

.timeline-step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    transition: all 0.25s ease;
}

.timeline-step-item.active .timeline-step-content h3 {
    color: #f97316;
}

.timeline-step-item.inactive .timeline-step-content h3 {
    color: #24275e;
}

.timeline-step-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #465061;
    margin-bottom: 0;
}

/* Hover States */
.timeline-step-item:hover .timeline-step-circle {
    background-color: #f97316 !important;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3) !important;
}

.timeline-step-item:hover .timeline-step-content {
    border-color: #f97316 !important;
    background-color: rgba(249, 115, 22, 0.03) !important;
}

.timeline-step-item:hover .timeline-step-content h3 {
    color: #f97316 !important;
}

/* Stepper Visual Container */
.stepper-visual-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef3ff;
    background: #ffffff;
}

.stepper-picture-item {
    display: none;
    width: 100%;
    height: auto;
}

@keyframes stepperFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stepper-picture-item.active {
    display: block;
    animation: stepperFadeIn 0.35s ease forwards;
}

.stepper-picture-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* Bottom CTA container */
.steps-cta-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.steps-cta-btn {
    background-color: #f97316;
    border: 3px solid #f97316;
    color: #ffffff !important;
    padding: 16px 50px;
    font-size: 20px !important;
    font-weight: 700 !important;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2);
    text-align: center;
}

.steps-cta-btn:hover {
    background-color: #ffffff;
    color: #f97316 !important;
    border-color: #f97316;
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
}

/* Target Audience Section */
.audience-section-new {
    padding: 90px 0;
    background-color: #f8fbfd;
}

.audience-section-new h2 {
    color: #24275e;
    font-size: 38px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
}

.audience-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1280px;
    margin: 0 auto;
}

@media (max-width: 1199px) {
    .audience-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .audience-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .audience-card-grid {
        grid-template-columns: 1fr;
    }
}

.audience-card-new-style {
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #ebf3fb;
    box-shadow: 0 4px 12px rgba(36, 39, 94, 0.03);
    height: 120px;
    transition: all 0.3s ease;
}

.audience-card-new-style:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(36, 39, 94, 0.12);
    border-color: #2977ff;
}

.audience-card-image-part {
    flex: 0 0 38%;
    position: relative;
    overflow: hidden;
}

.audience-card-image-part img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.audience-card-new-style:hover .audience-card-image-part img {
    transform: scale(1.08);
}

.audience-card-content-part {
    flex: 0 0 62%;
    padding: 15px 12px 15px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start !important;
    text-align: right !important;
    background-color: #ffffff;
}

.audience-card-text-part p,
.audience-card-content-part p {
    color: #24275e;
    font-weight: 700 !important;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 0;
    text-align: right !important;
}

@media (max-width: 575px) {
    .audience-card-new-style {
        height: auto;
        min-height: 110px;
    }

    .audience-card-content-part {
        padding: 15px 20px;
    }

    .audience-card-text-part p {
        font-size: 15px;
    }
}

/* FAQ Section */
.faq-section-new {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    padding: 90px 0;
}

.faq-section-new h2 {
    color: #24275e;
    font-size: 38px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
}

.faq-item-custom {
    background-color: #ffffff !important;
    border: 1px solid #ebf3fb !important;
    border-radius: 12px !important;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(36, 39, 94, 0.02) !important;
    transition: all 0.3s ease !important;
    overflow: hidden;
}

.faq-item-custom:hover {
    border-color: #d0e3ff !important;
    box-shadow: 0 8px 25px rgba(36, 39, 94, 0.06) !important;
    transform: translateY(-2px);
}

.faq-button-custom {
    padding: 22px 30px !important;
    background: #ffffff !important;
    color: #24275e !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none !important;
    outline: none !important;
    transition: all 0.25s ease !important;
    position: relative;
    text-align: right !important;
}

.faq-button-custom:not(.collapsed) {
    color: #f97316 !important;
    background-color: #ffffff !important;
    border-right: 4px solid #f97316 !important;
    border-left: none !important;
    padding-right: 26px !important;
    padding-left: 30px !important;
}

.faq-button-custom .faq-icon {
    color: #24275e !important;
    transition: transform 0.3s ease, color 0.3s ease !important;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 15px;
    margin-left: 0;
}

.faq-button-custom:not(.collapsed) .faq-icon {
    color: #f97316 !important;
    transform: rotate(180deg) !important;
}

.faq-body-custom {
    padding: 0 30px 24px 30px !important;
    background-color: #ffffff !important;
    color: #465061 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    text-align: right;
}

/* Bottom CTA Section */
.bottom-cta-section {
    background-color: #0b132b;
    padding: 90px 0;
    text-align: center;
    color: #ffffff;
}

.bottom-cta-section h2 {
    color: #ffffff;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    text-align: center !important;
}

.bottom-cta-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-weight: 400;
    text-align: center !important;
}

.bottom-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-orange {
    background-color: #f97316;
    border: 3px solid #f97316;
    color: #ffffff !important;
    padding: 16px 50px;
    font-size: 20px !important;
    font-weight: 700 !important;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.25);
    text-align: center !important;
}

.btn-cta-orange:hover {
    background-color: #ffffff;
    color: #f97316 !important;
    border-color: #f97316;
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
}

.btn-cta-white {
    background-color: #ffffff;
    border: 3px solid #ffffff;
    color: #0b132b !important;
    padding: 16px 50px;
    font-size: 20px !important;
    font-weight: 700 !important;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
    text-align: center !important;
}

.btn-cta-white:hover {
    background-color: transparent;
    color: #ffffff !important;
    border-color: #ffffff;
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .steps-cta-container {
        display: flex;
        justify-content: center;
        padding: 0 15px;
        width: 100%;
    }

    .steps-cta-btn {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 20px !important;
        font-size: 18px !important;
        text-align: center !important;
    }
}

@media (max-width: 575px) {
    .bottom-cta-section {
        padding: 60px 0;
    }

    .bottom-cta-section h2 {
        font-size: 32px;
    }

    .bottom-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .btn-cta-orange,
    .btn-cta-white {
        width: 100%;
        padding: 14px 30px;
    }
}
