/* Video background */
.relative-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.overlay-black {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.5;
  z-index: 0;
  border-bottom-right-radius: 30px;
  border-bottom-left-radius: 30px;
}

.content-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: white;
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: center;
  padding-top: 6rem;
}

@media (min-width: 768px) {
  .content-container {
    padding-top: 8rem;
  }
}

.card-box {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
  margin: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  max-width: 768px;
  width: 100%;
}

@media (min-width: 640px) {
  .card-box {
    padding: 2.5rem;
  }
}

.heading-text {
  font-size: 1.875rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

@media (min-width: 640px) {
  .heading-text {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .heading-text {
    font-size: 3rem;
  }
}

.description-text {
  color: white;
  font-size: 1rem;
  line-height: 1.75;
  animation: fadeInUpBig 1s ease both;
}

@media (min-width: 640px) {
  .description-text {
    font-size: 1.125rem;
  }
}

@media (min-width: 768px) {
  .description-text {
    font-size: 1.25rem;
  }
}

/* Animate.css fadeInUpBig keyframes */
@keyframes fadeInUpBig {
  0% {
    opacity: 0;
    transform: translate3d(0, 2000px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
/* New */

/* Container Padding */
.section-grid {
  padding-top: 3rem;
  padding-bottom: 3rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .section-grid {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 768px) {
  .section-grid {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1024px) {
  .section-grid {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

/* Grid Layout */
.grid-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 80rem; /* ~1280px */
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-wrapper {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Card Container */
.card-item {
  position: relative;
  background-color: #eff6ff; /* bg-blue-50 */
  border: 1px solid #bfdbfe; /* border-blue-200 */
  border-radius: 1rem; /* rounded-2xl */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* shadow-xl */
  overflow: hidden;
  transition: transform 0.5s ease;
}

/* Image */
.card-item img {
  width: 100%;
  height: 10rem; /* h-40 = 160px */
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.5s ease;
}

.card-item:hover img {
  transform: scale(1.10); /* group-hover:scale-110 */
}

/* Text Container */
.card-text {
  padding: 1rem;
  text-align: center;
}

/* Heading */
.card-text h3 {
  color: #1e40af; /* text-blue-800 */
  font-weight: 500;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.card-item:hover .card-text h3 {
  color: #1e3a8a; /* text-blue-900 */
  font-weight: 700;
}


/* Center single card at bottom of grid */


.card-center-wrapper {
  display: flex;
  justify-content: center;
  grid-column: 1 / -1; /* span entire row */
}

.card-center-wrapper .card-item {
  width: 100%;
  max-width: 230px;
}
