/* Override Bootstrap popover styling */
.popover.dark-popover {  
  background-color: #343a40;
  color: #fff;
  border: none;
  border-radius: 10px;
}
  
.popover.dark-popover .popover-header {
  background-color: #212529;
  color: #fff;
  border-bottom: none;    
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
  
.popover.dark-popover .popover-body {
  color: #dee2e6;
}

.btn {
  border-radius: 5px;
}

.duotone-card {
  background-color: transparent;
  perspective: 1000px;
  min-height: 300px;
  cursor: pointer;  
  border-radius: 20px;
}

.duotone-card-inner {
  position: relative;
  transition: transform 0.4s ease-in, box-shadow 0.3s;
  width: 100%;
  height: 100%;
  text-align: center;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  will-change: transform;
  border-radius: 20px;
  background-color: transparent !important;
}

.duotone-card:hover .duotone-card-inner {
  transform: rotateY(180deg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.duotone-card:focus-within {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.duotone-card-front,
.duotone-card-back {
  border-radius: 20px;
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background-color: #1a1a1a;
  color: white;
}

.duotone-card-back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.duotone-card-title {
  font-size: 40px;
  font-weight: 800;
  text-transform: uppercase;
}

.duotone-card-text {
  font-size: 18px;
  font-weight: 300;
  color: #ccc;
}

.duotone-card-badge {
  top: 25px;
  left: 25px;
  position: absolute;
  background-color: #ffc107; /* muted yellow */
  color: #1a1a1a;
  font-weight: 900;
  font-size: 1.2rem;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
  text-transform: uppercase;
}

@media (max-width: 576px) {
  .duotone-card {
    min-height: 250px;
  }

  .duotone-card-title {
    font-size: 28px;
  }

  .duotone-card-text {
    font-size: 16px;
  }

  .duotone-card-front img {
    height: 150px;
    width: 150px;
  }
}


.list-group-item {
  background-color: transparent;
  border: none;
  padding-left: 0;
}

.placeholder-card {
  background: linear-gradient(135deg, #fff, #ccc);
  cursor: not-allowed;
  opacity: 0.7;
}