:root {
    --primary-orange: #ff8e2a;
    --primary-yellow: #ffc107;
    --orange-gradient: linear-gradient(135deg, #ff8e2a 0%, #ffc107 100%);
    --light-orange: #fff4ed;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-light: #e9ecef;
    --shadow-soft: 0 8px 30px rgba(255, 142, 42, 0.1);
    --shadow-hover: 0 15px 45px rgba(255, 142, 42, 0.2);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

body.testimonial-page {
    .row>[class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 30px;
    }
    
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    /* Main Section */
    .testimonials-section {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        padding-top: 150px !important;
        min-height: 100vh;
    }
    
    /* Hero Content */
    .testimonials-section .text-center {
        margin-top: 40px;
        margin-bottom: 50px;
    }
    
    .testimonials-section .lead {
        font-size: 1.2rem;
        color: #6c757d;
        margin-bottom: 40px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Typography */
    .section-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: #333;
        position: relative;
        margin-bottom: 1rem;
    }
    
    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: linear-gradient(135deg, #ff8e2a, #ff6b35);
        border-radius: 2px;
    }
    
    /* Stats Section */
    .testimonial-stats {
        background: white;
        border-radius: 15px;
        padding: 30px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-bottom: 40px;
    }
    
    .stat-item {
        text-align: center;
        padding: 0 15px;
    }
    
    .stat-number {
        font-size: 2rem;
        font-weight: 700;
        color: #ff8e2a;
        display: block;
    }
    
    .stat-label {
        font-size: 0.9rem;
        color: #6c757d;
        font-weight: 500;
        margin-top: 5px;
    }
    
    .rating-display {
        color: #ffc107;
        margin-top: 5px;
    }
    
    /* Filters */
    .filter-btn {
        display: inline-block;
        padding: 0.5rem 1rem;
        margin: 0 0.25rem 0.5rem;
        background: white;
        color: #6c757d;
        text-decoration: none;
        border-radius: 25px;
        border: 2px solid #dee2e6;
        transition: all 0.3s ease;
    }
    
    .filter-btn:hover,
    .filter-btn.active {
        background: #ff8e2a;
        color: white;
        border-color: #ff8e2a;
        text-decoration: none;
        transform: translateY(-2px);
    }
    
    /* Testimonial Cards */
    .testimonial-card {
        background: white;
        border-radius: 15px;
        padding: 25px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        border-left: 4px solid transparent;
        height: 100%;
        display: flex;
        flex-direction: column;
        position: relative;
        /* Fix positioning context */
        overflow: hidden;
        /* Prevent content overflow */
        word-wrap: break-word;
        /* Handle long words */
        box-sizing: border-box;
        /* Include padding in width calculation */
    }
    
    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }
    
    .testimonial-card.featured {
        border-left-color: #ffc107;
        background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
    }
    
    .featured-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 10;
        /* Ensure badge stays on top */
    }
    
    .featured-badge .badge {
        border-radius: 15px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    /* Rating Stars */
    .testimonial-rating {
        display: flex;
        justify-content: center;
        gap: 3px;
        margin-bottom: 15px;
    }
    
    .testimonial-rating .star {
        font-size: 1.2rem;
        color: #dee2e6;
        transition: all 0.3s;
    }
    
    .testimonial-rating .star.active {
        color: #ffc107;
    }
    
    /* Content */
    .testimonial-content {
        flex: 1;
        margin-bottom: 20px;
        overflow: hidden;
        /* Prevent content overflow */
    }
    
    .testimonial-text {
        font-style: italic;
        line-height: 1.6;
        color: #495057;
        margin: 0;
        position: relative;
        padding: 15px 0;
        word-wrap: break-word;
        /* Handle long words */
        overflow-wrap: break-word;
        /* Better word breaking */
        hyphens: auto;
        /* Allow hyphenation */
        max-height: 200px;
        /* Limit text height */
        overflow: hidden;
        /* Hide overflow text */
        display: -webkit-box;
        -webkit-line-clamp: 8;
        /* Limit to 8 lines */
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        /* Add ellipsis for overflow */
    }
    
    .testimonial-text::before {
        content: '"';
        position: absolute;
        top: -5px;
        left: -10px;
        font-size: 2rem;
        color: #ff8e2a;
        opacity: 0.3;
        font-family: Georgia, serif;
        z-index: 1;
    }
    
    /* Customer Info */
    .testimonial-footer {
        border-top: 1px solid #f1f3f4;
        padding-top: 15px;
    }
    
    .customer-avatar,
    .customer-initials {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        margin-right: 15px;
        flex-shrink: 0;
    }
    
    .customer-avatar {
        object-fit: cover;
        border: 2px solid white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .customer-initials {
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        color: white;
        font-size: 1rem;
    }
    
    .customer-name {
        font-weight: 600;
        color: #333;
        margin-bottom: 2px;
    }
    
    .customer-meta small {
        color: #6c757d;
        font-size: 0.85rem;
    }
    
    .tour-package {
        color: #ff8e2a !important;
        font-style: italic;
    }
    
    /* CTA Section */
    .testimonial-cta {
        background: linear-gradient(135deg, #ff8e2a 0%, #ffc107 100%);
        color: white;
        border-radius: 15px;
        padding: 40px 30px;
        text-align: center;
        margin-top: 50px;
    }
    
    .testimonial-cta h4 {
        margin-bottom: 15px;
        font-weight: 700;
        font-size: 1.8rem;
    }
    
    .testimonial-cta p {
        margin-bottom: 25px;
        opacity: 0.95;
    }
    
    .testimonial-cta .btn {
        padding: 12px 25px;
        border-radius: 25px;
        font-weight: 600;
        text-decoration: none;
        transition: var(--transition);
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 2px solid var(--white);
        cursor: pointer;
    }
    
    .testimonial-cta .btn-light {
        background: var(--white);
        color: var(--primary-orange);
    }
    
    .testimonial-cta .btn-light:hover {
        background: transparent;
        color: var(--white);
        transform: translateY(-2px);
        text-decoration: none;
    }
    
    .testimonial-cta .btn-outline-light {
        background: transparent;
        color: var(--white);
    }
    
    .testimonial-cta .btn-outline-light:hover {
        background: var(--white);
        color: var(--primary-orange);
        transform: translateY(-2px);
        text-decoration: none;
    }

    /* Pagination */
    .pagination .page-link {
        border-color: #dee2e6;
        color: #6c757d;
        transition: all 0.3s;
    }
    
    .pagination .page-link:hover {
        background: #fff5f0;
        color: #ff8e2a;
        border-color: #ff8e2a;
    }
    
    .pagination .page-item.active .page-link {
        background: #ff8e2a;
        border-color: #ff8e2a;
    }
    
    /* Responsive Design */
    @media (max-width: 768px) {
        .testimonials-section {
            padding: 100px 0 40px;
        }
    
        .section-title {
            font-size: 2rem;
        }
    
        .testimonial-stats {
            padding: 20px 15px;
        }
    
        .stat-item {
            margin-bottom: 20px;
        }
    
        .stat-number {
            font-size: 1.5rem;
        }
    
        .testimonial-card {
            margin-bottom: 20px;
            padding: 20px;
        }
    
        .testimonial-cta {
            padding: 30px 20px;
        }
    
        .testimonial-cta h4 {
            font-size: 1.5rem;
        }
    
        .testimonial-cta .btn {
            display: block;
            width: 100%;
            margin: 5px 0;
        }
    }
    
    @media (max-width: 576px) {
        .filter-btn {
            font-size: 0.9rem;
            padding: 0.4rem 0.8rem;
        }
    
        .customer-avatar,
        .customer-initials {
            width: 40px;
            height: 40px;
            margin-right: 12px;
        }
    
        .testimonial-text {
            font-size: 0.95rem;
        }
    }
}