* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: #EDE8E3;
}

.mb-page { width: 100%; position: relative; }

/* ═══════════════════════════════
   NAVBAR
   ═══════════════════════════════ */
.mb-navbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 88px;
  background: transparent;
}

.mb-nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 48px;
}

.mb-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.mb-nav-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.mb-nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mb-strong {
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.mb-rectangle1 {
  height: 2px;
  background: white;
  width: 100%;
}

.mb-nav-url {
  color: #E8C96B;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
}

.mb-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.mb-nav-link {
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.mb-nav-link--active {
  color: #E8C96B;
}

.mb-nav-cta {
  flex-shrink: 0;
  background: #1E54B7;
  border-radius: 10px;
  padding: 10px 20px;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
  cursor: pointer;
}

.mb-member-login {
  color: white;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

/* ═══════════════════════════════
   HERO
   ═══════════════════════════════ */
.mb-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mb-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/mb_hero_grid-bg.png");
  background-size: cover;
  background-position: center;
}

.mb-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}

.mb-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 48px 60px;
  max-width: 800px;
}

.mb-confederation-label {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.mb-hero-title {
  color: white;
  font-family: 'Instrument Serif', serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
}

.mb-hero-title-highlight {
  color: #E07818;
  font-style: italic;
}

.mb-hero-desc {
  color: rgba(255,255,255,0.80);
  font-size: 17px;
  line-height: 1.65;
}

/* ═══════════════════════════════
   MEMBERS SECTION
   ═══════════════════════════════ */
.mb-members-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 48px 80px;
}

/* Filter tabs */
.mb-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.mb-filter-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #0B1D3A;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
}

.mb-filter-tab:hover {
  border-color: #1E54B7;
  color: #1E54B7;
}

.mb-filter-active {
  background: #0B1D3A;
  border-color: #0B1D3A;
  color: white;
}

/* Region legend */
.mb-legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.mb-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #4A5568;
}

/* Colored dots */
.mb-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mb-dot--green  { background: #00AD1A; }
.mb-dot--navy   { background: #0B1D3A; border: 1px solid #4A5568; }
.mb-dot--purple { background: #9747FF; }
.mb-dot--maroon { background: #8F0039; }

/* Region section */
.mb-region {
  margin-bottom: 48px;
}

.mb-region-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.mb-region-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #CBD5E0;
}

.mb-region-name {
  font-size: 14px;
  font-weight: 600;
  color: #2D3748;
  white-space: nowrap;
}

/* Member grid */
.mb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  min-height: 20px;
}

/* Member card — horizontal layout */
.mb-card {
  background: white;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #E2E8F0;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
  min-height: 200px;
}

.mb-card:hover {
  box-shadow: 0 6px 24px rgba(224,120,24,0.35);
  border-color: #E07818;
  transform: translateY(-2px);
}

.mb-card:hover .mb-view-details {
  opacity: 1;
}

.mb-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mb-card-flag {
    width: 100px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid #D1D5DB;
}

.mb-card-flag--bordered {
  border: 1px solid #CBD5E0;
}

.mb-card-flag--padded {
  background-size: 220%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: white;
}

.mb-card-flag--placeholder {
  background: #EDF2F7;
  border: 1px dashed #CBD5E0;
  border-radius: 6px;
}

.mb-card-flag--china {
  width: 100px;
  height: 50px;
  object-fit: cover;
  object-position: center;
}

.mb-card-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mb-card-code {
  color: #E07818;
  font-size: 15px;
  font-weight: 700;
}

.mb-card-country {
  color: #2D3748;
  font-size: 15px;
  font-weight: 700;
}

/*.mb-card-name {
  color: #4A5568;
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
}*/

.mb-card-name {
    color: #4A5568;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    align-items: center;
    display: grid;
}

.mb-view-details {
  color: #E07818;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  align-self: flex-start;
  opacity: 0;
  transition: opacity 0.18s;
}

.mb-view-details:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
.mb-footer {
  background-image: url("../images/Footer_background.png");
  background-size: cover;
  background-position: center;
  position: relative;
}

.mb-footer-overlay { display: none; }

.mb-footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 44px 48px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.mb-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mb-footer-link {
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.mb-footer-link:hover {
  color: #E8C96B;
}

.mb-footer-divider {
  position: relative;
  z-index: 1;
  max-width: 1204px;
  margin: 0 auto;
  height: 1px;
  background: rgba(217,217,217,0.35);
}

.mb-copyright {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 48px 32px;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
}

/* ═══════════════════════════════
   MEMBER MODAL
   ═══════════════════════════════ */
.mb-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
}

.mb-modal-overlay--open {
  display: flex;
}

.mb-modal {
  background: white;
  border-radius: 16px;
  width: 520px;
  max-width: 95vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  animation: mbModalIn 0.22s ease;
}

@keyframes mbModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.mb-modal-header {
  background: #0B1D3A;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.mb-modal-flags {
  display: flex;
  align-items: center;
  gap: -8px;
  flex-shrink: 0;
  position: relative;
  width: 100px;
  height: 60px;
}

.mb-modal-flag-img {
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  position: absolute;
  left: 0;
  top: 0;
  border: 2px solid rgba(255,255,255,0.15);
}

.mb-modal-logo-circle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mb-modal-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.mb-modal-header-info {
  flex: 1;
  min-width: 0;
}

.mb-modal-country {
  color: white;
  font-size: 22px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.2;
  margin-bottom: 4px;
}

.mb-modal-orgname {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.mb-modal-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mb-modal-tag {
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  padding: 3px 8px;
}

.mb-modal-tag--code {
  background: rgba(255,255,255,0.15);
  color: white;
}

.mb-modal-tag--region {
  background: #E07818;
  color: white;
}

.mb-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}

.mb-modal-close:hover {
  background: rgba(255,255,255,0.25);
}

/* Body */
.mb-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mb-modal-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #0B1D3A;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #E07818;
  display: inline-block;
}

/* Contact rows */
.mb-modal-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}

.mb-modal-contact-row:last-child {
  border-bottom: none;
}

.mb-modal-contact-icon {
  width: 32px;
  height: 32px;
  background: #F8FAFC;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mb-modal-contact-content {
  flex: 1;
  min-width: 0;
}

.mb-modal-contact-label {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.mb-modal-contact-value {
  font-size: 13.5px;
  color: #1E293B;
  line-height: 1.5;
}

/* People */
.mb-modal-people {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mb-modal-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #F8FAFC;
  border-radius: 10px;
}

.mb-modal-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0B1D3A, #1E54B7);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mb-modal-person-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #0B1D3A;
}

.mb-modal-person-title {
  font-size: 12px;
  color: #64748B;
  margin: 1px 0;
}

.mb-modal-person-email {
  font-size: 11.5px;
  color: #1E54B7;
}

/* Footer nav */
.mb-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid #EDF2F7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FAFBFC;
}

.mb-modal-nav-btn {
  background: none;
  border: 1px solid #CBD5E0;
  color: #0B1D3A;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.mb-modal-nav-btn:hover:not(:disabled) {
  background: #0B1D3A;
  color: white;
  border-color: #0B1D3A;
}

.mb-modal-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.mb-modal-nav-count {
  font-size: 13px;
  color: #64748B;
  font-weight: 500;
}

.mb-footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.mb-footer-link { color: white; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.mb-footer-link:hover { color: #E8C96B; }
