/* Targeted fix for white text on white background in typology cards */

/* Only target typology specific elements without affecting the rest of the site */
.typology-card {
  color: #212529 !important;
  background-color: #f0f0f0 !important; /* Light gray background for better contrast */
  border: 1px solid #dee2e6 !important;
}

.typology-card .card-header {
  color: #212529 !important;
  background-color: #e9ecef !important;
  border-bottom: 1px solid #dee2e6 !important;
}

.typology-card .card-body {
  color: #212529 !important;
}

.typology-card .card-footer {
  color: #212529 !important;
  background-color: #e9ecef !important;
  border-top: 1px solid #dee2e6 !important;
}

/* Target specific text elements inside typology cards */
.typology-card h1,
.typology-card h2,
.typology-card h3,
.typology-card h4,
.typology-card h5,
.typology-card h6,
.typology-card p,
.typology-card .card-text {
  color: #212529 !important;
}

.typology-card .text-muted,
.typology-card .small {
  color: #6c757d !important;
}

/* Badge color exceptions - preserve colors but ensure visibility */
.typology-card .badge.bg-success, 
.typology-card .badge.bg-danger, 
.typology-card .badge.bg-dark, 
.typology-card .badge.bg-secondary, 
.typology-card .badge.bg-primary, 
.typology-card .badge.bg-info {
  color: white !important;
}

.typology-card .badge.bg-warning, 
.typology-card .badge.bg-light {
  color: #212529 !important;
}

/* Fix buttons inside typology cards */
.typology-card .btn-outline-primary,
.typology-card .btn-outline-secondary,
.typology-card .btn-outline-danger,
.typology-card .btn-outline-success,
.typology-card .btn-outline-dark {
  color: inherit !important;
}

/* Dropdown menu in typology cards */
.typology-card .dropdown-menu {
  background-color: #fff !important;
}

.typology-card .dropdown-item {
  color: #212529 !important;
}

/* Fix for the typology container card */
.typology-catalog-card {
  background-color: #343a40 !important; /* Dark background to match site theme */
  color: #f8f9fa !important; /* Light text for dark background */
}

.typology-catalog-card .card-header {
  background-color: #212529 !important;
  color: #f8f9fa !important;
}