/* ------------------------------------------------------------------------------
   Testimonial Widget Styles
   Designed for Masdar City (Responsive across ALL device formats:
   Ultra-wide, Desktop, Laptops, Tablet Landscape & Portrait, Mobile & Compact Mobile;
   Supporting both English LTR and Arabic RTL).
   Strictly aligned with Figma specifications.
   ------------------------------------------------------------------------------ */

/* ==============================================================================
   1. BASE / WRAPPER & HEADING (UNIVERSAL)
   ============================================================================== */
.testimonial-widget-wrapper {
    width: 100% !important;
    margin: 40px 0 !important;
}

.testimonial-widget-heading {
    color: #101820 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-bottom: 24px !important;
    text-transform: uppercase !important;
    font-family: 'DINProCondBold', 'DINProBold', sans-serif !important;
    letter-spacing: 0.5px !important;
}

[dir="rtl"] .testimonial-widget-heading,
.testimonial-card.rtl~.testimonial-widget-heading,
.rtl .testimonial-widget-heading {
    text-align: right !important;
    font-family: 'DINProBold', 'DINProMedium', Tahoma, Arial, sans-serif !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* ==============================================================================
   2. CARD CONTAINER BASE
   ============================================================================== */
.testimonial-card {
    background: #FFFFFF !important;
    background: linear-gradient(115deg, #BAECE9 0%, #D8F4F2 22%, #F0FAF9 42%, #FFFFFF 65%, #F4FBFA 85%, #E4F6F4 100%) !important;
    border: 1px solid #DDF1F0 !important;
    border-radius: 20px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 24px rgba(0, 153, 154, 0.04) !important;
    isolation: isolate !important;
}

[dir="rtl"] .testimonial-card,
.testimonial-card.rtl,
.rtl .testimonial-card {
    background: linear-gradient(270deg, #dff3f1 0%, #ffffff 100%) !important;
}

.testimonial-teal-backdrop {
    display: none !important;
}

/* ==============================================================================
   3. COMMON TYPOGRAPHY & ELEMENTS
   ============================================================================== */
.testimonial-quote-icon {
    margin-bottom: 20px !important;
    line-height: 1 !important;
    display: block !important;
    width: fit-content !important;
}

.testimonial-quote-icon svg {
    width: 44px !important;
    height: 34px !important;
    display: block !important;
}

.testimonial-quote-icon svg path,
.testimonial-quote-icon svg {
    fill: #00999A !important;
}

[dir="rtl"] .testimonial-quote-icon,
.testimonial-card.rtl .testimonial-quote-icon,
.rtl .testimonial-quote-icon {
    margin-left: auto !important;
    margin-right: 0 !important;
}

[dir="rtl"] .testimonial-quote-icon svg,
.testimonial-card.rtl .testimonial-quote-icon svg,
.rtl .testimonial-quote-icon svg {
    transform: scaleX(-1) !important;
}

/* Arabic RTL Only: Reverse/mirror author photo horizontally so body angle and gaze face inward toward quote */
[dir="rtl"] .testimonial-author-image,
.testimonial-card.rtl .testimonial-author-image,
.rtl .testimonial-author-image {
    transform: scaleX(-1) !important;
    transform-origin: 50% 15% !important;
}

.testimonial-quote-text {
    color: #101820 !important;
    font-size: 19px !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
    margin-top: 0 !important;
    margin-bottom: 22px !important;
    font-family: 'DINPro', sans-serif !important;
}

.testimonial-quote-text p {
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    font-family: inherit !important;
}

[dir="rtl"] .testimonial-quote-text,
.testimonial-card.rtl .testimonial-quote-text,
.rtl .testimonial-quote-text {
    font-family: 'DINPro', Tahoma, Arial, sans-serif !important;
    text-align: right !important;
}

.testimonial-author-info {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    width: 100% !important;
}

[dir="rtl"] .testimonial-author-info,
.testimonial-card.rtl .testimonial-author-info,
.rtl .testimonial-author-info,
.testimonial-widget-wrapper[dir="rtl"] .testimonial-author-info {
    align-items: flex-start !important;
    direction: rtl !important;
    text-align: right !important;
    width: 100% !important;
}

.testimonial-accent-line {
    width: 64px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background-color: #00999A !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    display: block !important;
    flex-shrink: 0 !important;
}

[dir="rtl"] .testimonial-accent-line,
.testimonial-card.rtl .testimonial-accent-line,
.rtl .testimonial-accent-line,
.testimonial-widget-wrapper[dir="rtl"] .testimonial-accent-line {
    margin-left: auto !important;
    margin-right: 0 !important;
    align-self: flex-start !important;
}

.testimonial-author-name {
    color: #101820 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-top: 0 !important;
    margin-bottom: 4px !important;
    font-family: 'DINProMedium', 'DINProBold', sans-serif !important;
    flex-shrink: 0 !important;
}

[dir="rtl"] .testimonial-author-name,
.testimonial-card.rtl .testimonial-author-name,
.rtl .testimonial-author-name,
.testimonial-widget-wrapper[dir="rtl"] .testimonial-author-name {
    text-align: right !important;
    direction: rtl !important;
    unicode-bidi: isolate !important;
    width: 100% !important;
    font-family: 'DINProBold', 'DINProMedium', Tahoma, Arial, sans-serif !important;
}

.testimonial-author-role {
    color: #4b5560 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-family: 'DINPro', sans-serif !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    visibility: visible !important;
    display: block !important;
}

[dir="rtl"] .testimonial-author-role,
.testimonial-card.rtl .testimonial-author-role,
.rtl .testimonial-author-role,
.testimonial-widget-wrapper[dir="rtl"] .testimonial-author-role {
    text-align: right !important;
    direction: rtl !important;
    unicode-bidi: isolate !important;
    width: 100% !important;
    font-family: 'DINPro', Tahoma, Arial, sans-serif !important;
}

/* ==============================================================================
   4. WATERMARK CIRCLES
   ============================================================================== */
.testimonial-watermark .testimonial-arc-1 {
    fill: #EAF7F7 !important;
    stroke: none !important;
}

.testimonial-watermark .testimonial-arc-2 {
    fill: #DEF2F1 !important;
    stroke: none !important;
}

.testimonial-watermark {
    position: absolute !important;
    pointer-events: none !important;
    z-index: 1 !important;
    display: block !important;
}

/* ==============================================================================
   5. STATIC RENDERING: STRICT SUPPRESSION OF AOS / SCROLL ANIMATION HIDING
   ============================================================================== */
.testimonial-widget-wrapper,
.testimonial-widget-wrapper *,
.testimonial-card,
.testimonial-card *,
.testimonial-author-info,
.testimonial-author-name,
.testimonial-author-role,
.testimonial-accent-line,
.testimonial-quote-text {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    visibility: visible !important;
}

[data-aos].testimonial-author-role,
.testimonial-widget-wrapper [data-aos],
.testimonial-card [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    visibility: visible !important;
}

/* ==============================================================================
   6. DESKTOP BASE (min-width: 992px)
   Strictly aligned with Figma Desktop (1200px x 520px) (EN: 253:3116 / AR: 253:3269)
   ============================================================================== */
@media (min-width: 992px) {
    .testimonial-widget-wrapper .container {
        max-width: 1200px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .testimonial-widget-heading {
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: 36px !important;
        line-height: 1.25 !important;
        margin-bottom: 28px !important;
    }

    .testimonial-card {
        max-width: 1200px !important;
        width: 100% !important;
        min-height: 520px !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        border-radius: 12px !important;
        border: 1px solid #CFE7E4 !important;
    }

    /* Teal Backdrop behind CEO: English on Left */
    .testimonial-teal-backdrop {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: auto !important;
        width: 36.67% !important;
        height: 100% !important;
        clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%) !important;
        -webkit-clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%) !important;
        background: linear-gradient(180deg, #CEEBE8 0%, #BAE5E2 38%, #A0DDD8 75%, #8FD8D0 100%) !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }

    /* RTL Teal Backdrop: strictly on the RIGHT for Arabic Desktop */
    [dir="rtl"] .testimonial-teal-backdrop,
    .testimonial-card.rtl .testimonial-teal-backdrop,
    .rtl .testimonial-teal-backdrop {
        left: auto !important;
        right: 0 !important;
        width: 36.67% !important;
        height: 100% !important;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%) !important;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%) !important;
    }

    /* Desktop Grid: flex row, locked to direction: ltr */
    .testimonial-card-grid {
        position: relative !important;
        z-index: 2 !important;
        display: flex !important;
        flex-direction: row !important;
        direction: ltr !important;
        align-items: stretch !important;
        min-height: 520px !important;
        height: auto !important;
        width: 100% !important;
    }

    /* English Desktop: Image on visual LEFT (order 1), Content on visual RIGHT (order 2) */
    .testimonial-image-column {
        order: 1 !important;
        flex: 0 0 36.67% !important;
        max-width: 36.67% !important;
        width: 36.67% !important;
        min-height: 520px !important;
        height: auto !important;
        align-self: stretch !important;
        position: relative !important;
        overflow: hidden !important;
        clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%) !important;
        -webkit-clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%) !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        background: transparent !important;
    }

    .testimonial-content-column {
        order: 2 !important;
        flex: 0 0 63.33% !important;
        max-width: 63.33% !important;
        width: 63.33% !important;
        min-height: 520px !important;
        height: auto !important;
        align-self: stretch !important;
        position: relative !important;
        z-index: 2 !important;
        display: flex !important;
        align-items: center !important;
        background: transparent !important;
    }

    /* Arabic Desktop (RTL): Content on visual LEFT (order 1), CEO on visual RIGHT (order 2) */
    [dir="rtl"] .testimonial-content-column,
    .testimonial-card.rtl .testimonial-content-column,
    .rtl .testimonial-content-column {
        order: 1 !important;
        flex: 0 0 63.33% !important;
        max-width: 63.33% !important;
        width: 63.33% !important;
    }

    [dir="rtl"] .testimonial-image-column,
    .testimonial-card.rtl .testimonial-image-column,
    .rtl .testimonial-image-column {
        order: 2 !important;
        flex: 0 0 36.67% !important;
        max-width: 36.67% !important;
        width: 36.67% !important;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%) !important;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%) !important;
    }

    .testimonial-image-frame {
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        position: relative !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
    }

    .testimonial-author-image {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 8% !important;
        transform: scale(1.35) !important;
        transform-origin: 50% 15% !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* Arabic Desktop Only: Mirror author photo while maintaining desktop scale */
    [dir="rtl"] .testimonial-author-image,
    .testimonial-card.rtl .testimonial-author-image,
    .rtl .testimonial-author-image {
        transform: scaleX(-1) scale(1.35) !important;
        transform-origin: 50% 15% !important;
    }

    .testimonial-content-inner {
        padding: 40px 72px 40px 48px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 2 !important;
        width: 100% !important;
        height: 100% !important;
    }

    [dir="rtl"] .testimonial-content-inner,
    .testimonial-card.rtl .testimonial-content-inner,
    .rtl .testimonial-content-inner {
        padding: 40px 48px 40px 72px !important;
        direction: rtl !important;
        text-align: right !important;
    }

    .testimonial-quote-icon {
        margin-bottom: 22px !important;
        flex-shrink: 0 !important;
    }

    .testimonial-quote-icon svg {
        width: auto !important;
        height: 45px !important;
        max-width: 60px !important;
    }

    .testimonial-quote-text {
        font-size: 24px !important;
        line-height: 42px !important;
        color: #0f1e2b !important;
        margin-top: 0 !important;
        margin-bottom: 22px !important;
        font-family: 'DINProMedium', 'DINPro', sans-serif !important;
    }

    [dir="rtl"] .testimonial-quote-text,
    .testimonial-card.rtl .testimonial-quote-text,
    .rtl .testimonial-quote-text {
        font-size: 26px !important;
        line-height: 45px !important;
    }

    .testimonial-accent-line {
        width: 64px !important;
        height: 4px !important;
        border-radius: 2px !important;
        background-color: #00999A !important;
        margin-top: 0 !important;
        margin-bottom: 22px !important;
    }

    .testimonial-author-name {
        font-size: 24px !important;
        line-height: 32px !important;
        font-family: 'DINProBold', 'DINProMedium', sans-serif !important;
        color: #0f1e2b !important;
        margin-top: 0 !important;
        margin-bottom: 4px !important;
        flex-shrink: 0 !important;
    }

    .testimonial-author-role {
        font-size: 17px !important;
        line-height: 26px !important;
        font-family: 'DINPro', sans-serif !important;
        color: #4b5560 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }

    .testimonial-watermark {
        position: absolute !important;
        bottom: -210px !important;
        right: -195px !important;
        left: auto !important;
        top: auto !important;
        width: 420px !important;
        height: 420px !important;
        pointer-events: none !important;
        z-index: 1 !important;
    }

    /* Arabic Desktop: Bottom-Left Corner */
    [dir="rtl"] .testimonial-watermark,
    .testimonial-card.rtl .testimonial-watermark,
    .rtl .testimonial-watermark,
    .testimonial-widget-wrapper[dir="rtl"] .testimonial-watermark {
        left: -189px !important;
        right: auto !important;
        bottom: -210px !important;
        top: auto !important;
        transform: none !important;
    }
}

/* ==============================================================================
   7. LAPTOPS & TABLET LANDSCAPE (min-width: 992px) and (max-width: 1199.98px)
   ============================================================================== */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .testimonial-card {
        min-height: 480px !important;
    }

    .testimonial-card-grid {
        min-height: 480px !important;
    }

    .testimonial-image-column,
    .testimonial-teal-backdrop,
    [dir="rtl"] .testimonial-image-column,
    [dir="rtl"] .testimonial-teal-backdrop {
        flex: 0 0 38% !important;
        max-width: 38% !important;
        width: 38% !important;
        min-height: 480px !important;
    }

    .testimonial-content-column,
    [dir="rtl"] .testimonial-content-column {
        flex: 0 0 62% !important;
        max-width: 62% !important;
        width: 62% !important;
        min-height: 480px !important;
    }

    .testimonial-content-inner {
        padding: 32px 40px 32px 32px !important;
    }

    [dir="rtl"] .testimonial-content-inner,
    .testimonial-card.rtl .testimonial-content-inner,
    .rtl .testimonial-content-inner {
        padding: 32px 32px 32px 40px !important;
    }

    .testimonial-quote-icon svg {
        height: 38px !important;
    }

    .testimonial-quote-text {
        font-size: 20px !important;
        line-height: 34px !important;
        margin-bottom: 18px !important;
    }

    [dir="rtl"] .testimonial-quote-text,
    .testimonial-card.rtl .testimonial-quote-text,
    .rtl .testimonial-quote-text {
        font-size: 21px !important;
        line-height: 36px !important;
    }

    .testimonial-accent-line {
        margin-bottom: 16px !important;
    }

    .testimonial-author-name {
        font-size: 21px !important;
        line-height: 28px !important;
    }

    .testimonial-author-role {
        font-size: 15px !important;
        line-height: 22px !important;
    }

    .testimonial-watermark {
        width: 360px !important;
        height: 360px !important;
        bottom: -180px !important;
        right: -160px !important;
    }

    [dir="rtl"] .testimonial-watermark,
    .testimonial-card.rtl .testimonial-watermark,
    .rtl .testimonial-watermark,
    .testimonial-widget-wrapper[dir="rtl"] .testimonial-watermark {
        left: -160px !important;
        right: auto !important;
        bottom: -180px !important;
    }
}

/* ==============================================================================
   8. MOBILE BASE (max-width: 767.98px)
   ============================================================================== */
@media (max-width: 767.98px) {
    .testimonial-widget-wrapper {
        margin: 24px 0 !important;
        width: 100% !important;
    }

    .testimonial-widget-heading {
        color: #0f1e2b !important;
        font-size: 28px !important;
        line-height: 36px !important;
        font-weight: 700 !important;
        margin-bottom: 24px !important;
        letter-spacing: 0.16px !important;
        text-transform: uppercase !important;
        font-family: 'DINProCondBold', 'DINProBold', sans-serif !important;
    }

    [dir="rtl"] .testimonial-widget-heading,
    .testimonial-card.rtl~.testimonial-widget-heading,
    .rtl .testimonial-widget-heading {
        color: #0f1e2b !important;
        font-size: 26px !important;
        line-height: 40px !important;
        font-weight: 800 !important;
        text-align: right !important;
        margin-bottom: 24px !important;
        letter-spacing: normal !important;
        text-transform: none !important;
        font-family: 'Noto Sans Arabic', 'DINProBold', 'DINProMedium', Tahoma, Arial, sans-serif !important;
    }

    /* Hide Desktop diagonal backdrop on mobile completely */
    .testimonial-teal-backdrop,
    [dir="rtl"] .testimonial-teal-backdrop,
    .testimonial-card.rtl .testimonial-teal-backdrop,
    .rtl .testimonial-teal-backdrop {
        display: none !important;
    }

    /* Card Container: 20px radius, 1px border #cfe7e4, soft gradient */
    .testimonial-card {
        border-radius: 20px !important;
        overflow: hidden !important;
        border: 1px solid #cfe7e4 !important;
        background: linear-gradient(90deg, #dff3f1 0%, #ffffff 100%) !important;
        box-shadow: 0 4px 24px rgba(0, 161, 155, 0.06) !important;
        position: relative !important;
        isolation: isolate !important;
        width: 100% !important;
    }

    [dir="rtl"] .testimonial-card,
    .testimonial-card.rtl,
    .rtl .testimonial-card {
        background: linear-gradient(270deg, #dff3f1 0%, #ffffff 100%) !important;
    }

    .testimonial-card-grid {
        display: flex !important;
        flex-direction: column !important;
        min-height: auto !important;
        width: 100% !important;
        direction: ltr !important;
        position: relative !important;
        z-index: 2 !important;
    }

    /* TOP: Full-width CEO Photo with Angled Crop */
    .testimonial-image-column,
    [dir="rtl"] .testimonial-image-column,
    .testimonial-card.rtl .testimonial-image-column,
    .rtl .testimonial-image-column {
        order: 1 !important;
        flex: 0 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
        position: relative !important;
        overflow: hidden !important;
        display: block !important;
        background: linear-gradient(180deg, #CEEBE8 0%, #BAE5E2 38%, #A0DDD8 75%, #8FD8D0 100%) !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 1 !important;
    }

    .testimonial-image-frame,
    [dir="rtl"] .testimonial-image-frame,
    .testimonial-card.rtl .testimonial-image-frame,
    .rtl .testimonial-image-frame {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        position: relative !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .testimonial-author-image {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 0% !important;
        display: block !important;
        margin: 0 auto !important;
        transform: none !important;
    }

    /* Arabic Mobile Only: Mirror author photo */
    [dir="rtl"] .testimonial-author-image,
    .testimonial-card.rtl .testimonial-author-image,
    .rtl .testimonial-author-image {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 0% !important;
        display: block !important;
        margin: 0 auto !important;
        transform: scaleX(-1) !important;
        transform-origin: 50% 15% !important;
    }

    /* BOTTOM: Quote & Author Content Column */
    .testimonial-content-column,
    [dir="rtl"] .testimonial-content-column,
    .testimonial-card.rtl .testimonial-content-column,
    .rtl .testimonial-content-column {
        order: 2 !important;
        flex: 1 1 auto !important;
        max-width: 100% !important;
        width: 100% !important;
        position: relative !important;
        z-index: 2 !important;
        border-radius: 0 !important;
        background: transparent !important;
        margin-top: 0 !important;
        box-shadow: none !important;
        display: block !important;
    }

    .testimonial-content-inner {
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        z-index: 2 !important;
        width: 100% !important;
        direction: ltr !important;
        text-align: left !important;
        background: transparent !important;
    }

    [dir="rtl"] .testimonial-content-inner,
    .testimonial-card.rtl .testimonial-content-inner,
    .rtl .testimonial-content-inner {
        direction: rtl !important;
        text-align: right !important;
        background: transparent !important;
    }

    .testimonial-author-name {
        font-family: 'DINProBold', 'DINProMedium', sans-serif !important;
        font-weight: 700 !important;
        color: #0f1e2b !important;
    }

    [dir="rtl"] .testimonial-author-name,
    .testimonial-card.rtl .testimonial-author-name,
    .rtl .testimonial-author-name,
    .testimonial-widget-wrapper[dir="rtl"] .testimonial-author-name {
        font-family: 'DINProBold', 'DINProMedium', Tahoma, Arial, sans-serif !important;
    }

    .testimonial-author-role {
        font-family: 'DINPro', sans-serif !important;
        color: #4b5560 !important;
    }

    [dir="rtl"] .testimonial-author-role,
    .testimonial-card.rtl .testimonial-author-role,
    .rtl .testimonial-author-role,
    .testimonial-widget-wrapper[dir="rtl"] .testimonial-author-role {
        font-family: 'DINPro', Tahoma, Arial, sans-serif !important;
    }
}

/* ==============================================================================
   9. TABLET PORTRAIT (min-width: 768px) and (max-width: 991.98px)
   Matches Figma Tablet Design (EN: 473:445 / AR: 474:658)
   Horizontal 2-Column Side-by-Side Flex Layout
   ============================================================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
    .testimonial-widget-wrapper {
        margin: 32px 0 !important;
        width: 100% !important;
    }

    .testimonial-widget-heading {
        font-size: 28px !important;
        line-height: 36px !important;
        font-weight: 700 !important;
        margin-bottom: 22px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.2px !important;
        font-family: 'DINProCondBold', 'DINProBold', sans-serif !important;
    }

    [dir="rtl"] .testimonial-widget-heading,
    .testimonial-card.rtl ~ .testimonial-widget-heading,
    .rtl .testimonial-widget-heading {
        text-align: right !important;
        font-family: 'DINProBold', 'DINProMedium', Tahoma, Arial, sans-serif !important;
        text-transform: none !important;
        letter-spacing: normal !important;
    }

    .testimonial-card {
        border-radius: 20px !important;
        overflow: hidden !important;
        border: 1px solid #CFE7E4 !important;
        background: #FFFFFF !important;
        background: linear-gradient(115deg, #BAECE9 0%, #D8F4F2 22%, #F0FAF9 42%, #FFFFFF 65%, #F4FBFA 85%, #E4F6F4 100%) !important;
        box-shadow: 0 4px 24px rgba(0, 161, 155, 0.05) !important;
        position: relative !important;
        isolation: isolate !important;
        width: 100% !important;
        min-height: 440px !important;
        height: auto !important;
    }

    [dir="rtl"] .testimonial-card,
    .testimonial-card.rtl,
    .rtl .testimonial-card {
        background: linear-gradient(270deg, #dff3f1 0%, #ffffff 100%) !important;
    }

    /* Teal Backdrop behind CEO: English on Left, Arabic on Right */
    .testimonial-teal-backdrop {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: auto !important;
        width: 38% !important;
        height: 100% !important;
        clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%) !important;
        -webkit-clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%) !important;
        background: linear-gradient(180deg, #CEEBE8 0%, #BAE5E2 38%, #A0DDD8 75%, #8FD8D0 100%) !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }

    [dir="rtl"] .testimonial-teal-backdrop,
    .testimonial-card.rtl .testimonial-teal-backdrop,
    .rtl .testimonial-teal-backdrop {
        left: auto !important;
        right: 0 !important;
        width: 38% !important;
        height: 100% !important;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%) !important;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%) !important;
    }

    /* Card Grid: 2-Column Side-by-Side Flex Row */
    .testimonial-card-grid {
        position: relative !important;
        z-index: 2 !important;
        display: flex !important;
        flex-direction: row !important;
        direction: ltr !important;
        align-items: stretch !important;
        min-height: 440px !important;
        height: auto !important;
        width: 100% !important;
    }

    /* English Tablet: Image Column on Left (order 1) */
    .testimonial-image-column {
        order: 1 !important;
        flex: 0 0 38% !important;
        max-width: 38% !important;
        width: 38% !important;
        min-height: 440px !important;
        height: auto !important;
        max-height: none !important;
        align-self: stretch !important;
        position: relative !important;
        overflow: hidden !important;
        clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%) !important;
        -webkit-clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%) !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Arabic Tablet (RTL): Image Column on Right (order 2) */
    [dir="rtl"] .testimonial-image-column,
    .testimonial-card.rtl .testimonial-image-column,
    .rtl .testimonial-image-column {
        order: 2 !important;
        flex: 0 0 38% !important;
        max-width: 38% !important;
        width: 38% !important;
        min-height: 440px !important;
        height: auto !important;
        max-height: none !important;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%) !important;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%) !important;
    }

    .testimonial-image-frame,
    [dir="rtl"] .testimonial-image-frame,
    .testimonial-card.rtl .testimonial-image-frame,
    .rtl .testimonial-image-frame {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        position: relative !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .testimonial-author-image {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: center 10% !important;
        display: block !important;
        margin: 0 auto !important;
        transform: scale(1.15) !important;
        transform-origin: 50% 15% !important;
    }

    /* Arabic Tablet Only: Mirror author photo while maintaining tablet scale */
    [dir="rtl"] .testimonial-author-image,
    .testimonial-card.rtl .testimonial-author-image,
    .rtl .testimonial-author-image {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: center 10% !important;
        display: block !important;
        margin: 0 auto !important;
        transform: scaleX(-1) scale(1.15) !important;
        transform-origin: 50% 15% !important;
    }

    /* English Tablet: Content Column on Right (order 2) */
    .testimonial-content-column {
        order: 2 !important;
        flex: 0 0 62% !important;
        max-width: 62% !important;
        width: 62% !important;
        min-height: 440px !important;
        height: auto !important;
        align-self: stretch !important;
        position: relative !important;
        z-index: 2 !important;
        display: flex !important;
        align-items: center !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Arabic Tablet (RTL): Content Column on Left (order 1) */
    [dir="rtl"] .testimonial-content-column,
    .testimonial-card.rtl .testimonial-content-column,
    .rtl .testimonial-content-column {
        order: 1 !important;
        flex: 0 0 62% !important;
        max-width: 62% !important;
        width: 62% !important;
        min-height: 440px !important;
        height: auto !important;
        align-self: stretch !important;
        position: relative !important;
        z-index: 2 !important;
        display: flex !important;
        align-items: center !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* English Content Inner */
    .testimonial-content-inner {
        padding: 32px 32px 32px 24px !important;
        direction: ltr !important;
        text-align: left !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    /* Arabic Content Inner */
    [dir="rtl"] .testimonial-content-inner,
    .testimonial-card.rtl .testimonial-content-inner,
    .rtl .testimonial-content-inner {
        padding: 32px 24px 32px 32px !important;
        direction: rtl !important;
        text-align: right !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .testimonial-quote-icon {
        margin-bottom: 14px !important;
        width: 36px !important;
        height: 28px !important;
        display: block !important;
    }

    .testimonial-quote-icon svg {
        width: 36px !important;
        height: 28px !important;
        display: block !important;
        fill: #00999A !important;
    }

    [dir="rtl"] .testimonial-quote-icon,
    .testimonial-card.rtl .testimonial-quote-icon,
    .rtl .testimonial-quote-icon {
        margin-left: auto !important;
        margin-right: 0 !important;
    }

    [dir="rtl"] .testimonial-quote-icon svg,
    .testimonial-card.rtl .testimonial-quote-icon svg,
    .rtl .testimonial-quote-icon svg {
        transform: scaleX(-1) !important;
    }

    .testimonial-quote-text {
        color: #101820 !important;
        font-size: 15px !important;
        line-height: 23px !important;
        font-weight: 400 !important;
        margin-top: 0 !important;
        margin-bottom: 16px !important;
        font-family: 'DINPro', sans-serif !important;
    }

    [dir="rtl"] .testimonial-quote-text,
    .testimonial-card.rtl .testimonial-quote-text,
    .rtl .testimonial-quote-text {
        font-size: 16px !important;
        line-height: 26px !important;
        font-family: 'DINPro', Tahoma, Arial, sans-serif !important;
        text-align: right !important;
    }

    .testimonial-accent-line {
        width: 48px !important;
        height: 3px !important;
        background: #00999A !important;
        margin-bottom: 12px !important;
        display: block !important;
    }

    [dir="rtl"] .testimonial-accent-line,
    .testimonial-card.rtl .testimonial-accent-line,
    .rtl .testimonial-accent-line {
        margin-left: auto !important;
        margin-right: 0 !important;
    }

    .testimonial-author-info {
        display: block !important;
    }

    [dir="rtl"] .testimonial-author-info,
    .testimonial-card.rtl .testimonial-author-info,
    .rtl .testimonial-author-info {
        text-align: right !important;
        direction: rtl !important;
    }

    .testimonial-author-name {
        color: #0F1E2B !important;
        font-size: 18px !important;
        line-height: 24px !important;
        font-weight: 700 !important;
        margin-top: 0 !important;
        margin-bottom: 3px !important;
        font-family: 'DINProBold', 'DINProMedium', sans-serif !important;
    }

    [dir="rtl"] .testimonial-author-name,
    .testimonial-card.rtl .testimonial-author-name,
    .rtl .testimonial-author-name {
        text-align: right !important;
        font-family: 'DINProBold', 'DINProMedium', Tahoma, Arial, sans-serif !important;
    }

    .testimonial-author-role {
        color: #4B5560 !important;
        font-size: 13px !important;
        line-height: 18px !important;
        margin: 0 !important;
        font-family: 'DINPro', sans-serif !important;
    }

    [dir="rtl"] .testimonial-author-role,
    .testimonial-card.rtl .testimonial-author-role,
    .rtl .testimonial-author-role {
        text-align: right !important;
        font-family: 'DINPro', Tahoma, Arial, sans-serif !important;
    }

    /* English Watermark: strictly in bottom-right corner */
    .testimonial-watermark {
        width: 260px !important;
        height: 260px !important;
        bottom: -130px !important;
        right: -120px !important;
        left: auto !important;
        display: block !important;
        position: absolute !important;
        pointer-events: none !important;
        z-index: 1 !important;
        transform: none !important;
    }

    /* Arabic Watermark: strictly in bottom-left corner */
    [dir="rtl"] .testimonial-watermark,
    .testimonial-card.rtl .testimonial-watermark,
    .rtl .testimonial-watermark,
    .testimonial-widget-wrapper[dir="rtl"] .testimonial-watermark {
        left: -120px !important;
        right: auto !important;
        bottom: -130px !important;
        transform: none !important;
    }
}

/* ==============================================================================
   10. PHABLETS & MOBILE LANDSCAPE (min-width: 481px) and (max-width: 767.98px)
   ============================================================================== */
@media (min-width: 481px) and (max-width: 767.98px) {

    .testimonial-image-column,
    [dir="rtl"] .testimonial-image-column,
    .testimonial-card.rtl .testimonial-image-column,
    .rtl .testimonial-image-column {
        height: 380px !important;
        min-height: 380px !important;
        max-height: 380px !important;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%) !important;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%) !important;
    }

    [dir="rtl"] .testimonial-image-column,
    .testimonial-card.rtl .testimonial-image-column,
    .rtl .testimonial-image-column {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 36px)) !important;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 36px)) !important;
    }

    .testimonial-author-image,
    [dir="rtl"] .testimonial-author-image,
    .testimonial-card.rtl .testimonial-author-image,
    .rtl .testimonial-author-image {
        object-position: center 0% !important;
    }

    .testimonial-content-inner {
        padding: 20px 26px 34px 26px !important;
    }

    [dir="rtl"] .testimonial-content-inner,
    .testimonial-card.rtl .testimonial-content-inner,
    .rtl .testimonial-content-inner {
        padding: 20px 26px 34px 26px !important;
    }

    .testimonial-quote-icon {
        margin-bottom: 18px !important;
        width: 42px !important;
        height: 32px !important;
    }

    .testimonial-quote-icon svg {
        width: 42px !important;
        height: 32px !important;
    }

    .testimonial-quote-text {
        font-size: 18px !important;
        line-height: 28px !important;
        margin-bottom: 18px !important;
    }

    [dir="rtl"] .testimonial-quote-text,
    .testimonial-card.rtl .testimonial-quote-text,
    .rtl .testimonial-quote-text {
        font-size: 19px !important;
        line-height: 32px !important;
    }

    .testimonial-accent-line {
        width: 60px !important;
        height: 4px !important;
        margin-bottom: 18px !important;
    }

    .testimonial-author-name {
        font-size: 20px !important;
        line-height: 28px !important;
        margin-bottom: 4px !important;
    }

    .testimonial-author-role {
        font-size: 15px !important;
        line-height: 22px !important;
    }

    .testimonial-watermark {
        width: 340px !important;
        height: 340px !important;
        bottom: -170px !important;
        right: -155px !important;
    }

    [dir="rtl"] .testimonial-watermark,
    .testimonial-card.rtl .testimonial-watermark,
    .rtl .testimonial-watermark,
    .testimonial-widget-wrapper[dir="rtl"] .testimonial-watermark {
        left: -155px !important;
        right: auto !important;
        bottom: -170px !important;
    }
}

/* ==============================================================================
   11. STANDARD MOBILE PORTRAIT (min-width: 376px) and (max-width: 480.98px)
   Strictly aligned with Figma Mobile (EN: 253:3344 / AR: 253:3466)
   Shoulders fully visible across mobile viewports
   ============================================================================== */
@media (min-width: 376px) and (max-width: 480.98px) {

    .testimonial-image-column,
    [dir="rtl"] .testimonial-image-column,
    .testimonial-card.rtl .testimonial-image-column,
    .rtl .testimonial-image-column {
        height: 350px !important;
        min-height: 350px !important;
        max-height: 350px !important;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%) !important;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%) !important;
    }

    [dir="rtl"] .testimonial-image-column,
    .testimonial-card.rtl .testimonial-image-column,
    .rtl .testimonial-image-column {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 30px)) !important;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 30px)) !important;
    }

    .testimonial-author-image,
    [dir="rtl"] .testimonial-author-image,
    .testimonial-card.rtl .testimonial-author-image,
    .rtl .testimonial-author-image {
        object-position: center 0% !important;
    }

    .testimonial-content-inner {
        padding: 18px 22px 32px 22px !important;
    }

    [dir="rtl"] .testimonial-content-inner,
    .testimonial-card.rtl .testimonial-content-inner,
    .rtl .testimonial-content-inner {
        padding: 18px 22px 32px 22px !important;
    }

    .testimonial-quote-icon {
        margin-bottom: 16px !important;
        width: 40px !important;
        height: 30px !important;
    }

    .testimonial-quote-icon svg {
        width: 40px !important;
        height: 30px !important;
    }

    .testimonial-quote-text {
        font-size: 17px !important;
        line-height: 27px !important;
        margin-bottom: 16px !important;
    }

    [dir="rtl"] .testimonial-quote-text,
    .testimonial-card.rtl .testimonial-quote-text,
    .rtl .testimonial-quote-text {
        font-size: 18px !important;
        line-height: 30px !important;
    }

    .testimonial-accent-line {
        width: 56px !important;
        height: 4px !important;
        margin-bottom: 16px !important;
    }

    .testimonial-author-name {
        font-size: 19px !important;
        line-height: 26px !important;
        margin-bottom: 4px !important;
    }

    .testimonial-author-role {
        font-size: 14px !important;
        line-height: 20px !important;
    }

    .testimonial-watermark {
        width: 320px !important;
        height: 320px !important;
        bottom: -160px !important;
        right: -145px !important;
    }

    [dir="rtl"] .testimonial-watermark,
    .testimonial-card.rtl .testimonial-watermark,
    .rtl .testimonial-watermark,
    .testimonial-widget-wrapper[dir="rtl"] .testimonial-watermark {
        left: -145px !important;
        right: auto !important;
        bottom: -160px !important;
    }
}

/* ==============================================================================
   12. SMALL / COMPACT MOBILE (max-width: 375px)
   ============================================================================== */
@media (max-width: 375px) {
    .testimonial-widget-heading {
        font-size: 22px !important;
        line-height: 28px !important;
        margin-bottom: 18px !important;
    }

    [dir="rtl"] .testimonial-widget-heading,
    .testimonial-card.rtl~.testimonial-widget-heading,
    .rtl .testimonial-widget-heading {
        font-size: 22px !important;
        line-height: 30px !important;
        margin-bottom: 18px !important;
    }

    .testimonial-card {
        border-radius: 16px !important;
    }

    .testimonial-image-column,
    [dir="rtl"] .testimonial-image-column,
    .testimonial-card.rtl .testimonial-image-column,
    .rtl .testimonial-image-column {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%) !important;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%) !important;
    }

    [dir="rtl"] .testimonial-image-column,
    .testimonial-card.rtl .testimonial-image-column,
    .rtl .testimonial-image-column {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 24px)) !important;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 24px)) !important;
    }

    .testimonial-author-image,
    [dir="rtl"] .testimonial-author-image,
    .testimonial-card.rtl .testimonial-author-image,
    .rtl .testimonial-author-image {
        object-position: center 0% !important;
    }

    .testimonial-content-inner {
        padding: 14px 16px 26px 16px !important;
    }

    [dir="rtl"] .testimonial-content-inner,
    .testimonial-card.rtl .testimonial-content-inner,
    .rtl .testimonial-content-inner {
        padding: 14px 16px 26px 16px !important;
    }

    .testimonial-quote-icon {
        margin-bottom: 12px !important;
        width: 32px !important;
        height: 24px !important;
    }

    .testimonial-quote-icon svg {
        width: 32px !important;
        height: 24px !important;
    }

    .testimonial-quote-text {
        font-size: 15px !important;
        line-height: 23px !important;
        margin-bottom: 14px !important;
    }

    [dir="rtl"] .testimonial-quote-text,
    .testimonial-card.rtl .testimonial-quote-text,
    .rtl .testimonial-quote-text {
        font-size: 16px !important;
        line-height: 25px !important;
    }

    .testimonial-accent-line {
        width: 44px !important;
        height: 3px !important;
        margin-bottom: 12px !important;
    }

    .testimonial-author-name {
        font-size: 17px !important;
        line-height: 23px !important;
        margin-bottom: 2px !important;
    }

    .testimonial-author-role {
        font-size: 13px !important;
        line-height: 18px !important;
    }

    .testimonial-watermark {
        width: 240px !important;
        height: 240px !important;
        bottom: -120px !important;
        right: -110px !important;
    }

    [dir="rtl"] .testimonial-watermark,
    .testimonial-card.rtl .testimonial-watermark,
    .rtl .testimonial-watermark,
    .testimonial-widget-wrapper[dir="rtl"] .testimonial-watermark {
        left: -110px !important;
        right: auto !important;
        bottom: -120px !important;
    }
}