/* ============================================
   TESTIMONIALS CSS - Skill Empire India
   ============================================ */

.testimonials-section {
    padding: 60px 0 80px;
    background: #FDFFFC;
}

.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 45px;
}

.testimonials-section .sub-title {
    display: inline-block;
    background: linear-gradient(135deg, #F7B32B, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.testimonials-section .main-title {
    font-size: 38px;
    font-weight: 800;
    color: #140F2D;
    margin: 0;
}

.testimonials-section .main-title strong {
    background: linear-gradient(135deg, #F7B32B, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========== CARD ========== */
.testimonial-card {
    background: #FDFFFC;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(20, 15, 45, 0.08);
    border: 1px solid rgba(20, 15, 45, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(20, 15, 45, 0.12);
    border-color: #F7B32B;
}

/* ========== VIDEO THUMBNAIL ========== */
.testimonial-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #140F2D;
    cursor: pointer;
    overflow: hidden;
}

.testimonial-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.testimonial-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(247, 179, 43, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #140F2D;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(247, 179, 43, 0.5);
}

.testimonial-video:hover .play-btn {
    background: #F7B32B;
    transform: translate(-50%, -50%) scale(1.15);
}

.play-btn i {
    margin-left: 4px;
}

/* ========== QUOTE ICON (text-only) ========== */
.testimonial-quote-icon {
    background: linear-gradient(135deg, #140F2D, #1a1240);
    padding: 30px;
    text-align: center;
    font-size: 32px;
    color: #F7B32B;
}

/* ========== BODY ========== */
.testimonial-body {
    padding: 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-stars {
    color: #F7B32B;
    font-size: 16px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F7B32B, #FFD700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #140F2D;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    font-size: 14px;
    color: #140F2D;
}

.testimonial-role {
    font-size: 12px;
    color: #888;
}

/* ========== MODAL ========== */
.testimonial-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.testimonial-modal.show {
    display: flex;
}

.testimonial-modal-inner {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
}

.testimonial-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #FDFFFC;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

.testimonial-modal-close:hover {
    color: #F7B32B;
}

#testimonialPlayer {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

#testimonialPlayer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1199.98px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
    .testimonials-section { padding: 40px 0 60px; }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; gap: 18px; }
    .testimonials-section .main-title { font-size: 28px; }
}

@media (max-width: 575.98px) {
    .testimonials-section .main-title { font-size: 24px; }
    .play-btn { width: 50px; height: 50px; font-size: 18px; }
}
