/* =================================================
   Testimonials Layout
================================================= */

.testimonials-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.testimonial-item {
    display: flex;
    align-items: flex-start;
    border: 1px solid #ddd;
    padding: 20px;
    padding-top: 34px;
    padding-bottom: 27px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.testimonial-content {
    flex: 1;
}

/* =================================================
   Author Photo
================================================= */

.author-photo-wrapper {
    margin-right: 20px;
}

.photo-left {
    flex-direction: row;
}

.photo-left .author-photo-wrapper {
    margin-right: 20px;
}

.photo-left .author-info {
    text-align: left;
}

.author-photo {
    width: 100px !important;
    height: 100px !important;
    border-radius: 5% !important;
    max-height: 100px !important;
    max-width: 100px !important;
    object-fit: cover;
    border: 2px solid #DEDEDE !important;
    background: #fff;
    display: block;
}


/* =================================================
   Text Content
================================================= */

.feedback {
    font-size: 17px;
    line-height:27px;
    margin: 0;
    color: #1F1F1F;
    font-style: normal;
}

.author-info {
    margin-top: 10px;
    text-align: left;
    color: #555;
}

.author-name {
    font-weight: bold;
    font-size: 17px;
    line-height:27px;
    color: #2E2E2E;
}

.author-designation {
    font-size: 0.9em;
}

.author-links {
    margin-top: 5px;
    font-size: 0.9em;
    text-align: left;
    border-top: 1px solid #BFBFBF;
    padding-top: 15px;
    padding-bottom:0 !important;
}

.author-links i {
    margin-right: 5px;
    color: #333333;
    font-size:12px;
}

.author-links a {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.author-links a:hover {
    text-decoration: underline;
    color: #005588;
}

/* =================================================
   PAGINATION – CENTER FIX
================================================= */

.author_testimonials_pagination,
ul.page-numbers {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    gap: 14px;
    list-style: none;
    padding: 20px;
    margin: 40px 0;
}

ul.page-numbers li {
    margin: 0 !important;
    padding: 0 !important;
}

/* =================================================
   Page Numbers (Normal)
================================================= */

.page-numbers {
    font-size: 17px;
    font-weight: 500;
    color: #0073aa;
    text-decoration: none;
}

/* Hover */
a.page-numbers:hover {
    text-decoration: underline;
    color: #005588;
}

/* =================================================
   Current Page
================================================= */

span.page-numbers.current {
    background-color: #0073aa;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
}

/* =================================================
   PREV / NEXT AS BUTTONS (FINAL FIX)
================================================= */

a.page-numbers.prev,
a.page-numbers.next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 1px solid #0073aa;
    border-radius: 4px;
    background-color: #ffffff;
    color: #0073aa;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Hover */
a.page-numbers.prev:hover,
a.page-numbers.next:hover {
    background-color: #0073aa;
    color: #ffffff;
    text-decoration: none;
}

/* Disabled Prev / Next */
span.page-numbers.prev,
span.page-numbers.next {
    opacity: 0.5;
    pointer-events: none;
}

/* =================================================
   Dots (...)
================================================= */

span.page-numbers.dots {
    color: #555;
}

/* =================================================
   Mobile Responsive
================================================= */

@media (max-width: 768px) {

.feedback {
    font-size: 17px;
    margin: 0;
    font-style: normal;
}
    .testimonial-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-photo-wrapper {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .author-info {
        text-align: center !important;
    }

    .author-links {
        text-align: center !important;
        font-size: 1em;
    }
    .author-links i {
        font-size:14px;
    }
    .author-links strong {
        display: block;
    }

    ul.page-numbers {
        gap: 10px;
        font-size: 17px;
    }

    a.page-numbers.prev,
    a.page-numbers.next {
        padding: 8px 16px;
    }
    
    .author-photo {
        width: 120px;
        height: 120px;
    }
    
}


/* =================================================
   Testimonials Slider Section
================================================= */

.testimonials-slider-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0px;
    text-align: center;
}

.slider-heading {
    font-size: 34px;
    line-height:46px;
    font-weight: bold;
    color: #2E2E2E;
    margin-bottom: 21px;
    text-transform: default !important;
    letter-spacing: 1px;
}

/* Swiper Container */
.swiper-container {
    position: relative;
    overflow: hidden;
    padding: 20px 40px 40px 40px; /* Reduced bottom padding for tighter dot spacing */
}

/* Swiper Slide and Testimonial Item */
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.swiper-slide .testimonial-item {
    max-width: 960px; /* Reduced width for a slimmer box */
    width: 100%; /* Ensures it takes full available space up to max-width */
    margin: 0 auto;
    transition: box-shadow 0.3s ease;
}

.swiper-slide-active .testimonial-item {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* Subtle shadow on active slide for modern depth */
}

/* Testimonial Content – Explicit Left Alignment */
.testimonial-content {
    flex: 1;
    text-align: left !important; /* Force left alignment for all text inside */
}

.feedback {
    text-align: left !important; /* Explicit left for feedback text */
}

.author-info {
    text-align: left !important; /* Explicit left for author info */
}

/* Pagination Dots – Positioned Below the Box with Adjusted Spacing */
.swiper-pagination {
    position: absolute;
    bottom: 0px !important; /* Reduced for closer positioning; adjusts with autoHeight */
    left: 0;
    width: 100%;
    text-align: center;
}

.swiper-pagination-bullet {
    background: #ddd;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #0073aa;
}

/* Navigation Arrows – Removed (Hidden) */
.swiper-button-next,
.swiper-button-prev {
    display: none !important; /* Hide arrows completely */
}

/* View All Button */
.view-all-button {
    margin-top: 24px;
}

.button.view-all {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button.view-all:hover {
    background-color: #005588;
    transform: translateY(-2px); /* Subtle lift for modern feel */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .slider-heading {
    font-size: 32px  !important;
    line-height:38px !important;
    }
    
    .swiper-container {
        padding: 0px !important; /* Further reduced on mobile */
    }
    
    .swiper-pagination {
        bottom: 5px !important; /* Even closer on mobile for better fit */
    }
    
    .testimonial-content,
    .feedback,
    .author-info {
        text-align: center !important; /* Keep left alignment on mobile too */
    }
}