/* ===== TESTIMONIALS PAGE STYLES ===== */
/* File: /css/sections/testimonials/testimonials.css */
/* Purpose: Dedicated testimonials page layout */

/* ===== PAGE HEADER STYLES ===== */
.testimonials-page-header {
    background: linear-gradient(135deg, var(--nsb-primary) 0%, #1a2b4d 100%);
    color: var(--nsb-white);
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
    color: var(--nsb-white);
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: var(--nsb-accent);
}

.page-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.7;
}

.page-description p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    opacity: 0.95;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--nsb-accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* ===== ALL TESTIMONIALS SECTION ===== */
.all-testimonials-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.testimonials-filter {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--nsb-white);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--nsb-light);
}

.filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-label {
    font-weight: var(--font-weight-semi-bold);
    color: var(--nsb-primary);
    margin-right: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: #f1f3f5;
    border: 2px solid transparent;
    border-radius: 50px;
    color: var(--nsb-text-secondary);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e9ecef;
    color: var(--nsb-primary);
}

.filter-btn.active {
    background: var(--nsb-primary);
    color: var(--nsb-white);
    border-color: var(--nsb-primary);
}

/* ===== TESTIMONIAL CARD STYLES ===== */
.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--nsb-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--nsb-primary);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 2.5rem; /* Ensures space between cards */
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(20, 33, 61, 0.15);
    border-color: var(--nsb-primary-dark);
}

.testimonial-card-content {
    position: relative;
    min-height: 200px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.testimonial-quote-mark {
    position: absolute;
    top: -1rem;
    left: -0.5rem;
    font-size: 8rem;
    color: var(--nsb-accent);
    font-family: Georgia, serif;
    opacity: 0.15;
    line-height: 1;
    z-index: 1;
}

.testimonial-text-content {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 2;
}

.testimonial-paragraph {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.25rem;
    text-align: justify;
    padding-right: 1rem;
}

.testimonial-paragraph:last-child {
    margin-bottom: 0;
}

/* ===== AUTHOR SIDEBAR (Right corner) ===== */
.testimonial-author-sidebar {
    width: 180px;
    flex-shrink: 0;
    text-align: center;
    z-index: 3;
}

.author-photo-container {
    margin-bottom: 1rem;
    width: 100%;
}

.author-photo {
    width: 100%;
    height: 150px; /* Fixed height */
    border-radius: 10px;
    border: 3px solid var(--nsb-accent);
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 4px 12px rgba(252, 163, 17, 0.25);
    background: #fff;
    transition: all 0.3s ease;
}

.author-photo.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.author-photo.loaded {
    opacity: 1;
}

.author-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(252, 163, 17, 0.35);
}

.author-photo-placeholder {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    border: 3px solid var(--nsb-accent);
    background: linear-gradient(135deg, #fce311, #f1c40f);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    box-shadow: 0 4px 12px rgba(252, 163, 17, 0.25);
}

.author-info {
    padding: 0 0.5rem;
    margin-top: 1rem;
}

.author-name {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semi-bold);
    color: var(--nsb-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.author-role {
    font-size: 0.875rem;
    color: var(--nsb-accent);
    margin-bottom: 0.25rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
}

.author-role strong {
    font-weight: var(--font-weight-bold);
    color: var(--nsb-primary);
}

.author-company {
    font-size: 0.8125rem;
    color: var(--nsb-text-secondary);
    margin-bottom: 0.75rem;
    font-style: italic;
    line-height: 1.4;
}

/* Program badges */
.program-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.program-mba {
    background: rgba(20, 33, 61, 0.1);
    color: var(--nsb-primary);
    border: 1px solid rgba(20, 33, 61, 0.2);
}

.program-pgdm {
    background: rgba(252, 163, 17, 0.1);
    color: #d35400;
    border: 1px solid rgba(252, 163, 17, 0.2);
}

.program-imba {
    background: rgba(41, 128, 185, 0.1);
    color: #2980b9;
    border: 1px solid rgba(41, 128, 185, 0.2);
}

.program-exchange {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

/* ===== LOAD MORE SECTION ===== */
.load-more-container {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.load-more-btn {
    background: var(--nsb-primary);
    color: var(--nsb-white);
    border: none;
    padding: 0.875rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: var(--font-weight-semi-bold);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 220px;
    justify-content: center;
}

.load-more-btn:hover:not(:disabled) {
    background: var(--nsb-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(20, 33, 61, 0.2);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loading-spinner svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.testimonials-count {
    margin-top: 1rem;
    color: var(--nsb-text-secondary);
    font-size: 0.875rem;
}

/* ===== CTA SECTION ===== */
.testimonials-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--nsb-primary);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.125rem;
    color: var(--nsb-text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: var(--font-weight-semi-bold);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
}

.cta-btn-primary {
    background: var(--nsb-accent);
    color: var(--nsb-white);
    border: 2px solid var(--nsb-accent);
}

.cta-btn-primary:hover {
    background: #e67e22;
    border-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(252, 163, 17, 0.3);
}

.cta-btn-secondary {
    background: var(--nsb-primary);
    color: var(--nsb-white);
    border: 2px solid var(--nsb-primary);
}

.cta-btn-secondary:hover {
    background: var(--nsb-primary-dark);
    border-color: var(--nsb-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(20, 33, 61, 0.2);
}

.cta-btn-outline {
    background: transparent;
    color: var(--nsb-primary);
    border: 2px solid var(--nsb-primary);
}

.cta-btn-outline:hover {
    background: var(--nsb-primary);
    color: var(--nsb-white);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .testimonial-card-content {
        gap: 1.5rem;
    }
    
    .testimonial-author-sidebar {
        width: 160px;
    }
}

@media (max-width: 992px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-card-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .testimonial-text-content {
        min-width: 100%;
        order: 2;
    }
    
    .testimonial-author-sidebar {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 1.5rem;
        text-align: left;
        order: 1;
        padding: 1rem 0;
        border-bottom: 1px solid #e9ecef;
    }
    
    .author-photo-container {
        width: 100px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .author-photo,
    .author-photo-placeholder {
        height: 130px;
    }
    
    .author-info {
        text-align: left;
        padding: 0;
        margin-top: 0;
        flex: 1;
    }
    
    .author-name {
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 768px) {
    .testimonials-page-header {
        padding: 3rem 0 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.125rem;
    }
    
    .stats-container {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .testimonials-filter {
        padding: 1rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .filter-label {
        margin-bottom: 0.5rem;
    }
    
    .testimonial-card {
        padding: 1.75rem;
    }
    
    .testimonial-paragraph {
        font-size: 1rem;
    }
    
    .testimonial-author-sidebar {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .author-photo-container {
        width: 100%;
        max-width: 120px;
        margin: 0 auto;
    }
    
    .author-photo,
    .author-photo-placeholder {
        height: 150px;
        width: 120px;
    }
    
    .author-info {
        text-align: center;
        width: 100%;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-quote-mark {
        font-size: 6rem;
        top: -0.5rem;
        left: -0.25rem;
    }
    
    .author-photo,
    .author-photo-placeholder {
        width: 100px;
        height: 130px;
    }
    
    .author-name {
        font-size: 1rem;
    }
    
    .author-role {
        font-size: 0.8125rem;
    }
    
    .author-company {
        font-size: 0.75rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 400px) {
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonials-grid {
        gap: 2rem;
    }
    
    .author-photo,
    .author-photo-placeholder {
        width: 90px;
        height: 120px;
    }
}