.hero-cards-outer-container {
  position: relative;
  width: 100%;
}

.hero-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  width: 100%;
  grid-auto-flow: row;
}

.hero-cards-info-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}
.hero-cards-info-item h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--bs-primary-ultradark);
  margin: 10px 0 15px;
}

.hero-cards-info-item p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}

/* Image */
.hero-cards-image-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.hero-cards-image-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.hero-cards-image-container.fade::before {
  opacity: 1;
}

.hero-cards-info-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: opacity 0.6s ease;
  z-index: 0;
  opacity: 1;
}

/* Dots */
.hero-cards-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.hero-cards-dots .dot {
  width: 6px;
  height: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.hero-cards-dots .dot.active {
  background: rgba(0, 0, 0, 0.7);
}

/* Navigation */
.hero-cards-nav-buttons {
  position: absolute;
  top: 125px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
  z-index: 10;
}

.hero-cards-nav-button {
  pointer-events: auto;
  background: rgba(0,0,0,0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 25px;
  height: 40px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.hero-cards-nav-button:hover {
  background: rgba(0,0,0,0.6);
}


/* xl Extra large screens (≥1200px and up to <1400px) */
@media (max-width: 1399.98px) {
    
}

/* lg Large screens (≥992px and up to <1200px) */
@media (max-width: 1199.98px) {
  .hero-cards-container {
    gap: 10px;
  }
}

/* md Medium screens (tablets, ≥768px and up to <992px) */
@media (max-width: 991.98px) {
  .hero-cards-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .hero-cards-nav-buttons {
    display: none;
  }
}

/* sm Small screens (landscape phones, ≥576px and up to <768px) */
@media (max-width: 767.98px) {
    
}

/* xs Extra small screens (portrait phones, <576px) */
@media (max-width: 575.98px) {
}