/* ================= PARTNERS VIEW STYLES ================= */

/* Breadcrumb Navigation */
.partners-breadcrumb {
    background: #f8fafc;
    padding: 20px 0;
    border-bottom: 1px solid rgba(12, 37, 59, 0.05);
}

.partners-breadcrumb__container {
    width: min(1440px, calc(100% - 60px));
    margin: 0 auto;
}

.partners-breadcrumb__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.partners-breadcrumb__item a {
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.partners-breadcrumb__item a:hover {
    color: #f47429;
}

.partners-breadcrumb__item.active {
    color: #0b1f2e;
    font-size: 14px;
    font-weight: 600;
}

.partners-breadcrumb__separator {
    color: #a0aec0;
    display: flex;
    align-items: center;
}

[dir="rtl"] .partners-breadcrumb__separator svg {
    transform: rotate(180deg);
}

/* Partners Hero Section */
.partners-hero {
    background: #0C3B66;
    padding: 50px 0 60px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.partners-hero::after {
    content: '';
    position: absolute;
    inset: -60px -60px auto auto;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow:
        -150px 80px 0 rgba(255, 255, 255, 0.04),
        -260px 160px 0 rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.partners-hero__container {
    width: min(1440px, calc(100% - 60px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.partners-hero__copy {
    display: flex;
    flex-direction: column;
}

.partners-hero__quote {
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 16px;
    display: flex;
}

[dir="rtl"] .partners-hero__quote svg {
    transform: scaleX(-1);
}

.partners-hero__title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0;
}

/* Partners Intro Section (Brand Blue Header Section) */
.partners-intro {
    background: #0C3B66;
    padding: 175px 0 75px;
    position: relative;
    border-bottom: 1px solid rgba(12, 37, 59, 0.05);
    color: #fff;
    overflow: hidden;
}

.partners-intro::after {
    content: '';
    position: absolute;
    inset: -60px -60px auto auto;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow:
        -150px 80px 0 rgba(255, 255, 255, 0.04),
        -260px 160px 0 rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.partners-intro__container {
    width: min(1440px, calc(100% - 60px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.partners-intro__copy {
    display: flex;
    flex-direction: column;
}

.partners-intro__title {
    font-size: clamp(32px, 4.5vw, 44px);
    font-weight: 800;
    color: #F47429;
    line-height: 1.2;
    margin-bottom: 20px;
}

.partners-intro__title span,
.partners-intro__title strong {
    color: #fff;
}

.partners-intro__desc {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
}

.partners-intro__desc p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
}

.partners-intro__desc p:last-child {
    margin-bottom: 0;
}

.partners-intro__desc a {
    color: #F47429;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.partners-intro__desc a:hover {
    color: #fff;
}

.partners-intro__media {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.partners-intro__mediaImg {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 24px;
    border: 6px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s ease;
}

.partners-intro__mediaImg:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 30px 60px rgba(12, 37, 59, 0.25);
}

/* Partners list section */
.partners-list {
    background: #f8fafc;
    padding: 80px 0 100px;
}

.partners-list__container {
    width: min(1000px, calc(100% - 60px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.partner-row {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(12, 37, 59, 0.06);
    border-left: 4px solid transparent;
    box-shadow: 0 10px 30px rgba(12, 37, 59, 0.02);
    padding: 40px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease,
        border-left-color 0.4s ease,
        border-right-color 0.4s ease;
}

[dir="rtl"] .partner-row {
    border-left: 1px solid rgba(12, 37, 59, 0.06);
    border-right: 4px solid transparent;
}

.partner-row:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(12, 37, 59, 0.08);
    border-color: rgba(12, 37, 59, 0.1);
    border-left-color: #F47429;
    /* Brand orange left highlight */
}

[dir="rtl"] .partner-row:hover {
    border-right-color: #F47429;
    /* Brand orange right highlight */
    border-left-color: rgba(12, 37, 59, 0.1);
}

.partner-row__logo-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(12, 37, 59, 0.06);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.partner-row:hover .partner-row__logo-wrapper {
    border-color: rgba(244, 116, 41, 0.25);
    /* Faint orange border */
    box-shadow: 0 5px 15px rgba(244, 116, 41, 0.05);
}

.partner-row__logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(10%) contrast(100%);
    transition: filter 0.3s ease, transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.partner-row:hover .partner-row__logo {
    filter: none;
    transform: scale(1.06);
}

.partner-row__no-logo {
    font-size: 20px;
    font-weight: 700;
    color: #a0aec0;
    text-align: center;
}

.partner-row__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-row__title {
    font-size: 24px;
    font-weight: 700;
    color: #0b1f2e;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.partner-row:hover .partner-row__title {
    color: #f47429;
}

.partner-row__desc {
    font-size: 15px;
    line-height: 1.65;
    color: #718096;
    transition: color 0.3s ease;
}

.partner-row:hover .partner-row__desc {
    color: #4a5568;
    /* Description turns darker, more legible on hover */
}

.partners-list__empty {
    background: #fff;
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    color: #718096;
    border: 1px solid rgba(12, 37, 59, 0.04);
}

/* Responsive design */
@media (max-width: 991px) {
    .partners-intro {
        padding: 130px 0 60px;
    }

    .partners-intro__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .partners-intro__media {
        margin-top: 0;
        /* Remove overlap on smaller screens to prevent clipping */
        order: -1;
        /* Puts image above text on mobile */
    }

    .partner-row {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }

    .partner-row__logo-wrapper {
        height: 120px;
        max-width: 200px;
        margin: 0 auto;
    }

    .partner-row__content {
        text-align: center;
    }
}

@media (max-width: 575px) {
    .partners-hero {
        padding: 40px 0 65px;
    }

    .partner-row {
        padding: 24px;
    }
}

/* Scroll Entrance Animations (Progressive Enhancement) */
.js-animate .partner-row {
    opacity: 0;
    transform: translateY(40px);
    overflow: hidden;
    /* Masks elements sliding in from outside the card */
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease,
        border-left-color 0.3s ease,
        border-right-color 0.3s ease,
        box-shadow 0.3s ease;
}

.js-animate .partner-row__logo-wrapper {
    opacity: 0;
    transform: translateX(-120px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-animate .partner-row__title {
    opacity: 0;
    transform: translateX(120px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-animate .partner-row__desc {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RTL translation directions for logo & title */
[dir="rtl"] .js-animate .partner-row__logo-wrapper {
    transform: translateX(120px);
}

[dir="rtl"] .js-animate .partner-row__title {
    transform: translateX(-120px);
}

/* Activated Visible States */
.js-animate .partner-row.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.js-animate .partner-row.is-visible .partner-row__logo-wrapper {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

.js-animate .partner-row.is-visible .partner-row__title {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

.js-animate .partner-row.is-visible .partner-row__desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}