/* ===================================================
   Testimonial Accordion Design
   =================================================== */

.feedback-section {
    background-color: #D9E6FF;
    position: relative;
    z-index: 0;
}

.feedback-title {
    color: #0b1c3a;
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: -0.5px;
}

/* Accordion Container */
.testimonial-accordion {
    display: flex;
    width: 100%;
    height: 450px;
    background: #ffffff;
    border-top: 1px solid #dcdfe4;
    border-bottom: 1px solid #dcdfe4;
    overflow: hidden;
}

/* Individual Item Wrapper */
.testi-item {
    position: relative;
    display: flex;
    flex: 0 0 80px; /* Width of inactive columns */
    border-right: 1px solid #dcdfe4;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    background: #ffffff;
}

.testi-item:last-child {
    border-right: none;
}

/* Active Item State */
.testi-item.active {
    flex: 1; /* Expands to take up remaining space */
    background: radial-gradient(circle at bottom left,#0e3552 0%,#000 60%); /* Light blue/grey background from image */
    cursor: default;
}

/* ----------------------------------
   1. Inactive View (Vertical Text)
   ---------------------------------- */
.testi-tab {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 0;
    transition: opacity 0.3s ease;
}

.testi-item.active .testi-tab {
    opacity: 0;
    pointer-events: none;
}

.plus-icon {
    font-size: 38px;
    color: #0b1c3a;
    margin-bottom: 30px;
    font-weight: 500;
}

.vertical-name {
    writing-mode: vertical-rl;
    transform: rotate(180deg); /* Text running bottom to top */
    color: #0b1c3a;
    font-weight: 600;
    font-size: 24px;
    white-space: nowrap;
}

/* ----------------------------------
   2. Active View (Content Box)
   ---------------------------------- */
.testi-content {
    opacity: 0;
    min-width: 500px; /* Prevents text squishing during animation */
    padding: 40px 50px;
    transform: translateX(20px);
    transition: all 0.5s ease;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testi-item.active .testi-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.quote-icon i {
    color: #1a73e8; /* Blue quote */
    font-size: 64px;
    margin-bottom: 20px;
}

.testi-text {
    font-size: 22px;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 30px;
}

.testi-divider {
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

/* Author Box */
.testi-author-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #cbd5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}
.author-avatar img{
	width: 60px;
  height: 60px;
  border-radius: 50%;
}
.testi-stars i {
    color: #cda85f;
    font-size: 1.1vw;
    margin-right: 2px;
    margin-bottom: 5px;
}

.author-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px 0;
}

.author-title {
    font-size:1.2vw;
    color: #718096;
}

/* ===================================================
   Responsive (Mobile View)
   =================================================== */
@media (max-width: 991px) {
    .testimonial-accordion {
        flex-direction: column;
        height: auto;
    }
    
    .testi-item {
        flex: none;
        width: 100%;
        height: 60px; /* Horizontal tab height when closed */
        border-right: none;
        border-bottom: 1px solid #dcdfe4;
    }
    
    .testi-item.active {
        height: auto;
    }
    
    .testi-tab {
        width: 100%;
        height: 60px;
        flex-direction: row;
        justify-content: space-between;
        padding: 0 20px;
    }
    
    .testi-tab .plus-icon {
        margin-bottom: 0;
    }
    
    .testi-tab .vertical-name {
        writing-mode: horizontal-tb; /* Switch back to standard text */
        transform: none;
    }
    
    .testi-content {
        min-width: 100%;
        padding: 25px 20px;
    }
    .testi-stars i{
        font-size: 18px;
    }
    .author-title {
        font-size:18px;
    }
}