/* Style structure for Rotating Testimonial Pair */
.rtp-widget-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    font-family: inherit;
}

.rtp-slider-viewport {
    overflow: hidden;
    width: 100%;
}

.rtp-slides-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.rtp-slide {
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
}

.rtp-card {
    display: flex;
    flex-direction: column;
    height: auto !important;         /* Let the card height adjust dynamically */
    min-height: 380px;               /* Use min-height instead of a fixed height */
    overflow: visible !important;    /* Ensure expanding content isn't clipped or scrolled */
    position: relative;
}
.rtp-card:hover {
    transform: translateY(-2px);
}

.rtp-card-image-wrapper {
    width: 100%;
    line-height: 0;
}

.rtp-card-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.rtp-card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;    /* Stacks elements sequentially from the top down */
    flex-grow: 1;
}

/* Accordion Accordion styling */
.rtp-accordion {
    width: 100%;
    position: relative;
    /* margin-top: auto;  <-- REMOVE THIS LINE ENTIRELY */
}

.rtp-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    text-align: left;
}

.rtp-accordion-header:hover {
    opacity: 0.95;
}

.rtp-accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.rtp-accordion-icon svg {
    transition: fill 0.3s;
}

.rtp-accordion.is-open .rtp-accordion-icon {
    transform: rotate(180deg);
}

.rtp-accordion-body {
    display: none;                  /* Handled smoothly by jQuery slideDown/slideUp */
    overflow: visible !important;   /* No scrollbars inside the expanded area */
    width: 100%;
}
.rtp-accordion-inner {
    padding: 16px;
    line-height: 1.6;
}

/* Block A & B distinct styling details */
.rtp-commenter-meta {
    line-height: 1.4;
    display: block;
}

.rtp-comment-text {
    line-height: 1.6;
    display: block;
}

/* Navigation Controls styling */
.rtp-nav-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.rtp-nav-arrow {
    background: transparent;
    border: 1px solid;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    padding: 0;
}

.rtp-nav-arrow:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.rtp-dots {
    display: flex;
    gap: 8px;
}

.rtp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s, transform 0.3s;
}

.rtp-dot.is-active {
    opacity: 1;
    transform: scale(1.2);
}

/* RESPONSIVE LAYOUT */
@media (max-width: 768px) {
    .rtp-slide {
        flex-direction: column;
    }
    
    .rtp-card {
        width: 100% !important;
    }
}

/* Temporarily overrides fixed height limits when the accordion is opened */
.rtp-card.is-expanded {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}