/**
 * Solution Flip Card Widget
 * New implementation with .nws-flip classnames
 */

/* Container */
.nws-flip-card {
  perspective: 1000px;
  width: 100%;
  height: 480px;
  cursor: pointer;
  position: relative;
}

/* Inner wrapper */
.nws-flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

/* Flip on hover */
.nws-flip-card:hover .nws-flip-card__inner,
.nws-flip-card.flipped .nws-flip-card__inner {
  transform: rotateY(180deg);
}

/* Both faces */
.nws-flip-card__face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 32px;
  overflow: hidden;
}

/* ============================================
   FRONT FACE
   ============================================ */

.nws-flip-card__front {
  background: #8b5cf6;
  padding: 40px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

/* Number badge */
.nws-flip-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 24px;
}

/* Icon */
.nws-flip-card__icon {
  color: #ffffff;
  margin-bottom: 24px;
}

.nws-flip-card__icon svg {
  width: 56px;
  height: 56px;
  display: block;
}

/* Title */
.nws-flip-card__title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

/* Description */
.nws-flip-card__desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ============================================
   BACK FACE
   ============================================ */

.nws-flip-card__back {
  background: #7c3aed;
  transform: rotateY(180deg);
  padding: 40px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* Back title */
.nws-flip-card__back-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 24px 0;
  line-height: 1.3;
}

/* List */
.nws-flip-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex: 1;
}

.nws-flip-card__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.nws-flip-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: #c4b5fd;
  border-radius: 50%;
}

.nws-flip-card__list li:last-child {
  margin-bottom: 0;
}

/* Button */
.nws-flip-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #7c3aed;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: auto;
  align-self: flex-start;
}

.nws-flip-card__btn:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .nws-flip-card {
    height: 420px;
  }
  
  .nws-flip-card__front,
  .nws-flip-card__back {
    padding: 32px 24px 24px 24px;
  }
  
  .nws-flip-card__title {
    font-size: 26px;
  }
  
  .nws-flip-card__back-title {
    font-size: 20px;
  }
}
