/* Yadak Pars / Elementor - no global element styles. */
.ydp-brands,
.ydp-brands * { box-sizing: border-box; }
.ydp-brands { width: 100%; direction: rtl; color: #132f58; font-family: inherit; }
.ydp-brands__header { text-align: center; margin-bottom: 20px; }
.ydp-brands__title {
    font-family: inherit; font-size: clamp(20px, 2vw, 27px); line-height: 1.6;
    font-weight: 800; color: #10294e; margin: 0; padding: 0;
}
.ydp-brands__underline {
    display: block; width: 48px; height: 3px; border-radius: 3px;
    background: #0874e7; margin: 8px auto 0;
}
.ydp-brands__subtitle { margin: 9px 0 0; color: #6e7b8c; font-size: 13px; line-height: 1.85; }
.ydp-brands__grid {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px;
    align-items: stretch;
}
.ydp-brand {
    display: block; min-width: 0; width: 100%; height: 100%;
    background: #fff; border: 1px solid #e4eaf2; border-radius: 11px;
    color: inherit; text-decoration: none !important; overflow: hidden;
    box-shadow: 0 2px 11px rgba(16, 47, 91, .025);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ydp-brand--linked { cursor: pointer; }
.ydp-brand--linked:hover, .ydp-brand--linked:focus-visible {
    color: inherit; border-color: #0b66d8;
    box-shadow: 0 8px 24px rgba(13, 72, 140, .10);
    transform: translateY(-3px);
}
.ydp-brand--linked:focus-visible { outline: 2px solid #0b66d8; outline-offset: 3px; }
.ydp-brand__inner { display: flex; flex-direction: column; align-items: stretch; height: 100%; padding: 14px 10px 10px; min-width: 0; }
.ydp-brand__logo { width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ydp-brand__logo-img { display: block; width: auto !important; height: auto !important; max-width: 92%; max-height: 52px; object-fit: contain; }
.ydp-brand__logo-fallback {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 25px; padding: 6px 12px; min-height: 34px;
    color: #07498f; font-size: 13px; font-weight: 800;
    background: linear-gradient(135deg, #f3f8ff, #e7f1ff); border: 1px solid #d2e4fb;
}
.ydp-brand__title { color: #112f5f; font-size: 17px; font-weight: 800; line-height: 1.55; text-align: center; margin-top: 6px; }
.ydp-brand__description {
    color: #7a879b; font-size: 11.5px; font-weight: 400; line-height: 1.75;
    text-align: center; margin-top: 3px; min-height: 40px; overflow-wrap: anywhere;
}
.ydp-brand__cars {
    height: 66px; width: 100%; display: flex; align-items: flex-end;
    justify-content: center; margin-top: auto; min-width: 0;
}
.ydp-brand__cars-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; object-position: center bottom; }
.ydp-brand__cars-img--sample { width: 100%; }
.ydp-brand__footer {
    min-height: 34px; margin-top: 9px; padding: 5px 12px;
    display: flex; align-items: center; justify-content: center; position: relative;
    width: 100%; background: #f1f6fc; color: #065cc7;
    border-radius: 7px; text-align: center;
    font-size: 12px; font-weight: 700; line-height: 1.7;
}
.ydp-brand__footer svg { position: absolute; left: 8px; flex: 0 0 auto; }
@media (max-width: 1024px) {
    .ydp-brands__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .ydp-brands__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ydp-brand__inner { padding: 12px 9px 9px; }
    .ydp-brand__title { font-size: 15px; }
    .ydp-brand__description { font-size: 11px; }
    .ydp-brand__footer { font-size: 11px; }

    /* Two-row horizontal swipe on mobile; desktop/tablet layout is unchanged.
       !important wins over Elementor's per-widget responsive columns selector. */
    .ydp-brands--mobile-scroll .ydp-brands__grid {
        grid-template-columns: none !important;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        grid-auto-columns: var(--ydp-mobile-card-width, 46%);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 0;
        scrollbar-width: thin;
        scrollbar-color: #b6cbea transparent;
        padding-bottom: 8px;
    }
    .ydp-brands--mobile-scroll .ydp-brand {
        scroll-snap-align: start;
    }
    .ydp-brands--mobile-scroll .ydp-brands__grid::-webkit-scrollbar {
        height: 4px;
    }
    .ydp-brands--mobile-scroll .ydp-brands__grid::-webkit-scrollbar-thumb {
        border-radius: 6px;
        background: #b6cbea;
    }
}
@media (max-width: 359px) {
    .ydp-brand__inner { padding: 10px 6px 7px; }
    .ydp-brand__footer { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .ydp-brand { transition: none; }
    .ydp-brand--linked:hover { transform: none; }
}

/* v1.3.1 — approved manufacturer cards in ONE six-column desktop row.
   These selectors override Elementor's previously saved 3-column responsive control;
   tablet and mobile layouts remain responsive and the mobile two-row swipe is kept. */
.ydp-brands--showcase .ydp-brands__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 12px;
}
.ydp-brands--showcase .ydp-brand {
    border-color: #d0e0fa;
    border-radius: 15px;
    box-shadow: 0 2px 12px rgba(22, 78, 137, .035);
    background-color: #fff;
}
.ydp-brands--showcase .ydp-brand__inner {
    padding: 13px 9px 10px;
    min-height: 296px;
    align-items: center;
}
.ydp-brands--showcase .ydp-brand__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    min-height: 31px;
    max-width: 100%;
    border: 1px solid #c5dfff;
    background: #eaf3ff;
    color: #08498f;
    border-radius: 999px;
    font-weight: 800;
    font-size: 11.5px;
    line-height: 1.5;
    text-align: center;
}
.ydp-brands--showcase .ydp-brand__logo {
    height: 61px;
    margin: 7px auto 0;
}
.ydp-brands--showcase .ydp-brand__logo-img {
    max-width: 100%;
    max-height: 60px;
    mix-blend-mode: multiply;
}
.ydp-brands--showcase .ydp-brand__title {
    font-size: 15px;
    line-height: 1.5;
    margin-top: 4px;
    text-wrap: balance;
}
.ydp-brands--showcase .ydp-brand__description {
    font-size: 10.5px;
    line-height: 1.7;
    min-height: 38px;
    color: #73849f;
    margin-top: 4px;
}
.ydp-brands--showcase .ydp-brand__cars {
    height: 68px;
    margin-top: auto;
    align-items: end;
}
.ydp-brands--showcase .ydp-brand__cars-img {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    mix-blend-mode: multiply;
}
.ydp-brands--showcase .ydp-brand__footer {
    margin-top: 9px;
    min-height: 36px;
    width: 100%;
    font-size: 12px;
    font-weight: 800;
    color: #065bc4;
    border-radius: 9px;
    background: linear-gradient(105deg,#ecf5ff,#e4f0ff);
}
@media (min-width: 1025px) {
    .ydp-brands--showcase .ydp-brand__inner {
        /* Keep older Elementor widget padding settings from overcrowding 6 columns. */
        padding: 13px 9px 10px !important;
    }
    .ydp-brands--showcase .ydp-brand__logo { height: 61px !important; }
    .ydp-brands--showcase .ydp-brand__logo-img { max-height: 60px !important; }
    .ydp-brands--showcase .ydp-brand__cars { height: 68px !important; }
}
@media (max-width: 1024px) {
    .ydp-brands--showcase .ydp-brands__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 15px;
    }
    .ydp-brands--showcase .ydp-brand__inner { min-height: 320px; padding: 18px 12px 12px; }
    .ydp-brands--showcase .ydp-brand__pill { font-size: 13px; padding: 5px 15px; }
    .ydp-brands--showcase .ydp-brand__logo { height: 73px; }
    .ydp-brands--showcase .ydp-brand__logo-img { max-height: 72px; }
    .ydp-brands--showcase .ydp-brand__title { font-size: 18px; }
    .ydp-brands--showcase .ydp-brand__description { font-size: 12px; min-height: 27px; }
    .ydp-brands--showcase .ydp-brand__cars { height: 88px; }
    .ydp-brands--showcase .ydp-brand__footer { min-height: 41px; font-size: 14px; }
}
@media (max-width: 767px) {
    .ydp-brands--showcase .ydp-brands__grid { gap: 10px; }
    .ydp-brands--showcase .ydp-brand__inner { min-height: 270px; padding: 11px 8px 10px; }
    .ydp-brands--showcase .ydp-brand__pill { font-size: 11px; padding: 5px 8px; min-height: 29px; }
    .ydp-brands--showcase .ydp-brand__logo { height: 50px; margin-top: 6px; }
    .ydp-brands--showcase .ydp-brand__logo-img { max-height: 49px; }
    .ydp-brands--showcase .ydp-brand__title { font-size: 14px; }
    .ydp-brands--showcase .ydp-brand__description { font-size: 10px; min-height: 37px; }
    .ydp-brands--showcase .ydp-brand__cars { height: 70px; }
    .ydp-brands--showcase .ydp-brand__footer { min-height: 34px; font-size: 12px; border-radius: 8px; }
    /* Preserve original two-row horizontal swipe when enabled in Elementor. */
    .ydp-brands--showcase.ydp-brands--mobile-scroll .ydp-brands__grid {
        grid-template-columns: none !important;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        grid-auto-columns: var(--ydp-mobile-card-width, 46%);
    }
}
