/* Testimonials Section Styles - Modern Minimal Design */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFFFD 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1400px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(63, 234, 194, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header styles removed as we're using section-title-styled */

/* Carousel Container */
.testimonials-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonials-wrapper {
    overflow: hidden;
    margin: 0 80px;
    position: relative;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 30px;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 280px;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 102, 255, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
    border-color: #0F91F2;
}

.testimonial-card:hover::before {
    opacity: 1;
}

/* New Layout Structure */
.testimonial-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Video Section - Left Side */
.testimonial-video-section {
    flex-shrink: 0;
    width: 280px;
}

.video-thumbnail-link {
    display: block;
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #f8fafc;
    aspect-ratio: 16/9;
}

.video-thumbnail-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.2);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-thumbnail-link .play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.video-thumbnail-link:hover .play-button-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.play-button-overlay svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.video-thumbnail-link:hover .play-button-overlay svg {
    transform: scale(1.1);
}

/* Content Section - Right Side */
.testimonial-content {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 80px;
    color: #0F91F2;
    opacity: 0.08;
    line-height: 1;
    font-family: 'Gotham Pro', serif;
    z-index: 0;
}

.testimonial-quote {
    font-size: 20px;
    font-style: normal;
    color: #1e293b;
    line-height: 1.65;
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 8px;
    position: relative;
}

.author-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: grayscale(0%);
}

.testimonial-card:hover .author-logo {
    opacity: 1;
    filter: grayscale(0%);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.author-name {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
}

.author-title {
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
}

/* Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-btn {
    width: 56px;
    height: 56px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    pointer-events: all;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    transform: scale(1.1);
    background: #0F91F2;
    color: white;
    border-color: #0F91F2;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: #94a3b8;
    transform: scale(1.2);
}

.dot.active {
    background: #0F91F2;
    width: 32px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 968px) {
    .testimonials-wrapper {
        margin: 0 60px;
    }
    
    .testimonial-layout {
        flex-direction: column;
        gap: 24px;
    }
    
    .testimonial-video-section {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .testimonial-content {
        text-align: center;
    }
    
    .testimonial-author {
        justify-content: center;
    }
    
    .quote-icon {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 640px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-wrapper {
        margin: 0;
    }
    
    .testimonial-slide {
        padding: 0 16px;
    }
    
    .testimonial-card {
        padding: 32px 24px;
    }
    
    .testimonial-quote {
        font-size: 18px;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .carousel-dots {
        margin-top: 24px;
    }
}

/* NEW STYLES FOR THE UPDATED DESIGN */

.testimonials-wrapper-new {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-header-section {
    flex: 0 0 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.testimonials-content-wrapper {
    flex: 1;
    display: flex;
    gap: 30px;
    align-items: stretch;
    position: relative;
    overflow: visible;
}

.testimonial-card-new {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.testimonial-card-new.active {
    width: 100%;
    opacity: 1;
}

.testimonial-card-new:not(.active) {
    width: 100%;
    position: absolute;
    right: -80%;
    top: 0;
    opacity: 0.9;
}

.testimonial-card-new:not(.active):hover {
    right: -75%;
}

/* Style 26 Header from section-headers-showcase */
.header-style-26 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(90deg, #ffffff, #f0f0f0, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
    position: relative;
    padding: 35px 0;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.2;
    filter: drop-shadow(0 2px 20px rgba(255, 255, 255, 0.5));
}

/* Softly glowing grid on the left side */
.header-style-26::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 45%;
    height: 150%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 25px, rgba(0, 102, 255, 0.4) 25px, rgba(0, 102, 255, 0.4) 27px),
        repeating-linear-gradient(90deg, transparent, transparent 25px, rgba(0, 212, 106, 0.4) 25px, rgba(0, 212, 106, 0.4) 27px);
    filter: blur(1.5px);
    opacity: 0.8;
    mask-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0) 100%);
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { 
        opacity: 0.8;
        filter: blur(1.5px) brightness(1);
    }
    50% { 
        opacity: 1;
        filter: blur(2px) brightness(1.3);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.header-style-26 .hash-flow {
    position: absolute;
    font-size: 10px;
    font-family: 'Courier New', monospace;
    opacity: 0;
    animation: hashFlow 6s linear infinite;
    white-space: nowrap;
}

.header-style-26 .hash-flow:nth-child(1) {
    top: 0;
    left: -200px;
    animation-delay: 0s;
    background: linear-gradient(90deg, #0F91F2, #3FEAC2, #ff6b6b, #4ecdc4, #0F91F2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-style-26 .hash-flow:nth-child(2) {
    bottom: 0;
    right: -200px;
    animation-delay: 3s;
    animation-direction: reverse;
    background: linear-gradient(90deg, #4ecdc4, #ff6b6b, #3FEAC2, #0F91F2, #4ecdc4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes hashFlow {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateX(calc(100% + 400px));
        opacity: 0;
    }
}

/* Static hash decorations with mild colors */
.header-style-26 .hash-static {
    position: absolute;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    opacity: 0.6;
    letter-spacing: 1px;
}

.header-style-26 .hash-static.top-left {
    top: 5px;
    left: 5%;
    color: #0F91F2;
    text-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
}

.header-style-26 .hash-static.top-right {
    top: 5px;
    right: 5%;
    color: #3FEAC2;
    text-shadow: 0 0 10px rgba(0, 212, 106, 0.5);
}

.header-style-26 .hash-static.bottom-left {
    bottom: 5px;
    left: 5%;
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.header-style-26 .hash-static.bottom-right {
    bottom: 5px;
    right: 5%;
    color: #4ecdc4;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.testimonial-card-new {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
}

.testimonial-card-new:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.testimonial-card-new.active:hover {
    transform: translateY(-5px);
}

/* Video Section */
.video-section {
    position: relative;
    background: #000;
    height: 240px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


.video-section iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.video-placeholder:hover::after {
    opacity: 1;
}

.video-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.video-placeholder:hover .video-thumbnail-img {
    transform: scale(1.05);
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    position: relative;
    z-index: 2;
}

.play-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 20px solid #667eea;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

/* Content Section */
.content-section {
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
}

.institute-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 20px;
}

.institute-logo {
    height: 45px;
    object-fit: contain;
    max-width: 150px;
}

.university-badge {
    flex-shrink: 0;
}

.university-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.university-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.quote-icon-new {
    width: 30px;
    height: 30px;
    fill: #667eea;
    opacity: 0.2;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: #2d3748;
    margin-bottom: 25px;
    font-weight: 300;
    flex-grow: 1;
    font-style: italic;
}

.testimonial-text strong {
    font-weight: 600;
    color: #667eea;
    font-style: normal;
}

.author-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.author-university-icon {
    width: auto;
    height: 40px;
    max-width: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
}

.author-avatar {
    display: none;
}

.author-info-new {
    flex: 1;
}

.author-name-new {
    font-size: 17px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 2px;
}

.author-designation {
    font-size: 14px;
    color: #718096;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 968px) {
    .testimonials-wrapper-new {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .section-title-testimonials {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .content-section {
        padding: 25px;
    }

    .section-title-testimonials {
        font-size: 24px;
    }

    .testimonial-text {
        font-size: 15px;
    }

    .institute-header {
        flex-wrap: wrap;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card-new {
    animation: fadeIn 0.8s ease;
}

.testimonial-card-new:nth-child(3) {
    animation-delay: 0.2s;
}

/* Particle effect container */
.testimonials-section .particle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particleFloat 10s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Unique hover effect for cards */
.testimonial-card-new {
    overflow: visible;
}

.testimonial-card-new::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s;
    pointer-events: none;
}

.testimonial-card-new:hover::after {
    transform: translateX(100%);
}

/* Pulse animation for active card */
.testimonial-card-new.active {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    }
    50% {
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.6),
                    0 0 0 10px rgba(255, 255, 255, 0.1),
                    0 0 0 20px rgba(255, 255, 255, 0.05);
    }
}

/* Video duration with glass effect */
.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Author university icon with glow */
.author-university-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    transition: all 0.3s ease;
}

.testimonial-card-new:hover .author-university-icon {
    transform: scale(1.1);
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonials-wrapper-new {
        flex-direction: column;
        gap: 30px;
    }
    
    .testimonial-header-section {
        flex: 1 1 auto;
        padding: 20px;
    }
    
    .testimonials-content-wrapper {
        flex-direction: column;
        gap: 20px;
        overflow: hidden;
    }
    
    .testimonial-card-new.active,
    .testimonial-card-new:not(.active) {
        position: relative;
        width: 100%;
        right: 0;
        opacity: 1;
    }
    
    .header-style-26 {
        font-size: 36px;
    }
}