/* Testimonials Page Styles */


body {
    /* Background and Color are handled by global.css classes or defaults, 
       but we keep these to ensure the page specific background is applied if needed,
       using global variables. */
    background-color: var(--bg-main);
    color: var(--bg-secondary);
    /* Font family is inherited from global.css (Cairo), so we remove the override */
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-main) 100%);
    padding-top: 100px !important;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(236, 156, 4, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    position: relative;
    z-index: 2;
    animation: slideInRight 0.8s ease-out;
}

.page-header p {
    position: relative;
    z-index: 2;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

/* Testimonials Section */
.testimonials-section {
    position: relative;
    z-index: 1;
}

/* Stat Card */
.stat-card {
    background: linear-gradient(135deg, rgba(236, 156, 4, 0.1) 0%, rgba(236, 156, 4, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    background: linear-gradient(135deg, rgba(236, 156, 4, 0.2) 0%, rgba(236, 156, 4, 0.1) 100%);
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.stat-card h3 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Testimonial Card */
.testimonial-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(20, 20, 36, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    background: linear-gradient(135deg, rgba(26, 26, 46, 1) 0%, rgba(20, 20, 36, 1) 100%);
    border-color: var(--accent-gold);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(236, 156, 4, 0.2);
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 12px 12px 0 0;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    border-radius: 12px 12px 0 0;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.video-overlay i {
    font-size: 3rem;
    color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.8);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(236, 156, 4, 0.4);
}

.video-overlay:hover i {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(236, 156, 4, 0.6);
}

/* Testimonial Content */
.testimonial-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-gold), rgba(236, 156, 4, 0.6));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    flex-shrink: 0;
}

.client-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.client-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.testimonial-type {
    display: inline-block;
    background: rgba(236, 156, 4, 0.2);
    color: var(--accent-gold);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-top: auto;
}

.star {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

/* Filter Buttons */
.filter-btn {
    transition: all 0.3s ease;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-gold);
    color: #000;
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: slideInUp 0.6s ease-out;
}

/* Glass Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Enhanced Responsive Design for Mobile --- */
@media (max-width: 991.98px) {
    .page-header {
        margin-top: 70px;
        min-height: 400px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        margin-top: 60px;
        min-height: 350px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .testimonial-card {
        margin-bottom: 1rem;
    }

    .video-overlay i {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
    
    .video-container {
        margin-bottom: 2rem;
    }
    
    .video-container iframe {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .page-header {
        margin-top: 50px;
        min-height: 300px;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    .testimonial-card {
        padding: 15px;
    }
    
    .client-info {
        margin-bottom: 15px;
    }
    
    .client-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .client-details h4 {
        font-size: 1rem;
    }
    
    .client-details p {
        font-size: 0.85rem;
    }
    
    .rating {
        margin-bottom: 15px;
    }
    
    .rating i {
        font-size: 0.9rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .video-overlay i {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .video-container iframe {
        height: 200px;
    }
}

/* Scrollbar Styling */
/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(236, 156, 4, 0.8); }

/* ============================================================
   VC-CARD — نفس تصميم الأكاديمية تماماً
   ============================================================ */
.vc-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.vc-card[onclick] { cursor: pointer; }

.vc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(236, 156, 4, 0.22);
    border-color: rgba(236, 156, 4, 0.4);
}

/* Thumbnail */
.vc-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    flex-shrink: 0;
}

.vc-thumb img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vc-card:hover .vc-thumb img { transform: scale(1.06); }

.vc-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,20,.85) 0%, rgba(10,10,20,.1) 55%, transparent 100%);
    pointer-events: none;
}

/* Play button */
.vc-play {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 58px; height: 58px;
    background: rgba(236, 156, 4, 0.92);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #000; font-size: 1.3rem;
    transition: all 0.3s ease;
}

.vc-card:hover .vc-play {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 0 0 10px rgba(236,156,4,.15), 0 0 30px rgba(236,156,4,.4);
}

/* Number chip */
.vc-num {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,.75); color: var(--accent-gold);
    font-size: .7rem; font-weight: 800;
    padding: 3px 8px; border-radius: 20px;
    border: 1px solid rgba(236,156,4,.4);
    backdrop-filter: blur(4px);
}

/* Stars badge */
.vc-type-badge {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,.65);
    color: #ec9c04;
    font-size: .7rem; font-weight: 700;
    padding: 4px 10px; border-radius: 5px;
    display: flex; align-items: center; gap: 3px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

/* Card body */
.vc-body { padding: 14px 16px 12px; display: flex; flex-direction: column; flex: 1; }

.vc-title {
    color: #fff; font-size: .9rem; font-weight: 700;
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 1;
    -webkit-box-orient: vertical; overflow: hidden;
}

.vc-desc {
    color: rgba(255,255,255,.55); font-size: .78rem;
    line-height: 1.6; margin: 8px 0 12px;
}

/* Show more button */
.btn-more {
    background: none; border: none;
    color: var(--accent-gold);
    font-size: .75rem; font-weight: 600;
    cursor: pointer; padding: 0;
    text-decoration: underline;
    transition: opacity .2s;
}

.btn-more:hover { opacity: .75; }

/* Footer */
.vc-footer {
    margin-top: auto;
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: 10px;
}

.vc-label { font-size: .72rem; color: rgba(255,255,255,.4); }

.vc-btn {
    background: linear-gradient(135deg, var(--accent-gold), #c98c00);
    color: #000; border: none; border-radius: 20px;
    padding: 4px 14px; font-size: .78rem; font-weight: 700;
    cursor: pointer; transition: all .25s ease;
    display: flex; align-items: center; gap: 4px; white-space: nowrap;
}

.vc-btn:hover {
    box-shadow: 0 4px 16px rgba(236,156,4,.45);
    transform: scale(1.05);
}
