/* =============================================
   GOWEBIX TESTIMONIALS – PHOENIX PRO
   Premium slider for WPBakery
   ============================================= */

/* =============================================
   SECTION
   ============================================= */
.gwx-testimonials {
    position: relative;
    width: 100%;
    padding: 80px 0;
    overflow: hidden;
}

.gwx-testimonials__inner {
    position: relative;
    width: 100%;
}

/* =============================================
   HEADER
   ============================================= */
.gwx-testimonials__header {
    max-width: 860px;
    margin: 0 auto 48px;
    text-align: center;
}

.gwx-testimonials__title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 1.5rem + 1.2vw, 3rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.gwx-testimonials__subtitle {
    max-width: 880px;
    margin: 18px auto 0;
    font-size: 1.0625rem;
    line-height: 1.75;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: #ffffff;
}

/* =============================================
   SLIDER
   ============================================= */
.gwx-testimonials__slider {
    position: relative;
    overflow: visible;
}

.gwx-testimonials__track {
    align-items: stretch;
}

.gwx-testimonials__slide {
    display: flex;
    height: auto;
}

/* =============================================
   CARD
   ============================================= */
.gwx-testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    padding: 38px 32px 30px;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.06);
    border-radius: 24px;
    box-shadow:
        0 10px 30px rgba(17, 17, 17, 0.05),
        0 2px 10px rgba(17, 17, 17, 0.03);
    overflow: hidden;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.gwx-testimonial-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    width: 56px;
    height: 3px;
    border-radius: 999px;
    background: #00c2e5;
    opacity: 0.95;
}

.gwx-testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 194, 229, 0.18);
    box-shadow:
        0 18px 42px rgba(17, 17, 17, 0.08),
        0 6px 18px rgba(17, 17, 17, 0.05);
}

/* =============================================
   QUOTE MARK
   ============================================= */
.gwx-testimonial-card__quote-mark {
    margin-bottom: 18px;
    line-height: 1;
}

.gwx-testimonial-card__quote-mark span {
    display: inline-block;
    font-size: 4rem;
    line-height: 0.8;
    font-weight: 700;
    color: rgba(0, 194, 229, 0.18);
    transform: translateY(4px);
    user-select: none;
}

/* =============================================
   CONTENT
   ============================================= */
.gwx-testimonial-card__content {
    flex: 1 1 auto;
    margin-bottom: 26px;
}

.gwx-testimonial-card__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.85;
    letter-spacing: 0;
    color: #4b5563;
}

/* =============================================
   FOOTER
   ============================================= */
.gwx-testimonial-card__footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.gwx-testimonial-card__avatar {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f7fa;
    box-shadow: 0 4px 12px rgba(17, 17, 17, 0.06);
}

.gwx-testimonial-card__avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gwx-testimonial-card__author {
    flex: 1 1 auto;
    min-width: 0;
}

.gwx-testimonial-card__name {
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #111111;
}

.gwx-testimonial-card__meta {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6b7280;
}

/* =============================================
   NAVIGATION
   ============================================= */
.gwx-testimonials__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 22px rgba(17, 17, 17, 0.08);
    cursor: pointer;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.gwx-testimonials__nav span {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
    color: #111111;
    transform: translateY(-1px);
}

.gwx-testimonials__nav:hover {
    transform: translateY(-50%) scale(1.04);
    background: #ffffff;
    border-color: rgba(0, 194, 229, 0.25);
    box-shadow: 0 12px 28px rgba(17, 17, 17, 0.12);
}

.gwx-testimonials__nav--prev {
    left: -24px;
    transform: translateY(-50%);
}

.gwx-testimonials__nav--next {
    right: -24px;
    transform: translateY(-50%);
}

/* =============================================
   PAGINATION
   ============================================= */
.gwx-testimonials__pagination {
    position: relative;
    margin-top: 40px;
    text-align: center;
}

.gwx-testimonials__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 6px;
    background: rgba(255, 255, 255, 0.55);
    opacity: 1;
    transition: transform 0.25s ease, background 0.25s ease;
}

.gwx-testimonials__pagination .swiper-pagination-bullet-active {
    background: #00c2e5;
    transform: scale(1.15);
}

/* =============================================
   SWIPER SAFETY
   ============================================= */
.gwx-testimonials .swiper {
    overflow: visible;
}

.gwx-testimonials .swiper-wrapper {
    align-items: stretch;
}

.gwx-testimonials .swiper-slide {
    height: auto;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1199px) {
    .gwx-testimonials {
        padding: 72px 0;
    }

    .gwx-testimonial-card {
        padding: 34px 26px 26px;
        border-radius: 22px;
    }

    .gwx-testimonials__nav--prev {
        left: -12px;
    }

    .gwx-testimonials__nav--next {
        right: -12px;
    }
}

@media (max-width: 991px) {
    .gwx-testimonials {
        padding: 64px 0;
    }

    .gwx-testimonials__header {
        margin-bottom: 40px;
    }

    .gwx-testimonials__title {
        font-size: clamp(1.8rem, 1.4rem + 1vw, 2.4rem);
    }

    .gwx-testimonials__subtitle {
        font-size: 1rem;
        line-height: 1.7;
    }

    .gwx-testimonial-card__text {
        font-size: 0.975rem;
        line-height: 1.8;
    }
}

@media (max-width: 767px) {
    .gwx-testimonials {
        padding: 56px 0;
    }

    .gwx-testimonials__header {
        margin-bottom: 32px;
    }

    .gwx-testimonials__slide {
        padding-left: 15px;
        padding-right: 15px;
    }

    .gwx-testimonial-card {
        padding: 30px 22px 24px;
        border-radius: 20px;
    }

    .gwx-testimonial-card::before {
        left: 22px;
        width: 46px;
    }

    .gwx-testimonial-card__quote-mark {
        margin-bottom: 14px;
    }

    .gwx-testimonial-card__quote-mark span {
        font-size: 3.25rem;
    }

    .gwx-testimonial-card__content {
        margin-bottom: 22px;
    }

    .gwx-testimonial-card__footer {
        gap: 14px;
        padding-top: 18px;
    }

    .gwx-testimonial-card__avatar {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
    }

    .gwx-testimonials__nav {
        display: none;
    }

    .gwx-testimonials__pagination {
        margin-top: 26px;
    }
}

@media (max-width: 479px) {
    .gwx-testimonials__title {
        font-size: 1.7rem;
    }

    .gwx-testimonial-card__text {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .gwx-testimonial-card__name {
        font-size: 0.95rem;
    }

    .gwx-testimonial-card__meta {
        font-size: 0.825rem;
    }
}