/* ==========================================================================
   Section: opinions-carousel (Figma 1:2002)
   ========================================================================== */

.sec-opinions-carousel {
    position: relative;
    padding: 60px 0;
    /* Fallback when no background photo is set */
    background: #efdbe2;
    overflow: hidden;
}

.oc__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.oc__inner {
    position: relative;
    z-index: 1;
    max-width: var(--content-max);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}

/* Head: centered title + text */
.oc__head {
    max-width: 768px;
    margin: 0 auto 60px;
    text-align: center;
}

.oc__title {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: 1.2;
    color: var(--c-black);
}

.oc__text {
    margin: 24px 0 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--c-text);
}

.oc__title + .oc__text {
    margin-top: 24px;
}

.oc__head :first-child {
    margin-top: 0;
}

/* Slider stays on the grid; arrows overlap its sides */
.oc__slider {
    position: relative;
}

/* Cards hug their own content — different heights, as designed */
.oc__swiper .swiper-wrapper {
    align-items: flex-start;
}

/* Opinion card */
.ocard {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: auto;
    margin: 0;
    padding: 32px;
    background: #dfbac4;
    border-radius: 30px;
}

.ocard__quote {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--c-heading);
}

.ocard__author {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--c-black);
}

/* Circle arrows beside the cards */
.oc__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    background: var(--c-white);
    border: 1px solid var(--c-black);
    border-radius: 50%;
    color: var(--c-black);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.oc__prev {
    left: -28px;
}

.oc__next {
    right: -28px;
}

.oc__arrow:hover,
.oc__arrow:focus-visible {
    background: var(--c-black);
    color: var(--c-white);
}

.oc__arrow.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Dots centered below the cards */
.oc__dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 48px;
}

.oc__dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0;
    border-radius: 50%;
    background: #000;
    opacity: 0.2;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.oc__dots .swiper-pagination-bullet-active {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    /* --pad-x drops to 20px — side arrows would poke past the viewport */
    .oc__arrow {
        display: none;
    }
}

@media (max-width: 767px) {
    .sec-opinions-carousel {
        padding: 40px 0;
    }

    .oc__head {
        margin-bottom: 32px;
    }

    .oc__text {
        font-size: 16px;
    }

    .ocard {
        padding: 24px;
    }

    .oc__dots {
        margin-top: 32px;
    }
}
