/* Modern Photo-Focused Testimonials CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Show Contact Us button on testimonials page - navbar container only */
/* Removed explicit overrides here to keep the navbar CTA consistent across pages. */

/* Hide Contact Us button on mobile for testimonials page */
@media (max-width: 768px) {
    .nav-container .cta-section {
        display: none !important;
    }
}

/* Keep default navbar CTA styling from navbar.css for consistency */

/* Logo Hover Effects */
.nav-logo {
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-logo:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.nav-logo:hover .logo-text {
    color: #667eea;
}

/* Hero Section */
.testimonials-hero {
    background: linear-gradient(135deg, #FF6B35, #E91E63);
    background-image: 
        linear-gradient(135deg, rgba(255, 107, 53, 0.85), rgba(233, 30, 99, 0.85)),
        url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=1200&h=400&fit=crop&auto=format');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 0;
    text-align: center;
    position: relative;
    height: 350px;
    max-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.testimonials-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.testimonials-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cursive-text {
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
    color: #FFD700;
}

.hero-content p {
    font-size: 1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.4;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Filter Section */
.filter-section {
    background: #f8f9fa;
    padding: 40px 0;
    border-bottom: 1px solid #e9ecef;
}

.filters-container {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.filter-dropdown {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.filter-dropdown:hover,
.filter-dropdown:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.reset-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Testimonials Main Section */
.testimonials-main {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 60px;
}

/* Testimonial Card Styles */
.testimonial-card {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    animation: fadeInUp 0.8s ease forwards;
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    min-height: 320px;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Left Layout */
.testimonial-card.left-layout {
    flex-direction: row;
}

/* Right Layout */
.testimonial-card.right-layout {
    flex-direction: row-reverse;
}

/* Photo Section */
.testimonial-photo {
    position: relative;
    flex-shrink: 0;
    width: 250px;
    height: 250px;
}

.photo-background {
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 60px;
    top: 10px;
    left: 10px;
    z-index: 1;
}

/* Colorful Background Variations */
.photo-background.teal {
    background: #00843d;
}

.photo-background.purple {
    background: #00843d;
}

.photo-background.pink {
    background: #00843d;
}

.photo-background.green {
    background: #00843d;
}

.photo-background.orange {
    background: #00843d;
}

.photo-background.blue {
    background: #f5f7ef;
}

.traveler-photo {
    position: relative;
    z-index: 2;
    width: 250px;
    height: 250px;
    border-radius: 60px;
    overflow: hidden;
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.testimonial-card:hover .traveler-photo {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 700;
    color: #667eea;
    background: #f5f7ef;
}

.traveler-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hide placeholder when image is present */
.traveler-photo img + .photo-placeholder {
    display: none;
}

/* Content Section */
.testimonial-content {
    flex: 1;
    max-width: 600px;
    text-align: center;
    padding: 20px;
}

.testimonial-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    flex-direction: column;
}

.testimonial-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.rating {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.stars {
    color: #FFD700;
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.rating-text {
    font-weight: 600;
    color: #333;
    font-size: 1.2rem;
}

.trip-details {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.destination {
    background: #00843d;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.date {
    background: #f8f9fa;
    color: #666;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    font-weight: 400;
    text-align: center;
    font-style: italic;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-size: 1rem;
    font-weight: 500;
    justify-content: center;
}

.verified-badge i {
    font-size: 1rem;
}

/* Load More Section */
.load-more-container {
    text-align: center;
    margin-top: 60px;
}

.load-more-btn {
    background: #00843d;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* CTA Section - Full Page Section (not navbar button container) */
.testimonials-main .cta-section,
.testimonials-main + .cta-section,
body > .cta-section:not(.nav-container .cta-section) {
    background: #00843d;
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
}

.testimonials-main .cta-section::before,
.testimonials-main + .cta-section::before,
body > .cta-section:not(.nav-container .cta-section)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* CTA Button - Only for page-level sections, not navbar */
.testimonials-main .cta-button,
body > .cta-section:not(.nav-container .cta-section) .cta-button {
    background: white;
    color: #667eea;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.testimonials-main .cta-button:hover,
body > .cta-section:not(.nav-container .cta-section) .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
    color: #5a67d8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }
.testimonial-card:nth-child(5) { animation-delay: 0.5s; }
.testimonial-card:nth-child(6) { animation-delay: 0.6s; }

/* Hidden/Filtered States */
.testimonial-card.hidden {
    display: none;
}

.testimonial-card.filtering {
    opacity: 0.3;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .testimonials-grid {
        gap: 40px;
    }
    
    .testimonial-card {
        flex-direction: column !important;
        text-align: center;
        gap: 30px;
    }
    
    .testimonial-card.right-layout {
        flex-direction: column !important;
    }
    
    .testimonial-photo {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .photo-background {
        width: 130px;
        height: 130px;
    }
    
    .traveler-photo {
        width: 150px;
        height: 150px;
    }
    
    .photo-placeholder {
        font-size: 3rem;
    }
    
    .testimonial-content {
        max-width: 100%;
    }
    
    .testimonial-header {
        justify-content: center;
        text-align: center;
    }
    
    .trip-details {
        justify-content: center;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .filter-dropdown {
        min-width: 200px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .testimonials-main {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .testimonial-photo {
        width: 120px;
        height: 120px;
    }
    
    .photo-background {
        width: 100px;
        height: 100px;
    }
    
    .traveler-photo {
        width: 120px;
        height: 120px;
    }
    
    .photo-placeholder {
        font-size: 2.5rem;
    }
    
    .testimonial-header h3 {
        font-size: 1.2rem;
    }
    
    .review-text {
        font-size: 0.95rem;
    }
    
    .filter-dropdown {
        min-width: 150px;
        padding: 10px 12px;
    }
    
    .reset-btn {
        padding: 10px 16px;
    }
}

/* Scroll animations */
.testimonial-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.testimonial-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Loading state */
.testimonials-grid.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* No results state */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.no-results p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.no-results button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
}

/* Enhanced hover effects */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .testimonials-hero {
        margin-top: 80px;
        height: 300px;
        max-height: 300px;
        padding: 40px 0 30px;
    }
    
    .hero-content {
        padding-top: 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        margin-top: 0;
        text-align: center;
    }
    
    .hero-content p {
        font-size: 1rem;
        text-align: center;
        max-width: 90%;
    }
    
    .testimonial-card {
        flex-direction: column !important;
        gap: 30px;
        padding: 30px 20px;
        min-height: auto;
        text-align: center;
    }
    
    .testimonial-photo {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .photo-background {
        width: 180px;
        height: 180px;
        border-radius: 50px;
    }
    
    .traveler-photo {
        width: 200px;
        height: 200px;
        border-radius: 50px;
    }
    
    .photo-placeholder {
        font-size: 4rem;
    }
    
    .testimonial-content {
        max-width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    .testimonial-header h3 {
        font-size: 1.6rem;
    }
    
    .review-text {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .testimonials-hero {
        margin-top: 80px;
        height: 250px;
        max-height: 250px;
        padding: 30px 0 20px;
    }
    
    .hero-content {
        padding-top: 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        margin-top: 0;
        text-align: center;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 1rem;
        text-align: center;
        max-width: 95%;
    }
    
    .testimonials-hero h1 {
        font-size: 2rem;
    }
    
    .filter-section {
        padding: 30px 0;
    }
    
    .filters-container {
        gap: 15px;
    }
    
    .filter-dropdown {
        min-width: 120px;
        font-size: 0.85rem;
    }
    
    .testimonial-card {
        padding: 25px 15px;
        gap: 25px;
    }
    
    .testimonial-photo {
        width: 150px;
        height: 150px;
    }
    
    .photo-background {
        width: 130px;
        height: 130px;
        border-radius: 40px;
    }
    
    .traveler-photo {
        width: 150px;
        height: 150px;
        border-radius: 40px;
    }
    
    .photo-placeholder {
        font-size: 3rem;
    }
    
    .testimonial-header h3 {
        font-size: 1.4rem;
    }
    
    .stars {
        font-size: 1.2rem;
    }
    
    .rating-text {
        font-size: 1rem;
    }
    
    .review-text {
        font-size: 0.95rem;
    }
    
    .trip-details {
        gap: 10px;
    }
    
    .destination, .date {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card:hover .photo-background {
    transform: scale(1.1);
}

/* Success/Error states for filters */
.filter-dropdown.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.filter-dropdown.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}