/* =========================================================
   Aus Biolabs Testimonials — Frontend Styles
   Clean, professional, responsive
   ========================================================= */

.abt-wrapper {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 60px 64px;
    box-sizing: border-box;
}

/* ---------- Slider container ---------- */
.abt-slider {
    width: 100%;
    overflow: hidden;
    padding: 8px 4px 60px; /* top padding so card shadow isn't clipped; bottom for pagination */
}

.abt-slider .swiper-wrapper {
    align-items: stretch;
}

.abt-slider .swiper-slide {
    height: auto;
    display: flex;
}

/* ---------- Card ---------- */
.abt-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.abt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

/* ---------- Image (full-width top, rounded inside the card) ---------- */
.abt-card__image {
    position: relative;
    overflow: hidden;
    margin: 14px 14px 0;
    border-radius: 10px;
    aspect-ratio: 16 / 10;
    background: #f5f5f5;
}

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

.abt-card:hover .abt-card__image img {
    transform: scale(1.03);
}

/* ---------- Card body ---------- */
.abt-card__body {
    padding: 26px 30px 30px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* Rating row — Grid layout forces exactly 5 columns in one line. */
.abt-wrapper .abt-card .abt-card__rating {
    display: grid !important;
    grid-template-columns: repeat(5, 20px) !important;
    grid-auto-flow: column !important;
    gap: 4px !important;
    align-items: center;
    justify-content: start;
    width: max-content;
    max-width: 100%;
    margin: 0 0 18px !important;
    padding: 0 !important;
    line-height: 1;
    white-space: nowrap;
    font-size: 0;
    list-style: none;
}

.abt-wrapper .abt-card .abt-card__rating .abt-star {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
    background: none;
    border: 0;
}

.abt-wrapper .abt-card .abt-card__rating .abt-star svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
    overflow: visible;
}

.abt-wrapper .abt-card .abt-card__rating .abt-star--filled {
    color: var(--abt-star-color, #c9a44b);
    filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.12));
}

.abt-wrapper .abt-card .abt-card__rating .abt-star--empty {
    color: #e6e6e6;
}

.abt-card__quote {
    font-family: var(--abt-font-family-quote, inherit);
    font-size: var(--abt-quote-size, 16px);
    line-height: 1.7;
    color: #2b2b2b;
    margin: 0 0 24px;
    font-weight: 400;
    flex: 1 1 auto;
}

.abt-card__divider {
    height: 1px;
    background: #ececec;
    margin-bottom: 18px;
    width: 100%;
}

.abt-card__author {
    font-family: var(--abt-font-family-title, inherit);
    font-size: var(--abt-author-size, 22px);
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

/* ---------- Pagination ---------- */
/* Active dot: bullseye effect — small dot with a beige ring around it */
.abt-slider .abt-pagination.swiper-pagination {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.abt-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #bfbfbf;
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin: 0 !important;
    border: none;
    position: relative;
    cursor: pointer;
}

.abt-slider .swiper-pagination-bullet-active {
    /* Bullseye: dot stays small, ring is drawn with double box-shadow */
    background: #c9a44b;
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 4px #c9a44b;
}

/* ---------- Navigation arrows ---------- */
.abt-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #ececec;
    background: #ffffff;
    color: #2b2b2b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

.abt-nav:hover {
    background: #c9a44b;
    border-color: #c9a44b;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(201, 164, 75, 0.28);
}

.abt-nav:focus-visible {
    outline: 2px solid #c9a44b;
    outline-offset: 2px;
}

.abt-nav:disabled,
.abt-nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.abt-nav svg {
    width: 18px;
    height: 18px;
}

.abt-nav--prev {
    left: 8px;
}

.abt-nav--next {
    right: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .abt-wrapper {
        padding: 20px 50px 56px;
    }
    .abt-card__body {
        padding: 22px 24px 26px;
    }
    .abt-card__author {
        font-size: calc(var(--abt-author-size, 22px) * 0.91);
    }
}

@media (max-width: 640px) {
    .abt-wrapper {
        padding: 16px 16px 56px;
    }
    .abt-card__image {
        margin: 10px 10px 0;
    }
    .abt-card__body {
        padding: 20px 22px 24px;
    }
    .abt-card__quote {
        font-size: calc(var(--abt-quote-size, 16px) * 0.94);
    }
    .abt-card__author {
        font-size: calc(var(--abt-author-size, 22px) * 0.86);
    }
    .abt-nav {
        width: 38px;
        height: 38px;
    }
    .abt-nav svg {
        width: 16px;
        height: 16px;
    }
    .abt-nav--prev {
        left: -4px;
    }
    .abt-nav--next {
        right: -4px;
    }
}

/* ---------- Accessibility / motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .abt-card,
    .abt-card__image img,
    .abt-nav,
    .abt-slider .swiper-pagination-bullet {
        transition: none;
    }
}
