/* =========================================================
  Downey Chamber - Members Directory Landing Page
  Phase 1: /members-directory/
  ========================================================= */

:root {
  --dcc-blue: #5283b9;
  --dcc-teal: #5b9f8a;
  --dcc-dark: #111827;
  --dcc-text: #475569;
  --dcc-muted: #64748b;
  --dcc-border: #e2e8f0;
  --dcc-card: #f0f4f8;
  --dcc-light: #f8fafc;
  --dcc-white: #ffffff;
  --dcc-radius-lg: 20px;
  --dcc-radius-xl: 28px;
  --dcc-shadow-soft: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --dcc-shadow-hover: 0 14px 30px -12px rgba(15, 23, 42, 0.18);
}

.dcc-members-directory,
.dcc-members-directory * {
  box-sizing: border-box;
}

.dcc-members-directory {
  width: 100%;
  background: #ffffff;
  color: var(--dcc-dark);
  font-family: inherit;
  overflow: hidden;
}

.dcc-md-container {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.dcc-md-text-center {
  text-align: center;
}

/* =========================
    Hero
    ========================= */

.dcc-md-hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}

.dcc-md-hero-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  z-index: 0;
}

.dcc-md-hero .dcc-md-container {
  position: relative;
  z-index: 1;
}

.dcc-md-hero-title {
  margin: 0 0 22px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: #0f172a;
}

.dcc-md-hero-title span {
  background: linear-gradient(90deg, var(--dcc-blue), var(--dcc-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dcc-md-hero-subtitle {
  max-width: 680px;
  margin: 0 auto 42px;
  color: var(--dcc-text);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

/* =========================
    Search
    ========================= */

.dcc-md-search {
  max-width: 760px;
  margin: 0 auto;
}

.dcc-md-search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 7px 8px 7px 52px;
  background: #ffffff;
  border: 1px solid var(--dcc-border);
  border-radius: 18px;
  box-shadow: var(--dcc-shadow-soft);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.dcc-md-search-field:focus-within {
  border-color: rgba(82, 131, 185, 0.6);
  box-shadow:
    0 0 0 4px rgba(82, 131, 185, 0.14),
    var(--dcc-shadow-soft);
}

.dcc-md-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
}

.dcc-md-search-field input[type="search"] {
  width: 100%;
  min-width: 0;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.4;
}

.dcc-md-search-field input[type="search"]::placeholder {
  color: #94a3b8;
}

.dcc-md-search-submit {
  flex: 0 0 auto;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--dcc-blue), var(--dcc-teal));
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.dcc-md-search-submit:hover,
.dcc-md-search-submit:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(82, 131, 185, 0.9);
}

.dcc-md-search-note {
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
}

/* =========================
    Categories
    ========================= */

.dcc-md-categories {
  padding: 72px 0 84px;
  background: #ffffff;
}

.dcc-md-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.dcc-md-section-heading h2 {
  margin: 0 0 7px;
  color: #0f172a;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.dcc-md-section-heading p {
  margin: 0;
  color: var(--dcc-muted);
  font-size: 15px;
}

/* Toggle */

.dcc-md-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 9px 12px 9px 16px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.dcc-md-toggle:hover {
  background: #f1f5f9;
  color: #334155;
}

.dcc-md-toggle-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 46px;
  height: 26px;
  padding: 3px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}

.dcc-md-toggle-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.dcc-md-toggle.is-active .dcc-md-toggle-track {
  background: var(--dcc-blue);
}

.dcc-md-toggle.is-active .dcc-md-toggle-thumb {
  transform: translateX(20px);
}

/* Grid */

.dcc-md-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.dcc-md-category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--dcc-radius-lg);
  background: var(--dcc-card);
  border: 1px solid transparent;
  text-decoration: none !important;
  color: inherit;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.dcc-md-category-card:hover,
.dcc-md-category-card:focus {
  transform: translateY(-4px);
  border-color: rgba(82, 131, 185, 0.28);
  box-shadow: var(--dcc-shadow-hover);
}

.dcc-md-category-card-bg {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 140px;
  height: 140px;
  border-radius: 0 0 0 120px;
  background: linear-gradient(
    135deg,
    rgba(82, 131, 185, 0.1),
    rgba(91, 159, 138, 0)
  );
  transition: transform 0.25s ease;
  pointer-events: none;
}

.dcc-md-category-card:hover .dcc-md-category-card-bg {
  transform: scale(1.1);
}

.dcc-md-category-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.dcc-md-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #ffffff;
  color: var(--dcc-blue);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  font-size: 19px;
  transition: transform 0.25s ease;
}

.dcc-md-category-card:nth-child(even) .dcc-md-category-icon {
  color: var(--dcc-teal);
}

.dcc-md-category-card:hover .dcc-md-category-icon {
  transform: scale(1.08);
}

.dcc-md-member-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(226, 232, 240, 0.7);
  color: #475569;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.dcc-md-category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  transition: color 0.2s ease;
}

.dcc-md-category-card:hover h3 {
  color: var(--dcc-blue);
}

.dcc-md-category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.dcc-md-view-members {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--dcc-blue);
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.dcc-md-category-card:nth-child(even) .dcc-md-view-members {
  color: var(--dcc-teal);
}

.dcc-md-category-card:hover .dcc-md-view-members {
  transform: translateX(4px);
}

/* =========================
    Empty state
    ========================= */

.dcc-md-empty {
  padding: 48px 24px;
  border: 1px solid var(--dcc-border);
  border-radius: var(--dcc-radius-lg);
  background: #f8fafc;
  text-align: center;
}

.dcc-md-empty h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #0f172a;
}

.dcc-md-empty p {
  margin: 0 0 22px;
  color: var(--dcc-muted);
}

/* =========================
    Featured Members
    ========================= */

.dcc-md-featured {
  padding: 70px 0;
  background: #f8fafc;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}

.dcc-md-featured-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}

.dcc-md-featured-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.dcc-md-featured-heading span {
  color: var(--dcc-muted);
  font-size: 14px;
}

.dcc-md-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dcc-md-featured-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #eaf0f5;
  color: inherit;
  text-decoration: none !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.dcc-md-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -14px rgba(15, 23, 42, 0.25);
}

.dcc-md-featured-logo {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--dcc-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dcc-md-featured-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.dcc-md-featured-info {
  min-width: 0;
  flex: 1 1 auto;
}

.dcc-md-featured-info h3 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dcc-md-featured-info p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dcc-md-featured-badge {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================
    CTA
    ========================= */

.dcc-md-cta {
  position: relative;
  padding: 92px 0;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(91, 159, 138, 0.12),
      transparent 32%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(82, 131, 185, 0.12),
      transparent 32%
    ),
    linear-gradient(135deg, rgba(82, 131, 185, 0.08), rgba(91, 159, 138, 0.08));
}

.dcc-md-cta-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(38px, 6vw, 66px);
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 24px 55px -28px rgba(15, 23, 42, 0.32);
  text-align: center;
}

.dcc-md-cta-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 22px;
  border-radius: 20px;
  background: var(--dcc-card);
  border: 1px solid #e8eef5;
  color: var(--dcc-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.dcc-md-cta-card h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 850;
}

.dcc-md-cta-card p {
  max-width: 620px;
  margin: 0 auto 34px;
  color: var(--dcc-text);
  font-size: 17px;
  line-height: 1.65;
}

.dcc-md-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================
    Buttons
    ========================= */

.dcc-md-primary-btn,
.dcc-md-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.dcc-md-primary-btn {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--dcc-blue), var(--dcc-teal));
  box-shadow: 0 10px 22px -12px rgba(82, 131, 185, 0.85);
}

.dcc-md-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 25px -14px rgba(82, 131, 185, 0.95);
}

.dcc-md-secondary-btn {
  color: #334155 !important;
  background: #ffffff;
  border: 1px solid var(--dcc-border);
}

.dcc-md-secondary-btn:hover {
  color: var(--dcc-blue) !important;
  background: #f8fafc;
}

/* =========================
    Responsive
    ========================= */

@media (max-width: 1024px) {
  .dcc-md-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dcc-md-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .dcc-md-container {
    width: min(100% - 28px, 1180px);
  }

  .dcc-md-hero {
    padding: 64px 0 72px;
  }

  .dcc-md-hero-subtitle {
    margin-bottom: 32px;
  }

  .dcc-md-search-field {
    min-height: auto;
    padding: 14px 14px 14px 46px;
    flex-wrap: wrap;
  }

  .dcc-md-search-submit {
    width: 100%;
    margin-top: 6px;
  }

  .dcc-md-section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .dcc-md-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .dcc-md-category-grid,
  .dcc-md-featured-grid {
    grid-template-columns: 1fr;
  }

  .dcc-md-category-card {
    min-height: 190px;
  }

  .dcc-md-featured-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dcc-md-cta {
    padding: 64px 0;
  }

  .dcc-md-cta-actions {
    flex-direction: column;
  }

  .dcc-md-primary-btn,
  .dcc-md-secondary-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .dcc-md-hero-title {
    font-size: 40px;
  }

  .dcc-md-category-card {
    padding: 20px;
  }

  .dcc-md-category-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .dcc-md-member-count {
    align-self: flex-start;
  }
}

/* =========================================================
  Business Category Internal Page
  ========================================================= */

.dcc-business-category {
  background: #ffffff;
}

.dcc-bc-header {
  position: relative;
  padding: 54px 0 46px;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(82, 131, 185, 0.08),
      transparent 34%
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(91, 159, 138, 0.08),
      transparent 34%
    ),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #eef2f7;
}

.dcc-bc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: #5283b9;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
}

.dcc-bc-back:hover {
  color: #5b9f8a;
}

.dcc-bc-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 34px;
  align-items: center;
}

.dcc-bc-kicker {
  margin-bottom: 10px;
  color: #5b9f8a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.dcc-bc-header h1 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 850;
}

.dcc-bc-header p {
  max-width: 760px;
  margin: 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.65;
}

.dcc-bc-count-card {
  padding: 28px 22px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e8eef5;
  box-shadow: var(--dcc-shadow-soft);
  text-align: center;
}

.dcc-bc-count-card span {
  display: block;
  margin-bottom: 4px;
  color: #5283b9;
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
}

.dcc-bc-count-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

/* Controls */

.dcc-bc-controls {
  padding: 26px 0;
  background: #ffffff;
  border-bottom: 1px solid #eef2f7;
}

.dcc-bc-filter-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
}

.dcc-bc-search-wrap {
  position: relative;
}

.dcc-bc-search-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.dcc-bc-search-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px 0 44px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
  color: #0f172a;
  box-shadow: none !important;
  outline: none !important;
}

.dcc-bc-search-wrap input:focus {
  border-color: rgba(82, 131, 185, 0.65) !important;
  box-shadow: 0 0 0 4px rgba(82, 131, 185, 0.12) !important;
}

.dcc-bc-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dcc-bc-filter-pills label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.dcc-bc-filter-pills label.is-active {
  border-color: rgba(82, 131, 185, 0.35);
  background: rgba(82, 131, 185, 0.09);
  color: #5283b9;
}

.dcc-bc-filter-pills input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dcc-bc-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dcc-bc-sort-wrap label {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.dcc-bc-sort-wrap select {
  min-height: 44px;
  padding: 0 36px 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
}

.dcc-bc-form-actions {
  display: flex;
  gap: 8px;
}

.dcc-bc-form-actions .dcc-md-primary-btn,
.dcc-bc-form-actions .dcc-md-secondary-btn {
  min-height: 44px;
  padding: 11px 18px;
  font-size: 14px;
}

/* Listing */

.dcc-bc-listing {
  padding: 48px 0 86px;
  background: #ffffff;
}

.dcc-bc-results-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dcc-bc-results-heading p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.dcc-bc-member-grid {
  display: grid;
  gap: 18px;
}

.dcc-bc-member-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid #e8eef5;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.035);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.dcc-bc-member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -24px rgba(15, 23, 42, 0.3);
}

.dcc-bc-member-logo {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5283b9;
  font-size: 28px;
  overflow: hidden;
}

.dcc-bc-member-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.dcc-bc-member-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.dcc-bc-member-card h2 {
  margin: 0 0 7px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 850;
}

.dcc-bc-member-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dcc-bc-member-categories span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.dcc-bc-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.dcc-md-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dcc-md-badge-featured {
  background: #fff7ed;
  color: #c2410c;
}

.dcc-md-badge-new {
  background: rgba(91, 159, 138, 0.12);
  color: #28745f;
}

.dcc-md-badge-local {
  background: rgba(82, 131, 185, 0.12);
  color: #315f93;
}

.dcc-md-badge-professional {
  background: #eef2ff;
  color: #4f46e5;
}

.dcc-bc-member-meta {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.dcc-bc-member-meta p {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
}

.dcc-bc-member-meta i {
  width: 15px;
  margin-top: 2px;
  color: #5283b9;
}

.dcc-bc-description {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.dcc-bc-member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dcc-bc-member-actions .dcc-md-primary-btn,
.dcc-bc-member-actions .dcc-md-secondary-btn {
  min-height: 42px;
  padding: 11px 18px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.dcc-bc-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.dcc-bc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
}

.dcc-bc-pagination .page-numbers.current {
  background: #5283b9;
  border-color: #5283b9;
  color: #ffffff;
}

/* Modal */

.dcc-md-modal[hidden] {
  display: none;
}

.dcc-md-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.dcc-md-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
}

.dcc-md-modal-content {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.dcc-md-modal-card {
  position: relative;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 30px 80px -30px rgba(15, 23, 42, 0.6);
  overflow: hidden;
}

.dcc-md-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
}

.dcc-md-modal-header {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(
    135deg,
    rgba(82, 131, 185, 0.12),
    rgba(91, 159, 138, 0.12)
  );
  border-bottom: 1px solid #e8eef5;
}

.dcc-md-modal-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5283b9;
  font-size: 26px;
  overflow: hidden;
}

.dcc-md-modal-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.dcc-md-modal-header h2 {
  margin: 0 44px 4px 0;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 850;
}

.dcc-md-modal-header p {
  margin: 0;
  color: #64748b;
  font-weight: 700;
}

.dcc-md-modal-body {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.dcc-md-modal-section {
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e8eef5;
}

.dcc-md-modal-section h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 850;
}

.dcc-md-modal-section p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.dcc-md-profile-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dcc-md-profile-list li {
  color: #475569;
  line-height: 1.5;
}

.dcc-md-profile-list a,
.dcc-md-social-links a {
  color: #5283b9;
  font-weight: 800;
}

.dcc-md-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dcc-md-social-links a {
  padding: 8px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
}

.dcc-md-modal-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 28px 28px;
}

.dcc-md-locked-profile {
  position: relative;
  min-height: 340px;
  padding: 28px;
}

.dcc-md-blur-lines {
  display: grid;
  gap: 16px;
  filter: blur(7px);
  opacity: 0.75;
  pointer-events: none;
}

.dcc-md-blur-lines span {
  display: block;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(90deg, #e2e8f0, #f8fafc);
}

.dcc-md-blur-lines span:nth-child(2) {
  width: 82%;
}

.dcc-md-blur-lines span:nth-child(3) {
  width: 92%;
}

.dcc-md-blur-lines span:nth-child(4) {
  width: 76%;
}

.dcc-md-locked-overlay {
  position: absolute;
  inset: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.dcc-md-locked-overlay h3 {
  max-width: 500px;
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 850;
}

.dcc-md-locked-overlay p {
  max-width: 520px;
  margin: 0 0 24px;
  color: #475569;
  line-height: 1.6;
}

.dcc-md-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Responsive internal page */

@media (max-width: 1024px) {
  .dcc-bc-filter-form {
    grid-template-columns: 1fr;
  }

  .dcc-bc-filter-pills,
  .dcc-bc-form-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .dcc-bc-header-grid {
    grid-template-columns: 1fr;
  }

  .dcc-bc-count-card {
    text-align: left;
  }

  .dcc-bc-member-card {
    grid-template-columns: 1fr;
  }

  .dcc-bc-member-logo {
    width: 78px;
    height: 78px;
  }

  .dcc-bc-member-top {
    flex-direction: column;
  }

  .dcc-bc-badges {
    justify-content: flex-start;
  }

  .dcc-bc-member-actions .dcc-md-primary-btn,
  .dcc-bc-member-actions .dcc-md-secondary-btn {
    width: 100%;
  }

  .dcc-md-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .dcc-md-modal-content {
    max-height: calc(100vh - 24px);
  }

  .dcc-md-modal-card {
    border-radius: 24px 24px 0 0;
  }

  .dcc-md-modal-header {
    padding: 24px;
  }

  .dcc-md-modal-header h2 {
    font-size: 22px;
  }

  .dcc-md-modal-body,
  .dcc-md-locked-profile {
    padding: 22px;
  }

  .dcc-md-locked-overlay {
    inset: 22px;
    padding: 22px;
  }

  .dcc-md-locked-overlay h3 {
    font-size: 22px;
  }

  .dcc-md-modal-footer {
    padding: 0 22px 22px;
  }

  .dcc-md-modal-footer .dcc-md-primary-btn,
  .dcc-md-modal-footer .dcc-md-secondary-btn,
  .dcc-md-modal-actions .dcc-md-primary-btn,
  .dcc-md-modal-actions .dcc-md-secondary-btn {
    width: 100%;
  }
}

.dcc-md-category-icon img,
.dcc-bc-member-logo img,
.dcc-md-modal-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dcc-md-category-icon img {
  padding: 9px;
}

.dcc-bc-member-logo img {
  padding: 10px;
}

.dcc-md-modal-logo img {
  padding: 8px;
}

/* Category internal page: 2-column member cards on large screens */
@media (min-width: 1180px) {
  .dcc-bc-member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .dcc-bc-member-card {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 220px;
  }

  .dcc-bc-member-logo {
    width: 76px;
    height: 76px;
    border-radius: 18px;
  }

  .dcc-bc-member-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .dcc-bc-badges {
    justify-content: flex-start;
  }
}

.dcc-bc-listing.is-loading {
  position: relative;
  opacity: 0.55;
  pointer-events: none;
}

.dcc-bc-listing.is-loading::after {
  content: "Searching...";
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #5283b9;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
