/* ==========================================================================
   Testimonial Component & Page Styles
   ========================================================================== */

/* Testimonial Section (Homepage) */
.testimonial-section {
    background-color: #f8fafc;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.testimonial-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 108, 10, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(10, 37, 88, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(10, 37, 88, 0.05);
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card::after {
    content: '\f10e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: rgba(10, 37, 88, 0.03);
    line-height: 1;
}

.testimonial-content {
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.author-info h5 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-blue-dark);
    font-weight: 700;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--accent-orange);
    display: block;
    margin-top: 2px;
}

/* Testimonial Page Grid */
.testimonial-grid-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid var(--border-divider);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.testimonial-grid-card:hover {
    box-shadow: 0 12px 30px rgba(10, 37, 88, 0.1);
}

.read-more-btn {
    color: var(--accent-orange);
    background: none;
    border: none;
    padding: 0;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more-btn:hover {
    color: var(--accent-orange-dark);
}

.testimonial-text-container {
    position: relative;
    overflow: hidden;
}

.collapsed-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Masonry Grid Layout to solve height spacing */
.testimonial-masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
    width: 100%;
}

.testimonial-masonry-item {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem; /* spacing between rows vertically */
}

@media (max-width: 1199px) {
    .testimonial-masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 767px) {
    .testimonial-masonry-grid {
        column-count: 1;
    }
}
