/* Force RTL direction for partners page content */
.container, .hero-content, .navbar, .navbar-nav, .navbar-collapse, main {
    direction: rtl !important;
}

/* Hide old navigation elements that might be inherited */
.login-web {
    display: none !important;
}

.guest-navbar {
    display: none !important;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-load.loaded {
    opacity: 1;
}

.img-slider {
    width: 100%;
    height: auto;
    object-fit: contain;
}


.tablinks.active {
    background-color: var(--accent-indigo);
    color: white;
    border-color: var(--accent-indigo);
}

.partner-category {
    display: none;
}

.partner-category.active {
    display: block;
}

.hero-section {
    height: 377px;
    min-height: auto;
}

.hero-section h1.page-title {
    color: var(--Text-White, #FFF);
    text-align: right;
    font-size: 48px;
    font-weight: 700;
    line-height: 60px;
    letter-spacing: -0.96px;
}

.hero-breadcrumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.hero-breadcrumb-trail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.hero-breadcrumb-trail a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
}

.hero-breadcrumb-trail a:hover {
    opacity: 1;
}

.hero-breadcrumb-trail .separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    font-size: 18px;
    margin: auto 20px;
}

.hero-breadcrumb-trail .current {
    color: var(--text-gold, #f5a623);
    font-weight: 700;
}

.logo-section .title-pill {
    margin: 50px auto 20px auto;
}

.logo-section .logo-section-heading {
    margin-bottom: 15px
}

.logo-section .description {
    color: var(--accent-indigo);
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    max-width: 50%;
    margin: 0 auto;
}

.partners-filter-inner {
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.partner-tab {
    background: #F2F2F2;
    color: #999;
    border-radius: 14px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s ease-in-out;
    min-width: 110px;
    border: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.partner-tab:hover, .partner-tab.active {
    color: #fff;
    background: #1D2149;
    box-shadow: 0 4px 4px 0 var(--Background-Alpha_Primary, rgba(62, 72, 158, 0.30)) inset;
    border-bottom: var(--Border_width-bold, 3px) solid var(--Border-Warrning, #FF9800)
}

.partner-grid-row {
    gap: 16px 12px;
}

.partner-card {
    background: #fff;
    border: 1px solid #eef0f6;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    min-height: 140px;
    display: flex;

    align-items: center;
    justify-content: center;
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.partner-card img {
    max-height: 80px;
    width: auto;
    max-width: 180px;
}

.reviews-section {
    margin-top: 0;
    margin-bottom: 50px;
    padding-bottom: 0;
}

@media (max-width: 991px) {
    .partner-card {
        min-height: 120px;
    }

    .partner-grid-row {
        column-gap: 0;
    }
    .partner-card img {
        max-width: 150px;
    }

    .hero-section h1.page-title, .hero-breadcrumb-trail {
        margin: 0 auto;
    }

    /* Make tabs a single horizontal scroll row on mobile */
    .partners-filter-bar {
        overflow: hidden;
    }

    .partners-filter-inner {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        gap: 10px;
    }

    .partners-filter-inner::-webkit-scrollbar {
        display: none;
    }

    .partner-tab {
        flex: 0 0 auto;
    }

    .logo-section .description {
        max-width: 90%;
    }
}