/* =====================================================
   Genesis Testimonials Carousel — Frontend Styles v1.1
   ===================================================== */

.gtc-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56px;
}

/* ── Track container clips the overflow ── */
.gtc-track-container {
    overflow: hidden;
    width: 100%;
}

.gtc-track {
    display: flex;
    flex-wrap: nowrap;          /* never wrap — essential */
    width: max-content;         /* expand to fit all slides */
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── Slide ── */
.gtc-slide {
    flex: 0 0 auto;
    box-sizing: border-box;
    /* Horizontal padding creates the gap between cards.
       JS sets the outer pixel width; padding is included via box-sizing */
    padding: 0 8px;
}

/* First / last slide: outer edge flush with container */
.gtc-slide:first-child { padding-left: 0; }
.gtc-slide:last-child  { padding-right: 0; }

/* ── Card ── */
.gtc-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ── Image Area ── */
.gtc-card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

.gtc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gtc-no-image {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

/* ── Card Body ── */
.gtc-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ── Quote ── */
.gtc-quote {
    font-size: 15px;
    line-height: 1.7;
    color: #1f2937;
    margin: 0 0 20px 0;
    flex: 1;
}

/* ── Author ── */
.gtc-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gtc-name {
    font-weight: 700;
    font-size: 15px;
    color: #111827;
    display: block;
}

.gtc-position {
    font-size: 13px;
    color: #6b7280;
    display: block;
}

/* ── Dots ── */
.gtc-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.gtc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.gtc-dot.active {
    background: #1f2937;
    transform: scale(1.2);
}

.gtc-dot:focus-visible {
    outline: 2px solid #6b7280;
    outline-offset: 2px;
}

/* ── Navigation Arrows ── */
.gtc-navigation {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding-right: 4px;
}

.gtc-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #4b5563;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.15s;
    flex-shrink: 0;
}

.gtc-arrow:hover {
    background: #374151;
    transform: scale(1.05);
}

.gtc-arrow:active {
    transform: scale(0.97);
}

.gtc-arrow:focus-visible {
    outline: 2px solid #6b7280;
    outline-offset: 2px;
}

.gtc-arrow svg {
    pointer-events: none;
}

.gtc-arrow.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Responsive image heights ── */
@media (max-width: 1024px) {
    .gtc-card-image { height: 240px; }
}

@media (max-width: 767px) {
    .gtc-card-image  { height: 220px; }
    .gtc-quote       { font-size: 14px; }
    .gtc-card-body   { padding: 18px; }
}
