/* ═══════════════════════════════════════════════════════════
   FECE NEPAL – MEMBERS DIRECTORY
   Reference: fncci.org/province-chapter-295.html
   Brand system:
     #f0f2f6   page bg
     #ffffff   surface / card
     #1a2744   dark navy – headings, bold text
     #0d1b3e   deep navy – hero bg
     #c8102e   red accent
     #6b7a8d   body / secondary text
     #9aabb8   muted / labels
     #e2e8f0   borders
     #f8f9fc   subtle bg fill
═══════════════════════════════════════════════════════════ */
  /* *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Inter', sans-serif;
    background: #f0f2f6;
    color: #6b7a8d;
    -webkit-font-smoothing: antialiased;
  } */

  /* ══════════ NAV ══════════ */
  /* .nav {
    background: #fff; border-bottom: 1px solid #e2e8f0;
    padding: 0 48px; height: 68px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 300;
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
  } */
  .nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .nav-logo-icon {
    width: 42px; height: 42px; background: #c8102e; border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 800; color: #fff; letter-spacing: 1px; flex-shrink: 0;
  }
  .logo-text { display: flex; flex-direction: column; line-height: 1; }
  .logo-brand { font-size: 18px; font-weight: 800; color: #1a2744; letter-spacing: .3px; }
  .logo-brand em { color: #c8102e; font-style: normal; }
  .logo-tagline { font-size: 8px; color: #9aabb8; margin-top: 2px; font-weight: 500; }
  .nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
  .nav-links a {
    font-size: 12px; font-weight: 600; color: #1a2744; text-decoration: none;
    padding: 6px 10px; border-radius: 4px; letter-spacing: .2px;
    transition: color .15s; opacity: .75;
  }
  .nav-links a:hover { color: #c8102e; opacity: 1; }
  .nav-links a.active { color: #c8102e; opacity: 1; }

  /* ══════════ BREADCRUMB ══════════ */
  .breadcrumb {
    background: #fff; border-bottom: 1px solid #e2e8f0;
    padding: 12px 48px;
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 500;
  }
  .breadcrumb a { color: #1a2744; text-decoration: none; transition: color .14s; }
  .breadcrumb a:hover { color: #c8102e; }
  .breadcrumb .sep { color: #ced5e0; }
  .breadcrumb .cur { color: #c8102e; font-weight: 600; }

  /* ══════════ HERO ══════════ */
  .hero-md {
    background: #0d1b3e; border-bottom: 3px solid #c8102e;
        padding: 92px 440px 92px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
    position: relative; overflow: hidden;
  }
  .hero-md::after {
    content: ''; position: absolute; top: -80px; right: -80px;
    width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle, rgba(200,16,46,.1) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero-eyebrow {
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  }
  .hero-eyebrow-line { width: 26px; height: 2px; background: #c8102e; flex-shrink: 0; }
  .hero-eyebrow-text {
    font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; color: #c8102e;
  }
  .md-intro-title {
        font-family: var(--font-family-secondary);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.08;
    /* opacity: 0; */
    transform: translateY(24px);
    animation: cbi-fadeUp 0.7s ease forwards 0.2s;
    margin-bottom: 40px;
  }
  .md-intro-title span { color: #c8102e; display: block; }
  .md-intro-title em {
    font-style: normal;
    color: var(--red);
}
  .hero-desc { font-size: 14px; line-height: 1.72; color: #7a8ba8; max-width: 380px; }

  /* Stats chips in hero */
  .hero-stats {
    display: flex; flex-direction: column; gap: 16px; align-items: flex-end;
    position: relative; z-index: 1;
  }
  .hero-stat-row { display: flex; gap: 14px; }
  .stat-chip {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px; padding: 18px 24px; text-align: center; min-width: 110px;
  }
  .stat-chip-n {
    font-size: 36px; font-weight: 900; color: #fff; line-height: 1;
    letter-spacing: -1px;
  }
  .stat-chip-n span { color: #c8102e; }
  .stat-chip-l { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.5); margin-top: 4px; letter-spacing: .5px; }

  /* ══════════ PAGE LAYOUT ══════════ */
  .page-wrap {
    max-width: 1200px; margin: 0 auto;
    padding: 40px 48px 100px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px; align-items: start;
  }

  /* ══════════ SIDEBAR FILTERS ══════════ */
  .sidebar {
    position: sticky; top: 92px;
    display: flex; flex-direction: column; gap: 16px;
  }
  .filter-card {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; overflow: hidden;
  }
  .filter-card-head {
    padding: 14px 18px; border-bottom: 1px solid #f0f2f6;
    display: flex; align-items: center; justify-content: space-between;
  }
  .filter-card-head h3 {
    font-size: 11px; font-weight: 800; color: #1a2744;
    letter-spacing: 1px; text-transform: uppercase;
  }
  .filter-clear {
    font-size: 10px; font-weight: 700; color: #c8102e;
    cursor: pointer; background: none; border: none;
    font-family: 'Inter', sans-serif; padding: 0;
  }
  .filter-card-body { padding: 12px 16px; }

  /* Search in sidebar */
  .sidebar-search {
    display: flex; align-items: center; gap: 8px;
    background: #f8f9fc; border: 1.5px solid #e2e8f0;
    border-radius: 8px; padding: 9px 12px;
    transition: border-color .15s; margin-bottom: 0;
  }
  .sidebar-search:focus-within { border-color: #1a2744; background: #fff; }
  .sidebar-search svg { width: 13px; height: 13px; stroke: #9aabb8; fill: none; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
  .sidebar-search input {
    border: none; outline: none; background: transparent;
    font-size: 12.5px; font-family: 'Inter', sans-serif; color: #1a2744; width: 100%;
  }
  .sidebar-search input::placeholder { color: #9aabb8; }

  /* Filter option rows */
  .filter-option {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 2px; cursor: pointer;
    border-bottom: 1px solid #f8f9fc;
  }
  .filter-option:last-child { border-bottom: none; }
  .filter-option-left { display: flex; align-items: center; gap: 9px; }
  .filter-checkbox {
    width: 16px; height: 16px; border-radius: 4px;
    border: 1.5px solid #ced5e0; background: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all .14s; cursor: pointer;
  }
  .filter-checkbox.checked { background: #1a2744; border-color: #1a2744; }
  .filter-checkbox.checked::after { content: '✓'; color: #fff; font-size: 10px; font-weight: 700; }
  .filter-option-label {
    font-size: 13px; font-weight: 500; color: #1a2744; cursor: pointer;
  }
  .filter-option-count {
    font-size: 10.5px; font-weight: 700; color: #9aabb8;
    background: #f0f2f6; padding: 2px 8px; border-radius: 10px;
  }

  /* Province filter pills */
  .province-pills { display: flex; flex-direction: column; gap: 4px; }
  .province-pill {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px; border-radius: 7px; cursor: pointer;
    font-size: 12.5px; font-weight: 600; color: #6b7a8d;
    border: 1.5px solid transparent; transition: all .15s;
  }
  .province-pill:hover { background: #f0f2f6; color: #1a2744; }
  .province-pill.active { background: #1a2744; color: #fff; border-color: #1a2744; }
  .province-pill .p-count {
    font-size: 10.5px; font-weight: 700;
    background: rgba(255,255,255,.18); padding: 2px 8px; border-radius: 10px;
  }
  .province-pill:not(.active) .p-count { background: #f0f2f6; color: #9aabb8; }

  /* ══════════ MAIN CONTENT ══════════ */
  .main-col {}

  /* Toolbar above list */
  .main-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
  }
  .result-info { font-size: 13px; font-weight: 500; color: #6b7a8d; }
  .result-info strong { color: #1a2744; font-weight: 800; }
  .sort-row { display: flex; align-items: center; gap: 8px; }
  .sort-label { font-size: 11.5px; font-weight: 600; color: #9aabb8; }
  .sort-select {
    padding: 7px 12px; border: 1.5px solid #e2e8f0; border-radius: 7px;
    font-size: 12px; font-weight: 600; color: #1a2744; background: #fff;
    font-family: 'Inter', sans-serif; cursor: pointer; outline: none;
    transition: border-color .15s;
  }
  .sort-select:focus { border-color: #1a2744; }
  /* View toggle */
  .view-toggle { display: flex; gap: 4px; }
  .view-btn {
    width: 32px; height: 32px; border-radius: 6px;
    border: 1.5px solid #e2e8f0; background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .14s;
  }
  .view-btn.active { background: #1a2744; border-color: #1a2744; }
  .view-btn svg { width: 15px; height: 15px; stroke: #6b7a8d; fill: none; stroke-width: 1.8; stroke-linecap: round; }
  .view-btn.active svg { stroke: #fff; }

  /* ══════════ PROVINCE GROUP HEADER ══════════ */
  .province-group { margin-bottom: 36px; }
  .province-group:last-child { margin-bottom: 0; }
  .province-group-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
    background: #1a2744; border-radius: 10px 10px 0 0;
    border: 1px solid #1a2744;
  }
  .province-group-left {}
  .province-name {
    font-size: 16px; font-weight: 800; color: #fff;
    letter-spacing: -.2px;
  }
  .province-sub { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 2px; }
  .province-badge {
    display: flex; align-items: center; gap: 8px;
  }
  .province-count-badge {
    padding: 5px 14px; border-radius: 20px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
    font-size: 11px; font-weight: 700; color: rgba(255,255,255,.8);
    letter-spacing: .5px;
  }

  /* ══════════ MEMBER CARDS CONTAINER ══════════ */
  .member-list {
    border: 1px solid #e2e8f0; border-top: none;
    border-radius: 0 0 10px 10px; overflow: hidden;
    background: #fff;
  }

  /* ══════════ MEMBER CARD (list view) ══════════ */
  .member-card {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 0;
    padding: 22px 24px;
    border-bottom: 1px solid #f0f2f6;
    transition: background .14s;
    position: relative;
    align-items: flex-start;
    text-decoration: none;
    cursor: pointer;
  }
  .member-card:last-child { border-bottom: none; }
  .member-card:hover { background: #fafbfc; }
  .member-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: #c8102e; opacity: 0; transition: opacity .15s;
    border-radius: 0;
  }
  .member-card:hover::before { opacity: 1; }

  /* Avatar / initials */
  .member-avatar {
    width: 42px; height: 42px; border-radius: 10px;
    background: #f0f2f6; border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; color: #1a2744;
    flex-shrink: 0; margin-top: 1px;
    letter-spacing: -.5px;
    transition: background .14s;
  }
  .member-card:hover .member-avatar { background: #1a2744; color: #fff; }

  /* Main info block */
  .member-info { padding: 0 20px; }
  .member-name {
    font-size: 15px; font-weight: 800; color: #1a2744;
    margin-bottom: 2px; line-height: 1.2;
    transition: color .14s;
  }
  .member-card:hover .member-name { color: #c8102e; }
  .member-reg {
    font-size: 10.5px; font-weight: 600; color: #9aabb8;
    letter-spacing: .5px; text-transform: uppercase;
    margin-bottom: 10px;
  }

  /* Contact row */
  .member-contacts {
    display: flex; flex-wrap: wrap; gap: 6px 18px;
    margin-bottom: 10px;
  }
  .contact-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 12.5px; color: #6b7a8d; font-weight: 500;
    white-space: nowrap;
  }
  .contact-item svg { width: 12px; height: 12px; stroke: #9aabb8; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
  .contact-item a { color: #6b7a8d; text-decoration: none; transition: color .13s; }
  .contact-item a:hover { color: #c8102e; }

  /* Leadership table inside card */
  .member-leaders {
    margin-top: 12px; display: flex; flex-direction: column; gap: 0;
    border: 1px solid #f0f2f6; border-radius: 8px; overflow: hidden;
  }
  .leader-row {
    display: grid; grid-template-columns: 150px 1fr 1fr;
    gap: 0; padding: 9px 14px;
    border-bottom: 1px solid #f8f9fc;
    align-items: center;
  }
  .leader-row:last-child { border-bottom: none; }
  .leader-row:nth-child(even) { background: #fafbfc; }
  .leader-role {
    font-size: 11px; font-weight: 700; color: #9aabb8;
    letter-spacing: .5px; text-transform: uppercase;
  }
  .leader-name { font-size: 13px; font-weight: 700; color: #1a2744; }
  .leader-phone { font-size: 12px; color: #6b7a8d; text-align: right; }

  /* Right meta column */
  .member-meta {
    display: flex; flex-direction: column; gap: 8px;
    align-items: flex-end; flex-shrink: 0; padding-top: 1px;
  }
  .status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 11px; border-radius: 20px;
    font-size: 10.5px; font-weight: 700;
  }
  .status-badge::before { content: '●'; font-size: 7px; }
  .status-active   { background: #e8f5ee; color: #1a7a46; }
  .status-inactive { background: #feeaea; color: #b01c1c; }
  .member-type-tag {
    font-size: 10px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: #9aabb8;
    background: #f0f2f6; padding: 3px 9px; border-radius: 4px;
  }
  .member-since {
    font-size: 11px; font-weight: 500; color: #9aabb8;
    display: flex; align-items: center; gap: 4px;
  }
  .member-since svg { width: 11px; height: 11px; stroke: #ced5e0; fill: none; stroke-width: 2; stroke-linecap: round; }

  /* Expand button */
  .expand-btn {
    display: flex; align-items: center; gap: 5px;
    font-size: 11.5px; font-weight: 700; color: #c8102e;
    background: none; border: none; cursor: pointer;
    font-family: 'Inter', sans-serif; padding: 0;
    margin-top: 4px; transition: gap .14s;
  }
  .expand-btn:hover { gap: 8px; }
  .expand-btn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; }

  /* Expandable leadership panel */
  .member-leaders-wrap {
    display: none; padding: 0 24px 20px;
    background: #fafbfc; border-bottom: 1px solid #f0f2f6;
  }
  .member-leaders-wrap.open { display: block; }
  .member-leaders-wrap:last-child { border-bottom: none; }
  .leaders-heading {
    font-size: 10px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: #9aabb8;
    margin-bottom: 10px; padding-top: 18px;
    border-top: 1px solid #e2e8f0;
  }
  .leaders-table {
    width: 100%; border-collapse: collapse;
    border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden;
  }
  .leaders-table th {
    background: #f0f2f6; padding: 9px 14px; text-align: left;
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: #9aabb8;
    border-bottom: 1px solid #e2e8f0;
  }
  .leaders-table td {
    padding: 11px 14px; font-size: 13px; color: #1a2744;
    border-bottom: 1px solid #f0f2f6; vertical-align: middle;
  }
  .leaders-table tbody tr:last-child td { border-bottom: none; }
  .leaders-table tbody tr:hover td { background: #f8f9fc; }
  .leaders-table .role-cell {
    font-weight: 700; color: #6b7a8d; font-size: 12px;
  }
  .leaders-table .name-cell { font-weight: 700; color: #1a2744; }
  .leaders-table .phone-cell, .leaders-table .email-cell { color: #6b7a8d; font-size: 12.5px; }
  .leaders-table .email-cell a { color: #c8102e; text-decoration: none; }
  .leaders-table .email-cell a:hover { text-decoration: underline; }

  /* ══════════ GRID VIEW ══════════ */
  .member-list.grid-view {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 0; border: none; background: transparent;
  }
  .member-list.grid-view .member-card {
    border: 1px solid #e2e8f0; border-radius: 10px;
    grid-template-columns: 1fr; background: #fff;
  }
  .member-list.grid-view .member-card::before {
    width: 100%; height: 3px; top: 0; left: 0; bottom: auto;
    border-radius: 10px 10px 0 0;
  }
  .member-list.grid-view .member-meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .member-list.grid-view .member-avatar { display: none; }
  .member-list.grid-view .member-info { padding: 0; }

  /* ══════════ EMPTY STATE ══════════ */
  .empty-state {
    display: none; text-align: center; padding: 80px 20px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 0 0 10px 10px;
  }
  .empty-state.show { display: block; }
  .empty-state svg { width: 40px; height: 40px; stroke: #ced5e0; fill: none; stroke-width: 1.5; margin-bottom: 14px; }
  .empty-state h3 { font-size: 16px; font-weight: 700; color: #1a2744; margin-bottom: 6px; }
  .empty-state p { font-size: 13px; color: #9aabb8; }

  /* ══════════ JOIN CTA STRIP ══════════ */
  .join-strip {
    margin-top: 48px; background: #0d1b3e; border-radius: 14px;
    padding: 36px 40px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; position: relative; overflow: hidden;
  }
  .join-strip::after {
    content: ''; position: absolute; right: -40px; top: -40px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(200,16,46,.12); pointer-events: none;
  }
  .join-strip-text {}
  .join-strip h3 { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 6px; }
  .join-strip p { font-size: 13.5px; color: rgba(255,255,255,.55); line-height: 1.6; }
  .join-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 8px;
    background: #c8102e; color: #fff; border: none;
    font-size: 13px; font-weight: 700; cursor: pointer;
    font-family: 'Inter', sans-serif; white-space: nowrap;
    transition: background .15s; letter-spacing: .3px;
    text-decoration: none; flex-shrink: 0; position: relative; z-index: 1;
  }
  .join-btn:hover { background: #a80d25; }
  .join-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

  /* ══════════ TOAST ══════════ */
  .toast {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(14px);
    background: #1a2744; color: #fff; padding: 11px 22px; border-radius: 8px;
    font-size: 13px; font-weight: 600; opacity: 0; transition: all .27s; z-index: 9999;
    pointer-events: none; white-space: nowrap; box-shadow: 0 4px 20px rgba(0,0,0,.25);
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  /* ══════════ RESPONSIVE ══════════ */
  @media (max-width: 1024px) {
    .page-wrap { grid-template-columns: 1fr; }
    .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; }
    .hero-md { grid-template-columns: 1fr; gap: 24px; padding: 36px 24px; }
    .hero-stats { align-items: flex-start; }
    .hero-stat-row { flex-wrap: wrap; }
  }
  @media (max-width: 768px) {
    .nav { padding: 0 20px; }
    .nav-links { display: none; }
    .breadcrumb { padding: 11px 20px; }
    .page-wrap { padding: 24px 20px 60px; }
    .hero-md { padding: 36px 20px; }
    .md-intro-title { font-size: 30px; }
    .member-card { grid-template-columns: 1fr; }
    .member-avatar { display: none; }
    .member-meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .sidebar { grid-template-columns: 1fr; }
    .member-list.grid-view { grid-template-columns: 1fr; }
    .join-strip { flex-direction: column; }
    .leader-row { grid-template-columns: 130px 1fr; }
    .leader-phone { display: none; }
  }

  /* Image avatar for orgs that have a logo */
.member-avatar-img {
    padding: 0;
    overflow: hidden;
    background: #f0f2f5;
}
.member-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}