/* Members Page Specific Styles */

.members-hero-banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .members-hero-banner {
        height: 500px;
    }
}

.members-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hero Title Styling */
.hero-title-container {
    position: absolute;
    left: 0;
    width: auto;
    z-index: 20;
    bottom: 40px;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(24px, 4vw, 42px); /* Scales smoothly across breakpoints */
    line-height: 1.2;
    letter-spacing: -1px;
    color: #444444;
    margin: 0;
}

.hero-title span {
    font-weight: 600;
    color: #cc2128;
}

@media (max-width: 768px) {
    .hero-title-container {
        left: 0;
        bottom: 2% !important;
        margin-top: 32px;
    }

    .hero-title {
        font-size: clamp(16px, 4.5vw, 22px); 
    }
}

/* Search and Filter Styles */
.search-area {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 672px;
    max-width: 100%;
}

.search-container {
    background: #F3F4F6;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    flex: 1;
    height: 50px;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.search-input {
    flex-grow: 1;
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    padding: 10px 0;
    font-size: 16px;
    color: #333;
    background: transparent;
}

.search-btn {
    background: #C8141E;
    color: white;
    width: 53px;
    height: 50px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-btn:hover {
    background: #b01c22;
    transform: scale(1.05);
}

.filter-area {
    display: flex;
    align-items: center;
    gap: 23px;
    width: 239px;
    max-width: 100%;
}

@media (max-width: 768px) {
    .filter-area {
        width: 100%;
        gap: 12px;
    }
}

.filter-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C8141E;
    flex-shrink: 0;
}

.filter-select {
    background: #F3F4F6 url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center;
    background-size: 12px;
    border: none;
    border-radius: 12px;
    padding: 10px 42px 10px 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    height: 50px;
    flex: 1;
    width: 100%;
    min-width: 0;
    color: #666;
    outline: none;
    cursor: pointer;
}

/* Custom Scrollbar for Dropdown */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 20px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

/* Member Card Styles */
.member-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 380px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-image-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f3f4f6;
    border-radius: 24px;
    margin-bottom: 16px;
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
}

.member-card:hover .member-image {
    transform: scale(1.08);
}

.member-info {
    padding: 0;
    text-align: center;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
}

.member-name {
    color: #cc2128;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
}

.member-business {
    color: #333;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.member-profession {
    color: #666;
    font-size: 14px;
    font-weight: 400;
}