/* --- Hero Banner --- */
.members-hero {
    background: linear-gradient(rgba(0, 34, 68, 0.9), rgba(0, 34, 68, 0.9)), 
                url('https://images.unsplash.com/photo-1557426272-fc759fdf7a8d?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    padding: 6rem 0;
    text-align: center;
    color: #ffffff;
    border-bottom: 5px solid #d9232d;
}

.members-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.members-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #e6f2ff;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: #d9232d;
    margin: 1.5rem auto;
}

/* --- Directory Header & Intro --- */
.directory-header-section {
    padding: 4rem 0 2rem;
    background-color: #f9f9f9;
}

.directory-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.directory-intro h2 {
    color: #002244;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.directory-intro p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.update-date {
    color: #d9232d !important;
    font-weight: 600;
}

/* --- Search Bar Styling --- */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3rem;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-container input:focus {
    border-color: #002244;
    box-shadow: 0 6px 20px rgba(0, 34, 68, 0.15);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #888;
}

/* --- Members Grid Section --- */
.members-grid-section {
    padding: 2rem 0 6rem;
    background-color: #f9f9f9;
}

.members-grid {
    display: grid;
    /* Automatically creates as many columns as fit, down to 320px wide */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #002244;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    border-left-color: #d9232d;
}

.check-icon {
    background-color: #e6f7eb;
    color: #28a745;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.portal-name {
    font-weight: 600;
    color: #333;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}