/* SYMMETRY ADVISORY SOLUTIONS - Team Page Styles
    1. Team Member Cards
    2. Member Images & Icons
    3. Bio Modals (Desktop & Mobile)
*/

/* ==========================================================================
   1. Team Member Cards
   ========================================================================== */
.team-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.team-name {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    color: var(--brand-blue-medium);
    font-size: 1.4rem;
}

.team-position {
    color: var(--brand-accent-dark-gray);
    font-size: 1.1rem;
}

.team-divider {
    border: none;
    height: 2px;
    background-color: var(--brand-purple-pale); /* Changed to brand color for flair */
    width: 60%; /* Slightly shorter for a cleaner look */
    margin: 15px auto;
}

.btn-team-card {
    background-color: var(--brand-purple);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-team-card:hover {
    background-color: var(--brand-purple-medium);
    color: #fff;
}

/* ==========================================================================
   2. Member Images & Icons
   ========================================================================== */
.team-img-wrapper {
    position: relative;
    display: inline-block;
}

.team-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--brand-purple-medium);
    position: relative;
}

/* Float-over category icon (Calculator, Tax, etc.) */
.team-img-wrapper .team-icon {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-blue);
    color: #fff;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 2;
}

/* ==========================================================================
   3. Bio Modals
   ========================================================================== */
.modal-title {
    color: var(--brand-purple);
    font-weight: bold;
    font-size: 1.4rem;
}

.modal-body {
    padding: 1.5rem !important; 
    margin: 0 !important;
}

/* Custom Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: var(--brand-blue-light);
    border-radius: 10px;
}

/* Bio Layout Elements */
.modal-bio-wrapper {
    display: block;
}

.modal-bio-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid var(--brand-purple-medium);
    float: left;
    margin: 0 20px 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.modal-bio-text {
    font-size: 1.3rem; /* Matches your section description size */
    line-height: 1.6;
    color: var(--brand-black);
}

/* --- Mobile Adjustments --- */
@media (max-width: 576px) {
    .modal-body {
        padding: 1rem !important;
    }

    .modal-bio-img {
        float: none;
        display: block;
        margin: 1rem auto;
        width: 180px;
        height: 180px;
    }
    
    .modal-bio-text {
        padding: 0 !important; /* Resetting unnecessary padding */
    }
}