/**
 * Public styles for NDASA Member Directory
 */
wp-singular ndasa_member-template-default single single-ndasa_member postid-1003488 logged-in admin-bar wp-theme-Divi et_pb_button_helper_class et_fixed_nav et_show_nav et_primary_nav_dropdown_animation_fade et_secondary_nav_dropdown_animation_fade et_header_style_left et_pb_footer_columns4 et_cover_background et_pb_gutter linux et_pb_gutters3 et_right_sidebar et_divi_theme et-db ndasa-member-detail ndasa-member-3489 customize-support gecko

/* Member Directory Styles */
.ndasa-member-directory {
    max-width: 1200px;
    margin: 0 auto;
}

/* Search Form Styles */
.ndasa-search-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
}

.ndasa-search-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2em;
}

.ndasa-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-end;
}

.ndasa-search-field {
    flex: 1;
    min-width: 200px;
}

.ndasa-search-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.ndasa-search-field input[type="text"],
.ndasa-search-field input[type="search"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.ndasa-search-field input[type="text"]:focus,
.ndasa-search-field input[type="search"]:focus {
    border-color: #623B99;
    outline: none;
    box-shadow: 0 0 0 1px #623B99;
}

.ndasa-professionals-filter {
    flex: 1;
    min-width: 300px;
}

.ndasa-professionals-checkboxes {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    background: #fff;
}

.ndasa-professionals-checkboxes label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    cursor: pointer;
}

.ndasa-professionals-checkboxes input[type="checkbox"] {
    margin-right: 8px;
}

.ndasa-search-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.ndasa-search-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.ndasa-search-buttons .search-submit {
    background: #623B99;
    color: white;
}

.ndasa-search-buttons .search-submit:hover {
    background: #4a2d73;
}

.ndasa-search-buttons .search-reset {
    background: #666;
    color: white;
}

.ndasa-search-buttons .search-reset:hover {
    background: #444;
}

/* Results Info */
.ndasa-results-info {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

/* Member List Styles */
.ndasa-member-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ndasa-member-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s, transform 0.2s;
}

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

.ndasa-member-card h4 {
    margin: 0 0 10px 0;
    color: #623B99;
    font-size: 1.1em;
}

.ndasa-member-card h4 a {
    color: inherit;
    text-decoration: none;
}

.ndasa-member-card h4 a:hover {
    text-decoration: underline;
}

.ndasa-member-info {
    margin-bottom: 15px;
}

.ndasa-member-info p {
    margin: 5px 0;
    color: #555;
    font-size: 14px;
}

.ndasa-member-info .contact-name {
    font-weight: 600;
    color: #333;
}

.ndasa-member-info .location {
    color: #666;
}

.ndasa-member-info .phone {
    color: #666;
}

.ndasa-member-actions {
    text-align: right;
}

.ndasa-member-actions a {
    display: inline-block;
    padding: 8px 16px;
    background: #623B99;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 13px;
    transition: background-color 0.3s;
}

.ndasa-member-actions a:hover {
    background: #4a2d73;
    color: white !important;
}

/* Pagination Styles */
.ndasa-pagination {
    text-align: center;
    margin: 30px 0;
}

.ndasa-pagination a,
.ndasa-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #623B99 !important;
    border-radius: 4px;
    transition: all 0.3s;
}

.ndasa-pagination a:hover {
    background: #623B99;
    color: white !important;
    border-color: #623B99;
}

.ndasa-pagination .ndasa-pagination-current {
    background: #623B99;
    color: white !important;
    border-color: #623B99;
}

.ndasa-pagination .ndasa-pagination-dots {
    border: none;
    background: none;
    color: #666;
}

/* Member Detail Styles */
.post-type-archive-ndasa_member #main-content,
.ndasa_member-template-default #main-content {
    margin: 0 auto;
    padding: 30px;
    /* background: #fff; */
    /* max-width: 800px; */
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

.ndasa-member-detail h1 {
    color: #623B99;
    margin-bottom: 10px;
    border-bottom: 2px solid #623B99;
    padding-bottom: 10px;
}

.ndasa-member-detail .member-description {
    margin-bottom: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    font-style: italic;
    color: #555;
}

.ndasa-detail-section {
    margin-bottom: 30px;
}

.ndasa-detail-section h3 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.ndasa-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ndasa-detail-item {
    margin-bottom: 15px;
}

.ndasa-detail-item strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

.ndasa-detail-item span {
    color: #555;
}

.ndasa-detail-item a {
    color: #623B99;
    text-decoration: none;
}

.ndasa-detail-item a:hover {
    text-decoration: underline;
}

.ndasa-professionals-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ndasa-professionals-list li {
    background: #f0f8ff;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    border-left: 3px solid #623B99;
}

/* No Results Styles */
.ndasa-no-results {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

.ndasa-no-results h3 {
    margin-bottom: 10px;
    color: #333;
}

/* Loading Styles */
.ndasa-loading {
    text-align: center;
    padding: 40px;
    min-height: 200px;
    position: relative;
}

.ndasa-loading .ndasa-member-card {
    opacity: 0.3;
}

.ndasa-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #623B99;
    border-radius: 50%;
    animation: ndasa-spin 1s linear infinite;
    z-index: 10;
}

.ndasa-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 5;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .ndasa-search-row {
        flex-direction: column;
    }

    .ndasa-search-field,
    .ndasa-professionals-filter {
        min-width: 100%;
    }

    .ndasa-member-list {
        grid-template-columns: 1fr;
    }

    .ndasa-detail-grid {
        grid-template-columns: 1fr;
    }

    .ndasa-member-detail {
        padding: 20px;
        margin: 0 10px;
    }

    .ndasa-search-buttons {
        flex-direction: column;
    }

    .ndasa-search-buttons button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ndasa-search-form {
        padding: 15px;
    }

    .ndasa-member-card {
        padding: 15px;
    }

    .ndasa-member-detail {
        padding: 15px;
        margin: 0 5px;
    }

    .ndasa-pagination a,
    .ndasa-pagination span {
        padding: 6px 8px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .ndasa-search-form,
    .ndasa-pagination,
    .ndasa-member-actions {
        display: none;
    }

    .ndasa-member-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }

    .ndasa-member-detail {
        box-shadow: none;
        padding: 0;
    }
}

/* Accessibility Improvements */
.ndasa-search-form input:focus,
.ndasa-search-form button:focus,
.ndasa-member-actions a:focus,
.ndasa-pagination a:focus {
    outline: 2px solid #623B99;
    outline-offset: 2px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .ndasa-member-card {
        border-width: 2px;
    }

    .ndasa-search-form {
        border-width: 2px;
    }

    .ndasa-member-actions a,
    .ndasa-search-buttons button {
        border: 2px solid currentColor;
    }
}

/* Divi Member Integration Styles */
.ndasa-divi-member-content {
    margin: 2em 0;
}

.ndasa-divi-member-content h3 {
    color: #333;
    border-bottom: 2px solid #623B99;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
    font-size: 1.3em;
}

.ndasa-contact-info,
.ndasa-address-info,
.ndasa-services-info,
.ndasa-website-info {
    margin-bottom: 2em;
    padding: 1.5em;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid #623B99;
}

.ndasa-contact-info p,
.ndasa-address-info p,
.ndasa-services-info p,
.ndasa-website-info p {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.ndasa-contact-info a,
.ndasa-address-info a,
.ndasa-services-info a,
.ndasa-website-info a {
    color: #623B99;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ndasa-contact-info a:hover,
.ndasa-address-info a:hover,
.ndasa-services-info a:hover,
.ndasa-website-info a:hover {
    color: #4a2d73;
    text-decoration: underline;
}

/* Divi Theme Builder specific styles */
.et_pb_section .ndasa-divi-member-content {
    max-width: 100%;
}

.et_pb_row .ndasa-divi-member-content {
    width: 100%;
}

/* Responsive adjustments for Divi */
@media (max-width: 980px) {
    .ndasa-contact-info,
    .ndasa-address-info,
    .ndasa-services-info,
    .ndasa-website-info {
        padding: 1em;
        margin-bottom: 1.5em;
    }

    .ndasa-divi-member-content h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 767px) {
    .ndasa-divi-member-content {
        margin: 1em 0;
    }

    .ndasa-contact-info,
    .ndasa-address-info,
    .ndasa-services-info,
    .ndasa-website-info {
        padding: 0.8em;
        margin-bottom: 1em;
    }
}

/* Ensure compatibility with Divi's visual builder */
.et-fb .ndasa-divi-member-content {
    pointer-events: none;
}

.et-fb .ndasa-divi-member-content * {
    pointer-events: auto;
}


/* Breadcrumb Navigation */
.ndasa-breadcrumb {
    margin-bottom: 30px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.ndasa-breadcrumb .separator {
    margin: 0 8px;
    color: #666;
}

.ndasa-breadcrumb .current {
    color: #666;
    font-weight: normal;
}


.ndasa-member-detail .entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.ndasa-member-detail .entry-title {
    margin: 0;
    font-size: 2.5em;
    line-height: 1.2;
}

/* Member Detail Content */
.ndasa-member-detail-content {
    max-width: none;
}

/* Responsive Design for Detail Page */
@media (max-width: 768px) {
    .ndasa-member-detail .entry-title {
        font-size: 2em;
    }
}
