/* About Page Styles */

.about-lead-text {
    max-width: 800px;
    margin: 0 auto;
}

/* Team Container - Flexbox Layout for Single Row */
.about-team-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}

/* Hide scrollbar but keep functionality */
.about-team-container::-webkit-scrollbar {
    height: 8px;
}

.about-team-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.about-team-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.about-team-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Team Card - Compact Size */
.about-team-card {
    flex: 0 0 auto;
    width: 180px;
    min-width: 180px;
}

/* Compact Staff Image */
.about-staff-image-compact {
    height: 150px;
    width: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0.75rem auto 0.5rem;
}

/* Compact Card Styles */
.about-team-card .card-body {
    padding: 0.5rem;
}

.about-team-card .card-title {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.about-team-card .text-primary small {
    font-size: 0.75rem;
}

.about-team-card .card-text {
    font-size: 0.7rem;
    line-height: 1.3;
}

.about-team-card .badge {
    font-size: 0.65rem;
}

/* Testimonials Flexbox Layout - Single Row */
.about-testimonials-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    margin-bottom: 2rem;
}

/* Scrollbar styling for testimonials */
.about-testimonials-grid::-webkit-scrollbar {
    height: 8px;
}

.about-testimonials-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.about-testimonials-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.about-testimonials-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.about-testimonial-card {
    flex: 0 0 auto;
    width: 350px;
    min-width: 350px;
}

.about-testimonial-card .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-testimonial-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Testimonial Card Content */
.testimonial-quote-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.testimonial-author strong {
    font-size: 0.95rem;
    color: #212529;
}

.testimonial-author small {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.testimonial-rating {
    display: flex;
    gap: 0.2rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .about-team-card {
        width: 160px;
        min-width: 160px;
    }
    
    .about-staff-image-compact {
        height: 130px;
        width: 130px;
    }
}

@media (max-width: 1200px) {
    .about-team-card {
        width: 150px;
        min-width: 150px;
    }
    
    .about-staff-image-compact {
        height: 120px;
        width: 120px;
    }
}

@media (max-width: 992px) {
    /* Allow wrapping on tablets */
    .about-team-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .about-team-card {
        width: 160px;
        min-width: 160px;
    }
}

@media (max-width: 1400px) {
    .about-testimonial-card {
        width: 320px;
        min-width: 320px;
    }
}

@media (max-width: 1200px) {
    .about-testimonial-card {
        width: 300px;
        min-width: 300px;
    }
}

@media (max-width: 992px) {
    /* Allow wrapping on tablets */
    .about-testimonials-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .about-testimonial-card {
        width: 320px;
        min-width: 320px;
    }
}

@media (max-width: 768px) {
    /* Reduce stats font size on mobile */
    .display-6 {
        font-size: 1.2rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .display-6 + .text-muted {
        font-size: 0.7rem !important;
    }
    
    /* Two cards per row on mobile */
    .row.g-4 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }
    
    .row.g-4 > [class*="col-"] {
        width: auto !important;
        max-width: none !important;
        flex: 0 0 auto !important;
    }
    
    /* Compact team cards for mobile */
    .card {
        padding: 0.5rem !important;
    }
    
    .about-staff-image-compact {
        height: 80px !important;
        width: 80px !important;
        margin: 0.5rem auto 0.25rem !important;
    }
    
    .card-body {
        padding: 0.5rem !important;
    }
    
    .card-title {
        font-size: 0.8rem !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.2 !important;
    }
    
    .text-primary small {
        font-size: 0.65rem !important;
        margin-bottom: 0.1rem !important;
    }
    
    .card-text {
        font-size: 0.6rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.25rem !important;
    }
    
    .badge {
        font-size: 0.55rem !important;
        padding: 0.2rem 0.4rem !important;
    }
    
    /* Testimonials - Two cards per row on mobile */
    .about-testimonials-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
        flex-direction: unset !important;
        align-items: unset !important;
    }
    
    .about-testimonial-card {
        width: auto !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
    }
    
    /* Compact testimonial cards */
    .about-testimonial-card .card {
        padding: 0.75rem !important;
        overflow: hidden !important;
    }
    
    .about-testimonial-card .card-body {
        padding: 0.75rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    .testimonial-quote-icon {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .testimonial-text {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.75rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        overflow: visible !important;
        white-space: normal !important;
    }
    
    .testimonial-author {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        min-width: 0 !important;
    }
    
    .testimonial-author strong {
        font-size: 0.8rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .testimonial-author small {
        font-size: 0.65rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .testimonial-rating {
        font-size: 0.7rem !important;
        gap: 0.1rem !important;
    }
    
    .testimonial-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        padding-top: 0.5rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        min-width: 0 !important;
    }
    
    /* Disable animations on mobile for better performance */
    .about-testimonial-card .card:hover {
        transform: none !important;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important;
    }
    
    .about-team-card:hover {
        transform: none !important;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important;
    }
    
    /* Mobile-specific improvements */
    .about-lead-text {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .display-6 {
        font-size: 2rem !important;
    }
    
    .h2 {
        font-size: 1.75rem !important;
    }
    
    .h3 {
        font-size: 1.5rem !important;
    }
}

