.linkPage {
    display: block;
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 90vw;
    padding: 60px;
}

.linkPageSwiper {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

/* Force swiper to show properly */
.swiper-wrapper {
    display: flex;
    transition-property: transform;
}

.swiper-slide {
    flex-shrink: 0;
    height: 100%;
    position: relative;
    transition-property: transform;
}

.linkPage_item {
    width: 200px; /* Mobile width */
    height: 100%;
}

/* Desktop & tablet width */
@media (min-width: 768px) {
    .linkPage_item {
        width: 260px;
    }
}

/* Ensure active item is visible even when not centered */
.linkPage_item.active {
    position: relative; /* Needed for z-index to work */
    z-index: 2; /* Bring active item to front */
}

/* Add transition to active item highlight */
.linkPage_item a {
    display: flex;
    border: 1px solid #424D54;
    color: #424d54;
    font-size: 16px;
    /* text-align: center; */
    padding: 15px 10px;
    transition: all 0.3s ease;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fff;
    height: 56px;
    justify-content: center;
    align-items: center;
}

.linkPage_item.active a,
.linkPage_item:hover a {
    background: #d13138;
    color: #fff;
    box-shadow: 0 2px 10px rgba(209, 49, 56, 0.3);
}

/* Swiper navigation buttons styling */
.link-next, .link-prev {
    position: absolute;
    top: 50% !important;
    transform: translateY(-50%);
    margin: 0 !important;
    width: 25px !important;
    height: 25px !important;
    background-color: #666;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgb(0 0 0 / 60%);
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.link-next:after, .link-prev:after {
    font-size: 10px !important;
    font-weight: bold;
}

.link-next:hover, .link-prev:hover {
    background-color: #424D54 !important;
    color: #fff !important;
}

/* Position the buttons */
.link-next {
    right: 0;
}

.link-prev {
    left: 0;
}
.linkPage_item.active a,
.linkPage_item:hover a {
    background: #d13138;
    color: #fff;
}

@media (max-width: 1648px) {
    .linkPageSwiper .swiper-wrapper {
        justify-content: start !important;
    }
}

@media (max-width: 768px) {
    .linkPage {
        max-width: none;
        padding: 20px 30px;
    }
}