/* ── PORTFOLIO CAROUSEL ── */
/* Reusable component — wrap carousel in .pc-section */

.pc-section {
    padding: 70px 0;
    background: #f4f8fd;
    position: relative;
}

.pc-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #0f2742;
    margin: 0 0 8px;
}

.pc-sub {
    font-size: 1rem;
    color: #5a6a7a;
    margin: 0 0 36px;
}

/* Viewport — clips cards, enables drag */
.pc-section .tc-viewport {
    overflow: hidden;
    cursor: grab;
    position: relative;
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
}

.pc-section .tc-viewport.is-dragging {
    cursor: grabbing;
}

/* Track */
.pc-section .tc-track {
    display: flex;
    gap: 24px;
    will-change: transform;
}

/* Override testimonial card styles for portfolio cards */
.pc-section .tc-card {
    flex: 0 0 calc(33.333% - 16px);
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #dde6f0;
    box-shadow: 0 4px 12px rgba(15, 39, 66, 0.07);
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    align-items: flex-start;
    justify-content: flex-start;
}

.pc-section .tc-card:hover {
    box-shadow: 0 8px 24px rgba(15, 39, 66, 0.14);
    transform: translateY(-3px);
}

/* Hide decorative quote mark from testimonial-carousel.css */
.pc-section .tc-card::before {
    display: none;
}

/* Portfolio card image */
.pc-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    flex-shrink: 0;
}

.pc-card-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #e4eef8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8aa8c4;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Portfolio card body */
.pc-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pc-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f2742;
    margin: 0 0 4px;
    position: static;
    z-index: auto;
}

.pc-card-location {
    font-size: 0.82rem;
    color: #7a8a9a;
    margin: 0 0 12px;
    position: static;
    z-index: auto;
}

.pc-card-link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a4a7a;
    text-decoration: none;
    margin-top: auto;
}

.pc-card-link:hover {
    text-decoration: underline;
}

/* CTA below carousel */
.pc-cta {
    text-align: center;
    margin-top: 36px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .pc-section .tc-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 640px) {
    .pc-section .tc-card {
        flex: 0 0 80vw;
    }
    .pc-section {
        padding: 50px 0;
    }
}
