.hero {
  width: 100%;
  height: 88vh;
  position: relative;
}

.hero-content {
  width: 95%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.hero img,
.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content h3 {
  width: fit-content;
  background: var(--yellow);
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: var(--fw-xxl);
  color: var(--main);
  margin-bottom: 0px;
  line-break: normal;
}

.hero-content h2 {
  width: fit-content;
  background: var(--main);
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: var(--fw-xxl);
  color: var(--secondary);
  margin-bottom: 0px;
}

/* hero */
.hero1 {
  width: 100%;
  height: 88vh;
  position: relative;
}

.hero-content1 {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.card-bg {
  border-radius: 10px !important;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

@media screen and (min-width: 1098px) {
  .hero-content h3 {
    font-size: 30px;
  }

  .hero-content h2 {
    font-size: 45px;
  }

  .card-wid {
    min-height: 200px;
    min-width: 400px;
  }
}

@media (min-width: 992px) {
  .card-wid {
    min-height: 200px;
    max-width: 400px; /* ✔ safe */
    margin: auto; /* ✔ centers */
  }
}

@media screen and (min-width: 767px) and (max-width: 1098px) {
  .hero-content h3 {
    font-size: 25px;
  }

  .hero-content h2 {
    font-size: 40px;
  }
}

@media screen and (max-width: 767px) {
  .hero-content h3 {
    font-size: 20px;
  }

  .hero-content h2 {
    font-size: 25px;
  }
}
