
.directory-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: left;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.directory-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.directory-card:hover {
  transform: scale(1.03);
}

.directory-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.directory-card h3 {
  margin: 0;
  padding: 1rem;
  /*background-color: #f8f8f8;*/
  background-color: blue;
	
  font-size: 1.1rem;
  color: #333;
}

.directory-card {
  position: relative;
  overflow: hidden;
  border-radius: 0px;
  transition: transform 0.3s ease;
}

.directory-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Dim image on hover */
.directory-card:hover img {
  opacity: 0.6;
}

/* Overlay block for title */
/* Transparent overlay for title */
.directory-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 1rem;
  background-color: rgba(255,255,255,.75); /* #EFEDED with 70% opacity */
  color: #000;
  font-size: 1.2rem;
  text-align: center;
  z-index: 2;
  transition: background 0.3s ease;
}
.directory-card {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.directory-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  transition: transform 0.3s ease;
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc; /* horizontal divider */
}
.directory-divider {
  width: 100%;
  height: 4px;
  background-color: #e0e0e0; /* soft light grey */
 /* margin: 12px 0;*/
	margin-top: 8px;
}
/* Optional: slight zoom on hover */
.directory-card:hover {
  transform: scale(1.02);
}