/* Testimonies Page Styles - Desktop Only */

/* Hero Section */
.testimonies-hero {
    background: linear-gradient(135deg, var(--hub-primary) 0%, var(--hub-secondary) 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.testimonies-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.testimonies-hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Desktop Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Placeholder image specific styling */
.testimonial-image img[src="player_placeholder.png"] {
    object-fit: cover;
    padding: 0;
    background: none;
}

.testimonial-content {
    padding: 2rem;
}

.testimonial-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.testimonial-role {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.testimonial-preview {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
}

/* Hidden full content for expansion */
.testimonial-full-content {
    display: none;
}

/* Expanded card */
.testimonial-card.expanded {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 800px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    z-index: 10001 !important; /* Higher than overlay to ensure it's above everything */
}

.testimonial-card.expanded .testimonial-full-content {
    display: block;
}

.testimonial-card.expanded .testimonial-preview {
    display: none;
}

.testimonial-card.expanded .testimonial-image {
    /* Height will be set dynamically by JavaScript to maintain aspect ratio */
    width: 100%;
}

.testimonial-card.expanded .testimonial-content {
    padding: 2.5rem;
}

.testimonial-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.testimonial-full-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

/* Close button */
.testimonial-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 10;
    transition: all 0.3s ease;
}

.testimonial-card.expanded .testimonial-close {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-close:hover {
    background: #f5f5f5;
}

/* Overlay */
.testimonial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000; /* High z-index for overlay */
    display: none;
    pointer-events: auto;
}

.testimonial-overlay.active {
    display: block;
}

/* Placeholder for testimonials without images */
.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #324e8a 0%, #5A4FCF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: var(--font-heading);
}

/* Prevent body scroll when modal is open */
body.testimonial-open {
    overflow: hidden;
}

/* Hide mobile content on desktop */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}