/* Testimonials Stylesheet - Dark Mode Theme */

/* Variables matching home-v2.css */
:root {
    --navy-deepest: #060A14;
    --navy-deep: #0A0E1A;
    --navy-mid: #0F1629;
    --navy-surface: #141D35;
    --navy-elevated: #1A2440;
    --navy-border: rgba(255, 255, 255, 0.08);
    --navy-border-bright: rgba(255, 255, 255, 0.14);
    --blue: #2563EB;
    --blue-bright: #3B7BFF;
    --blue-glow: rgba(37, 99, 235, 0.35);
    --blue-faint: rgba(37, 99, 235, 0.1);
    --gold: #F5C842;
    --gold-dim: rgba(245, 200, 66, 0.15);
}

/* ═══════════════════════════════════════
   HOME PAGE TESTIMONIALS SECTION
   ═══════════════════════════════════════ */
.testimonials-section {
    position: relative;
    padding: 100px 0;
    background: var(--navy-deepest);
    overflow: hidden;
}

/* Background spotlight removed to keep section dark and eyes-friendly */

.testimonials-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.testimonials-header h2 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 14px;
    color: #fff;
    line-height: 1.2;
}

.testimonials-header h2 em {
    font-style: italic;
    font-family: 'Newsreader', serif;
    color: var(--blue-bright);
    font-weight: 400;
}

.testimonials-header p {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 16px;
}

/* Carousel Outer Wrapper */
.testimonials-carousel-wrapper {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 60px;
    z-index: 2;
}

.testimonials-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 12px 0;
    margin: -12px 0;
}

/* Carousel Track */
.testimonials-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    gap: 24px;
}

/* Carousel Card Base */
.testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    box-sizing: border-box;
    background: rgba(15, 22, 41, 0.55);
    border: 1px solid var(--navy-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.01) 50%, rgba(255,255,255,0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    background: rgba(20, 29, 53, 0.7);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(37, 99, 235, 0.15);
}

/* Content block image vs video */
.testimonial-card-content {
    margin-bottom: 24px;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: var(--gold);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

/* Video review component inside card */
.testimonial-video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    margin-bottom: 4px;
    aspect-ratio: 16/9;
}

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

/* Custom Play Icon Overlay */
.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 10, 20, 0.45);
    cursor: pointer;
    transition: background 0.35s ease;
}

.video-play-overlay:hover {
    background: rgba(6, 10, 20, 0.25);
}

.play-button-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0 20px var(--blue-glow);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.play-button-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-left: 3px;
    transition: transform 0.3s ease;
}

.video-play-overlay:hover .play-button-btn {
    transform: scale(1.12);
    background: var(--blue-bright);
    box-shadow: 0 0 30px rgba(59, 123, 255, 0.6);
}

/* Hide play overlay when video is playing */
.testimonial-video-wrapper.playing .video-play-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Card Author Bottom section */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    margin-top: auto;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--navy-elevated);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.testimonial-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--navy-surface));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.testimonial-title {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

/* Carousel Control Arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(20, 29, 53, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--blue);
    border-color: var(--blue-bright);
    box-shadow: 0 0 20px var(--blue-glow);
    color: #fff;
}

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

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

.carousel-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease;
}

.carousel-btn.prev:hover svg {
    transform: translateX(-2px);
}

.carousel-btn.next:hover svg {
    transform: translateX(2px);
}

.carousel-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Dots indicator */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
    z-index: 2;
    position: relative;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 0;
}

.carousel-dot.active {
    background: var(--blue-bright);
    width: 28px;
    border-radius: 100px;
    box-shadow: 0 0 10px rgba(59, 123, 255, 0.5);
}

/* View All testimonials link wrapper */
.testimonials-view-all-wrap {
    text-align: center;
    margin-top: 48px;
    position: relative;
    z-index: 2;
}

.btn-view-testimonials {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: var(--blue-bright);
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-view-testimonials:hover {
    background: var(--blue);
    border-color: var(--blue-bright);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3), 0 0 15px rgba(37, 99, 235, 0.15);
}

.btn-view-testimonials svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease;
}

.btn-view-testimonials:hover svg {
    transform: translateX(4px);
}


/* ═══════════════════════════════════════
   DEDICATED WALL PAGE STYLING
   ═══════════════════════════════════════ */
.testimonials-page-wrapper {
    background: var(--off-white);
    color: var(--ink);
    min-height: 100vh;
}

/* Hero Section */
.testimonials-page-hero {
    position: relative;
    padding: 160px 0 100px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--navy-deepest) radial-gradient(circle at top, rgba(37, 99, 235, 0.12) 0%, transparent 80%);
    overflow: hidden;
}

.testimonials-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, #000 30%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
}

.testimonials-page-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.testimonials-page-hero h1 {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
}

.testimonials-page-hero h1 em {
    font-style: italic;
    font-family: 'Newsreader', serif;
    color: var(--blue-bright);
    font-weight: 400;
}

.testimonials-page-hero p {
    font-size: 20px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Main Grid Layout */
.testimonials-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 120px 24px;
}

.testimonials-section-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
}

.testimonials-section-title span {
    background: var(--blue-faint);
    color: var(--blue-bright);
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Grids */
.testimonials-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 80px;
}

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

.testimonials-empty-state {
    text-align: center;
    padding: 60px 24px;
    background: rgba(15, 22, 41, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: var(--muted);
    font-size: 16px;
}

/* ═══════════════════════════════════════
   RESPONSIVENESS MEDIA QUERIES
   ═══════════════════════════════════════ */

/* Tablets / Medium Screens */
@media (max-width: 1024px) {
    .testimonials-header h2 {
        font-size: 36px;
    }
    
    .testimonial-card {
        flex: 0 0 calc(50% - 12px);
        padding: 24px;
    }
    
    .testimonials-carousel-wrapper {
        padding: 0 50px;
    }
    
    .testimonials-video-grid,
    .testimonials-text-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .testimonials-page-hero h1 {
        font-size: 44px;
    }
}

/* Mobile Screens */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-header {
        margin-bottom: 40px;
    }
    
    .testimonials-header h2 {
        font-size: 28px;
    }
    
    .testimonials-header p {
        font-size: 16px;
        margin-top: 12px;
    }
    
    .testimonials-carousel-wrapper {
        padding: 0 20px;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
    }
    
    .carousel-btn {
        display: none; /* Hide arrows on mobile, rely on swiping/dots */
    }
    
    .testimonials-view-all-wrap {
        margin-top: 32px;
    }
    
    .testimonials-video-grid,
    .testimonials-text-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonials-page-hero {
        padding: 130px 0 60px 0;
    }
    
    .testimonials-page-hero h1 {
        font-size: 32px;
    }
    
    .testimonials-page-hero p {
        font-size: 16px;
        margin-top: 14px;
    }
    
    .testimonials-page-container {
        padding: 40px 16px 80px 16px;
    }
    
    .testimonials-section-title {
        font-size: 22px;
        margin-bottom: 24px;
    }
}

/* Dedicated page light card theme (to match events page) */
.testimonials-page-container .testimonials-section-title {
    color: var(--ink);
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 24px;
}

.testimonials-page-container .testimonial-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    color: var(--ink);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.testimonials-page-container .testimonial-card::after {
    display: none; /* remove glassmorphic overlay border */
}

.testimonials-page-container .testimonial-card:hover {
    background: var(--white);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.08), 0 8px 10px -6px rgba(37, 99, 235, 0.05);
    transform: translateY(-4px);
}

/* Card content inside light cards */
.testimonials-page-container .testimonial-text {
    color: var(--ink-mid);
}

/* Author metadata inside light cards */
.testimonials-page-container .testimonial-name {
    color: var(--ink);
}

.testimonials-page-container .testimonial-title {
    color: var(--ink-soft) !important;
}

.testimonials-page-container .testimonial-avatar-placeholder {
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue);
}

/* Empty states inside light sections */
.testimonials-page-container .testimonials-empty-state {
    background: var(--white);
    border-color: var(--border-light);
    color: var(--muted);
}
