/* ── TESTIMONIAL CAROUSEL ── */
/* Reusable across pages and projects */

.tc-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #214b75  0%, #133559  100%);
    position: relative;
    overflow: hidden;
}

/* Decorative oval/blob behind the cards */
.tc-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 75%;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.tc-intro {
    text-align: center;
    font-size: 0.9rem;
    color: #dbe3f0;
    margin: 0 0 6px;
    position: relative;
    z-index: 1;
}

.tc-heading {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 40px;
    position: relative;
    z-index: 1;
}

/* Viewport — clips cards, allows overflow to peek */
.tc-viewport {
    overflow: hidden;
    cursor: grab;
    position: relative;
    z-index: 1;
    /* Prevent text selection while dragging */
    user-select: none;
    -webkit-user-select: none;
}

.tc-viewport.is-dragging {
    cursor: grabbing;
}

/* Track — the scrolling strip of cards */
.tc-track {
    display: flex;
    gap: 24px;
    /* transition applied via JS so drag disables it */
    will-change: transform;
}

/* Individual card */
.tc-card {
    flex: 0 0 calc(33.333% - 16px);  /* 3 full cards visible at centre breakpoint */
    background: #ffffff;
    border-radius: 6px;
    padding: 28px 28px 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/* Large decorative opening quote — absolutely positioned so it doesn't push content down */
.tc-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    line-height: 1;
    color:#F37724;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: normal;
    pointer-events: none;
    z-index: 0;
}

/* Keep text content above the quote watermark */
.tc-card-text,
.tc-card-author,
.tc-card-meta,
.tc-card-img {
    position: relative;
    z-index: 1;
}

.tc-card-text {
    font-size: 0.97rem;
    color: #2a3a4a;
    line-height: 1.7;
    font-style: italic;
    margin: 0 0 20px;
}

.tc-card-author {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f2742;
    margin: 0 0 3px;
    flex-shrink: 0;
}

.tc-card-meta {
    font-size: 0.85rem;
    color: #7a8a9a;
    font-weight: 400;
    margin: 0;
    flex-shrink: 0;
}

.tc-card-img {
    display: block;
    max-height: 120px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-top: auto;   /* pushes image to bottom of card */
    padding-top: 20px;  /* minimum gap above image */
    align-self: center;
    flex-shrink: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .tc-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 640px) {
    .tc-card {
        flex: 0 0 80vw;
    }

    .tc-section {
        padding: 50px 0;
    }
}
