/* ==========================================================================
   DANH BẠ HỘI VIÊN - HERO BANNER & STATS
   ========================================================================== */

.member-hero-section {
    position: relative;
    width: 100%;
    min-height: 250px;
    background-color: #f0f4f8;
    display: flex;
    align-items: center;
    padding: 40px 0 70px;
    /* margin-bottom: 45px; */
}

/* Background Image & Overlay */
.member-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.member-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
}

.member-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 35%, rgb(255 255 255 / 0%) 60%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* Content Container */
.member-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.member-hero-content {
    max-width: 680px;
}

/* Breadcrumb */
.member-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 12px;
}

.member-breadcrumb a {
    color: #0d54a4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.member-breadcrumb a:hover {
    color: #002c52;
    text-decoration: underline;
}

.member-breadcrumb .divider {
    display: inline-flex;
    align-items: center;
    color: #9ca3af;
}

.member-breadcrumb .active {
    color: #002c52;
    font-weight: 600;
}

/* Title & Subtitles */
.member-hero-title {
    font-size: clamp(30px, 3.8vw, 44px);
    font-weight: 800;
    color: #002c52;
    line-height: 1.15;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.member-hero-subtitle {
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 700;
    color: #0d54a4;
    margin: 0 0 8px;
    line-height: 1.35;
}

.member-hero-desc {
    font-size: clamp(14px, 1.4vw, 16px);
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

/* Floating Stats Bar */
.member-stats-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(50%);
    z-index: 10;
}

.member-stats-bar {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 36px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 960px;
    margin: 0 auto;
    box-shadow: 0 14px 36px rgba(13, 84, 164, 0.1), 0 3px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.member-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    flex: 1;
}

.stat-icon {
    color: #0d54a4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.member-stat-item:hover .stat-icon {
    transform: scale(1.1);
}

.stat-icon svg {
    width: 35px;
    height: 35px;
}

.stat-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    color: #002c52;
    line-height: 1;
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 15px;
    color: #475569;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: #e2e8f0;
    margin: 0 12px;
    flex-shrink: 0;
}

/* ==========================================================================
   MEMBER DIRECTORY - FILTER & SEARCH SECTION
   ========================================================================== */

.member-directory-section {
    padding: 60px 0 70px;
    background-color: #f8fafc;
}

/* Row 1: Search Box & Dropdown Selects */
.member-filter-main {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.member-search-box {
    flex: 1;
    min-width: 280px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 4px 6px 4px 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    gap: 10px;
}

.member-search-box:focus-within {
    border-color: #0d54a4;
    box-shadow: 0 0 0 3px rgba(13, 84, 164, 0.1);
}

.member-search-box .search-icon {
    color: #0d54a4;
    /* margin-right: 10px; */
    flex-shrink: 0;
}

.member-search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: #0f172a;
    background: transparent;
    padding: 8px 0;
}

.member-search-input::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
}

.member-search-btn {
    background: #002c52;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.member-search-btn:hover {
    background: #0d54a4;
}

/* Dropdown Filters Group */
.member-dropdown-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.member-dropdown-item {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    min-width: 130px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease;
}

.member-dropdown-item:hover,
.member-dropdown-item:focus-within {
    border-color: #0d54a4;
}

.member-dropdown-item select {
    width: 100%;
    padding: 10px 32px 10px 14px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.member-dropdown-item .arrow-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
}

/* Row 2: Category Pills */
.member-category-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.member-category-pills::-webkit-scrollbar {
    display: none;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.pill-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.pill-btn.is-active {
    background: #002c52;
    color: #ffffff;
    border-color: #002c52;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 44, 82, 0.2);
}

.pill-more-btn {
    padding-right: 14px;
}

/* ==========================================================================
   MEMBER CARDS GRID (4 COLUMNS ON DESKTOP)
   ========================================================================== */

.member-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.member-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eef2f6;
    padding: 10px;
    display: flex;
    gap: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    min-width: 0;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(13, 84, 164, 0.09);
    border-color: #cbd5e1;
}

/* Card Avatar (Left) */
.member-card-avatar {
    width: 104px;
    min-width: 105px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.member-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.member-card:hover .member-card-avatar img {
    transform: scale(1.04);
}

/* Card Info (Right) */
.member-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.member-badge-row {
    margin-bottom: 4px;
}

.member-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #fef3c7;
    color: #b45309;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
}

.member-name {
    font-size: 16px;
    font-weight: 700;
    color: #002c52;
    margin: 0 0 2px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-position {
    font-size: 12.5px;
    color: #64748b;
    DISPLAY: NONE;
    margin: 0 0 2px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-company {
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    margin: 0 0 6px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-meta-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
}

.member-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-meta-item svg {
    color: #0d54a4;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Card Actions Row */
.member-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.btn-view-profile {
    padding: 5px 10px;
    background: #002c52;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.btn-view-profile:hover {
    background: #0d54a4;
    color: #ffffff;
}

.member-contact-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0d54a4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0;
}

.member-contact-btn:hover {
    background: #0d54a4;
    color: #ffffff;
    border-color: #0d54a4;
}

.member-contact-btn svg {
    width: 13px;
    height: 13px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
    .member-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .member-hero-section {
        min-height: 350px;
        padding: 45px 0 75px;
        margin-bottom: 40px;
    }

    .member-hero-overlay {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 50%, rgba(255, 255, 255, 0.6) 100%);
    }

    .member-stats-bar {
        max-width: 100%;
        padding: 14px 24px;
    }

    .stat-number {
        font-size: 19px;
    }

    .stat-label {
        font-size: 13.5px;
    }

    .stat-icon svg {
        width: 24px;
        height: 24px;
    }

    .member-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .member-hero-section {
        padding: 35px 0 65px;
        margin-bottom: 45px;
    }

    .member-stats-bar {
        padding: 12px 16px;
        border-radius: 14px;
        gap: 8px;
    }

    .member-stat-item {
        gap: 8px;
    }

    .stat-number {
        font-size: 17px;
    }

    .stat-label {
        font-size: 12.5px;
    }

    .stat-icon svg {
        width: 22px;
        height: 22px;
    }

    .stat-divider {
        margin: 0;
        height: 26px;
    }

    .member-filter-main {
        flex-direction: column;
        align-items: stretch;
    }

    .member-dropdown-group {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .member-dropdown-item {
        min-width: 100%;
    }

    .member-directory-section {
        padding: 30px 0;
    }
}

@media (max-width: 576px) {
    .member-hero-title {
        font-size: 26px;
    }

    .member-hero-subtitle {
        font-size: 18px;
    }

    .member-hero-desc {
        font-size: 13px;
    }

    .member-stats-bar {
        padding: 10px 8px;
    }

    .stat-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 11.5px;
    }

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

    .member-card-avatar {
        width: 95px;
        min-width: 95px;
        height: 130px;
    }
}

/* ==========================================================================
   MEMBER CTA BANNER ("BẠN CHƯA CÓ TRONG DANH BẠ?")
   ========================================================================== */

.member-cta-section {
    background-color: #f8fafc;
    position: relative;
    padding: 24px 0;
}

.member-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Bottom decorative wave curve */
.member-cta-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    pointer-events: none;
    z-index: 1;
}

.member-cta-waves svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Left Column: Icon + Heading */
.member-cta-left {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.member-cta-icon {
    width: 52px;
    height: 52px;
    color: #c28b38;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.member-cta-icon svg {
    width: 100%;
    height: 100%;
}

.member-cta-heading {
    display: flex;
    flex-direction: column;
}

.member-cta-sub {
    font-size: 12.5px;
    font-weight: 700;
    color: #002c52;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.member-cta-title {
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 800;
    color: #002c52;
    margin: 0;
    line-height: 1.25;
}

/* Center Column: Description */
.member-cta-center {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 480px;
}

.member-cta-desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

/* Right Column: CTA Button */
.member-cta-right {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.btn-cta-register {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--color-3);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(184, 130, 46, 0.35);
    transition: all 0.25s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-cta-register:hover {
    background: #0b4d97;
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-cta-register:active {
    transform: translateY(0);
}

.btn-cta-register svg {
    transition: transform 0.2s ease;
}

.btn-cta-register:hover svg {
    transform: translateX(3px);
}

/* Responsive CTA */
@media (max-width: 992px) {
    .member-cta-banner {
        flex-wrap: wrap;
        padding: 22px 24px;
        gap: 16px;
    }

    .member-cta-center {
        max-width: 100%;
        order: 3;
        width: 100%;
    }

    .member-cta-right {
        order: 2;
    }
}

@media (max-width: 768px) {
    .member-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 5px;
    }

    .member-cta-left {
        width: 100%;
    }

    .member-cta-center {
        width: 100%;
    }

    .member-cta-right {
        width: 100%;
    }

    .btn-cta-register {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}
