/* ============================================================
   Related Pages Carousel  –  related-pages-carousel.css
   ============================================================ */

/* ── Custom properties ─────────────────────────────────────── */
.rpc-wrapper {
    --rpc-teal:        #6ab3a7;
    --rpc-teal-dark:   #62a297;
    --rpc-text:        #1a1a1a;
    --rpc-muted:       #555;
    --rpc-border:      #e2e2e2;
    --rpc-bg:          #ffffff;
    --rpc-card-radius: 12px;
    --rpc-btn-radius:  4px;
    --rpc-gap:         24px;
    --rpc-slide-w:     22%;   /* card width – overridden at breakpoints */
    --rpc-arrow-size:  44px;
    --rpc-transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Wrapper layout ────────────────────────────────────────── */
.rpc-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 90%;
    margin: 30px auto;
    padding: 0 8px;
    box-sizing: border-box;
    font-family: inherit;
}

/* ── Track (the sliding viewport) ─────────────────────────── */
.rpc-track-outer {
    flex: 1;
    overflow: hidden;
    /* ensure cards don't bleed out */
    min-width: 0;
}

.rpc-track {
    display: flex;
    gap: var(--rpc-gap);
    list-style: none;
    margin: 0;
    padding: 0 2px 8px;   /* small bottom pad so box-shadows aren't clipped */
    transform: translateX(0);
    transition: transform var(--rpc-transition);
    will-change: transform;
}

/* ── Individual slide ──────────────────────────────────────── */
.rpc-slide {
    flex: 0 0 var(--rpc-slide-w);
    width: var(--rpc-slide-w);
}

/* ── Card ──────────────────────────────────────────────────── */
.rpc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--rpc-border);
    border-radius: var(--rpc-card-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow var(--rpc-transition), transform var(--rpc-transition);

}

.rpc-card:hover,
.rpc-card:focus-visible {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    outline: none;
}

.rpc-price {
	position: absolute;
  bottom: 25px;
  font-size: 14px;
  opacity: 0.95;
  color: #282826;
  font-weight: 700;
  text-align: center;
  line-height: 100%;
  left: 50%;
  transform: translate(-50%,0); 
}

/*--- CTA ---*/
.rpc-cta-wrap {
    text-align: center;
    margin-top: 28px;
}

.rpc-cta-btn {
    display: inline-block;
    padding: 13px 36px;
    background: #6ab3a7;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.5s;
	border-radius: 10px; 
	transition: all 0.5s; 
}

.rpc-cta-btn:hover {
    background: #5a9e93;
}

/* ── Thumbnail ─────────────────────────────────────────────── */
.rpc-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.rpc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.rpc-card:hover .rpc-thumb img {
    transform: scale(1.04);
}

/* ── Card body ─────────────────────────────────────────────── */
.rpc-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 20px 24px;
    gap: 10px;
	background: #6ab3a7;
	position: relative; 
}

.rpc-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--rpc-bg);
	text-align: center; 
	padding-bottom:30px; 
}

.rpc-excerpt {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--rpc-muted);
    flex: 1;
}

/* ── CTA button (non-interactive decoration inside <a>) ────── */
.rpc-btn {
    display: block;
    margin-top: 8px;
    padding: 13px 20px;
    background: var(--rpc-teal);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
    border-radius: var(--rpc-btn-radius);
    transition: background var(--rpc-transition);
    pointer-events: none; /* the whole card is the link */
}

.rpc-card:hover .rpc-btn,
.rpc-card:focus-visible .rpc-btn {
    background: var(--rpc-teal-dark);
}

/* ── Arrow buttons ─────────────────────────────────────────── */
.rpc-arrow {
    flex-shrink: 0;
    width: var(--rpc-arrow-size);
    height: var(--rpc-arrow-size);
    border-radius: 50%;
    border: none;
    background: var(--rpc-teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background var(--rpc-transition), opacity var(--rpc-transition),
                transform var(--rpc-transition), box-shadow var(--rpc-transition);
    padding: 0;
}

.rpc-arrow svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.rpc-arrow:hover {
    background: var(--rpc-teal-dark);
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}

.rpc-arrow:focus-visible {
    outline: 3px solid var(--rpc-teal);
    outline-offset: 3px;
}

.rpc-arrow[disabled],
.rpc-arrow.rpc-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
    transform: none;
}

/* ── Responsive: show 2 slides ─────────────────────────────── */
@media (max-width: 960px) {
    .rpc-wrapper {
        --rpc-slide-w: calc((100% - var(--rpc-gap) - 2 * var(--rpc-arrow-size) - 24px) / 2);
    }
}

@media (max-width: 767px) {
    .rpc-wrapper {
        --rpc-slide-w: calc(100% - var(--rpc-arrow-size) * 2 - 24px - var(--rpc-gap));
        --rpc-gap: 16px;
    }

    .rpc-body {
        padding: 10px;
    }
}

@media (max-width: 960px) {
    .rpc-slide {
        flex: 0 0 42vw;
        width: 42vw;
    }
}

@media (max-width: 767px) {
    .rpc-slide {
		flex: 0 0 100%;
    	width: 100vw;
    }
	.rpc-title {
		font-size: .8rem;
		padding-bottom: 25px;
	}
	.rpc-price {
		font-size: 11px;
		bottom: 15px;
	}
}