.card-stack-container {
      position: relative;
      height: 450px;
      perspective: 2000px;
    }

    .card-stack {
      position: relative;
      width: 100%;
      height: 100%;
    }

    .card {
      position: absolute;
      width: 100%;
      background: white;
      border-radius: 16px;
      padding: 20px;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
      transform-origin: center;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      box-sizing: border-box;
    }

    .card img {
      width: 100%;
      object-fit: cover;
      border-radius: 12px;
      opacity: 1;
      margin-bottom: 20px;
    }

    .card h3 {
      font-size: 22px;
      margin: 0 0 10px;
      color: #2b2d77;
    }

    .card p {
      font-size: 16px;
      color: #444;
      margin: 0 0 15px;
    }

    .card button {
      background-color: #2b2d77;
      color: #fff;
      border: none;
      padding: 10px 20px;
      border-radius: 8px;
      font-size: 14px;
      cursor: pointer;
      transition: background 0.3s ease;
      margin-top: auto;
    }

    .card button:hover {
      background-color: #1e1f5f;
    }
    
    .card {
      pointer-events: none;
    }
    
    .card.top-card {
      pointer-events: auto;
    }
    
    .card {
  z-index: var(--card-index);
}