/*
 * IntelQI LMS — Enterprise Learning Platform
 * Testimonials Section Styles
 *
 * Copyright © 2025 Euclideum Solutions Private Limited.
 */

/* ============================================
   Testimonials Section Base
   ============================================ */
.testimonials-section {
    padding: 64px 24px;
    background-color: #f8fafc;
}

[data-theme="dark"] .testimonials-section {
    background-color: #0c1222;
}

@media (min-width: 768px) {
    .testimonials-section {
        padding: 80px 24px;
    }
}

@media (min-width: 1024px) {
    .testimonials-section {
        padding: 100px 24px;
    }
}

@media (min-width: 1400px) {
    .testimonials-section {
        padding: 100px 32px;
    }
}

.testimonials-container {
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .testimonials-container {
        max-width: 1336px;
    }
}

/* ============================================
   Testimonials Card Wrapper
   ============================================ */
.testimonials-card {
    background: linear-gradient(145deg, #1e3a5f 0%, #0f172a 100%);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .testimonials-card {
    background: linear-gradient(145deg, #1c3a5a 0%, #0c1322 100%);
    border: 1px solid #1e3a5f;
}

@media (min-width: 768px) {
    .testimonials-card {
        border-radius: 28px;
    }
}

@media (min-width: 1024px) {
    .testimonials-card {
        flex-direction: row;
        min-height: 520px;
    }
}

@media (min-width: 1200px) {
    .testimonials-card {
        min-height: 560px;
    }
}

/* ============================================
   Left Side - Content
   ============================================ */
.testimonials-content {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .testimonials-content {
        padding: 40px 36px;
    }
}

@media (min-width: 1024px) {
    .testimonials-content {
        flex: 0 0 50%;
        padding: 48px 44px;
        justify-content: space-between;
    }
}

@media (min-width: 1200px) {
    .testimonials-content {
        flex: 0 0 48%;
        padding: 56px 52px;
    }
}

@media (min-width: 1400px) {
    .testimonials-content {
        padding: 64px 60px;
    }
}

/* Label Badge */
.testimonials-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background-color: rgba(71, 85, 105, 0.4);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .testimonials-label {
        font-size: 13px;
        padding: 7px 16px;
        margin-bottom: 24px;
    }
}

/* Heading */
.testimonials-heading {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #ffffff 0%, #a8b4c4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .testimonials-heading {
        font-size: 36px;
        margin-bottom: 20px;
    }
}

@media (min-width: 1024px) {
    .testimonials-heading {
        font-size: 40px;
    }
}

@media (min-width: 1200px) {
    .testimonials-heading {
        font-size: 44px;
    }
}

/* Description */
.testimonials-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 32px;
    max-width: 420px;
}

@media (min-width: 768px) {
    .testimonials-description {
        font-size: 15px;
        margin-bottom: 40px;
    }
}

@media (min-width: 1024px) {
    .testimonials-description {
        font-size: 16px;
    }
}

/* Stats Row */
.testimonials-stats {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    margin-bottom: 28px;
}

@media (min-width: 768px) {
    .testimonials-stats {
        gap: 32px;
        margin-bottom: 36px;
    }
}

@media (min-width: 1024px) {
    .testimonials-stats {
        gap: 40px;
    }
}

@media (min-width: 1200px) {
    .testimonials-stats {
        gap: 48px;
    }
}

.testimonials-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonials-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .testimonials-stat-number {
        font-size: 32px;
    }
}

@media (min-width: 1024px) {
    .testimonials-stat-number {
        font-size: 36px;
    }
}

@media (min-width: 1200px) {
    .testimonials-stat-number {
        font-size: 40px;
    }
}

.testimonials-stat-label {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
    line-height: 1.3;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .testimonials-stat-label {
        font-size: 12px;
    }
}

@media (min-width: 1024px) {
    .testimonials-stat-label {
        font-size: 13px;
    }
}

/* CTA Button */
.testimonials-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    background-color: #ffffff;
    color: #0f172a;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
    margin-top: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.testimonials-cta svg {
    width: 16px;
    height: 16px;
    color: #0f172a;
    stroke: #0f172a;
    transition: transform 0.2s ease;
}

.testimonials-cta:hover {
    background-color: #f1f5f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.testimonials-cta:hover svg {
    transform: translateX(3px);
}

@media (min-width: 768px) {
    .testimonials-cta {
        font-size: 15px;
        padding: 16px 32px;
        gap: 10px;
    }

    .testimonials-cta svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   Right Side - Testimonial Slider
   ============================================ */
.testimonials-slider {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .testimonials-slider {
        padding: 32px;
    }
}

@media (min-width: 1024px) {
    .testimonials-slider {
        flex: 1;
        padding: 40px;
    }
}

@media (min-width: 1200px) {
    .testimonials-slider {
        padding: 48px;
    }
}

/* Slide Container */
.testimonials-slides {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* Testimonial Card */
.testimonial-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .testimonial-card {
    background-color: #111a2e;
}

@media (min-width: 768px) {
    .testimonial-card {
        padding: 32px 28px;
        border-radius: 24px;
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        padding: 36px 32px;
    }
}

/* Quote Icon */
.testimonial-quote-icon {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #154f95;
    margin-bottom: 12px;
}

[data-theme="dark"] .testimonial-quote-icon {
    color: #60a5fa;
}

.testimonial-quote-icon svg {
    width: 32px;
    height: 32px;
}

@media (min-width: 768px) {
    .testimonial-quote-icon {
        margin-bottom: 16px;
    }

    .testimonial-quote-icon svg {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 1024px) {
    .testimonial-quote-icon svg {
        width: 44px;
        height: 44px;
    }
}

/* Quote Text */
.testimonial-quote {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #0f172a;
    margin-bottom: 24px;
    flex: 0;
}

[data-theme="dark"] .testimonial-quote {
    color: #f1f5f9;
}

@media (min-width: 768px) {
    .testimonial-quote {
        font-size: 20px;
        margin-bottom: 28px;
    }
}

@media (min-width: 1024px) {
    .testimonial-quote {
        font-size: 22px;
    }
}

@media (min-width: 1200px) {
    .testimonial-quote {
        font-size: 24px;
    }
}

/* Video Thumbnail */
.testimonial-video {
    position: relative;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 20px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .testimonial-video {
        max-width: 220px;
        border-radius: 12px;
        margin-bottom: 24px;
    }
}

@media (min-width: 1024px) {
    .testimonial-video {
        max-width: 240px;
        border-radius: 12px;
    }
}

.testimonial-video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.testimonial-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: #a3e635;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(163, 230, 53, 0.4);
}

.testimonial-video:hover .testimonial-video-play {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(163, 230, 53, 0.5);
}

.testimonial-video-play svg {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

@media (min-width: 768px) {
    .testimonial-video-play {
        width: 44px;
        height: 44px;
    }

    .testimonial-video-play svg {
        width: 18px;
        height: 18px;
    }
}

/* Author Info */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.testimonial-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .testimonial-author-avatar {
        width: 48px;
        height: 48px;
    }
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-author-name {
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.3;
}

[data-theme="dark"] .testimonial-author-name {
    color: #f1f5f9;
}

@media (min-width: 768px) {
    .testimonial-author-name {
        font-size: 16px;
    }
}

.testimonial-author-role {
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.3;
}

[data-theme="dark"] .testimonial-author-role {
    color: #94a3b8;
}

@media (min-width: 768px) {
    .testimonial-author-role {
        font-size: 14px;
    }
}

/* ============================================
   Slider Navigation
   ============================================ */
.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .testimonials-nav {
        margin-top: 24px;
        gap: 16px;
    }
}

/* Progress Bar */
.testimonials-progress {
    display: flex;
    gap: 6px;
    margin-right: auto;
}

.testimonials-progress-bar {
    width: 32px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.testimonials-progress-bar:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.testimonials-progress-bar.is-active {
    background-color: #94a3b8;
}

@media (min-width: 768px) {
    .testimonials-progress-bar {
        width: 40px;
        height: 4px;
    }
}

/* Counter */
.testimonials-counter {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    min-width: 50px;
    text-align: center;
}

.testimonials-counter-current {
    font-weight: 700;
    color: #ffffff;
}

/* Nav Buttons */
.testimonials-nav-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    color: #0f172a;
    transition: all 0.2s ease;
}

.testimonials-nav-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.testimonials-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.testimonials-nav-btn svg {
    width: 18px;
    height: 18px;
}

@media (min-width: 768px) {
    .testimonials-nav-btn {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

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

/* ============================================
   Video Modal
   ============================================ */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background-color: #000000;
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.is-open .video-modal-content {
    transform: scale(1);
}

@media (min-width: 768px) {
    .video-modal-content {
        border-radius: 16px;
    }
}

.video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.2s ease;
}

.video-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.video-modal-close svg {
    width: 20px;
    height: 20px;
}

.video-modal-video {
    width: 100%;
    height: 100%;
    display: block;
}
