/* Public site UI. Loaded once from includes/header.php. */
.navbar { background-color: #C62828; }
.navbar-nav .nav-item { margin-right: 10px; }
.navbar-nav .nav-item:last-child { margin-right: 0; }
.navbar .nav-link,
.navbar .navbar-brand {
  color: #fff !important;
  font-weight: 600;
  text-transform: uppercase;
}
.navbar .dropdown-menu { background-color: #fff; }
.navbar .dropdown-item { color: #000 !important; }
.navbar .dropdown-item:hover { background-color: #f8f9fa; }
.navbar-toggler { border-color: #fff; }
.navbar-toggler-icon { filter: invert(1); }
.logo-img { height: 50px; }
.dropdown-menu { border-radius: 5px !important; }
.custom-toggler {
  border-radius: 0 !important;
  border: 2px solid white;
  padding: 6px 10px;
}
.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  width: 30px;
  height: 30px;
}
.navbar-brand img { max-height: 65px; }

.members-section {
        padding: 70px 0 90px;
        background: #f7f8fb;
    }
    .members-intro {
        text-align: center;
        margin-bottom: 36px;
    }
    .members-intro p {
        color: #6b7280;
        max-width: 640px;
        margin: 10px auto 0;
    }
    .country-search {
        max-width: 420px;
        margin: 0 auto 36px;
    }
    .country-search input {
        width: 100%;
        padding: 12px 20px;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        font-size: 14px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    }
    .country-search input:focus {
        outline: none;
        border-color: #1e3a8a;
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
    }
    .country-flags-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px;
    }
    .country-flag-card {
        background: #fff;
        border-radius: 18px;
        padding: 28px 16px 22px;
        text-align: center;
        text-decoration: none !important;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
        border: 1px solid #eef0f4;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        display: block;
        color: inherit;
    }
    .country-flag-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    }
    .flag-circle {
        width: 118px;
        height: 118px;
        margin: 0 auto 16px;
        border-radius: 50%;
        overflow: hidden;
        background: #f3f4f6;
        border: 6px solid #f8fafc;
        box-shadow: 0 0 0 1px #e5e7eb;
    }
    .flag-circle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .country-flag-card h4 {
        font-size: 16px;
        font-weight: 700;
        color: #1e1b4b;
        margin: 0 0 4px;
        text-transform: capitalize;
    }
    .country-flag-card .continent {
        font-size: 12px;
        letter-spacing: 1.4px;
        text-transform: uppercase;
        color: #9ca3af;
        font-weight: 600;
        margin: 0;
    }
    .empty-members {
        text-align: center;
        color: #6b7280;
        padding: 40px 0;
        grid-column: 1 / -1;
    }
    @media (max-width: 991.98px) {
        .country-flags-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 575.98px) {
        .country-flags-grid { grid-template-columns: 1fr; }
        .flag-circle { width: 100px; height: 100px; }
    }

.mp-page { background: #f6f7fb; padding: 48px 0 80px; }
  .mp-breadcrumb .breadcrumb { background: transparent; padding: 0; margin-bottom: 22px; }
  .mp-breadcrumb .breadcrumb-item a { color: #C62828; text-decoration: none; font-weight: 600; }
  .mp-breadcrumb .breadcrumb-item.active { color: #6b7280; }
  .mp-hero {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    margin-bottom: 36px;
    border: 1px solid #eee;
  }
  .mp-hero-top {
    height: 8px;
    background: linear-gradient(90deg, #C62828 0%, #0047AB 100%);
  }
  .mp-hero-body {
    display: flex;
    gap: 28px;
    align-items: center;
    padding: 28px 30px 30px;
  }
  .mp-flag {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 5px solid #fff;
    box-shadow: 0 0 0 3px #C62828, 0 10px 24px rgba(198, 40, 40, 0.18);
    background: #f3f4f6;
  }
  .mp-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .mp-hero-info { flex: 1; min-width: 0; }
  .mp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
  .mp-tag {
    display: inline-block;
    background: #C62828;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
  }
  .mp-tag.blue { background: #0047AB; }
  .mp-hero-info h2 {
    font-size: 30px;
    font-weight: 800;
    color: #151618;
    line-height: 1.2;
    margin: 0 0 6px;
  }
  .mp-hero-info .assoc {
    color: #0047AB;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 14px;
  }
  .mp-back {
    display: inline-block;
    border: 1.5px solid #C62828;
    color: #C62828 !important;
    text-decoration: none !important;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
  }
  .mp-back:hover { background: #C62828; color: #fff !important; }
  .mp-block { margin-bottom: 42px; }
  .mp-org-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .mp-org-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mp-org-card {
    background: #fff;
    border-radius: 16px;
    padding: 26px 16px 22px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
    border: 1px solid #eee;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .mp-org-card:hover { transform: translateY(-6px); box-shadow: 0 16px 28px rgba(17, 24, 39, 0.12); }
  .mp-avatar {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px #C62828;
    background: #f3f4f6;
    display: block;
  }
  .mp-org-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: #151618;
    margin: 0 0 4px;
    text-transform: capitalize;
  }
  .mp-org-card .role {
    color: #C62828;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    margin: 0;
  }
  .detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .detail-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.04);
  }
  .detail-label { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: #9ca3af; font-weight: 700; }
  .detail-value { font-weight: 700; color: #151618; margin-top: 4px; }
  .child-section { margin-top: 8px; }
  .state-flags-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .state-flag-card {
    background: #fff; border: 1px solid #eee; border-radius: 16px;
    padding: 22px 12px 16px; text-align: center; text-decoration: none !important;
    color: inherit; box-shadow: 0 6px 16px rgba(15,23,42,.05);
    transition: transform .2s ease, box-shadow .2s ease; display: block;
  }
  .state-flag-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(15,23,42,.1); }
  .state-flag-card .flag-circle {
    width: 92px; height: 92px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden;
    background: #f3f4f6; border: 4px solid #fff; box-shadow: 0 0 0 2px #C62828;
  }
  .state-flag-card .flag-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .state-flag-card h4 { font-size: 14px; font-weight: 700; color: #151618; margin: 0; text-transform: capitalize; }
  .district-box {
    background: #fff; border: 1px solid #eee; border-left: 5px solid #C62828;
    border-radius: 16px; padding: 22px; box-shadow: 0 4px 14px rgba(15,23,42,.04);
  }
  .district-pills { display: flex; flex-wrap: wrap; gap: 10px; }
  .district-pill {
    display: inline-block; background: #151618; color: #fff !important;
    text-decoration: none !important; font-size: 12px; font-weight: 700;
    letter-spacing: .4px; text-transform: uppercase; padding: 9px 14px;
    border-radius: 8px; transition: background .2s ease, transform .2s ease;
  }
  .district-pill:hover { background: #C62828; transform: translateY(-1px); }
  .empty-child { color: #6b7280; margin: 0; }
  @media (max-width: 992px) {
    .mp-org-grid, .mp-org-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .detail-list { grid-template-columns: 1fr; }
    .state-flags-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 576px) {
    .mp-hero-body { flex-direction: column; align-items: flex-start; padding: 22px; }
    .mp-org-grid, .mp-org-grid.cols-4, .state-flags-grid { grid-template-columns: 1fr; }
    .mp-hero-info h2 { font-size: 24px; }
  }
