/* 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('') 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: block;
    height: auto;
    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 {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
     background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    /* position: absolute;
    top: 20px;
    right: 20px;
   
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2; */
}

.story-content {
    padding: 2rem;
    width: 100%;
    /* padding: 40px;
    display: flex;
    flex-direction: column; */
}

.story-content h3 {
    /* font-size: 1.8rem;
    margin-bottom: 15px; */
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    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;
    }
}

/* ============================================
   PROFESSIONAL IMAGE PLACEHOLDERS
   (Add these styles to your existing CSS)
   ============================================ */

/* Story Image Container Enhancements */
.story-image {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading State */
.image-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--primary);
    font-size: 14px;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.image-loading.visible {
    opacity: 1;
}

.image-loading i {
    font-size: 28px;
    color: var(--primary);
}

.story-image img.loading + .image-loading {
    opacity: 1;
}

.story-image img.loaded + .image-loading {
    opacity: 0;
}

/* Professional Placeholder Styles */
.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px solid rgba(203, 213, 225, 0.3);
    padding: 40px;
    text-align: center;
    animation: placeholderFadeIn 0.6s ease-out;
}

@keyframes placeholderFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.placeholder-icon {
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.placeholder-icon i {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.8;
}

.placeholder-text {
    max-width: 280px;
}

.placeholder-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.placeholder-text p {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

/* Category-specific placeholder colors */
.image-placeholder[data-category*="health"],
.image-placeholder[data-category*="medical"],
.image-placeholder[data-category*="nurse"] {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.image-placeholder[data-category*="health"] .placeholder-icon,
.image-placeholder[data-category*="medical"] .placeholder-icon,
.image-placeholder[data-category*="nurse"] .placeholder-icon {
    background: rgba(16, 185, 129, 0.1);
}

.image-placeholder[data-category*="health"] .placeholder-icon i,
.image-placeholder[data-category*="medical"] .placeholder-icon i,
.image-placeholder[data-category*="nurse"] .placeholder-icon i {
    color: #10b981;
}

.image-placeholder[data-category*="corporate"],
.image-placeholder[data-category*="business"],
.image-placeholder[data-category*="consultant"] {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

.image-placeholder[data-category*="corporate"] .placeholder-icon,
.image-placeholder[data-category*="business"] .placeholder-icon,
.image-placeholder[data-category*="consultant"] .placeholder-icon {
    background: rgba(59, 130, 246, 0.1);
}

.image-placeholder[data-category*="corporate"] .placeholder-icon i,
.image-placeholder[data-category*="business"] .placeholder-icon i,
.image-placeholder[data-category*="consultant"] .placeholder-icon i {
    color: #3b82f6;
}

.image-placeholder[data-category*="software"],
.image-placeholder[data-category*="tech"],
.image-placeholder[data-category*="developer"] {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-color: rgba(139, 92, 246, 0.2);
}

.image-placeholder[data-category*="software"] .placeholder-icon,
.image-placeholder[data-category*="tech"] .placeholder-icon,
.image-placeholder[data-category*="developer"] .placeholder-icon {
    background: rgba(139, 92, 246, 0.1);
}

.image-placeholder[data-category*="software"] .placeholder-icon i,
.image-placeholder[data-category*="tech"] .placeholder-icon i,
.image-placeholder[data-category*="developer"] .placeholder-icon i {
    color: #8b5cf6;
}

.image-placeholder[data-category*="education"],
.image-placeholder[data-category*="professor"],
.image-placeholder[data-category*="teacher"] {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.image-placeholder[data-category*="education"] .placeholder-icon,
.image-placeholder[data-category*="professor"] .placeholder-icon,
.image-placeholder[data-category*="teacher"] .placeholder-icon {
    background: rgba(245, 158, 11, 0.1);
}

.image-placeholder[data-category*="education"] .placeholder-icon i,
.image-placeholder[data-category*="professor"] .placeholder-icon i,
.image-placeholder[data-category*="teacher"] .placeholder-icon i {
    color: #f59e0b;
}

.image-placeholder[data-category*="travel"],
.image-placeholder[data-category*="hospitality"] {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: rgba(236, 72, 153, 0.2);
}

.image-placeholder[data-category*="travel"] .placeholder-icon,
.image-placeholder[data-category*="hospitality"] .placeholder-icon {
    background: rgba(236, 72, 153, 0.1);
}

.image-placeholder[data-category*="travel"] .placeholder-icon i,
.image-placeholder[data-category*="hospitality"] .placeholder-icon i {
    color: #ec4899;
}

/* Default professional placeholder */
.image-placeholder[data-category*="professional"],
.image-placeholder[data-category*="default"] {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: rgba(148, 163, 184, 0.2);
}

.image-placeholder[data-category*="professional"] .placeholder-icon,
.image-placeholder[data-category*="default"] .placeholder-icon {
    background: rgba(148, 163, 184, 0.1);
}

.image-placeholder[data-category*="professional"] .placeholder-icon i,
.image-placeholder[data-category*="default"] .placeholder-icon i {
    color: #64748b;
}

/* Hover effects for placeholders */
.story-card:hover .image-placeholder {
    transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.story-card:hover .placeholder-icon {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

/* Fallback for broken images */
.story-image img.failed {
    display: none;
}

.story-image img.failed + .image-loading {
    opacity: 0;
}

/* Ensure images load smoothly */
.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.story-image img.loaded {
    opacity: 1;
}

/* Badge positioning enhancement */
.story-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* LinkedIn URL warning */
.image-placeholder.linkedin-fallback::before {
    content: "Professional Review";
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.1);
    color: rgba(100, 116, 139, 0.6);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .placeholder-icon {
        width: 70px;
        height: 70px;
    }
    
    .placeholder-icon i {
        font-size: 2rem;
    }
    
    .placeholder-text h4 {
        font-size: 16px;
    }
    
    .placeholder-text p {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .image-placeholder {
        padding: 30px 20px;
    }
    
    .placeholder-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .placeholder-icon i {
        font-size: 1.75rem;
    }
}

/* Smooth transitions for all image states */
.story-image {
    transition: background 0.3s ease;
}

.story-image.has-placeholder {
    background: transparent;
}

.story-image.loading {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Accessibility improvements */
.image-placeholder:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.placeholder-icon:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Enhanced Image Container */
.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.story-image img.loaded {
    opacity: 1;
}

.image-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    z-index: 1;
}

.loading-spinner {
    text-align: center;
}

.spinner-circle {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(59, 130, 246, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spinner 1s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

.spinner-text {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.1));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-image img.loaded ~ .image-overlay {
    opacity: 1;
}

/* Enhanced Placeholder */
.enhanced-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    animation: placeholderFadeIn 0.6s ease-out;
}

@keyframes placeholderFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.placeholder-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
}

.pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25px 25px, currentColor 2px, transparent 3px);
    background-size: 50px 50px;
}

.placeholder-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.icon-container {
    position: relative;
    margin-bottom: 20px;
}

.icon-circle {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.icon-circle i {
    font-size: 1.8rem;
    color: var(--primary);
}

.icon-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.15;
    animation: pulseRing 2s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.05); opacity: 0.25; }
}

.placeholder-text {
    margin-bottom: 20px;
    max-width: 250px;
}

.placeholder-title {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    line-height: 1.3;
}

.category-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(203, 213, 225, 0.4);
}

.category-tag span {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.placeholder-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
}

.testimonial-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.5px;
}

.testimonial-badge i {
    font-size: 9px;
    color: var(--primary);
}

/* Category-specific styles */
.story-healthcare .icon-circle i,
.story-healthcare .icon-ring,
.story-healthcare .testimonial-badge i {
    color: #10b981;
}

.story-corporate .icon-circle i,
.story-corporate .icon-ring,
.story-corporate .testimonial-badge i {
    color: #3b82f6;
}

.story-tech .icon-circle i,
.story-tech .icon-ring,
.story-tech .testimonial-badge i {
    color: #8b5cf6;
}

.story-education .icon-circle i,
.story-education .icon-ring,
.story-education .testimonial-badge i {
    color: #f59e0b;
}

.story-travel .icon-circle i,
.story-travel .icon-ring,
.story-travel .testimonial-badge i {
    color: #ec4899;
}

.story-professional .icon-circle i,
.story-professional .icon-ring,
.story-professional .testimonial-badge i {
    color: #64748b;
}

/* Author rating enhancement */
.author-rating .stars {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
}

.author-rating .stars i {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Hover effects */
.story-card:hover .icon-circle {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.story-card:hover .enhanced-placeholder {
    transform: scale(1.01);
}

/* Responsive */
@media (max-width: 992px) {
    .icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .icon-circle i {
        font-size: 1.5rem;
    }
    
    .placeholder-content {
        padding: 30px 20px;
    }
    
    .placeholder-title {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .icon-circle i {
        font-size: 1.2rem;
    }
    
    .placeholder-title {
        font-size: 14px;
    }
    
    .category-tag {
        padding: 4px 10px;
    }
    
    .category-tag span {
        font-size: 10px;
    }
}