.agents-section {
    width: 100%;
    background-color: var(--lp-white);
    padding-bottom: 120px;
    overflow: visible;
}

.agents-section .container {
    position: relative;
}

.agents-card-shadow {
    position: relative;
    z-index: 1;
    width: 100%;
    filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.12));
}

.agents-card {
    position: relative;
    width: 100%;
    background-color: var(--lp-secondary);
    border-radius: 8px;
    padding: 40px 0 40px;
    overflow: hidden;

    /* fallback لو المتصفح ما دعم mask */
    clip-path: polygon(0 0, 100% 34px, 100% 100%, 0 100%);
}

@supports ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
    .agents-card {
        clip-path: none;

        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 260' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M 8 0 L 992 34 Q 1000 34 1000 42 L 1000 252 Q 1000 260 992 260 L 8 260 Q 0 260 0 252 L 0 8 Q 0 0 8 0 Z'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 260' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M 8 0 L 992 34 Q 1000 34 1000 42 L 1000 252 Q 1000 260 992 260 L 8 260 Q 0 260 0 252 L 0 8 Q 0 0 8 0 Z'/%3E%3C/svg%3E");

        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;

        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;

        -webkit-mask-position: center;
        mask-position: center;
    }
}

.agents-header {
    text-align: center;
    margin-bottom: 34px;
}

.agents-title {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 14px;
    color: var(--lp-white);
    font-size: clamp(20px, 1.7vw, 27px);
    font-weight: 600;
    line-height: 1.45;
}

.agents-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 72px;
    height: 2px;
    background-color: var(--lp-white);
    border-radius: 20px;
    transform: translateX(-50%);
}

.agents-slider {
    width: 100%;
    overflow: hidden;
    direction: ltr;
    mask-image: linear-gradient(
        90deg,
        transparent 0,
        #000 8%,
        #000 92%,
        transparent 100%
    );
}

.agents-track {
    display: flex;
    width: max-content;
    animation: agentsMarquee 52s linear infinite;
    will-change: transform;
}

.agents-group {
    display: flex;
    align-items: center;
    gap: 72px;
    padding-inline: 36px;
    flex-shrink: 0;
}

.agent-logo {
    width: 170px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agent-logo img {
    max-width: 100%;
    max-height: 78px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 1;
}

@keyframes agentsMarquee {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 992px) {
    .agents-section {
        padding-block: 60px;
    }

    .agents-card {
        padding: 36px 0 40px;
    }

    .agents-group {
        gap: 58px;
        padding-inline: 28px;
    }

    .agent-logo {
        width: 145px;
        height: 78px;
    }

    .agent-logo img {
        max-height: 66px;
    }
}

@media (max-width: 768px) {
    .agents-section {
        padding-block: 50px;
    }

    .agents-card {
        padding: 32px 0 34px;
    }

    .agents-header {
        margin-bottom: 28px;
    }

    .agents-title {
        font-size: 21px;
    }

    .agents-group {
        gap: 46px;
        padding-inline: 22px;
    }

    .agent-logo {
        width: 125px;
        height: 68px;
    }

    .agent-logo img {
        max-height: 56px;
    }
}

@media (max-width: 480px) {
    .agents-section {
        padding-block: 42px;
    }

    .agents-card {
        padding: 28px 0 30px;
    }

    .agents-title {
        font-size: 20px;
        padding-bottom: 12px;
    }

    .agents-title::after {
        width: 58px;
    }

    .agents-group {
        gap: 36px;
        padding-inline: 16px;
    }

    .agent-logo {
        width: 108px;
        height: 60px;
    }

    .agent-logo img {
        max-height: 50px;
    }
}