/* MUFEPREC - Testimonials Page CSS */
/* File Location: css/testimonials.css */

/* ===== TESTIMONIALS HERO SECTION ===== */
.testimonials-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004494 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonials-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.05"><polygon points="0,100 1000,0 1000,100"/></svg>');
    background-size: cover;
}

.testimonials-hero .hero-content {
    position: relative;
    z-index: 2;
}

.testimonials-hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.testimonials-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.achievement-stat {
    text-align: center;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.achievement-number {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--accent-color);
    display: block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.achievement-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* ===== PROGRAM SUCCESS RATES SECTION ===== */
.program-success-rates {
    padding: 5rem 0;
    background: white;
}

.success-rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.success-rate-card {
    background: var(--secondary-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.success-rate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.success-rate-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 86, 179, 0.2);
}

.success-rate-card:hover::before {
    transform: scaleX(1);
}

.rate-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.success-rate-card:hover .rate-icon {
    transform: scale(1.1);
}

.rate-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.rate-percentage {
    font-size: 3rem;
    font-weight: bold;
    color: var(--success-color);
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.rate-info p {
    color: #666;
    margin-bottom: 1.5rem;
}

.rate-details {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.rate-details span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

.rate-details i {
    color: var(--accent-color);
}

/* ===== TESTIMONIAL FILTERS ===== */
.testimonial-filters {
    padding: 3rem 0;
    background: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

.filter-header {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.filter-header p {
    color: #666;
    font-size: 1.1rem;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: white;
    border: 2px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    color: var(--text-color);
    min-width: 160px;
    justify-content: center;
}

.filter-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.15);
}

.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.3);
}

.filter-tab i {
    font-size: 1.1rem;
}

/* ===== TESTIMONIALS GRID ===== */
.testimonials-section {
    padding: 5rem 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* ===== 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;
    position: relative;
    border: 1px solid #f0f0f0;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.testimonial-card.featured {
    border: 2px solid var(--accent-color);
}

.testimonial-card.featured::before {
    content: 'Featured Success';
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--accent-color);
    color: var(--text-color);
    padding: 0.3rem 3rem;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 10;
}

.testimonial-card.hidden {
    display: none;
}

/* ===== TESTIMONIAL HEADER ===== */
.testimonial-header {
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.student-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-info {
    flex-grow: 1;
}

.student-info h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.student-program {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.student-achievement {
    color: var(--success-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.program-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-badge.medical {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.program-badge.engineering {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.program-badge.agricultural {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.program-badge.teaching {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

/* ===== TESTIMONIAL CONTENT ===== */
.testimonial-content {
    padding: 2rem;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: 2rem;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.testimonial-content blockquote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 1rem 0 2rem;
    font-style: italic;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

.testimonial-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5rem;
}

.achievement-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.achievement-details span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    background: rgba(0, 86, 179, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
}

.achievement-details i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* ===== LOAD MORE SECTION ===== */
.load-more-section {
    text-align: center;
    margin: 3rem 0;
}

.empty-testimonials {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-testimonials i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-testimonials h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* ===== VIDEO TESTIMONIALS SECTION ===== */
.video-testimonials {
    padding: 5rem 0;
    background: var(--secondary-color);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.video-testimonial {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-testimonial:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 86, 179, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.video-testimonial:hover .play-button {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 1.5rem;
}

.video-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.video-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.video-duration {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== SHARE STORY CTA ===== */
.share-story-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 3px solid var(--accent-color);
}

.share-story-cta .cta-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.cta-text h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-text p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===== JOIN SUCCESS CTA ===== */
.join-success-cta {
    padding: 5rem 0;
    background: var(--gradient);
    color: white;
    text-align: center;
}

.join-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.join-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.join-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.join-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.join-feature i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.join-feature span {
    font-size: 0.9rem;
    font-weight: 500;
}

.join-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

.testimonial-card:nth-child(even) {
    animation-delay: 0.1s;
}

.testimonial-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .testimonials-hero h1 {
        font-size: 2.5rem;
    }
    
    .testimonials-hero p {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .achievement-number {
        font-size: 2.2rem;
    }
    
    .success-rates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-tab {
        width: 100%;
        max-width: 280px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonial-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .student-image {
        width: 100px;
        height: 100px;
    }
    
    .program-badge {
        position: static;
        margin-top: 1rem;
        align-self: center;
    }
    
    .achievement-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .achievement-details span {
        justify-content: center;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .share-story-cta .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .cta-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .join-features {
        gap: 1rem;
    }
    
    .join-feature {
        min-width: 100px;
    }
    
    .join-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .testimonials-hero {
        padding: 3rem 0;
    }
    
    .testimonials-hero h1 {
        font-size: 2rem;
    }
    
    .program-success-rates,
    .testimonials-section,
    .video-testimonials {
        padding: 3rem 0;
    }
    
    .success-rate-card,
    .testimonial-card {
        margin: 0 0.5rem;
    }
    
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .testimonial-content blockquote {
        font-size: 0.95rem;
    }
    
    .student-info h3 {
        font-size: 1.2rem;
    }
    
    .rate-percentage {
        font-size: 2.5rem;
    }
    
    .video-thumbnail {
        height: 160px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .join-content h2 {
        font-size: 2rem;
    }
    
    .cta-text h2 {
        font-size: 1.8rem;
    }
}

/* ===== ACCESSIBILITY ===== */
.filter-tab:focus,
.video-testimonial:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.testimonial-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .testimonial-filters,
    .video-testimonials,
    .share-story-cta,
    .join-success-cta,
    .chatbot-container {
        display: none !important;
    }
    
    .testimonial-card {
        break-inside: avoid;
        margin-bottom: 2rem;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .testimonial-card,
    .success-rate-card,
    .video-testimonial {
        border: 2px solid var(--text-color);
    }
    
    .filter-tab {
        border-width: 3px;
    }
    
    .program-badge {
        border: 1px solid currentColor;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .testimonial-card,
    .success-rate-card,
    .video-testimonial,
    .filter-tab {
        transition: none;
    }
    
    .testimonials-hero h1,
    .testimonials-hero p,
    .achievement-stat {
        animation: none;
    }
    
    .testimonial-card {
        animation: none;
    }
}

/* ===== DARK MODE SUPPORT (Future Enhancement) ===== */
@media (prefers-color-scheme: dark) {
    .testimonial-card,
    .success-rate-card,
    .video-testimonial {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .testimonial-header {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }
    
    .student-info h3 {
        color: #90cdf4;
    }
    
    .testimonial-content blockquote {
        color: #e2e8f0;
        border-left-color: var(--accent-color);
    }
}