/**
 * Custom styles for PMPro Member Directory
 * This file is safe from plugin updates
 * Enqueued in functions.php
 */

/* Remove green backgrounds from directory page */
/* Override Twenty Twenty-One theme's default green body background (#d1e4dd) */

/* Target body when directory is present (modern browsers) */
body:has(.pmpro_member_directory),
body.pmpro_directory {
    --global--color-background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Target site containers */
body:has(.pmpro_member_directory) .site,
body.pmpro_directory .site,
body:has(.pmpro_member_directory) .site-main,
body.pmpro_directory .site-main,
body:has(.pmpro_member_directory) .entry-content,
body.pmpro_directory .entry-content {
    background-color: transparent !important;
    background-image: none !important;
}

/* Target directory container and related elements */
.pmpro_member_directory,
.page .pmpro_member_directory,
.entry-content .pmpro_member_directory,
.site-main .pmpro_member_directory {
    background-color: transparent !important;
    background-image: none !important;
}

/* Remove green from Gutenberg blocks on directory pages */
body:has(.pmpro_member_directory) .has-green-background-color,
body.pmpro_directory .has-green-background-color,
body:has(.pmpro_member_directory) .wp-block-group.has-green-background-color,
body.pmpro_directory .wp-block-group.has-green-background-color {
    background-color: transparent !important;
    background-image: none !important;
}

/* Fallback for browsers that don't support :has() */
.pmpro_directory .site,
.pmpro_directory .site-main,
.pmpro_directory .entry-content {
    background-color: transparent !important;
    background-image: none !important;
}

/* Remove green from any page wrapper or container */
.page .pmpro_member_directory,
.entry-content .pmpro_member_directory,
.site-main .pmpro_member_directory {
    background-color: transparent !important;
    background-image: none !important;
}

/* Hide search form on individual member profile pages */
.pmpro_member_profile .pmpro-member-directory-enhanced-search,
.pmpro_member_profile + .pmpro-member-directory-enhanced-search {
    display: none !important;
}

/* Enhanced Search Form Styles - AAMA Teal-Green Theme */
.pmpro-member-directory-enhanced-search {
    margin-bottom: 2rem;
    background: #f0f7f6;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #1a7a6d;
    box-shadow: 0 2px 8px rgba(26, 122, 109, 0.1);
}

/* Search Controls Header */
.search-controls-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #1a7a6d;
    flex-wrap: wrap;
}

.search-controls-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.control-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    white-space: nowrap;
}

.control-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #ffffff;
    color: #212529;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.control-select:focus {
    outline: none;
    border-color: #1a7a6d;
    box-shadow: 0 0 0 3px rgba(26, 122, 109, 0.1);
}

/* Autocomplete Styles */
.autocomplete-field {
    position: relative;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
    color: #212529;
}

.autocomplete-item:hover {
    background: #f8f9fa;
    color: #1a7a6d;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* Responsive adjustments for controls */
@media (max-width: 992px) {
    .search-controls-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-controls-group {
        width: 100%;
        justify-content: space-between;
    }

    .control-select {
        flex: 1;
        max-width: 200px;
    }
}

.pmpro-member-directory-enhanced-search form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
}

.search-basic-fields {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 0;
}

.search-field-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.search-field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 0.95rem;
}

.search-field-group input,
.search-field-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.search-field-group input:focus,
.search-field-group select:focus {
    outline: none;
    border-color: #1a7a6d;
    box-shadow: 0 0 0 3px rgba(26, 122, 109, 0.1);
}

.search-field-group input::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.search-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-advanced-toggle {
    margin: 0;
}

.toggle-advanced {
    background: #1a7a6d;
    border: 1px solid #1a7a6d;
    border-radius: 6px;
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.toggle-advanced:hover {
    background: #0d5d52;
    border-color: #0d5d52;
    color: #ffffff;
}

.toggle-icon {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    color: #ffffff;
}

.toggle-advanced .toggle-icon {
    color: #ffffff;
}

.search-actions {
    margin-top: 0;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-actions .pmpro_form_submit {
    display: flex;
    gap: 1rem;
    margin: 0;
    align-items: center;
}

.search-actions .pmpro_btn {
    background-color: #1a7a6d !important;
    border-color: #1a7a6d !important;
    color: white !important;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.search-actions .pmpro_btn:hover {
    background-color: #0d5d52 !important;
    border-color: #0d5d52 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(26, 122, 109, 0.2);
}

.pmpro_btn-secondary {
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

.pmpro_btn-secondary:hover {
    background: #5a6268 !important;
    border-color: #5a6268 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-advanced-fields {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 2rem;
    margin-top: 0;
    display: none;
    color: #212529; /* Ensure text is visible */
}

.search-advanced-fields label,
.search-advanced-fields .search-field-group label {
    color: #212529 !important;
    font-weight: 600;
}

.skills-help-text {
    color: #6c757d !important;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.skills-filter {
    margin-top: 0;
}

.skills-search-wrapper {
    margin-bottom: 0.75rem;
}

.skills-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.skills-search-input:focus {
    outline: none;
    border-color: #1a7a6d;
    box-shadow: 0 0 0 3px rgba(26, 122, 109, 0.1);
}

.skills-multiselect {
    min-height: 250px;
    max-height: 400px;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-y: auto;
    background-color: white;
    display: block !important;
    visibility: visible !important;
}

.skills-multiselect:focus {
    outline: none;
    border-color: #1a7a6d;
    box-shadow: 0 0 0 3px rgba(26, 122, 109, 0.1);
}

.skills-multiselect option {
    padding: 0.5rem 0.75rem;
    margin: 0.25rem 0;
    white-space: normal;
    display: block !important;
    visibility: visible !important;
}

.skills-multiselect option:checked {
    background-color: #1a7a6d;
    color: white;
}

.skills-multiselect optgroup {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    padding: 0.5rem 0;
    margin-top: 0.75rem;
    background-color: #f8f9fa;
    display: block !important;
    visibility: visible !important;
}

.skills-multiselect optgroup:first-child {
    margin-top: 0;
}

.skills-help-text {
    display: block;
    margin-top: 0.5rem;
    color: #6c757d !important;
    font-size: 0.875rem;
    font-style: italic;
}

/* Loading indicator for AJAX search */
.pmpro-search-loading {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
    color: #495057;
}

.pmpro-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a7a6d;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pmpro-search-loading p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
}

/* Override PMPro form styles for our enhanced search */
.pmpro-member-directory-enhanced-search .pmpro_form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
}

.pmpro-member-directory-enhanced-search .pmpro_form_fields {
    display: contents;
}

.pmpro-member-directory-enhanced-search .pmpro_form_input {
    margin: 0;
}

.pmpro-member-directory-enhanced-search .pmpro_form_field {
    margin-bottom: 0;
}

.pmpro-member-directory-enhanced-search .pmpro_form_submit {
    margin: 0;
    padding: 0;
}

/* Override for enhanced search form */
.pmpro-member-directory-enhanced-search form.pmpro_member_directory_search {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
}

/* Select2 styling if available */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da;
    border-radius: 6px;
    min-height: 200px;
    padding: 0.25rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #1a7a6d;
    border: 1px solid #1a7a6d;
    color: white;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem;
    border-radius: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    margin-right: 0.5rem;
}

.select2-container--default .select2-results__group {
    font-weight: 600;
    color: #495057;
    padding: 0.5rem 0.75rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .search-basic-fields {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 992px) {
    .search-basic-fields {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pmpro-member-directory-enhanced-search {
        padding: 1.5rem;
    }

    .search-basic-fields {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .search-actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .search-advanced-toggle {
        width: 100%;
    }

    .toggle-advanced {
        width: 100%;
        justify-content: center;
    }

    .search-actions {
        width: 100%;
        flex-direction: column;
    }

    .search-actions .pmpro_form_submit {
        width: 100%;
        flex-direction: column;
    }

    .search-actions .pmpro_btn {
        width: 100%;
    }

    .skills-multiselect {
        grid-template-columns: 1fr;
    }

    .search-advanced-fields {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .pmpro-member-directory-enhanced-search {
        padding: 1rem;
    }

    .search-advanced-fields {
        padding: 1rem;
    }
}

/* ============================================
   MEMBER PROFILE STYLING - NEW LAYOUT
   ============================================ */

/* Main profile card container */
.pmpro_member_profile {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.pmpro_card.pmpro_member_profile {
    border: 1px solid #e9ecef;
    background: #ffffff;
}

/* Hero Section - AAMA Teal-Green Color Scheme */
.pmpro-member-profile-hero {
    background: linear-gradient(135deg, #1a7a6d 0%, #0d5d52 100%);
    color: #ffffff;
    padding: 3rem 2rem;
    margin: 0;
}

.pmpro-member-profile-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pmpro-member-profile-avatar {
    flex-shrink: 0;
}

.pmpro-member-profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.pmpro-member-profile-hero-info {
    flex: 1;
    min-width: 300px;
}

.pmpro-member-profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    line-height: 1.2;
}

.pmpro-member-profile-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.pmpro-member-profile-title .separator {
    margin: 0 0.5rem;
    opacity: 0.7;
}

.pmpro-member-profile-industry {
    margin-bottom: 1rem;
}

.industry-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.pmpro-member-profile-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.pmpro-member-profile-location svg {
    flex-shrink: 0;
}

.pmpro-member-profile-contact-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pmpro-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pmpro-contact-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.pmpro-contact-btn svg {
    flex-shrink: 0;
}

/* Two Column Layout */
.pmpro-member-profile-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pmpro-member-profile-left,
.pmpro-member-profile-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Profile Sections */
.pmpro-member-profile-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.pmpro-member-profile-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #212529;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #1a7a6d;
}

.pmpro-member-profile-section-content {
    color: #495057;
    line-height: 1.6;
}

/* Bio Section */
.pmpro-member-profile-bio {
    background: #ffffff;
}

.pmpro-member-profile-bio .pmpro-member-profile-section-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Skills Section */
.pmpro-skills-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pmpro-skill-category {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.pmpro-skill-category:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pmpro-skill-category-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #1a7a6d;
    text-align: left;
    transition: all 0.2s ease;
}

.pmpro-skill-category-toggle:hover {
    background: #e9ecef;
}

.pmpro-skill-category-name {
    flex: 1;
}

.pmpro-skill-category-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.pmpro-skill-category-content {
    padding: 1rem 1.25rem;
    display: block;
}

.pmpro-skill-category[aria-expanded="false"] .pmpro-skill-category-content {
    display: none;
}

/* Contact Information */
.pmpro-member-profile-contact {
    background: #ffffff;
}

.pmpro-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.pmpro-contact-item:last-child {
    border-bottom: none;
}

.pmpro-contact-item svg {
    flex-shrink: 0;
    color: #1a7a6d;
}

.pmpro-contact-link {
    color: #1a7a6d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    word-break: break-all;
}

.pmpro-contact-link:hover {
    color: #0d5d52;
    text-decoration: underline;
}

.pmpro-contact-text {
    color: #495057;
}

/* Membership Details */
.pmpro-member-profile-membership {
    background: #ffffff;
}

/* Hide membership level badge if it appears */
.pmpro-membership-item:has(.pmpro-membership-badge),
.pmpro-membership-item strong:contains("Level:") {
    display: none;
}

/* Hide membership level badge directly */
.pmpro-membership-badge {
    display: none !important;
}

.pmpro-membership-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pmpro-membership-item:last-child {
    border-bottom: none;
}

.pmpro-membership-item strong {
    color: #6c757d;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pmpro-membership-badge {
    display: none !important;
    background: #e0f2ef;
    color: #1a7a6d;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Additional Information */
.pmpro-member-profile-additional {
    background: #ffffff;
}

.pmpro-additional-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pmpro-additional-item:last-child {
    border-bottom: none;
}

.pmpro-additional-item strong {
    color: #6c757d;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile card content area */
.pmpro_card_content {
    padding: 0;
}

/* Profile field containers */
.pmpro_member_profile_field {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.pmpro_member_profile_field:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Field labels */
.pmpro_member_profile_field_label {
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.5rem;
    display: block;
}

/* Field data/values */
.pmpro_member_profile_field_data {
    font-size: 1rem;
    line-height: 1.6;
    color: #212529;
    word-wrap: break-word;
}

.pmpro_member_profile_field_data a {
    color: #1a7a6d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pmpro_member_profile_field_data a:hover {
    color: #0d5d52;
    text-decoration: underline;
}

/* Display name styling */
.pmpro_member_profile_field-display_name {
    border-bottom: 2px solid #1a7a6d;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.pmpro_member_profile_field-display_name .pmpro_member_profile_field_label {
    display: none; /* Hide label for name */
}

.pmpro_member_profile_field-display_name h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
    line-height: 1.2;
}

/* Avatar styling */
.pmpro_member_profile_field-avatar {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pmpro_member_profile_field-avatar img {
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 192px;
    height: 192px;
    object-fit: cover;
}

/* Skills styling - pill badges */
.pmpro_member_profile_field_data span[style*="background:#f2f4f7"] {
    display: inline-block;
    background: #f2f4f7 !important;
    border-radius: 12px;
    padding: 6px 12px;
    margin: 4px 6px 4px 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
}

.pmpro_member_profile_field_data span[style*="background:#f2f4f7"]:hover {
    background: #e9ecef !important;
    transform: translateY(-1px);
}

/* Skill category fields */
.pmpro_member_profile_field[class*="skills_"] {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

.pmpro_member_profile_field[class*="skills_"] .pmpro_member_profile_field_label {
    color: #1a7a6d;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0.75rem;
}

.pmpro_member_profile_field[class*="skills_"] .pmpro_member_profile_field_data {
    margin-top: 0.5rem;
}

/* Email field */
.pmpro_member_profile_field-user_email .pmpro_member_profile_field_data {
    font-family: monospace;
    font-size: 0.95rem;
}

/* Level/Membership field */
.pmpro_member_profile_field-membership_name .pmpro_member_profile_field_data {
    font-weight: 600;
    color: #1a7a6d;
}

/* Date fields */
.pmpro_member_profile_field-membership_startdate .pmpro_member_profile_field_data,
.pmpro_member_profile_field-date_of_birth .pmpro_member_profile_field_data {
    font-weight: 500;
}

/* Bio/Description field */
.pmpro_member_profile_field-description {
    border-top: 2px solid #e9ecef;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.pmpro_member_profile_field-description .pmpro_member_profile_field_data {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #495057;
}

/* Card actions (View All Members, Edit Profile links) */
.pmpro_card_actions {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.pmpro_card_actions a {
    color: #1a7a6d;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
}

.pmpro_card_actions a:hover {
    background: #e9ecef;
    color: #0d5d52;
}

/* Responsive profile styling */
@media (max-width: 992px) {
    .pmpro-member-profile-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pmpro-member-profile-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .pmpro-member-profile-hero-info {
        text-align: center;
    }
    
    .pmpro-member-profile-contact-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .pmpro-member-profile-hero {
        padding: 2rem 1.5rem;
    }
    
    .pmpro-member-profile-content {
        padding: 1.5rem;
    }
    
    .pmpro-member-profile-name {
        font-size: 2rem;
    }
    
    .pmpro-member-profile-avatar img {
        width: 120px;
        height: 120px;
    }
    
    .pmpro-contact-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .pmpro_card_actions {
        padding: 1rem 1.5rem;
        flex-direction: column;
        align-items: stretch;
    }

    .pmpro_card_actions a {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pmpro-member-profile-hero {
        padding: 1.5rem 1rem;
    }
    
    .pmpro-member-profile-content {
        padding: 1rem;
    }
    
    .pmpro-member-profile-name {
        font-size: 1.75rem;
    }
    
    .pmpro-member-profile-title {
        font-size: 1.1rem;
    }
    
    .pmpro-member-profile-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .pmpro-contact-btn {
        flex: 1;
        justify-content: center;
        min-width: calc(50% - 0.5rem);
    }
    
    .pmpro-member-profile-section {
        padding: 1.25rem;
    }
}

