.carousel-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.carousel {
  overflow: hidden;
  width: 100%;
  margin: 0 40px;
}

.badge-list {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
  animation: autoSlide 10s infinite; /* Automatically slides every 10 seconds */
}

.badge {
  flex: 0 0 100px; /* Set width for each badge */
  padding: 15px;
  margin-right: 20px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.badge img {
  width: 120px;
  height: 140px;
  object-fit: contain;
  display: block;
  margin: 0 auto; 
}

.badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.badge:hover img {
  width: 140px;
}

.verify-button-container {
  display: none; /* Hide by default */
  margin-top: 10px; /* Space above the button */
  text-align: center;
}

.verify-button {
  background-color: #007bff;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.verify-button:hover {
  background-color: #0056b3;
}

/* Show the Verify button container when the badge is hovered */
.badge:hover .verify-button-container {
  display: block;
}

/* Add hover effect to the badge */
.badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


  /* Buttons */
.prev-btn, .next-btn {
  background-color: #333;
  border: none;
  color: white;
  font-size: 30px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

.prev-btn:hover, .next-btn:hover {
  background-color: #555;
}

.prev-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.next-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}







  .name-link {
    color: #333333;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
  }

  .name-link:hover {
    color: #007bff;
  }
  


/* Certification Grid */
.certification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.certification-item {
  text-align: center;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
}

.certification-item img {
  width: 100%;
  height: 200px; /* Fixed height */
  object-fit: cover; /* Maintain aspect ratio without distortion */
  border-radius: 8px;
  transition: transform 0.3s;
}

.certification-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.certification-item:hover p {
  color: #007bff;
}

.certification-item p {
  margin-top: 12px;
  color: #333;
}

/* Filter Buttons Styling */
.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-btn {
  background-color: #f0f8ff; /* Light blue background for inactive */
  color: #007BFF; /* Blue text */
  border: 2px solid #007BFF; /* Blue border */
  padding: 10px 20px;
  margin: 5px;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  font-weight: 400; /* Default font weight */
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1); /* Subtle shadow for depth */
}

/* Active State */
.filter-btn.active {
  background-color: #007BFF; /* Blue background for active */
  color: #fff; /* White text for active */
  font-weight: 600; /* Bold text for active state */
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2); /* Subtle shadow for active */
}

/* Hover State (Inactive Button) */
.filter-btn:hover {
  background-color: #e0f0ff; /* Slightly darker blue on hover */
  color: #007BFF; /* Blue text remains the same */
  transform: scale(1.05); /* Slightly enlarge on hover */
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.15); /* Slightly stronger shadow on hover */
}

/* Active Hover State */
.filter-btn.active:hover {
  background-color: #0056b3; /* Darker blue when active and hovered */
  transform: scale(1.05); /* Same slight enlargement */
}


/* Hidden class to hide items */
.hidden {
  display: none;
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000; /* Sit on top */
  padding-top: 60px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
}

#modal-caption {
  margin: 20px auto;
  text-align: center;
  color: #fff;
  font-size: 18px;
}

.modal .close {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.modal .close:hover,
.modal .close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Animation */
.modal-content, .modal-caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform: scale(0)}
  to {transform: scale(1)}
}

/* Responsive Design */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}
