/* ============================================================
   Past Communities
   File: your-theme/components/past-communities.css
   ============================================================ */

/* ── Card ── */
.pc-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    margin-bottom: 140px;
}

.pc-card:last-of-type {
	margin-bottom: 0;
}

.pc-content {
	width: calc(100% - 50px);
}

/* Odd cards: text left, image right (default) */
.pc-card--image-right .pc-carousel {
    order: 2;
}
.pc-card--image-right .pc-content {
    order: 1;
}

/* Even cards: image left, text right */
.pc-card--image-left .pc-carousel {
    order: 1;
}
.pc-card--image-left .pc-content {
    order: 2;
}


/* ── Carousel ── */
.pc-carousel {
    position: relative;
    overflow: hidden;
}

.pc-carousel-track {
    display: flex;
    transition: transform 0.8s ease;
}

.pc-slide {
    min-width: 100%;
}

.pc-slide-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/2;
    object-fit: cover;
}


/* ── Arrows ── */
.pc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(180, 45, 51, 0.6) !important;
    color: #fff;
    border: none;
    padding: 25px !important;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    transition: background 0.2s ease;
    display: flex;
}

.pc-arrow:hover {
    background: rgba(180, 45, 51, 0.9) !important;
}

.pc-arrow--prev {
    left: 0;
}

.pc-arrow--next {
    right: 0;
}


/* ── Text content ── */
.pc-title {
    margin: 0 0 40px;
}

.pc-body {
    margin-bottom: 50px;
}

.pc-testimonial {
    margin: 0;
    margin: 50px 0 0;
}

.pc-testimonial p {
    font-style: italic;
    margin-bottom: 0;
    font-size: 20px;
    line-height: 24px;
}

.pc-testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-style: normal;
    font-size: 16px;
    text-transform: uppercase;
    color: #333;
    white-space: nowrap;
}

.pc-testimonial-author::after {
    content: '';
    display: block;
    flex: 1;
    height: 1px;
    background: #CBB491;
}

.pc-body,
.pc-testimonial p {
    white-space: pre-line;
}

.pc-testimonial {
    position: relative;
}

.pc-testimonial::before {
    content: '';
    display: block;
    position: absolute;
    top: -20px;
    left: 0;
    width: 60px;
    height: 60px;
    background-image: url('https://bellhomes.design.shoothill.com/wp-content/uploads/2026/03/testimonial-quote-marks.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
}

.pc-testimonial::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -20px;
    right: 0;
    width: 60px;
    height: 60px;
    background-image: url('https://bellhomes.design.shoothill.com/wp-content/uploads/2026/03/testimonial-quote-marks.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
}


/* ── Tablet ── */
@media ( max-width: 1024px ) and ( min-width: 601px ) {

    .pc-card {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .pc-content {
    	width: 100%;
    }

    .pc-card--image-right .pc-carousel,
    .pc-card--image-left .pc-carousel {
        order: 1;
    }

    .pc-card--image-right .pc-content,
    .pc-card--image-left .pc-content {
        order: 2;
    }

}


/* ── Mobile ── */
@media ( max-width: 600px ) {

    .pc-card {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 100px;
    }
    
    .pc-content {
    	width: 100%;
    }
    
    .pc-arrow {
    	padding: 5px !important;
    }

    .pc-card--image-right .pc-carousel,
    .pc-card--image-left .pc-carousel {
        order: 1;
    }

    .pc-card--image-right .pc-content,
    .pc-card--image-left .pc-content {
        order: 2;
    }

}