/* Single Member Page Styles */
.nwba-single-member {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.nwba-member-header {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
    border-radius: 16px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.nwba-member-photo {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #c9a961;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.nwba-member-photo:hover {
    transform: scale(1.05);
}

.nwba-member-title {
    flex: 1;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nwba-badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}

.nwba-member-title h1 {
    font-size: 42px;
    margin: 0;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.nwba-designation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #1a3a5c;
    background: linear-gradient(135deg, #c9a961 0%, #d4b76f 100%);
    padding: 0 24px;
    border-radius: 24px;
    font-weight: 700;
    margin: 0 6px 6px 0;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.35), 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    height: 42px;
    line-height: 1;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.nwba-designation:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 169, 97, 0.45), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.nwba-associate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0 22px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    margin: 0 6px 6px 0;
    letter-spacing: 0.8px;
    height: 42px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35), 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: subtlePulse 2s ease-in-out infinite;
}

.nwba-associate-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45), 0 4px 8px rgba(0, 0, 0, 0.15);
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35), 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5), 0 2px 6px rgba(0, 0, 0, 0.15);
    }
}

.nwba-chambers {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.nwba-member-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.nwba-member-main {
    min-width: 0;
}

.nwba-member-bio h2,
.nwba-practice-areas h2,
.nwba-qualifications h2 {
    font-size: 28px;
    color: #1a3a5c;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #c9a961;
    font-weight: 700;
}

.nwba-member-bio {
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 16px;
    color: #374151;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.nwba-practice-areas {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.nwba-practice-areas ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.nwba-practice-areas li {
    padding: 12px 18px;
    background: #f9fafb;
    border-left: 4px solid #c9a961;
    border-radius: 6px;
    font-weight: 500;
    color: #1f2937;
    transition: all 0.3s ease;
}

.nwba-practice-areas li:hover {
    background: #f3f4f6;
    border-left-color: #1a3a5c;
    transform: translateX(4px);
}

.nwba-qualifications {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.nwba-qualifications p {
    margin: 0;
    line-height: 1.8;
    color: #374151;
}

.nwba-member-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Sticky sidebar for desktop - improved visibility */
@media (min-width: 1024px) {
    .nwba-sidebar-sticky {
        position: sticky;
        top: 20px;
        align-self: flex-start;
        /* Removed max-height and overflow - let content flow naturally */
    }
}

.nwba-contact-info,
.nwba-professional-info {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nwba-contact-info h2,
.nwba-professional-info h2 {
    font-size: 22px;
    color: #1a3a5c;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #c9a961;
    font-weight: 700;
}

.nwba-contact-info p,
.nwba-professional-info p {
    margin: 0 0 18px 0;
    line-height: 1.6;
}

.nwba-contact-info p:last-of-type,
.nwba-professional-info p:last-of-type {
    margin-bottom: 0;
}

.nwba-contact-info strong,
.nwba-professional-info strong {
    display: block;
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.nwba-contact-info a,
.nwba-professional-info a {
    color: #1a3a5c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 15px;
}

.nwba-contact-info a:hover,
.nwba-professional-info a:hover {
    color: #c9a961;
}

.nwba-contact-button {
    display: inline-block;
    padding: 12px 24px;
    background: #1a3a5c;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    text-align: center;
}

.nwba-contact-button:hover {
    background: #c9a961;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
}

.nwba-empty-section {
    opacity: 0.7;
}

.nwba-empty-message {
    color: #9ca3af;
    font-style: italic;
    font-size: 14px;
    margin: 0;
}

/* Professional Information in Main Content */
.nwba-main-professional {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.nwba-main-professional h2 {
    font-size: 28px;
    color: #1a3a5c;
    margin: 0 0 25px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #c9a961;
    font-weight: 700;
}

.nwba-professional-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nwba-info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.nwba-info-row:last-child {
    border-bottom: none;
}

.nwba-info-row-block {
    align-items: start;
}

.nwba-info-label {
    font-weight: 600;
    color: #1a3a5c;
    font-size: 14px;
}

.nwba-info-value {
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .nwba-info-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .nwba-main-professional {
        padding: 20px;
    }
}

.nwba-back-button {
    display: block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.3);
}

.nwba-back-button:hover {
    background: linear-gradient(135deg, #c9a961 0%, #d4b76d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 169, 97, 0.4);
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nwba-single-member {
        padding: 20px 15px;
    }
    
    .nwba-member-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }
    
    .nwba-member-title {
        align-items: center;
        padding-top: 0;
    }
    
    .nwba-designation {
        align-self: center;
    }
    
    .nwba-member-photo {
        width: 180px;
        height: 180px;
    }
    
    .nwba-member-title h1 {
        font-size: 32px;
    }
    
    .nwba-designation {
        font-size: 16px;
        padding: 8px 20px;
    }
    
    .nwba-chambers {
        font-size: 16px;
    }
    
    .nwba-member-content {
        grid-template-columns: 1fr;
    }
    
    .nwba-info-grid {
        grid-template-columns: 1fr;
    }
    
    .nwba-admission-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .nwba-admission-date {
        align-self: flex-start;
    }
    
    .nwba-main-professional-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nwba-practice-areas ul {
        grid-template-columns: 1fr;
    }
    
    .nwba-member-bio,
    .nwba-practice-areas,
    .nwba-qualifications,
    .nwba-main-professional,
    .nwba-contact-info,
    .nwba-professional-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .nwba-member-title h1 {
        font-size: 26px;
    }
    
    .nwba-member-bio h2,
    .nwba-practice-areas h2,
    .nwba-qualifications h2 {
        font-size: 22px;
    }
}

/* Social Media Section */
.nwba-social-media {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nwba-social-media h2 {
    font-size: 22px;
    color: #1a3a5c;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #c9a961;
    font-weight: 600;
}

.nwba-social-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

.nwba-social-links.nwba-social-vertical {
    flex-direction: column;
}

.nwba-social-links.nwba-social-horizontal {
    flex-direction: row;
}

.nwba-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nwba-social-link:hover {
    background: #ffffff;
    border-color: #c9a961;
    color: #1a3a5c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nwba-social-link svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.nwba-social-link.nwba-linkedin:hover {
    background: #0077b5;
    color: #ffffff;
    border-color: #0077b5;
}

.nwba-social-link.nwba-twitter:hover {
    background: #1da1f2;
    color: #ffffff;
    border-color: #1da1f2;
}

.nwba-social-link.nwba-facebook:hover {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
}

.nwba-social-link.nwba-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    border-color: #e1306c;
}

.nwba-social-link.nwba-whatsapp:hover {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

.nwba-social-link.nwba-youtube:hover {
    background: #ff0000;
    color: #ffffff;
    border-color: #ff0000;
}

.nwba-social-link.nwba-tiktok:hover {
    background: #000000;
    color: #ffffff;
    border-color: #69c9d0;
}

/* Banner alignment classes */
.nwba-member-header.nwba-banner-align-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nwba-member-header.nwba-banner-align-center .nwba-member-title {
    align-items: center;
    padding-top: 0;
}

.nwba-member-header.nwba-banner-align-right {
    flex-direction: row-reverse;
    text-align: right;
}

.nwba-member-header.nwba-banner-align-right .nwba-member-title {
    align-items: flex-end;
}

@media (max-width: 768px) {
    .nwba-social-media {
        padding: 20px;
    }
    
    .nwba-social-link {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Always center-align banner on mobile */
    .nwba-member-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .nwba-member-header .nwba-member-title {
        align-items: center;
    }
}
