﻿.Banners {
    display: flex;
    padding: 64px 156px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 64px;
    align-self: stretch;
    background: var(--Colors-Gray-White, #FFF);
}

.Banners-Title {
    color: var(--Colors-Gray-Darkest, #111);
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-family: "IBM Plex Sans Arabic";
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

/* Scope all carousel styles to .Banners to avoid affecting other sections */
.Banners .slider-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0;
    box-sizing: border-box;
}

.Banners .carousel-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    touch-action: pan-x pan-y;
}

.Banners .carousel-page {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    gap: 24px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100px);
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, transform 0.4s ease-in-out;
    pointer-events: none;
    /* Width will be set dynamically by JavaScript */
}

    .Banners .carousel-page.active {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
        margin: 0 auto; /* Center the page within the wrapper */
        /* Width will be set dynamically by JavaScript */
    }

    .Banners .carousel-page.hidden {
        position: absolute;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100px);
        pointer-events: none;
    }

    .Banners .carousel-page .Card-Property {
        flex: 0 0 auto;
        margin: 0;
        flex-shrink: 0;
    }

.Banners .Card-Property {
    width: 400px;
    height: 180px;
    margin: 0;
    padding: 14px;
    background: var(--Colors-Gray-White, white);
    border-radius: 20px;
    outline: 1px var(--Colors-Gray-Lighter, #E6E6E6) solid;
    outline-offset: -1px;
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* RTL/LTR Support for Card */
[dir="ltr"] .Banners .Card-Property {
    flex-direction: row;
}

[dir="rtl"] .Banners .Card-Property {
    flex-direction: row-reverse;
}

.Banners .Card-Left {
    flex: 1;
    background: white;
    border-radius: 14px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 12px;
}

/* RTL/LTR Support for Card-Left alignment */
[dir="ltr"] .Banners .Card-Left {
    align-items: flex-start;
    text-align: left;
}

[dir="rtl"] .Banners .Card-Left {
    align-items: flex-end;
    text-align: right;
}

.Banners .Card-Left .Badge {
    padding: 6px 10px;
    background: var(--Primary-50, #F3F2F6);
    border-radius: 6px;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
}

/* RTL/LTR Support for Badge alignment - opposite to Card-Left */
[dir="ltr"] .Banners .Card-Left .Badge {
    align-self: flex-end;
}

[dir="rtl"] .Banners .Card-Left .Badge {
    align-self: flex-start;
}

.Banners .Card-Left .CalenderWithPlatform {
    align-self: stretch;
    align-items: center;
    gap: 4px;
    display: inline-flex;
    flex-direction: row;
}

/* RTL/LTR Support for CalenderWithPlatform */
[dir="ltr"] .Banners .Card-Left .CalenderWithPlatform {
    justify-content: flex-start;
    flex-direction: row;
}

[dir="rtl"] .Banners .Card-Left .CalenderWithPlatform {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.Banners .Card-Left .CompanyName {
    align-self: stretch;
    color: var(--Colors-Gray-Darkest, #111111);
    font-size: 16px;
    font-family: IBM Plex Sans Arabic;
    font-weight: 700;
    word-wrap: break-word;
    text-align: inherit;
}

.Banners .Card-Left .CalenderWithPlatform > div:first-child {
    flex: 1 1 0;
    color: var(--Colors-Gray-Dark, #666666);
    font-size: 11px;
    font-family: IBM Plex Sans Arabic;
    font-weight: 500;
    word-wrap: break-word;
    text-align: inherit;
}

.Banners .Card-Left .IconWrapper {
    width: 14px;
    height: 14px;
    min-width: 14px;
    max-width: 14px;
    flex-shrink: 0;
    flex-grow: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .Banners .Card-Left .IconWrapper img {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px;
        max-width: 14px;
        min-height: 14px;
        max-height: 14px;
        display: block;
        object-fit: contain;
        flex-shrink: 0;
    }

.Banners .Card-Left .Badge > div {
    color: var(--Primary-500, #6A5D8B);
    font-size: 11px;
    font-family: IBM Plex Sans Arabic;
    font-weight: 500;
    word-wrap: break-word;
    text-align: inherit;
}

.Banners .Card-Right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.Banners .Card-Property img {
    width: 140px;
    height: 140px;
    max-width: 140px;
    max-height: 140px;
    min-width: 0;
    min-height: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.04) 100%);
    border-radius: 16px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page Indicators */
.Banners .carousel-indicators {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
    z-index: 10;
    visibility: visible;
    opacity: 1;
}

.Banners .carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D1D1D1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
    outline: none;
}

    .Banners .carousel-indicator:hover {
        background: var(--Primary-300, #9B8DB8);
        transform: scale(1.3);
    }

    .Banners .carousel-indicator.active {
        width: 28px;
        height: 10px;
        border-radius: 5px;
        background: var(--Primary-500, #6A5D8B);
    }

/* Desktop: 3 cards visible */
@@media (min-width: 1025px) {
    .Banners .slider-container {
        padding: 0;
    }

    .Banners .carousel-page {
        gap: 20px;
    }
}

/* Tablet: 2 cards visible */
@@media (max-width: 1024px) {
    .Banners {
        padding: 48px 80px;
        gap: 48px;
    }

    .Banners-Title {
        font-size: 40px;
    }

    .Banners .slider-container {
        padding: 0;
    }

    .Banners .Card-Property {
        width: 450px;
    }

    .Banners .carousel-page {
        gap: 16px;
    }

    .Banners .carousel-indicators {
        margin-top: 24px;
        gap: 6px;
    }

    .Banners .carousel-indicator {
        width: 7px;
        height: 7px;
    }

        .Banners .carousel-indicator.active {
            width: 20px;
            height: 7px;
        }
}

/* Mobile: 1 card visible */
@@media (max-width: 768px) {
    .Banners {
        padding: 40px 20px;
        gap: 40px;
    }

    .Banners-Title {
        font-size: 32px;
    }

    .Banners .slider-container {
        padding: 0 20px;
    }

    .Banners .carousel-indicators {
        margin-top: 24px;
        gap: 6px;
    }

    .Banners .carousel-indicator {
        width: 7px;
        height: 7px;
    }

        .Banners .carousel-indicator.active {
            width: 20px;
            height: 7px;
        }

    .Banners .Card-Property {
        width: 450px;
    }

    .Banners .carousel-page {
        gap: 16px;
    }
}

/* Small Mobile: 1 card visible */
@@media (max-width: 480px) {
    .Banners {
        padding: 32px 12px;
        gap: 24px;
    }

    .Banners-Title {
        font-size: 24px;
    }

    .Banners .slider-container {
        padding: 0 8px;
    }

    .Banners .Card-Property {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 12px;
        height: auto;
        min-height: 180px;
        gap: 10px;
    }

    .Banners .carousel-page {
        gap: 12px;
        width: 100% !important;
    }

    .Banners .Card-Left {
        padding: 10px;
        gap: 6px;
        min-width: 0;
    }

        .Banners .Card-Left .Badge {
            padding: 6px 10px;
        }

            .Banners .Card-Left .Badge > div {
                font-size: 11px;
            }

        .Banners .Card-Left .CompanyName {
            font-size: 16px;
            line-height: 1.3;
        }

        .Banners .Card-Left .CalenderWithPlatform {
            gap: 3px;
        }

            .Banners .Card-Left .CalenderWithPlatform > div:first-child {
                font-size: 11px;
                line-height: 1.4;
            }

        .Banners .Card-Left .IconWrapper {
            width: 14px !important;
            height: 14px !important;
            min-width: 14px !important;
            max-width: 14px !important;
            flex-shrink: 0;
            flex-grow: 0;
            overflow: hidden;
        }

            .Banners .Card-Left .IconWrapper img {
                width: 14px !important;
                height: 14px !important;
                min-width: 14px !important;
                max-width: 14px !important;
                min-height: 14px !important;
                max-height: 14px !important;
                object-fit: contain;
                flex-shrink: 0;
            }

    .Banners .Card-Right {
        flex-shrink: 0;
    }

    .Banners .Card-Property img {
        width: 100px !important;
        height: 100px !important;
        max-width: 100px !important;
        max-height: 100px !important;
        min-width: 100px !important;
        min-height: 100px !important;
        display: block;
    }

    .Banners .carousel-indicators {
        margin-top: 20px;
        gap: 5px;
    }

    .Banners .carousel-indicator {
        width: 6px;
        height: 6px;
    }

        .Banners .carousel-indicator.active {
            width: 18px;
            height: 6px;
        }
}

/* Extra Small Mobile: Very small screens */
@@media (max-width: 360px) {
    .Banners {
        padding: 24px 8px;
        gap: 20px;
    }

    .Banners-Title {
        font-size: 20px;
    }

    .Banners .slider-container {
        padding: 0 4px;
    }

    .Banners .Card-Property {
        padding: 10px;
        min-height: 160px;
        gap: 8px;
    }

    .Banners .Card-Left {
        padding: 8px;
        gap: 5px;
    }

        .Banners .Card-Left .CompanyName {
            font-size: 14px;
        }

        .Banners .Card-Left .CalenderWithPlatform > div:first-child {
            font-size: 10px;
        }

        .Banners .Card-Left .IconWrapper {
            width: 12px !important;
            height: 12px !important;
            min-width: 12px !important;
            max-width: 12px !important;
            flex-shrink: 0;
            flex-grow: 0;
            overflow: hidden;
        }

            .Banners .Card-Left .IconWrapper img {
                width: 12px !important;
                height: 12px !important;
                min-width: 12px !important;
                max-width: 12px !important;
                min-height: 12px !important;
                max-height: 12px !important;
                object-fit: contain;
                flex-shrink: 0;
            }

    .Banners .Card-Property img {
        width: 80px !important;
        height: 80px !important;
        max-width: 80px !important;
        max-height: 80px !important;
        min-width: 80px !important;
        min-height: 80px !important;
    }

    .Banners .carousel-indicators {
        margin-top: 16px;
        gap: 4px;
    }

    .Banners .carousel-indicator {
        width: 6px;
        height: 6px;
    }

        .Banners .carousel-indicator.active {
            width: 16px;
            height: 6px;
        }
}
