* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 0px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-top: 5%;
}

.header h1 {
    font-size: 32px;
    color: #333;
    font-weight: 600;
}

.filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 15px;
    margin-bottom:-25px !important;
}

.filter-select {
    padding: 12px 36px 12px 16px;
    border: 1px solid #ddd;
    width: 400px;
    font-size: 14px;
    outline: none;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 24px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-select:hover {
    border-color: #999;
}

.filter-select:focus {
    border-color: #666;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.search-btn {
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    background: #b31f36;
    border-radius: 0px;
    height: 48px;
    line-height: 50px;
}

.search-btn:hover {
    color: #ffffff;
    background: #b31f36;
}

.column-headers {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr 162px;
    gap: 15px;
    padding: 0 15px 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.header-item {
    color: #323232;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: Inter;
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;

}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 10px;    
    margin: 0 25px !important;
}

.member-card {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr 162px;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 0px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.member-name {
    font-weight: 600;
    color: #323232;
    font-family: Montserrat;
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;

}

.member-type,
.member-location {
    color: #323232;
    font-family: Montserrat;
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;

}

.open-profile {
    border: none;
    padding: 0px 8px;
    cursor: pointer;
    width: 100%;
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    background: #b31f36;
    border-radius: 0px;
    height: 50px;
    line-height: 50px;
    margin-bottom: 0px !important;
}

.open-profile:hover {
    background-color: #B31F36 !important;
}

.open-profile a{
    color: white !important;
}

@media (max-width: 968px) {
    .column-headers {
        display: none;
    }

    .member-card {
        grid-template-columns: 60px 1fr auto;
    }

    .member-type,
    .member-location {
        display: none;
    }
}

@media (max-width: 480px) {
    .filters {
        flex-direction: column;
        padding: 12px;
    }

    .filter-select {
        width: 100%;
    }

    .member-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 8px;
        padding: 12px;
    }

    .member-avatar {
        margin: 0 auto;
    }

    .member-type,
    .member-location {
        display: block;
    }

    .open-profile {
        width: 100%;
    }
}

.pagination {
    justify-content: center !important;
    margin-top:30px !important;
}

.member-count {
    text-align: center;
    margin-bottom: 2rem;
}

.count {
    color: #A31F34;
    margin-right: 0.5rem;
    font-family: Playfair Display;
    font-size: 50px;
    font-style: italic;
    font-weight: 700;
    line-height: 100px;
}

.member-count .label{
    font-size: 22px;
    font-weight: 600;
    line-height: 25px;
}


















/* Overlay background */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal container */
.modal {
    background: #F0EDE8;
    padding: 70px;
    width: 90%;
    position: relative;
    text-align: center;
    max-width: 710px;
    height: 361px;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 5px;
    border-radius:0px !important;
}

.close-btn svg {
    width: 24px;
    height: 24px;
    color: #323232;
    transition: color 0.2s;
}
.close-btn:hover {
    color: #323232;
    background: none;
}

.close-btn:hover svg {
    color: #323232;
    background: none;
}

/* Modal heading */
.modal-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal text */
.modal-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Button container */
.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.modal-btn {
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius:0px !important;
}

.login-btn {
    width: 100%;
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    background: #b31f36;
    border-radius: 0px;
    height: 50px;
    line-height: 50px;
}

.signup-btn {
    width: 100%;
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    background: #b31f36;
    border-radius: 0px;
    height: 50px;
    line-height: 50px;
}

.modal-btn:hover {
    background-color: #C41E3A;
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    .modal {
        padding: 30px 20px;
        width: 95%;
        margin: 20px;
    }

    .button-container {
        flex-direction: column;
        gap: 10px;
    }

    .modal-btn {
        width: 100%;
    }

    .modal-title {
        font-size: 24px;
    }
}

@media (max-width: 400px) {
    .filter-select {
        height: 4rem !important;
    }
}