/* ==========================================================================
   Testimonials Page Redesign
   Bootstrap 5 utility-first approach with minimal custom CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Card Container
   -------------------------------------------------------------------------- */
.testimonial-card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Focus-within for keyboard navigation */
.testimonial-card:focus-within {
    outline: 2px solid #04552c;
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Avatar Photo - Circular with subtle border
   -------------------------------------------------------------------------- */
.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #04552c;
    transition: border-color 0.2s ease;
}

.testimonial-card:hover .testimonial-avatar {
    border-color: #800020;
}

/* Placeholder for members without photos */
.testimonial-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #04552c 0%, #800020 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #04552c;
}

/* --------------------------------------------------------------------------
   Typography - Georgia italic for quotes
   -------------------------------------------------------------------------- */
.testimonial-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-name a:hover,
.testimonial-name a:focus {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Star Rating
   -------------------------------------------------------------------------- */
.testimonial-stars {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.testimonial-stars .fa-star {
    margin: 0 1px;
}

/* --------------------------------------------------------------------------
   Designation Badges
   -------------------------------------------------------------------------- */
.testimonial-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.testimonial-badges img {
    height: 24px;
    width: auto;
}

.testimonial-meta {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.testimonial-quote {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
    flex-grow: 1;
}

.testimonial-quote p {
    margin: 0;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */

/* Tablet and up - slightly larger avatars */
@media (min-width: 768px) {
    .testimonial-avatar,
    .testimonial-avatar-placeholder {
        width: 110px;
        height: 110px;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }
}

/* Large screens - even larger avatars */
@media (min-width: 992px) {
    .testimonial-avatar,
    .testimonial-avatar-placeholder {
        width: 120px;
        height: 120px;
    }
}

/* Small screens - compact layout */
@media (max-width: 575.98px) {
    .testimonial-card {
        padding: 1.25rem;
    }

    .testimonial-avatar,
    .testimonial-avatar-placeholder {
        width: 80px;
        height: 80px;
    }

    .testimonial-quote {
        font-size: 0.9375rem;
    }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .testimonial-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .cta-section {
        display: none;
    }
}
