/* Compatible Products Swiper Component Styles */

/* Swiper container */
.swiper {
    width: 100%;
    max-width: 100%;
    margin: 40px auto;
    overflow: hidden;
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Custom Navigation Buttons */
.swiper-custom-nav-comp {
    z-index: 1000;
    display: flex;
    gap: 10px;
    flex-direction: row;
}

.swiper-custom-nav-comp button {
    width: 48px;
    height: 48px;
    background-color: #1A21C7;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 0;
}

.swiper-custom-nav-comp button:hover {
    background-color: #0f14a3;
    transform: scale(1.05);
}

.swiper-custom-nav-comp button:active {
    transform: scale(0.95);
}

.swiper-custom-nav-comp button svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Hide default Swiper navigation */
.swiper-button-next,
.swiper-button-prev {
    display: none;
}

/* Compatible Products Section */
.compatible-products-header h2 {
    font-family: 'OptimaProRoman', sans-serif;
    font-size: 44px;
    line-height: 56px;
    font-weight: 400;
    color: #434B5E;
    margin-bottom: auto;
}

.compatible-products-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.compatible-products-container {
    padding: 80px 80px;
}

.compatible-products-item-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #F2F7FD;
    gap: 52px;
    padding: 32px;
    border-radius: 0px;
    flex-grow: 1;
}

.compatible-products-item-content p {
    font-family: 'OptimaProRoman', sans-serif;
    font-size: 26px;
    line-height: 36px;
    font-weight: 400;
    color: #434B5E;
    margin: 0;
}

.compatible-products-item-content svg {
    width: 32px;
    height: 32px;
}

.compatible-products-item-content a:hover svg {
    fill: #1A21C7;
    stroke: #fff;
}

/* Swiper compatible specific styles */
.swiper-compatible .swiper-wrapper {
    height: auto;
    align-items: stretch; /* make slides match tallest */
}

.swiper-compatible .swiper-slide {
    height: auto; /* allow inner card to define height */
}

/* Treat the slide content as a card */
.swiper-compatible .swiper-slide > div {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #F4F8FF;
}

/* Normalize image area */
.swiper-compatible .swiper-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* Keep the bottom area consistent and pinned to bottom */
.swiper-compatible .compatible-products-item-content {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
}

a.compatible-products-item-link{
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Link hover states */
a.compatible-products-item-link:hover {
    text-decoration: none;
}

.compatible-products-item-link:hover svg {
    fill: #1A21C7;
    stroke: #fff;
}

.compatible-products-item-link:hover .compatible-products-item-content p {
    color: #1A21C7;
}

.compatible-products-item-link:hover .compatible-products-item-content {
    background-color: #E9F1FB;
}

/* Responsive Design */
@media screen and (max-width: 1280px) {
    .compatible-products-container {
        padding: 40px;
    }
}

@media screen and (max-width: 744px) {
    .compatible-products-container {
        padding: 32px 16px;
    }

    .compatible-products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .compatible-products-header h2 {
        font-size: 30px;
        line-height: 40px;
    }

    .compatible-products-item-content {
        gap: 24px;
        padding: 16px;
    }
}
