/* Grail Testimonial Carousel Widget */

.grail-tc {
    position: relative;
}

.grail-tc-swiper {
    overflow: hidden;
    padding-bottom: 40px;
}

.grail-tc-slide {
    padding: 40px 30px;
    box-sizing: border-box;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grail-tc-quote {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.grail-tc-author {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.grail-tc-author-image img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.grail-tc-author-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.grail-tc-author-name {
    font-weight: 600;
    line-height: 1.3;
}

.grail-tc-author-title {
    font-size: 0.875em;
    opacity: 0.8;
    line-height: 1.3;
}

/* Navigation arrows — shared */
.grail-tc-arrows {
    line-height: 0;
}

.grail-tc-arrow {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.grail-tc-arrow svg {
    width: 20px;
    height: 20px;
    display: block;
}

.grail-tc-arrow.swiper-button-disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

/* Arrows on the sides (overlay the swiper) */
.grail-tc--arrows-sides .grail-tc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Arrows below the swiper */
.grail-tc--arrows-bottom .grail-tc-arrows {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}
.grail-tc--arrows-bottom .grail-tc-arrow {
    position: static;
    transform: none;
}

/* Pagination dots sit inside the swiper, at the bottom of the padding-bottom area */
.grail-tc-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 5;
}

.grail-tc-pagination .swiper-pagination-bullet {
    margin: 0 4px;
}
