/* Grid */
.abc-modais-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.abc-modal-trigger {
    background-color: #c04e01;
    /* Orange from screenshot */
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: none;
    /* Keep natural case */
    font-weight: 500;
}

.abc-modal-trigger:hover {
    background-color: #a03e01;
    color: #fff;
}

/* Modal Overlay */
.abc-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    /* Ultra high z-index */
    cursor: pointer;
}

/* Modal Window */
.abc-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    background: #fff;
    z-index: 999999;
    /* Ultra high z-index */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    max-height: 90vh;
    /* overflow-y: auto; REMOVED */
    overflow: hidden;
    /* Hide container overflow */
    /* display: flex; REMOVED to prevent auto-open, handled in JS or via helper */
    /* flex-direction: column; REMOVED, will apply when visible */
    /* Global Box Sizing Reset for Modal */
    box-sizing: border-box;
}

.abc-modal * {
    box-sizing: border-box;
}

.abc-modal-content {
    padding: 0;
    /* Layout handled by children */
    position: relative;
    width: 100%;
    /* Ensure full width */
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

/* Header */
.abc-modal-header {
    margin-bottom: 0;
    border-bottom: 2px solid #ddd;
    padding: 30px 50px 20px 30px;
    /* Extra right padding for close button safety */
    background: #fff;
    flex-shrink: 0;
    /* Prevent shrinking */
    z-index: 5;
}

.abc-members-list {
    overflow-y: auto;
    /* Scroll only the list */
    padding: 20px 30px 30px 30px;
    flex-grow: 1;
    /* Take remaining height */
    /* Custom Scrollbar for nicer look */
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}

.abc-members-list::-webkit-scrollbar {
    width: 8px;
}

.abc-members-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.abc-members-list::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.abc-modal-header h2 {
    margin: 0;
    color: #000;
    font-size: 28px;
    font-weight: bold;
}

.abc-contact-link {
    color: #c04e01;
    text-decoration: underline;
    font-size: 14px;
    display: inline-block;
    margin-top: 5px;
}

/* Close Button */
.abc-modal-close {
    position: absolute;
    top: 15px;
    /* More breathing room */
    right: 15px;
    background: transparent !important;
    /* Clean start */
    border: none;
    font-size: 28px;
    color: #c04e01 !important;
    /* Subtle default */
    cursor: pointer;
    line-height: 1;
    z-index: 100;
    /* Ensure on top of modal elements */
    width: 32px;
    height: 32px;
    display: flex;
    /* Centering */
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    /* Slight roundness for hover */
    transition: all 0.2s ease;
    padding: 0;
}

.abc-modal-close:hover {
    color: #c04e01 !important;
    /* Brand color on hover */
    background: transparent !important;
    /* Very subtle background on hover */
}

/* Members List */
.abc-member-card {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.abc-member-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.abc-member-photo {
    flex: 0 0 150px;
}

.abc-member-photo img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.abc-member-info h3 {
    margin: 0 0 5px 0;
    color: #000;
    font-size: 22px;
    font-weight: bold;
}

.abc-member-info h3 a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
}

.abc-member-info h3 a:hover {
    color: #c04e01;
}

.abc-member-role {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.abc-member-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.abc-member-desc a {
    color: #c04e01;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .abc-member-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .abc-member-photo {
        flex: 0 0 auto;
        width: 150px;
    }
}

/* Group Header */
.abc-group-header {
    background: #f1f1f1;
    padding: 10px 15px;
    margin: 30px 0 20px 0;
    border-left: 5px solid #c04e01;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}