/* Main container adjustments */
.swiper-container {
    width: 100%;
    max-width: 100vw;
    position: relative;
    margin: 0 auto;
    padding-block: 2.5em;
    margin-bottom: 2em;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Stack slides and pagination vertically */
}

/* Gallery/slides container */
.swiper-gallery {
    width: 100%;
    min-height: 300px;
    margin-inline: 0;
    order: 1; /* Ensure slides appear first */
}

/* Individual slides */
.swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure slide takes full width */
    cursor: pointer;
}

/* Custom arrow container styles */
.swiper-button-prev,
.swiper-button-next {
    --measurement: 50px;
    color: #333; /* Arrow color */
    background: rgba(255, 255, 255, 0.8); /* Background color */
    width: var(--measurement) !important;
    height: var(--measurement) !important;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* Hover effects */
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}
.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}
.swiper-button-prev::after,
.swiper-button-next::after {
    color: black;
    transform: scale(0.7);
}

/* Pagination container - moved outside swiper-gallery */
.swiper-pagination-action {
    width: 100%;
    padding: 4em 0; /* Adjust padding as needed */
    order: 2; /* Appears after slides */
    position: relative; /* Changed from absolute */
    bottom: auto; /* Remove absolute positioning */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Individual pagination bullets */
.swiper-pagination {
    position: relative; /* Changed from absolute */
    bottom: auto; /* Remove absolute positioning */
    display: flex;
    justify-content: center;
    gap: 4px; /* Space between bullets */
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #333;
    opacity: 0.5;
    margin: 0 5px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #007aff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .swiper-button-prev,
    .swiper-button-next {
        --measurement: 40px;
    }
    .swiper-button-prev::after,
    .swiper-button-next::after {
        transform: scale(0.5);
    }

    .swiper-pagination-action {
        padding: 0.5em 0;
    }
}

@media (max-width: 480px) {
    .swiper-gallery {
        min-height: 200px; /* Smaller height for mobile */
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 16px;
    }
}
