/* CSS for Modern Isotope Section Redesign with Grey and White Theme */

/* General Styles */
body {
  font-family: "Roboto", sans-serif;
  color: #333;
  background-color: #f8f8f8;
}

/* Isotope Filter Navigation */
.isotope-filters {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.isotope-filters .nav-item {
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.isotope-filters .nav-item:hover {
  border-color: #aaa;
}

.isotope-filters .nav-link {
  color: #666;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.isotope-filters .nav-link:hover {
  color: #333;
}

/* Card Styles */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  background-color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-img {
  position: relative;
  width: 100%;
  height: auto;
  transition: filter 0.3s ease;
}

.card-img img {
  filter: grayscale(20%);
  width: 100%;
  height: auto;
}

.card-img:hover img {
  filter: grayscale(20%);
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 10px;
}

.card-text {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 20px;
}

/* Badges */
.badge {
  background-color: #444;
  color: #fff;
  font-size: 0.8em;
  padding: 5px 10px;
  border-radius: 5px;
}

/* Learn More Button */
.btn-link {
  color: #666;
  border: 1px solid #ddd;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-link:hover {
  background-color: #eee;
  color: #333;
}

/* Isotope Grid Layout */
.isotope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}



/* Background Enhancements */
.background-color {
  background-color: #3a3a3a;
  opacity: 0.25;
}

/* Subtle Hover Effect for Text Elements */
.card-body:hover .card-title,
.card-body:hover .card-text,
.card-img:hover+.card-body .card-title,
.card-img:hover+.card-body .card-text {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
  color: #333;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .isotope-filters {
    flex-direction: column;
    align-items: center;
  }

  .btn-link {
    padding: 10px;
  }
}