/* ══════════════════════════════════════════════════════════════════
   TESTIMONIALS CAROUSEL
   ══════════════════════════════════════════════════════════════════ */
.sh-testimonials-carousel {
    position: relative;
    max-width: 780px;
    margin: 2.5rem auto 0;
    overflow: hidden;
    padding-bottom: 3.5rem; /* room for the bottom controls bar */
}

.sh-testimonials-track {
    display: flex;
    transition: transform 0.35s ease-out;
}

.sh-testimonial-slide {
    flex: 0 0 100%;
    padding: 0 0.5rem;
    display: flex; /* lets the card stretch to equal height */
}

/* ── Desktop: 2-per-view sliding carousel ── */
@media (min-width: 768px) {
    .sh-testimonials-carousel {
        overflow: hidden;
        max-width: 1100px;
    }
    .sh-testimonials-track {
        display: flex !important;
        transition: transform 0.35s ease-out !important;
    }
    .sh-testimonial-slide {
        flex: 0 0 50%;
        padding: 0 0.75rem;
    }
}

.sh-testimonial-card {
    background: var(--sh-color-white);
    border-radius: var(--sh-radius-card);
    padding: 2rem;
    box-shadow: var(--sh-shadow-card);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sh-testimonial-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: var(--sh-color-border);
}

.sh-testimonial-avatar img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    display: block;
    font-size: 0; /* suppress alt text when image fails */
    line-height: 0;
}

.sh-testimonial-quote {
    color: #E07A47;
    font-size: 3.5rem;
    line-height: 1;
    margin: 0 0 0.25rem !important;
}

.sh-testimonial-text {
    font-size: 0.97rem;
    line-height: 1.75;
    margin: 0 0 1.25rem !important;
}

.sh-testimonial-author {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2A6F77;
    margin: auto 0 0 !important; /* push to bottom of the flex column */
}

.sh-testimonials-btn {
    position: absolute;
    top: auto;
    bottom: 0.75rem;
    transform: none;
    background-color: var(--sh-color-white);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    border: 2px solid var(--sh-color-border);
    border-radius: 50px;
    width: 52px;
    height: 38px;
    cursor: pointer;
    z-index: 2;
    font-size: 0; /* hide ← → text */
    transition: border-color var(--sh-transition-fast), background-color var(--sh-transition-fast);
}

.sh-testimonials-prev {
    left: 0.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C2B3F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
}

.sh-testimonials-next {
    right: 0.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C2B3F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E");
}

.sh-testimonials-prev:hover {
    border-color: var(--sh-color-primary);
    background-color: var(--sh-color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
}

.sh-testimonials-next:hover {
    border-color: var(--sh-color-primary);
    background-color: var(--sh-color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E");
}

.sh-testimonials-dots {
    position: absolute;
    bottom: 1.5rem; /* vertically centred in the 40px button row */
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.sh-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sh-color-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--sh-transition-fast), transform var(--sh-transition-fast);
}

.sh-dot[aria-selected="true"] {
    background: var(--sh-color-primary);
    transform: scale(1.3);
}

/* ══════════════════════════════════════════════════════════════════
   MEMBER PORTRAITS CAROUSEL
   ══════════════════════════════════════════════════════════════════ */
.sh-members-carousel {
    position: relative;
    max-width: 1100px;
    margin: 2rem auto 0;
    overflow: hidden;
    padding-bottom: 3.5rem;
}

.sh-members-track {
    display: flex;
    transition: transform 0.35s ease-out;
}

.sh-member-slide {
    flex: 0 0 100%;
    padding: 0 0.5rem;
    display: flex;
}

@media (min-width: 768px) {
    .sh-member-slide { flex: 0 0 33.333%; padding: 0 0.75rem; }
}

.sh-member-card {
    flex: 1;
    background: var(--sh-color-white);
    border-radius: var(--sh-radius-card);
    box-shadow: var(--sh-shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.25rem 1.5rem;
    transition: box-shadow var(--sh-transition-fast), transform var(--sh-transition-fast);
}

.sh-member-card:hover {
    box-shadow: var(--sh-shadow-card-hover);
    transform: translateY(-3px);
}

.sh-member-photo-wrap {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--sh-color-border);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px var(--sh-color-primary);
    margin-bottom: 1.25rem;
}

.sh-member-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    font-size: 0;
    line-height: 0;
    transition: transform 0.4s ease;
}

.sh-member-card:hover .sh-member-photo-wrap img {
    transform: scale(1.04);
}

.sh-member-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.sh-member-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sh-color-text);
    margin: 0 0 0.2rem;
}

.sh-member-origin {
    font-size: 0.8rem;
    color: var(--sh-color-primary);
    font-weight: 600;
    opacity: 0.75;
    margin: 0 0 0.75rem;
}

.sh-member-bio {
    font-size: 0.875rem;
    color: var(--sh-color-text);
    line-height: 1.55;
    margin: 0;
}

.sh-members-btn {
    position: absolute;
    top: auto;
    bottom: 0.75rem;
    transform: none;
    background-color: var(--sh-color-white);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    border: 2px solid var(--sh-color-border);
    border-radius: 50px;
    width: 52px;
    height: 38px;
    cursor: pointer;
    z-index: 2;
    font-size: 0;
    transition: border-color var(--sh-transition-fast), background-color var(--sh-transition-fast);
}

.sh-members-prev {
    left: 0.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C2B3F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
}

.sh-members-next {
    right: 0.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C2B3F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E");
}

.sh-members-prev:hover {
    border-color: var(--sh-color-primary);
    background-color: var(--sh-color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
}

.sh-members-next:hover {
    border-color: var(--sh-color-primary);
    background-color: var(--sh-color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E");
}

.sh-members-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    display: flex;
    gap: 5px;
    white-space: nowrap;
}

.sh-mdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sh-color-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--sh-transition-fast), transform var(--sh-transition-fast);
}

.sh-mdot[aria-selected="true"] {
    background: var(--sh-color-primary);
    transform: scale(1.35);
}

/* ══════════════════════════════════════════════════════════════════
   COMMUNITY MOMENTS PHOTO CAROUSEL  (Home — CSS-only radio carousel)
   ══════════════════════════════════════════════════════════════════ */
.sh-moments-carousel {
    display: block;
    position: relative;
    max-width: 1044px;
    margin: 2rem auto 1.375rem;
    padding: 0 20px;
}

/* Hide radio inputs visually but keep them accessible */
.sh-moments-carousel > input[type="radio"] {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

/* Slide offset — 5 slides */
.sh-moments-carousel > input:nth-of-type(5):checked ~ .sh-moments__slides .sh-moments__slide:first-of-type { margin-left: -400%; }
.sh-moments-carousel > input:nth-of-type(4):checked ~ .sh-moments__slides .sh-moments__slide:first-of-type { margin-left: -300%; }
.sh-moments-carousel > input:nth-of-type(3):checked ~ .sh-moments__slides .sh-moments__slide:first-of-type { margin-left: -200%; }
.sh-moments-carousel > input:nth-of-type(2):checked ~ .sh-moments__slides .sh-moments__slide:first-of-type { margin-left: -100%; }
.sh-moments-carousel > input:nth-of-type(1):checked ~ .sh-moments__slides .sh-moments__slide:first-of-type { margin-left:    0%; }

/* Active thumbnail ring */
.sh-moments-carousel > input:nth-of-type(1):checked ~ .sh-moments__thumbs li:nth-of-type(1),
.sh-moments-carousel > input:nth-of-type(2):checked ~ .sh-moments__thumbs li:nth-of-type(2),
.sh-moments-carousel > input:nth-of-type(3):checked ~ .sh-moments__thumbs li:nth-of-type(3),
.sh-moments-carousel > input:nth-of-type(4):checked ~ .sh-moments__thumbs li:nth-of-type(4),
.sh-moments-carousel > input:nth-of-type(5):checked ~ .sh-moments__thumbs li:nth-of-type(5) {
    box-shadow: 0 0 0 4px var(--sh-color-primary);
    border-radius: 4px;
}

/* Slides list */
.sh-moments__slides {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: flex;
}

/* Individual slide */
.sh-moments__slide {
    position: relative;
    display: block;
    flex: 1 0 100%;
    overflow: hidden;
    transition: margin-left 300ms ease-out;
    box-sizing: border-box;
}

.sh-moments__slide figure {
    display: flex;
    margin: 0;
}

/* 3:2 aspect-ratio image wrapper */
.sh-moments__img-wrap {
    position: relative;
    width: 100%;
}

.sh-moments__img-wrap::before {
    display: block;
    content: "";
    width: 100%;
    padding-top: 66.67%;
}

.sh-moments__img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sh-moments__slide figcaption {
    align-self: flex-end;
    padding: 20px 20px 0 20px;
    flex: 0 0 auto;
    width: 25%;
    min-width: 140px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--sh-color-text);
}

.sh-moment-credit {
    margin-top: 0.75rem;
    color: rgba(0,0,0,0.45);
    display: block;
    font-size: 0.78rem;
}

/* Thumbnails */
.sh-moments__thumbs {
    list-style: none;
    padding: 0;
    margin: 20px -10px 0;
    display: flex;
}

.sh-moments__thumbs li {
    flex: 1 1 auto;
    max-width: calc((100% / 5) - 20px);
    margin: 0 10px;
    transition: box-shadow 300ms ease-in-out;
    overflow: hidden;
}

.sh-moments__thumbs label {
    display: block;
    position: relative;
    cursor: pointer;
}

.sh-moments__thumbs label::before {
    display: block;
    content: "";
    width: 100%;
    padding-top: 100%;
}

.sh-moments__thumbs label img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: box-shadow 300ms ease-in-out;
}

.sh-moments__thumbs label:hover img,
.sh-moments__thumbs label:focus img {
    box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}

/* ══════════════════════════════════════════════════════════════════
   COMMUNITY GALLERY CAROUSEL  (Get Involved — sh-carousel-*)
   ══════════════════════════════════════════════════════════════════ */
.sh-carousel-wrap {
    position: relative;
    max-width: 1100px;
    margin: 2rem auto 0;
    overflow: hidden;
    padding-bottom: 3.5rem;
}

.sh-carousel-track {
    display: flex;
    transition: transform 0.35s ease-out;
}

.sh-carousel-slide {
    flex: 0 0 100%;
    padding: 0 0.5rem;
    margin: 0;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .sh-carousel-slide { flex: 0 0 50%; }
}

.sh-carousel-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: var(--sh-radius-card);
}

@media (min-width: 768px) {
    .sh-carousel-slide img { height: 340px; }
}

.sh-carousel-btn {
    position: absolute;
    bottom: 0.75rem;
    background: var(--sh-color-primary);
    color: var(--sh-color-white);
    border: none;
    border-radius: 50px;
    width: 52px;
    height: 38px;
    cursor: pointer;
    z-index: 2;
    font-size: 1.25rem;
    line-height: 38px;
    transition: background var(--sh-transition-fast);
}

.sh-carousel-btn:hover {
    background: var(--sh-color-primary-dark, #5e1524);
}

.sh-carousel-prev { left: 0.75rem; }
.sh-carousel-next { right: 0.75rem; }
