/**
 * Home Testimonials Section — eFormax
 * Brand: #00332B · #004236 · #F7D15E · #E6F4F9 · #F0F8FB
 */

.ht-section {
    --ht-primary: #00332b;
    --ht-primary-mid: #004236;
    --ht-accent: #f7d15e;
    --ht-bg: #e6f4f9;
    --ht-card: #f0f8fb;
    --ht-text: #1a3d36;
    --ht-muted: #4a6b65;
    --ht-white: #ffffff;
    --ht-radius: 16px;
    --ht-shadow: 0 16px 48px rgba(0, 51, 43, 0.1);
    padding: 4.5rem 0 5rem;
    background: linear-gradient(180deg, var(--ht-bg) 0%, var(--ht-white) 45%, var(--ht-bg) 100%);
    position: relative;
    overflow: hidden;
}

.ht-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 51, 43, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 51, 43, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 15%, transparent 70%);
    pointer-events: none;
}

.ht-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.75rem;
    position: relative;
}

.ht-section__intro {
    max-width: 36rem;
}

.ht-section__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ht-primary-mid);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 66, 54, 0.1);
    border-left: 3px solid var(--ht-accent);
    padding: 0.4rem 0.875rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.ht-section__title {
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ht-primary);
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.ht-section__subtitle {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ht-muted);
    margin: 0;
}

.ht-section__visual {
    flex-shrink: 0;
    max-width: 180px;
    opacity: 0.9;
}

.ht-section__visual img {
    width: 100%;
    height: auto;
    display: block;
}

.ht-slider {
    position: relative;
}

.ht-testimonials-swiper {
    overflow: hidden;
    padding-bottom: 0.25rem;
}

.ht-testimonials-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.ht-testimonials-swiper .ht-card {
    width: 100%;
}

.ht-slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2rem;
}

.ht-slider__arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 51, 43, 0.12);
    border-radius: 50%;
    background: var(--ht-white);
    color: var(--ht-primary);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ht-slider__arrow:hover {
    background: var(--ht-primary);
    border-color: var(--ht-primary);
    color: var(--ht-white);
    box-shadow: 0 8px 20px rgba(0, 51, 43, 0.18);
}

.ht-slider__arrow svg {
    width: 18px;
    height: 18px;
}

.ht-slider__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 12px;
}

.ht-slider__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: rgba(0, 51, 43, 0.2);
    opacity: 1;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ht-slider__pagination .swiper-pagination-bullet-active {
    background: var(--ht-primary);
    transform: scale(1.25);
}

.ht-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--ht-white);
    border-radius: var(--ht-radius);
    padding: 1.75rem 1.5rem 1.5rem;
    border: 1px solid rgba(0, 51, 43, 0.08);
    box-shadow: 0 4px 24px rgba(0, 51, 43, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.ht-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--ht-primary), var(--ht-accent));
    opacity: 0.85;
}

.ht-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ht-shadow);
    border-color: rgba(0, 51, 43, 0.14);
}

.ht-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.125rem;
}

.ht-card__quote {
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
    font-family: Georgia, 'Times New Roman', serif;
    color: rgba(0, 51, 43, 0.1);
    user-select: none;
}

.ht-stars {
    display: flex;
    gap: 0.2rem;
    color: var(--ht-accent);
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.ht-stars svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.ht-card__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ht-text);
    margin: 0 0 1.5rem;
    flex: 1;
}

.ht-card__text p {
    margin: 0;
}

.ht-card__footer {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-top: 1.125rem;
    margin-top: auto;
    border-top: 1px solid rgba(0, 51, 43, 0.08);
}

.ht-card__avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ht-card);
    border: 2px solid rgba(247, 209, 94, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ht-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ht-card__avatar span {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--ht-primary);
    text-transform: uppercase;
}

.ht-card__meta {
    min-width: 0;
}

.ht-card__name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ht-primary);
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.ht-card__company {
    display: block;
    font-size: 0.8125rem;
    color: var(--ht-muted);
    line-height: 1.4;
}

@media (max-width: 575.98px) {
    .ht-section {
        padding: 3.5rem 0 4rem;
    }

    .ht-section__visual {
        display: none;
    }
}
