/* Testimonials Page Specific Styles */

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-card, 
.testimonial-card,
.stat-card,
.cta-content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.story-card.visible,
.testimonial-card.visible,
.stat-card.visible,
.cta-content > *.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.testimonials-hero {
    background: linear-gradient(135deg, rgba(17, 79, 100, 0.9) 0%, rgba(2, 58, 91, 0.7) 100%), 
                url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1770&q=80') no-repeat center center/cover;
    color: var(--light);
    padding: 120px 0 80px;
    position: relative;
    text-align: center;
}

.testimonials-hero .hero-content {
    max-width: 1280px;

    align-content: center;
}

.testimonials-hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    margin-right: 0;

    color: var(--light);
    font-weight: 700;
    text-align: left;
}

.testimonials-hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    color: var(--light);
    max-width: 1280;
 
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: left;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 5px;
}

.hero-stats .stat-label {
    font-size: 1rem;
    opacity: 0.9;
    color: var(--light);
}

/* Featured Testimonials */
.featured-testimonials {
    padding: 80px 0;
    background-color: var(--light);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.story-card {
    background: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-gray);
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* REMOVE opacity: 0 from here */
    opacity: 1; /* Make sure cards are visible */
    visibility: visible; /* Ensure cards are visible */
}

/* Animation for story cards when they enter viewport */
.story-card.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}


.story-image {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
}

.story-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.story-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.story-desc {
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.story-quote {
    background: var(--bg-gray);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    border-left: 4px solid var(--primary);
    position: relative;
}

.story-quote i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.story-quote p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

.story-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-gray);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-info strong {
    font-size: 1.2rem;
    color: var(--dark);
}

.author-info span {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.author-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.author-rating i {
    color: var(--primary);
    font-size: 1.1rem;
}

.author-rating span {
    font-weight: 600;
    color: var(--dark);
    margin-left: 5px;
}

/* All Testimonials */
.all-testimonials {
    padding: 80px 0;
    background-color: var(--bg-gray);
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.testimonials-header .section-title {
    margin-bottom: 0;
}

.sort-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    background: white;
    color: var(--text-gray);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(17, 79, 100, 0.1);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.testimonial-card {
    background: var(--light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.5s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--light);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.review-info {
    flex: 1;
}

.review-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
    font-size: 1.1rem;
}

.review-profession {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 5px;
}

.review-date {
    font-size: 0.8rem;
    color: var(--gray);
}

.review-source {
    font-size: 1.5rem;
    color: var(--primary);
}

.review-stars {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 3px;
}

.review-text {
    margin-bottom: 20px;
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.review-text.clamped {
    max-height: 80px;
}

.review-text.expanded {
    max-height: 500px;
}

.review-text p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.review-text-container {
    position: relative;
}

.read-more-toggle {
    display: inline-block;
    color: var(--primary);
    background: none;
    border: none;
    padding: 4px 8px;
    margin-top: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

.read-more-toggle:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    transform: translateY(-1px);
}

.read-more-toggle i {
    font-size: 0.8rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.read-more-toggle.expanded i {
    transform: rotate(180deg);
}

.review-text.clamped::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--light));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.review-text.expanded::after {
    opacity: 0;
}

.review-text p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

.review-text-container {
    position: relative;
    margin-bottom: 15px;
    flex: 1;
}

.review-text {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.review-text.collapsed {
    max-height: 4.8em;
}

.review-text.expanded {
    max-height: 1000px;
}

.review-text p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.review-text.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--light) 90%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.review-text.expanded::after {
    opacity: 0;
}

.read-more-toggle {
    display: inline-block;
    color: var(--primary);
    background: none;
    border: none;
    padding: 5px 0;
    margin-top: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
    text-align: left;
}

.read-more-toggle:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.read-more-toggle i {
    font-size: 0.8rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.read-more-toggle.expanded i {
    transform: rotate(180deg);
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-gray);
}

.tag {
    background: var(--bg-gray);
    color: var(--text-gray);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid var(--border-gray);
}

.load-more {
    text-align: center;
}

/* Review CTA */
.review-cta {
    padding: 80px 0;
    background-color: var(--light);
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.cta-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.cta-text > p {
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.cta-benefits {
    margin-bottom: 30px;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: 8px;
    border: 1px solid var(--border-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefit i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 3px;
}

.benefit h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.benefit p {
    color: var(--text-gray);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cta-form {
    background: var(--bg-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-gray);
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cta-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.cta-form .form-group {
    margin-bottom: 15px;
}

.cta-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.cta-form input,
.cta-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light);
    color: var(--text-gray);
}

.cta-form input:focus,
.cta-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.cta-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Star Rating Validation */
.star-rating .error-label {
    color: #dc2626;
}

.star-rating input[type="radio"].error + label i {
    color: #dc2626 !important;
}

/* Checkbox tags styling */
.tag-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.tag-options input[type="checkbox"] {
    display: none;
}

.tag-options label {
    display: inline-block;
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.tag-options input[type="checkbox"]:checked + label {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.tag-options input[type="checkbox"].error + label {
    border-color: #dc2626;
    background: #fef2f2;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--border-gray);
    transition: var(--transition);
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: var(--primary);
}

.tag-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tag-options input[type="checkbox"] {
    display: none;
}

.tag-options label {
    display: block;
    padding: 8px 12px;
    background: var(--light);
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    font-weight: normal;
    font-size: 0.85rem;
    transition: var(--transition);
}

.tag-options input[type="checkbox"]:checked + label {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: normal;
    margin: 0;
}

/* Stats Section */
.testimonial-stats {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--light);
    padding: 60px 0;
}

.testimonial-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.testimonial-stats .stat-card {
    text-align: center;
    padding: 30px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.testimonial-stats .stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.testimonial-stats .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--light);
}

.testimonial-stats .stat-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--light);
    opacity: 0.9;
    font-weight: 500;
}

.testimonial-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--light);
}

.testimonial-stats .stat-content p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    display: flex;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Form Submission Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Star rating enhancements */
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffd700;
}

.star-rating input:checked ~ label {
    color: #ffd700;
}

/* Tag selection improvements */
.tag-options label:hover {
    background: var(--light-bg-hover);
    border-color: var(--accent-color);
}

/* Loading animation */
.testimonial-card.loading {
    position: relative;
    min-height: 200px;
    background: linear-gradient(90deg, var(--light-bg) 25%, var(--light-bg-hover) 50%, var(--light-bg) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Lazy Loading Styles */
.loading-indicator {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--accent-color);
}

.loading-indicator i {
    font-size: 2rem;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    font-size: 1.1rem;
    color: var(--light-text);
}

/* Submission messages */
.submission-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

.submission-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #28a745;
    color: #155724;
}

.submission-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.submission-message .message-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.submission-message i {
    font-size: 1.5rem;
}

/* No reviews message */
.no-reviews-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: var(--light-bg);
    border-radius: 15px;
    border: 2px dashed var(--border-color);
    animation: fadeIn 0.5s ease;
}

.no-reviews-message i {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.no-reviews-message h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.no-reviews-message p {
    color: var(--light-text);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Error message */
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-radius: 15px;
    border: 2px solid #dc3545;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-message i {
    font-size: 3.5rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.error-message h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #721c24;
}

.error-message p {
    color: #721c24;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Load More button */
#loadMore {
    position: relative;
    min-width: 200px;
    transition: all 0.3s ease;
}

#loadMore:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#loadMore:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

#loadMore i {
    margin-right: 8px;
}

/* Review date styling */
.review-date {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 992px) {
    .story-card {
        grid-template-columns: 1fr;
    }
    
    .story-image {
        min-height: 300px;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .testimonials-hero {
        padding: 100px 0 60px;
    }
    
    .testimonials-hero h1 {
        font-size: 2.2rem;
    }
    
    .testimonials-hero p {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .testimonials-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-controls {
        width: 100%;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .story-content {
        padding: 25px;
    }
    
    .story-content h3 {
        font-size: 1.5rem;
    }
    
    .story-quote {
        padding: 20px;
    }
    
    .story-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tag-options {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .no-reviews-message,
    .error-message {
        padding: 40px 20px;
    }
    
    .no-reviews-message i,
    .error-message i {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .testimonials-hero h1 {
        font-size: 1.8rem;
    }
    
    .testimonials-hero p {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .story-card {
        margin: 0 -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .review-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .review-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .review-source {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .testimonial-card {
        position: relative;
    }
}

/* Print Styles */
@media print {
    .testimonials-hero,
    .chat-widget,
    .mobile-menu,
    .social-links,
    .back-to-top,
    .btn,
    .filter-controls,
    .load-more,
    .review-cta,
    .testimonial-stats {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
    
    .story-card,
    .testimonial-card {
        break-inside: avoid;
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    .story-image {
        display: none !important;
    }
    
    .story-card {
        grid-template-columns: 1fr !important;
    }
}