/* ------------------------------------------------------------------ */
/* LAYOUT 1 STYLES (ORIGINAL - UNTOUCHED) */
/* ------------------------------------------------------------------ */
.tsabiable-testimonials {
    display: flex;
    gap: 40px;
    padding: 100px 20px 20px 20px;
    align-items: start;
    width: 80%;
    margin: 0 auto;
    overflow: hidden; 
}

.tsabiable-testimonials-left {
    flex: 1;
    text-align: center;
}

.tsabiable-testimonials-right {
    flex: 1;
    min-height: 300px;
    margin-left: auto;
    overflow: hidden; 
    position: relative; 
}
.tsabiable-testimonials-heading {
    display: flex;
    justify-content: flex-start;
    text-align: left;
    width: 70%;
    color: #0c5e37;
    margin-bottom: 20px;
}

@media (max-width: 991px){
    .tsabiable-testimonials {
        width: 90%;
    }
}

@media (max-width: 768px){
    .tsabiable-testimonials-heading {
        width: 100%; 
    }
    .tsabiable-testimonials {
        width: 90%;
    }
    .tsabiable-testimonials-right {
        min-height: 200px;
    }
}


.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-left: 50px;
    border-left: 4px solid #0c5e37;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    height: 200px;
    align-content: center;
}

.testimonial-item.active {
    transform: translateX(0); 
    opacity: 1; 
    pointer-events: auto;
}

.testimonial-description {
    margin-bottom: 15px;
}

.testimonial-name {
    margin-bottom: 10px;
}

.testimonial-role {
    font-style: italic;
    color: #666;
}

.tsabiable-testimonials-pagination {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 20px;
}

.tsabiable-testimonials-prev,
.tsabiable-testimonials-next {
    display: inline-block;
    text-decoration: none;
}

.tsabiable-testimonials-prev img,
.tsabiable-testimonials-next img {
    width: 50px;
    height: 50px;
    transition: opacity 0.3s;
}

.tsabiable-testimonials-prev.disabled,
.tsabiable-testimonials-next.disabled {
    cursor: not-allowed;
}

.tsabiable-testimonials-prev.disabled img,
.tsabiable-testimonials-next.disabled img {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .tsabiable-testimonials {
        flex-direction: column;
        gap: 20px;
    }

    .tsabiable-testimonials-left,
    .tsabiable-testimonials-right {
        width: 100%;
    }
	
}


/* ------------------------------------------------------------------ */
/* LAYOUT 2 STYLES (ORIGINAL - UNTOUCHED) */
/* ------------------------------------------------------------------ */
.ts-layout2-container {
    width: 80%;
    margin: 40px auto;
    font-family: inherit;
}
@media(max-width: 1440px){
    .ts-layout2-container {
        width: 90%;
    }
}

.ts-layout2-main-heading {
    text-align: center;
    color: #0c5e37;
    margin-bottom: 30px;
    width: 100%;
}

.ts-layout2-split {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

/* Left Column (65%) */
.ts-layout2-col-left {
    width: 65%;
    background-color: #F2F5FA; 
    padding: 40px;
    border-radius: 0px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ts-layout2-quote-icon {
    width: 50px;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.ts-layout2-slider-wrapper {
    position: relative;
    width: 100%;
    min-height: 200px;
    overflow: hidden;
}

.ts-layout2-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ts-layout2-item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.ts-layout2-desc {
    color: #000;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 500;
}

.ts-layout2-name {
    color: #0c5e37;
    font-weight: bold;
    font-size: 24px;
    margin: 0;
    padding: 0;
}

.ts-layout2-role {
    color: #1F1F1F;
    font-size: 20px;
    margin-top: 5px;
}

/* Right Column (35%) */
.ts-layout2-col-right {
    width: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-layout2-shortcode-wrapper {
    width: 100%;
}

/* Pagination (Bottom Center) */
.ts-layout2-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.ts-layout2-prev img,
.ts-layout2-next img {
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.ts-layout2-prev.disabled img,
.ts-layout2-next.disabled img {
    opacity: 0.5;
    cursor: not-allowed;
}
.tsabiable-sra-badge-inner{
    display: flex;
    justify-content: center;
}

/* Layout 2 Responsive */
@media (max-width: 992px) {
    .ts-layout2-split {
        flex-direction: column;
    }
    .ts-layout2-col-left,
    .ts-layout2-col-right {
        width: 100%;
    }
    .ts-layout2-container {
        width: 90%;
    }
}


/* ------------------------------------------------------------------ */
/* LAYOUT 3 STYLES */
/* ------------------------------------------------------------------ */
.ts-layout3-container {
    width: 90%;
    max-width: 1280px; 
    margin: 100px auto 40px auto; 
    font-family: inherit;
}

.ts-layout3-main-heading {
    text-align: center;
    color: #0c5e37;
    margin-bottom: 40px;
    font-weight: 700;
}

.ts-layout3-split {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.ts-layout3-col-left {
    width: 35%; 
    display: flex;
    align-items: center; 
    justify-content: center;
    flex-direction: column;
}

.ts-layout3-shortcode-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.ts-layout3-col-right {
    width: 65%;
    display: flex;
    gap: 20px;
    align-items: center; 
}

.ts-layout3-window {
    flex: 1;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.ts-layout3-track {
    display: flex;
    flex-direction: column;
    gap: 20px; 
    will-change: transform;
}

.ts-layout3-card {
    background-color: #F8F9FA; 
    padding: 30px;
    border-radius: 12px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    box-sizing: border-box;
    width: 100%; 
}

.ts-layout3-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: #93764e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-layout3-avatar span {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
}

.ts-layout3-info {
    flex: 1;
}

.ts-layout3-desc {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ts-layout3-meta {
    margin-top: 10px;
}

.ts-layout3-name {
    color: #000;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.ts-layout3-role {
    color: #777;
    font-size: 14px;
    font-weight: 400;
}

.ts-layout3-pagination {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ts-layout3-prev,
.ts-layout3-next {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.ts-layout3-prev img,
.ts-layout3-next img {
    width: 50px;
    height: 50px;
    transition: opacity 0.3s;
    display: block; 
}

.ts-layout3-prev.disabled,
.ts-layout3-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 992px) {
    .ts-layout3-split {
        flex-direction: column;
    }
    .ts-layout3-col-left,
    .ts-layout3-col-right {
        width: 100%;
    }
    .ts-layout3-window {
       min-height: 400px;
    }
}

@media (max-width: 600px) {
    .ts-layout3-avatar {
        display: none !important;
    }
    .ts-layout3-pagination {
        display: none !important;
    }
    .ts-layout3-col-right {
        width: 100%;
        display: block; 
    }
    .ts-layout3-window {
        width: 100%;
        touch-action: pan-x; 
    }
}

/* ------------------------------------------------------------------ */
/* LAYOUT 4 STYLES (UPDATED) */
/* ------------------------------------------------------------------ */
.ts-layout4-container {
    width: 90%;
    max-width: 1280px; 
    margin: 100px auto 40px auto; 
    font-family: inherit;
}

.ts-layout4-main-heading {
    text-align: center;
    color: #0c5e37;
    margin-bottom: 40px;
    font-weight: 700;
}

.ts-layout4-split {
    display: flex;
    gap: 50px;
    align-items: center; 
}

/* Left: Shortcode */
.ts-layout4-col-left {
    width: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ts-layout4-shortcode-wrapper {
    width: 100%;
}

/* Right: Testimonial Area */
.ts-layout4-col-right {
    width: 65%;
    position: relative;
}

.ts-layout4-wrapper {
    position: relative;
    width: 100%;
}

/* Individual Item - FIXED ANIMATION */
.ts-layout4-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.ts-layout4-item.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: relative; 
    z-index: 2;
}

/* Message Bubble */
.ts-layout4-bubble {
    background-color: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    margin-bottom: 30px; 
}

.ts-layout4-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px; 
    left: 30px; 
    width: 0; 
    height: 0; 
    border-left: 20px solid transparent;
    border-right: 0px solid transparent; 
    border-top: 20px solid #fff; 
}

.ts-layout4-desc {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
}

.ts-layout4-bottom-row {
    display: flex;
    align-items: flex-start; 
    gap: 20px;
    padding-left: 20px; 
}

.ts-layout4-avatar {
    width: 60px;
    height: 60px;
    background-color: #8c7352; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ts-layout4-avatar span {
    color: #fff;
    font-weight: bold;
    font-size: 20px;
}

.ts-layout4-author-right {
    flex: 1;
    display: flex;
    flex-direction: column; /* Stacks Name, Role, Pagination */
    justify-content: center;
}

.ts-layout4-name {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.ts-layout4-role {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Pagination (Now inside Author Right) */
.ts-layout4-pagination {
    display: flex;
    gap: 15px;
    margin-top: 15px; /* Spacing below role */
    align-self: flex-end; /* Pushes to the right */
}

.ts-layout4-prev,
.ts-layout4-next {
    width: 50px;
    height: 50px;
    background-color: transparent; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
}
@media(max-width: 768px){
	.ts-layout4-prev,
.ts-layout4-next {
    width: 35px;
    height: 35px;
}
}

.ts-layout4-prev img,
.ts-layout4-next img {
    width: 100%;
    height: auto;
}

.ts-layout4-prev.disabled,
.ts-layout4-next.disabled {
    opacity: 0.5;
    cursor: default;
}

/* Layout 4 Responsive */
@media (max-width: 992px) {
    .ts-layout4-split {
        flex-direction: column;
    }
    .ts-layout4-col-left,
    .ts-layout4-col-right {
        width: 100%;
    }
    .ts-layout4-bottom-row {
        flex-direction: row; 
        padding-left: 0;
    }
    .ts-layout4-bubble::after {
        left: 30px;
    }
}

@media (max-width: 480px) {
    .ts-layout4-bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .ts-layout4-pagination {
        align-self: flex-start; 
    }
}

/* ------------------------------------------------------------------ */
/* LAYOUT 5 STYLES (UPDATED - PROFESSIONAL) */
/* ------------------------------------------------------------------ */
.ts-layout5-container {
    width: 90%;
    max-width: 1400px;
    margin: 100px auto 40px auto;
    font-family: inherit;
}

.ts-layout5-main-heading {
    text-align: center;
    color: #0c5e37;
    margin-bottom: 40px;
    font-weight: 700;
}

.ts-layout5-slider-window {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 5px; 
}

.ts-layout5-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.ts-layout5-card-testimonials {
    background-color: rgba(249, 249, 251, 1);
    border-radius: 16px;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

/* Header: Avatar | Meta | Icon */
.ts-layout5-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

/* Avatar: Same style as Layout 3 & 4 (Brown) */
.ts-layout5-avatar {
    width: 60px;
    height: 60px;
    background-color: #93764e; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.ts-layout5-avatar span {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.ts-layout5-meta {
    flex: 1; 
    padding-right: 10px;
}

.ts-layout5-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.ts-layout5-role {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* Quote Icon: Top Right */
.ts-layout5-quote-icon {
    width: 40px;
    flex-shrink: 0;
    align-self: flex-start;
}
.ts-layout5-quote-icon img {
    width: 100%;
    height: auto;
    display: block;
}

/* Divider */
.ts-layout5-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(214, 214, 214, 1);
    margin-bottom: 20px;
}

/* Body */
.ts-layout5-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Pagination: Matching Layout 1/2/3/4 (Transparent with standard arrows) */
.ts-layout5-pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.ts-layout5-prev,
.ts-layout5-next {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s;
}
@media(max-width: 768px){
	.ts-layout5-prev,
	.ts-layout5-next {
		width: 35px;
		height: 35px;
}
}

.ts-layout5-prev img,
.ts-layout5-next img {
    width: 100%; 
    height: auto;
    filter: none; 
}

.ts-layout5-prev.disabled,
.ts-layout5-next.disabled {
    opacity: 0.5;
    cursor: default;
}

@media (max-width: 768px) {
    .ts-layout5-card-testimonials {
        padding: 20px;
    }
}