/*
 Theme Name: Divi Child
 Template: Divi
*/
/* Import parent style */
@import url("../Divi/style.css");

/* =======================================================
 * 1. DIRECTORY CARD STYLING (vbba-directory-card-wrapper) 
 * ======================================================= */

.pmpro_member_directory {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 2.5%; /* Space between rows and columns */
}

.vbba-directory-card-wrapper {
    width: 31.66%; /* Calculates for 3 cards per row */
    box-sizing: border-box;
    margin-bottom: 0; /* Handled by flex gap */
}

.vbba-card-link {
    display: flex;
    align-items: center; /* Vertically centers content */
    width: 100%;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-decoration: none; 
    transition: all 0.3s ease-in-out; 
    color: #333; 
    height: 100%;
}

.vbba-card-link:hover {
    border-color: #1a98d5; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.vbba-card-image {
    flex-shrink: 0; 
    margin-right: 15px;
}

.vbba-card-image img {
    width: 75px;
    height: 75px;
    border-radius: 50%; 
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.vbba-card-content {
    flex-grow: 1; 
}

.vbba-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a98d5; /* Primary accent color */
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.vbba-card-firm, .vbba-card-location, .vbba-card-phone {
    font-size: 14px;
    margin: 3px 0;
    color: #666;
    line-height: 1.4;
}

.vbba-icon {
    margin-right: 5px;
    font-weight: 700;
    font-size: 14px;
}

.vbba-card-button {
    flex-shrink: 0;
    margin-left: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #0088cc;
    align-self: flex-end; 
    white-space: nowrap;
}

/* Directory Responsiveness */
@media (max-width: 980px) {
    .vbba-directory-card-wrapper {
        width: 48.75%; /* 2 cards per row */
    }
}
@media (max-width: 767px) {
    .vbba-directory-card-wrapper {
        width: 100%; /* 1 card per row */
    }
}

/* =======================================================
 * 2. PROFILE PAGE STYLING (vbba-profile-wrapper) 
 * * CLEANED UP: White background and clearer separation.
 * ======================================================= */

.vbba-profile-wrapper {
    max-width: 960px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff; /* Changed from #f7f7f7 to white for a cleaner "card" look */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Slightly heavier shadow */
}

.vbba-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 30px;
}

.vbba-profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #f0f0f0; /* Use a light grey border */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.vbba-name {
    font-size: 32px; /* Adjusted size slightly */
    font-weight: 700;
    color: #1a98d5; 
    margin-top: 0;
    margin-bottom: 10px;
}

.vbba-field, .vbba-address div {
    margin: 5px 0;
    font-size: 16px;
    line-height: 1.5;
}

.vbba-address {
    margin: 10px 0 15px 0;
}

.vbba-field strong {
    display: inline-block;
    min-width: 130px; /* Aligns labels */
    color: #333;
}

.vbba-profile-details h3 {
    font-size: 22px;
    color: #444;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.vbba-bio p {
    margin-bottom: 15px;
}

@media (max-width: 767px) {
    .vbba-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .vbba-name {
        font-size: 28px;
    }
}