.testimonials-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px; /* Max width for larger screens */
    width: 100%; /* Full width on smaller screens */
    margin: 0 auto;
}

.testimonial-item {
    display: flex;
    align-items: flex-start;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.testimonial-content {
    flex: 1;
}

.author-photo-wrapper {
    margin-right: 20px; /* For photo on left */
}

.photo-left {
    flex-direction: row; /* Default is row, but since we're always using photo-left, ensure photo is on left */
}

.photo-left .author-photo-wrapper {
    margin-left: 0;
    margin-right: 20px;
}

.photo-left .author-info {
    text-align: left; /* Adjust to left for consistency with photo on left */
}

.author-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.feedback {
    font-size: 1em;
    margin: 0;
    quotes: "“" "”";
    font-style: normal;
}

.author-info {
    margin-top: 10px;
    text-align: left;
    font-style: normal;
    color: #555;
}

.author-name {
    font-weight: bold;
}

.author-designation {
    font-size: 0.9em;
}

/* ===============================
   FIXED Pagination Alignment
================================ */

/* UL container */
.pagination,
.pagination ul.page-numbers,
ul.page-numbers {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

/* LI items */
ul.page-numbers li {
    margin: 0 !important;
    padding: 0 !important;
}

/* All links & spans */
.page-numbers a,
.page-numbers span {
    display: inline-block;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: #0073aa;
}

/* Hover */
.page-numbers a:hover {
    text-decoration: underline;
}

/* Current page */
.page-numbers .current {
    background-color: #0073aa;
    color: #ffffff;
    border-radius: 4px;
    font-weight: 600;
}

/* Prev / Next */
.page-numbers .prev,
.page-numbers .next {
    color: #0073aa;
}

/* Dots */
.page-numbers .dots {
    color: #555;
}

/* Mobile */
@media (max-width: 768px) {
    ul.page-numbers {
        gap: 10px;
        font-size: 15px;
    }
}


/* Media Query for Mobile Responsiveness */
@media (max-width: 768px) {
    .testimonial-item {
        flex-direction: column; /* Stack photo and content vertically on mobile */
        align-items: center;
        text-align: center;
    }

    .author-photo-wrapper {
        margin-right: 0;
        margin-bottom: 15px; /* Space below photo */
    }

    .author-info {
        text-align: center; /* Center author details on mobile */
    }

    .pagination a, .pagination .current {
        padding: 8px 15px; /* Smaller buttons for touch */
    }
}