/* کاروسل لغزنده کارت — الهام از Coding Nepal sliding cards (مرکز بزرگ‌تر + حرکت افقی) */
.port-mgmt-cf {
    margin-top: 0.35rem;
    width: 100%;
}

.port-mgmt-cf__slider {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
}

.port-mgmt-cf__nav {
    flex-shrink: 0;
    z-index: 60;
    box-shadow: 0 8px 24px rgba(42, 120, 184, 0.35) !important;
}

.port-mgmt-cf__viewport {
    position: relative;
    width: 100%;
    min-height: clamp(400px, 48vw, 460px);
    overflow: hidden;
    touch-action: pan-y;
    isolation: isolate;
}

.port-mgmt-cf__track {
    position: relative;
    width: 100%;
    min-height: inherit;
    height: 100%;
}

.port-mgmt-cf__card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(72vw, 280px);
    max-width: 280px;
    margin: 0;
    padding: 0;
    border: none;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(8, 34, 72, 0.14);
    overflow: hidden;
    text-align: right;
    cursor: pointer;
    transform: translate(-50%, -50%) translateX(var(--cf-x, 0px)) scale(var(--cf-scale, 0.78));
    opacity: var(--cf-opacity, 0.7);
    transition:
        transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1),
        opacity 0.45s ease,
        box-shadow 0.45s ease,
        filter 0.45s ease;
    will-change: transform, opacity;
    filter: brightness(0.96);
}

.port-mgmt-cf__card--side {
    pointer-events: auto;
}

.port-mgmt-cf__card--active {
    width: min(88vw, 340px);
    max-width: 340px;
    cursor: default;
    z-index: 40 !important;
    box-shadow: 0 26px 58px rgba(8, 34, 72, 0.28);
    border: 1px solid rgba(42, 120, 184, 0.28);
    filter: brightness(1);
}

.port-mgmt-cf__card--accent.port-mgmt-cf__card--active {
    border-top: 4px solid #c62828;
}

.port-mgmt-cf__card-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(155deg, #0b1530 0%, #1e5f9a 55%, #5eb7ed 100%);
}

.port-mgmt-cf__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

.port-mgmt-cf__card--active .port-mgmt-cf__card-img {
    transform: scale(1.04);
}

.port-mgmt-cf__card-chip {
    position: absolute;
    bottom: 0.55rem;
    right: 0.55rem;
    left: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    font-size: 0.72rem;
    font-weight: 800;
    color: #0b1530;
}

.port-mgmt-cf__card-body {
    padding: 0.85rem 1rem 1.05rem;
}

.port-mgmt-cf__card--active .port-mgmt-cf__card-body {
    padding-bottom: 1.15rem;
}

.port-mgmt-cf__card-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 900;
    color: #0b1530;
    line-height: 1.45;
}

.port-mgmt-cf__card--active .port-mgmt-cf__card-title {
    font-size: 1.12rem;
}

.port-mgmt-cf__card-desc {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.7;
    font-weight: 600;
    color: #5a6b7d;
}

.port-mgmt-cf__card--side .port-mgmt-cf__card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.port-mgmt-cf__card-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(42, 120, 184, 0.14);
}

.port-mgmt-cf__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}

.port-mgmt-cf__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid rgba(42, 120, 184, 0.5);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.port-mgmt-cf__dot--on {
    background: #2a78b8;
    border-color: #2a78b8;
    transform: scale(1.2);
}

.port-mgmt-suite__carousel {
    margin-top: 0.75rem;
    min-height: clamp(420px, 50vw, 480px);
    width: 100%;
    overflow: visible;
}

@media (max-width: 720px) {
    .port-mgmt-cf__slider {
        grid-template-columns: 1fr;
    }

    .port-mgmt-cf__nav {
        display: none !important;
    }

    .port-mgmt-cf__viewport {
        min-height: 420px;
    }

    .port-mgmt-cf__card {
        width: min(78vw, 260px);
        max-width: 260px;
    }

    .port-mgmt-cf__card--active {
        width: min(90vw, 300px);
        max-width: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .port-mgmt-cf__card,
    .port-mgmt-cf__card-img {
        transition: none;
    }
}
