/* Testimonials Carousel Styles - Updated for Plugin HTML Structure */

/* Main container - using hgea-testimonials class */
.hgea-testimonials {
    position: relative;
    overflow: visible;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 100px !important;
}

/* Slider wrapper and viewport */
.hgea-testimonials .wpmslider-wrapper {
    position: relative;
}

.hgea-testimonials .wpmslider-viewport {
    overflow: visible !important;
    /* Override plugin's hidden for avatar visibility */
}

/* Individual testimonial items */
.hgea-testimonials .strong-content .testimonial-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 415px;
    /* Fixed height for consistency */
}

/* Testimonial inner container - acts as the card */
.hgea-testimonials .wpmtst-testimonial-inner {
    width: 100%;
    height: 100%;
    /* Fill the testimonial container */
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    box-shadow: 5px 5px 4px 0px #69686840;
    background: white;
    padding: 100px 1.5rem 1.5rem 1.5rem !important;
    position: relative;
}

/* Avatar styling - positioned outside card */
.hgea-testimonials .wpmtst-testimonial-image,
.hgea-testimonials .testimonial-image {
    position: absolute !important;
    top: -75px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 150px;
    height: 150px;
    border: 4px solid var(--hgea-color-yellow);
    border-radius: 50%;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 0 !important;
    padding: 0 !important;
}

.hgea-testimonials .wpmtst-testimonial-image img,
.hgea-testimonials .testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    margin: 0;
    padding: 0;
}


/* heading styling */
.hgea-testimonials .testimonial-heading-text {
    font-family: var(--hgea-font-league-spartan);
    color: var(--hgea-color-dark-green);
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

/* Name styling */
.hgea-testimonials .testimonial-name {
    font-family: var(--hgea-font-montserrat);
    color: var(--hgea-color-black);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    margin: 0 0 0 0;
    text-align: center;
}

/* Position styling */
.hgea-testimonials .testimonial-position {
    font-family: var(--hgea-font-montserrat);
    color: #1a1a1a;
    font-weight: 400;
    font-size: 1rem;
    margin: 0 0 0 0;
    text-align: center;
}

/* Island and Unit styling */
.hgea-testimonials .testimonial-island,
.hgea-testimonials .testimonial-unit {
    font-family: var(--hgea-font-montserrat);
    color: #666666;
    font-size: 0.9rem;
    margin: 0 0 0.25rem 0;
    text-align: center;
}

/* Testimonial text - the quote */
.hgea-testimonials .testimonial-text {
    font-family: var(--hgea-font-montserrat);
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
    margin: 1.5rem 0 0 0;
    text-align: center;
    flex-grow: 1;
    /* Takes up remaining space */
    display: flex;
    align-items: flex-start;
    /* Align text to top of available space */
    padding: 0;
}

/* Carousel navigation - positioned on sides */
.hgea-testimonials .wpmslider-controls {
    position: absolute;
    top: 50%;
    width: calc(100% + 100px);
    left: -50px;
    display: flex;
    justify-content: space-between;
    padding: 0;
    pointer-events: none;
    z-index: 20;
    transform: translateY(-50%);
}

.hgea-testimonials .wpmslider-controls-direction {
    pointer-events: auto;
}

.hgea-testimonials .wpmslider-prev,
.hgea-testimonials .wpmslider-next {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--hgea-color-dark-green) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
    line-height: 1 !important;
}

.hgea-testimonials .wpmslider-prev:before {
    content: "‹";
    font-size: 1.5rem;
    font-weight: bold;
}

.hgea-testimonials .wpmslider-next:before {
    content: "›";
    font-size: 1.5rem;
    font-weight: bold;
}

.hgea-testimonials .wpmslider-prev,
.hgea-testimonials .wpmslider-next {
    background: var(--hgea-color-dark-green) !important;
}

.hgea-testimonials .wpmslider-prev::before,
.hgea-testimonials .wpmslider-next::before {
    top: 1px !important;
    background: white !important;
}

/* Hide screen reader text */
.hgea-testimonials .screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Clear utility */
.hgea-testimonials .clear,
.hgea-testimonials .maybe-clear {
    clear: both;
    display: none;
}

.testimonial.t-slide[aria-hidden="true"] {
    opacity: 0.5;
}

/* Responsive Design */

/* Tablet - adjustments */
@media (max-width: 1024px) {
    .hgea-testimonials .strong-content .testimonial-inner {
        height: 415px;
        /* Fixed height for tablets */
    }

    .hgea-testimonials .strong-content .testimonial {
        margin-right: 20px !important;
    }

    .hgea-testimonials .wpmtst-testimonial-inner {
        height: 100%;
        /* Fill the testimonial container */
        padding: 85px 1.25rem 1.25rem 1.25rem !important;
    }

    .hgea-testimonials .testimonial-name,
    .hgea-testimonials .testimonial-heading-text {
        font-size: 1.1rem !important;
    }

    .hgea-testimonials .wpmtst-testimonial-image,
    .hgea-testimonials .testimonial-image {
        width: 130px !important;
        height: 130px !important;
        top: -65px;
        border-width: 3px !important;
    }

    .hgea-testimonials .wpmslider-prev,
    .hgea-testimonials .wpmslider-next {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem;
    }

    .hgea-testimonials .wpmslider-controls {
        width: calc(100% + 80px);
        left: -40px;
    }
}

/* Mobile - adjustments */
@media (max-width: 768px) {
    .hgea-testimonials .strong-content .testimonial-inner {
        height: 350px;
        /* Fixed height for mobile */
    }

    .hgea-testimonials .strong-content .testimonial {
        margin-right: 10px !important;
    }

    .hgea-testimonials .wpmtst-testimonial-inner {
        height: 100%;
        /* Fill the testimonial container */
        padding: 80px 1.5rem 1.5rem 1.5rem !important;
    }

    .hgea-testimonials .wpmtst-testimonial-image,
    .hgea-testimonials .testimonial-image {
        width: 120px !important;
        height: 120px !important;
        top: -60px;
        border-width: 3px !important;
    }

    .hgea-testimonials .testimonial-name,
    .hgea-testimonials .testimonial-heading-text {
        font-size: 1rem !important;
    }

    .hgea-testimonials .testimonial-text {
        font-size: 0.95rem;
    }

    .hgea-testimonials .wpmslider-prev,
    .hgea-testimonials .wpmslider-next {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem;
    }

    .hgea-testimonials .wpmslider-controls {
        width: calc(100% + 40px);
        left: -20px;
    }
}

/* Very small mobile */
@media (max-width: 480px) {
    .hgea-testimonials {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .hgea-testimonials .strong-content .testimonial-inner {
        height: 350px;
        /* Fixed height for very small mobile */
    }

    .hgea-testimonials .wpmtst-testimonial-inner {
        height: 100%;
        /* Fill the testimonial container */
        padding: 70px 1rem 1.5rem 1rem !important;
    }

    .hgea-testimonials .wpmtst-testimonial-image,
    .hgea-testimonials .testimonial-image {
        width: 100px !important;
        height: 100px !important;
        top: -50px;
        border-width: 3px !important;
    }

    .hgea-testimonials .wpmslider-prev,
    .hgea-testimonials .wpmslider-next {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem;
    }

    .hgea-testimonials .wpmslider-controls {
        width: calc(100% + 50px);
        left: -25px;
    }
}