/* Testimonial Carousel Widget Styles */

/* ===== Essential Swiper base rules (self-contained) ===== */
/* These ensure the carousel works even if Elementor's Swiper CSS is not loaded */
.elementor-widget-octo_testimonial_carousel .elementor-main-swiper,
.elementor-widget-octo_testimonial_carousel .swiper,
.elementor-widget-octo_testimonial_carousel .swiper-container {
    overflow: hidden;
    position: relative;
    list-style: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin: 0 auto;
}

.elementor-widget-octo_testimonial_carousel .elementor-main-swiper.swiper-initialized,
.elementor-widget-octo_testimonial_carousel .swiper.swiper-initialized,
.elementor-widget-octo_testimonial_carousel .swiper-container.swiper-initialized {
    opacity: 1;
}

.elementor-widget-octo_testimonial_carousel .swiper-wrapper {
    position: relative;
    width: 100%;
    z-index: 1;
    display: flex;
    box-sizing: content-box;
    transition-property: transform;
}

.elementor-widget-octo_testimonial_carousel .swiper-slide {
    flex-shrink: 0;
    position: relative;
    width: 100%;
    transition-property: transform;
}

.elementor-widget-octo_testimonial_carousel .swiper-pagination-bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #000;
    opacity: 0.2;
    cursor: pointer;
    margin: var(--swiper-pagination-bullet-vertical-gap, 0) var(--swiper-pagination-bullet-horizontal-gap, 4px) !important;
}

.elementor-widget-octo_testimonial_carousel .swiper-pagination-bullet-active {
    opacity: 1;
}

.elementor-widget-octo_testimonial_carousel .swiper-pagination-progressbar {
    background: rgba(0, 0, 0, 0.25);
    position: absolute;
}

.elementor-widget-octo_testimonial_carousel .swiper-pagination-progressbar-fill {
    background: #007aff;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: scale(0);
    transform-origin: left top;
}
/* ===== End Swiper base rules ===== */

.elementor-testimonial__image {
    flex-shrink: 0;
}

.elementor-testimonial__image img {
    border-radius: 999px;
    box-sizing: content-box;
    -o-object-fit: cover;
    object-fit: cover;
}

.elementor-testimonial__footer,
.elementor-testimonial__header {
    display: flex;
}

.elementor-testimonial__footer cite,
.elementor-testimonial__header cite {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-style: normal;
    line-height: 1.5;
}

.elementor-testimonial__name {
    font-weight: 700;
}

.elementor-testimonial--layout-image_above .elementor-testimonial__footer,
.elementor-testimonial--layout-image_inline .elementor-testimonial__footer {
    align-items: center;
}

.elementor-testimonial--layout-image_above .elementor-testimonial__image + cite,
.elementor-testimonial--layout-image_inline .elementor-testimonial__image + cite {
    margin-inline-start: 20px;
}

.elementor-testimonial--layout-image_above.elementor-testimonial--align-right .elementor-testimonial__footer,
.elementor-testimonial--layout-image_inline.elementor-testimonial--align-right .elementor-testimonial__footer {
    flex-direction: row-reverse;
}

.elementor-testimonial--layout-image_above.elementor-testimonial--align-right .elementor-testimonial__image + cite,
.elementor-testimonial--layout-image_inline.elementor-testimonial--align-right .elementor-testimonial__image + cite {
    margin-inline-end: 20px;
    margin-inline-start: 0;
}

.elementor-testimonial--layout-image_above.elementor-testimonial--align-left .elementor-testimonial__footer,
.elementor-testimonial--layout-image_inline.elementor-testimonial--align-left .elementor-testimonial__footer {
    flex-direction: row;
}

.elementor-testimonial--layout-image_above.elementor-testimonial--align-left .elementor-testimonial__image + cite,
.elementor-testimonial--layout-image_inline.elementor-testimonial--align-left .elementor-testimonial__image + cite {
    margin-inline-end: 0;
    margin-inline-start: 20px;
}

.elementor-testimonial--layout-image_inline .elementor-testimonial__footer {
    margin-top: 25px;
}

.elementor-testimonial--layout-image_above .elementor-testimonial {
    display: flex;
    flex-direction: column-reverse;
}

.elementor-testimonial--layout-image_above .elementor-testimonial__footer {
    margin-bottom: 25px;
}

.elementor-testimonial--layout-image_stacked .elementor-testimonial__footer {
    flex-wrap: wrap;
    margin-top: 25px;
}

.elementor-testimonial--layout-image_stacked .elementor-testimonial cite,
.elementor-testimonial--layout-image_stacked .elementor-testimonial__image {
    margin-top: 15px;
    width: 100%;
}

.elementor-testimonial--layout-image_left .elementor-testimonial,
.elementor-testimonial--layout-image_right .elementor-testimonial {
    align-items: stretch;
    display: flex;
}

.elementor-testimonial--layout-image_left .elementor-testimonial__footer,
.elementor-testimonial--layout-image_right .elementor-testimonial__footer {
    flex-direction: column;
    flex-shrink: 0;
    text-align: center;
}

.elementor-testimonial--layout-image_left .elementor-testimonial__image + cite,
.elementor-testimonial--layout-image_right .elementor-testimonial__image + cite {
    margin-top: 15px;
}

.elementor-testimonial--layout-image_left.elementor-testimonial--align-center .elementor-testimonial__footer,
.elementor-testimonial--layout-image_right.elementor-testimonial--align-center .elementor-testimonial__footer {
    justify-content: flex-start;
}

.elementor-testimonial--layout-image_left .elementor-testimonial {
    flex-direction: row-reverse;
}

.elementor-testimonial--layout-image_left .elementor-testimonial__footer {
    padding-inline-end: 20px;
}

.elementor-testimonial--layout-image_right .elementor-testimonial {
    flex-direction: row;
}

.elementor-testimonial--layout-image_right .elementor-testimonial__footer {
    padding-inline-start: 20px;
}

.elementor-testimonial--align-right .elementor-testimonial {
    text-align: right;
}

.elementor-testimonial--align-right.elementor-testimonial--layout-image_above .elementor-testimonial__footer,
.elementor-testimonial--align-right.elementor-testimonial--layout-image_inline .elementor-testimonial__footer {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.elementor-testimonial--align-right.elementor-testimonial--layout-image_above .elementor-testimonial__image + cite,
.elementor-testimonial--align-right.elementor-testimonial--layout-image_inline .elementor-testimonial__image + cite {
    margin-inline-end: 20px;
    margin-inline-start: 0;
}

.elementor-testimonial--align-left .elementor-testimonial {
    text-align: left;
}

.elementor-testimonial--align-left.elementor-testimonial--layout-image_above .elementor-testimonial__footer,
.elementor-testimonial--align-left.elementor-testimonial--layout-image_inline .elementor-testimonial__footer {
    flex-direction: row;
    justify-content: flex-start;
}

.elementor-testimonial--align-left.elementor-testimonial--layout-image_above .elementor-testimonial__image + cite,
.elementor-testimonial--align-left.elementor-testimonial--layout-image_inline .elementor-testimonial__image + cite {
    margin-inline-end: 0;
    margin-inline-start: 20px;
}

.elementor-testimonial--align-center .elementor-testimonial {
    text-align: center;
}

.elementor-testimonial--align-center.elementor-testimonial--layout-image_above .elementor-testimonial__footer,
.elementor-testimonial--align-center.elementor-testimonial--layout-image_inline .elementor-testimonial__footer {
    justify-content: center;
}

.elementor-testimonial--align-center.elementor-testimonial--layout-image_inline .elementor-testimonial__image + cite {
    text-align: start;
}

.elementor-testimonial--skin-default.elementor-testimonial--layout-image_above .elementor-testimonial__cite,
.elementor-testimonial--skin-default.elementor-testimonial--layout-image_left .elementor-testimonial__cite,
.elementor-testimonial--skin-default.elementor-testimonial--layout-image_right .elementor-testimonial__cite {
    display: flex;
    flex-direction: column;
    margin-top: 25px;
    width: 100%;
}

.elementor-testimonial--skin-bubble .elementor-testimonial__content {
    background-color: #f9fafa;
    padding: 20px;
    position: relative;
}

.elementor-testimonial--skin-bubble .elementor-testimonial__content:after {
    background-color: #f9fafa;
    border-width: 0;
    box-sizing: content-box;
    content: "";
    display: block;
    height: 14px;
    position: absolute;
    transform: scaleX(.75) rotate(45deg);
    width: 14px;
}

.elementor-testimonial--skin-bubble.elementor-testimonial--layout-image_above .elementor-testimonial__content:after {
    bottom: calc(100% - 7px);
    transform: scaleX(.75) rotate(-135deg);
}

.elementor-testimonial--skin-bubble.elementor-testimonial--layout-image_above.elementor-testimonial--align-center .elementor-testimonial__content:after {
    left: 50%;
    transform: translateX(-50%) scaleX(.75) rotate(-135deg);
}

.elementor-testimonial--skin-bubble.elementor-testimonial--layout-image_inline .elementor-testimonial__content:after,
.elementor-testimonial--skin-bubble.elementor-testimonial--layout-image_stacked .elementor-testimonial__content:after {
    top: calc(100% - 7px);
}

.elementor-testimonial--skin-bubble.elementor-testimonial--layout-image_inline.elementor-testimonial--align-center .elementor-testimonial__content:after,
.elementor-testimonial--skin-bubble.elementor-testimonial--layout-image_stacked.elementor-testimonial--align-center .elementor-testimonial__content:after {
    left: 50%;
    transform: translateX(-50%) scaleX(.75) rotate(45deg);
}

.elementor-testimonial--skin-bubble.elementor-testimonial--layout-image_above.elementor-testimonial--align-left .elementor-testimonial__content:after,
.elementor-testimonial--skin-bubble.elementor-testimonial--layout-image_inline.elementor-testimonial--align-left .elementor-testimonial__content:after,
.elementor-testimonial--skin-bubble.elementor-testimonial--layout-image_stacked.elementor-testimonial--align-left .elementor-testimonial__content:after {
    left: calc(20px + 50px / 2);
}

.elementor-testimonial--skin-bubble.elementor-testimonial--layout-image_above.elementor-testimonial--align-right .elementor-testimonial__content:after,
.elementor-testimonial--skin-bubble.elementor-testimonial--layout-image_inline.elementor-testimonial--align-right .elementor-testimonial__content:after,
.elementor-testimonial--skin-bubble.elementor-testimonial--layout-image_stacked.elementor-testimonial--align-right .elementor-testimonial__content:after {
    right: calc(20px + 50px / 2);
}

.elementor-testimonial--skin-bubble.elementor-testimonial--layout-image_left .elementor-testimonial__content:after {
    left: -8px;
    transform: scaleY(.75) rotate(135deg);
}

.elementor-testimonial--skin-bubble.elementor-testimonial--layout-image_right .elementor-testimonial__content:after {
    right: -8px;
    transform: scaleY(.75) rotate(-45deg);
}

.elementor-testimonial--skin-bubble.elementor-testimonial--layout-image_left .elementor-testimonial__content:after,
.elementor-testimonial--skin-bubble.elementor-testimonial--layout-image_right .elementor-testimonial__content:after {
    top: calc(20px + 50px / 2);
}

.elementor-testimonial--skin-bubble.elementor-testimonial--layout-image_left .elementor-testimonial__footer,
.elementor-testimonial--skin-bubble.elementor-testimonial--layout-image_right .elementor-testimonial__footer {
    padding-top: 20px;
}

/* Base Carousel Module Styles mapped to octo_testimonial_carousel */

.swiper-pagination-bullets {
    color: #fff;
    cursor: default;
}

.swiper-slide {
    border-style: solid;
    border-width: 0;
    overflow: hidden;
    transition-duration: .5s;
    transition-property: border, background, transform;
    will-change: transform;
}

.swiper-slide:not(:hover) .e-overlay-animation-fade {
    opacity: 0;
}

.swiper-slide:not(:hover) .e-overlay-animation-slide-up {
    transform: translateY(100%);
}

.swiper-slide:not(:hover) .e-overlay-animation-slide-down {
    transform: translateY(-100%);
}

.swiper-slide:not(:hover) .e-overlay-animation-slide-right {
    transform: translateX(-100%);
}

.swiper-slide:not(:hover) .e-overlay-animation-slide-left {
    transform: translateX(100%);
}

.swiper-slide:not(:hover) .e-overlay-animation-zoom-in {
    opacity: 0;
    transform: scale(.5);
}

.swiper-slide a {
    display: inline;
}

.swiper-slide a.elementor-button {
    display: inline-block;
}

.elementor-widget-octo_testimonial_carousel .elementor-arrows-yes .elementor-main-swiper {
    width: calc(95% - 40px);
}

.elementor-widget-octo_testimonial_carousel .elementor-main-swiper {
    width: 95%;
}

.elementor-widget-octo_testimonial_carousel .swiper-wrapper {
    align-items: stretch;
    display: flex;
}

.elementor-widget-octo_testimonial_carousel .swiper-slide {
    height: auto;
}

.elementor-widget-octo_testimonial_carousel.elementor-pagination-type-bullets .swiper,
.elementor-widget-octo_testimonial_carousel.elementor-pagination-type-bullets .swiper-container,
.elementor-widget-octo_testimonial_carousel.elementor-pagination-type-fraction .swiper,
.elementor-widget-octo_testimonial_carousel.elementor-pagination-type-fraction .swiper-container {
    padding-bottom: 40px;
}

.elementor-widget-octo_testimonial_carousel .elementor-swiper-button-prev,
.elementor-widget-octo_testimonial_carousel .swiper-container-rtl .elementor-swiper-button-next,
.elementor-widget-octo_testimonial_carousel .swiper-rtl .elementor-swiper-button-next {
    left: 0;
    right: unset;
}

.elementor-widget-octo_testimonial_carousel .elementor-swiper-button-next,
.elementor-widget-octo_testimonial_carousel .swiper-container-rtl .elementor-swiper-button-prev,
.elementor-widget-octo_testimonial_carousel .swiper-rtl .elementor-swiper-button-prev {
    left: unset;
    right: 0;
}

.elementor-widget-octo_testimonial_carousel.elementor-pagination-type-bullets .elementor-swiper-button-next,
.elementor-widget-octo_testimonial_carousel.elementor-pagination-type-bullets .elementor-swiper-button-prev {
    top: calc(50% - 40px / 2);
}

.elementor-widget-octo_testimonial_carousel .swiper-slide {
    padding: 20px;
}

.elementor-widget-octo_testimonial_carousel .elementor-testimonial__text {
    font-size: 1.3em;
    font-style: italic;
    line-height: 1.5;
}

.elementor-widget-octo_testimonial_carousel .elementor-testimonial__image img {
    height: 50px;
    width: 50px;
}

/* Custom navigation and arrows elements layout */
.elementor-widget-octo_testimonial_carousel .elementor-swiper {
    position: relative;
}

.elementor-widget-octo_testimonial_carousel .elementor-swiper-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
}

.elementor-widget-octo_testimonial_carousel .elementor-swiper-button-prev {
    left: 0;
}

.elementor-widget-octo_testimonial_carousel .elementor-swiper-button-next {
    right: 0;
}

.elementor-widget-octo_testimonial_carousel .swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

/* Enhancements: Rating Stars and Source Logos */
.elementor-testimonial__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.elementor-testimonial__source-wrapper {
    display: inline-flex;
    align-items: center;
    margin-inline-start: auto; /* Push it to the far right of the footer */
}

.elementor-testimonial__source {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.elementor-testimonial__source-img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.elementor-testimonial__source-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.elementor-testimonial__rating {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.octo-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.octo-star svg {
    display: block;
    fill: currentColor;
}

/* Card Height Equalization and Bottom Footer Alignment */
.elementor-widget-octo_testimonial_carousel .swiper-slide {
    display: flex;
    flex-direction: column;
}

.elementor-widget-octo_testimonial_carousel .elementor-testimonial {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
}

.elementor-widget-octo_testimonial_carousel .elementor-testimonial__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.elementor-widget-octo_testimonial_carousel .elementor-testimonial__text {
    flex-grow: 1;
}

/* Specific layout direction overrides */
.elementor-widget-octo_testimonial_carousel.elementor-testimonial--layout-image_above .elementor-testimonial {
    flex-direction: column-reverse;
}

.elementor-widget-octo_testimonial_carousel.elementor-testimonial--layout-image_left .elementor-testimonial {
    flex-direction: row-reverse;
}

.elementor-widget-octo_testimonial_carousel.elementor-testimonial--layout-image_right .elementor-testimonial {
    flex-direction: row;
}

