/* Highly Professional Card Design for Testimonials - Compact Side-by-Side Giver Info */

.dxpx-testimonials-wrapper {
    margin-top: 30px;
    padding: 0;
}

.dxpx-testimonials-wrapper.dxpx-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dxpx-testimonials-wrapper.dxpx-testimonials-list .dxpx-testimonial-item {
    margin-bottom: 20px;
}

.dxpx-testimonial-item {
    background-color: #ffffff;
    border: none;
    border-radius: 8px; /* Slightly less rounded for compactness */
    padding: 20px; /* Reduced padding for compactness */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05); /* Softer, more subtle shadow */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dxpx-testimonial-item:hover {
    transform: translateY(-3px); /* Slightly less hover effect */
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

/* Decorative Quote Icon - positioned relative to the item */
.dxpx-testimonial-item::before {
    content: '\201C';
    font-size: 100px; /* Smaller quote icon for compactness */
    color: rgba(240, 240, 240, 0.7); /* Slightly more visible */
    position: absolute;
    top: -15px; /* Adjusted position */
    left: -8px; /* Adjusted position */
    line-height: 1;
    z-index: 0;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
}

.dxpx-testimonial-content-wrapper {
    position: relative;
    z-index: 1;
    margin-bottom: 15px; /* Reduced space below content for compactness */
    text-align: left;
    flex-grow: 1;
}

.dxpx-testimonial-content {
    font-family: 'Georgia', serif;
    font-size: 0.95em; /* Adjusted content font size for compactness */
    line-height: 1.5; /* Tighter line height */
    color: #444;
    margin: 0;
    font-style: italic;
}

.dxpx-testimonial-footer {
    display: flex;
    align-items: center; /* Align items vertically in the center */
    margin-top: auto;
    width: 100%;
    padding-top: 15px; /* Reduced padding above separator for compactness */
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.dxpx-testimonial-giver-info {
    display: flex;
    align-items: center;
    text-align: left;
    flex-grow: 1; /* Allow giver info to take available space */
}

.dxpx-testimonial-photo {
    width: 45px; /* Smaller photo for compactness */
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px; /* Reduced space for compactness */
    border: 2px solid #f8f8f8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07); /* Softer shadow */
    flex-shrink: 0;
}

.dxpx-testimonial-giver-details {
    display: flex;
    flex-direction: column;
}

.dxpx-testimonial-giver {
    font-size: 0.9em; /* Adjusted giver name for compactness */
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2; /* Tighter line height */
}

.dxpx-testimonial-position {
    font-size: 0.8em; /* Adjusted position font size for compactness */
    color: #555;
    margin: 0;
    line-height: 1.2;
}

.dxpx-testimonial-company-logo-wrapper {
    margin-left: auto; /* Push logo to the right */
    max-width: 120px;
    height: 60px; /* Set a fixed height for the container */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dxpx-testimonial-company-logo-wrapper img {
    max-width: 100%;
    max-height: 100%; /* Fill the container height */
    height: auto;
    width: auto; /* Let the width adjust automatically */
    object-fit: contain; /* Scale the image to fit within the container */
    display: block;
}

.dxpx-testimonial-company {
    font-size: 0.85em;
    color: #555;
    margin-left: auto; /* Push company name to the right */
}

.dxpx-testimonial-date {
    font-size: 0.7em; /* Adjusted date font size for compactness */
    color: #777;
    margin-top: 8px; /* Reduced space above date */
    width: 100%; /* Ensure it takes full width if wrapped */
    text-align: right; /* Align date to the right */
}

/* Carousel Specific Styles */
.dxpx-testimonials-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}

.dxpx-testimonials-carousel .dxpx-testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    margin: 0 -10px; /* Counteract item padding */
}

.dxpx-testimonials-carousel .dxpx-testimonial-item {
    flex: 0 0 auto; /* Don't grow, don't shrink */
    box-sizing: border-box;
    padding: 0 10px; /* Gutter between items */
    display: flex;
    flex-direction: column;
}

/* Column-specific widths */
.dxpx-testimonials-carousel[data-columns="1"] .dxpx-testimonial-item {
    width: 100%;
}

.dxpx-testimonials-carousel[data-columns="2"] .dxpx-testimonial-item {
    width: 50%;
}

.dxpx-testimonials-carousel[data-columns="3"] .dxpx-testimonial-item {
    width: calc(100% / 3);
}

.dxpx-carousel-prev,
.dxpx-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5em;
    line-height: 1;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dxpx-carousel-prev:hover,
.dxpx-carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dxpx-carousel-prev {
    left: 10px;
}

.dxpx-carousel-next {
    right: 10px;
}

/* Dots Navigation */
.dxpx-carousel-dots {
    text-align: center;
    margin-top: 20px;
}

.dxpx-carousel-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #c5c5c5;
    border-radius: 50%;
    border: none;
    padding: 0;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dxpx-carousel-dot:hover {
    background-color: #888;
}

.dxpx-carousel-dot.active {
    background-color: #333;
}