/* ==========================================================================
   Flip Cards — From Uiverse.io by ElSombrero2
   ========================================================================== */

.objectives-flip-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.objectives-flip-cards .flip-card {
  overflow: visible;
  width: 100%;
  height: 280px;
  perspective: 1000px;
}

.objectives-flip-cards .flip-card .content {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 300ms;
  box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  position: relative;
}

.objectives-flip-cards .flip-card:hover .content {
  transform: rotateY(180deg);
}

.objectives-flip-cards .front,
.objectives-flip-cards .back {
  background-color: #ffffff;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 5px;
  overflow: hidden;
}

.objectives-flip-cards .back {
  justify-content: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.objectives-flip-cards .back::before {
  position: absolute;
  content: ' ';
  display: block;
  width: 160px;
  height: 160%;
  background: linear-gradient(90deg, transparent, #60A5FA, #60A5FA, #60A5FA, #60A5FA, transparent);
  animation: rotation_481 5000ms infinite linear;
}

.objectives-flip-cards .back-content {
  position: absolute;
  width: 99%;
  height: 99%;
  background-color: #ffffff;
  border-radius: 5px;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 1.5rem;
  text-align: center;
}

.objectives-flip-cards .back-content strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.objectives-flip-cards .back-content p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.objectives-flip-cards .front {
  transform: rotateY(180deg);
  color: white;
}

.objectives-flip-cards .front .front-content {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.objectives-flip-cards .front-content .badge {
  background-color: rgba(0, 0, 0, 0.45);
  padding: 2px 10px;
  border-radius: 10px;
  backdrop-filter: blur(2px);
  width: fit-content;
  font-size: 0.75rem;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.objectives-flip-cards .description {
  box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.15);
  width: 100%;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  border-radius: 5px;
  margin-top: auto;
}

.objectives-flip-cards .title {
  font-size: 0.75rem;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.objectives-flip-cards .title p {
  width: auto;
  margin: 0;
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.9rem;
}

.objectives-flip-cards .title svg {
  flex-shrink: 0;
}

.objectives-flip-cards .card-desc {
  color: #475569;
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.objectives-flip-cards .card-footer {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
  font-size: 0.7rem;
}

.objectives-flip-cards .front .img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.objectives-flip-cards .circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #93C5FD;
  position: relative;
  filter: blur(15px);
  animation: floating 2600ms infinite linear;
}

.objectives-flip-cards #bottom {
  background-color: #3B82F6;
  left: 50px;
  top: 0px;
  width: 150px;
  height: 150px;
  animation-delay: -800ms;
}

.objectives-flip-cards #right {
  background-color: #60a5fa;
  left: 160px;
  top: -80px;
  width: 30px;
  height: 30px;
  animation-delay: -1800ms;
}

@keyframes rotation_481 {
  0% {
    transform: rotateZ(0deg);
  }
  100% {
    transform: rotateZ(360deg);
  }
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 768px) {
  .objectives-flip-cards {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}