/* Swiper Container Styling */
.swiper-container {
    width: 100%; /* Ensure it scales with the screen size */
    max-width: 1200px; /* Optional: Limit max width */
    margin: 0 auto; /* Center align */
    display: block;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1;
}

/* Hide Swiper navigation arrows on all devices */
.swiper-button-next,
.swiper-button-prev {
    display: none !important;
}

/* Add spacing between testimonials and pagination dots */
.swiper-pagination {
    margin-top: 20px !important;
    position: relative !important;
    bottom: auto !important;
    top: auto !important;
}

/* Ensure pagination dots are below content */
.swiper-container {
    padding-bottom: 40px !important;
}

.swiper-slide {
    text-align: center;
    flex-shrink: 0; /* Prevent shrinking */
    width: auto !important; /* Allow Swiper to manage widths */
    display: flex; /* Align content properly */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    box-sizing: border-box;
    padding: 10px; /* Reduced padding for better centering */
}

/* Testimonial Item Styling */
.testimonial-container {
    margin-left: 80px;
    margin-right: 80px;
    position: relative;
}

.testimonial-inner-container {
    background-color: rgba(250, 250, 250, 0.9);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: 40px;
    margin-right: 40px;
}

.section-testimonials {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px 0;
}

.testimonial-title {
    color: white;
    font-family: 'Bilbo', cursive;
    text-transform:capitalize;
    font-size: 56px;
    margin: 0;
    padding: 10px 0;
}

.heading-title-testimonials {
    padding-bottom: 12px;
}

.heading-title-testimonials h2 {
    font-size: 28px;
    text-align: center;
    color: rgb(224 224 224);
}

.testimonial-container {
    padding: 0;
}

.testimonial-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%; /* Full width */
    max-width: 100%; /* Full width to eliminate gaps */
    line-height: 1.5; /* Improved text readability */
}

.testimonial-item p {
    font-style: italic;
    color: #555;
    margin-bottom: 15px; /* Add space below the testimonial */
}

.testimonial-item .testimonial {
    font-size: 16px; /* General testimonial text size */
    margin-bottom: 10px;
}

.testimonial-item .name {
    font-weight: bold;
    color: #000;
    margin-top: 10px; /* Add top margin for extra spacing */
}

.testimonial-item .venue,
.testimonial-item .date {
    font-size: 14px;
    color: #888;
    display: block;
    margin-top: 5px;
}

/* Responsive Styling */

/* Mobile Screen (320px - 480px) */
@media (max-width: 480px) {
    .section-testimonials {
        padding: 10px 0;
    }

    .testimonial-title {
        font-size: 24px;
        padding: 5px 0;
    }

    .testimonial-container {
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }

    .swiper-slide {
        width: 100%; /* Full width on mobile portrait */
    }

    .testimonial-item {
        padding: 15px;
        font-size: 14px; /* Adjust overall text size */
        max-width: 100%;
    }

    .testimonial-item .testimonial {
        font-size: 14px; /* Smaller font size for mobile */
    }

    .testimonial-item .venue,
    .testimonial-item .date {
        font-size: 12px; /* Adjust venue and date font size */
    }

    .testimonial-item .name {
        font-size: 14px; /* Adjust name font size */
    }
}

/* Tablet Screen (481px - 768px) */
@media (max-width: 768px) {
    .section-testimonials {
        padding: 15px 0;
    }

    .testimonial-title {
        font-size: 32px;
    }

    .testimonial-container {
        margin-left: 15px;
        margin-right: 15px;
    }

    .testimonial-item {
        padding: 18px;
        font-size: 15px; /* Slightly larger text size for tablets */
    }

    .testimonial-item .testimonial {
        font-size: 15px; /* Medium font size for tablets */
    }

    .testimonial-item .venue,
    .testimonial-item .date {
        font-size: 13px; /* Medium font size for tablets */
    }

    .testimonial-item .name {
        font-size: 14px; /* Medium font size for tablets */
    }
}

/* Desktop and larger screens (769px+) */
@media (min-width: 769px) {
    .testimonial-item {
        max-width: 90%; /* Allow items to be narrower so 2 can fit */
    }
    
    .swiper-slide {
        width: 50% !important; /* Force 50% width for 2 slides */
    }
}