
.pt-carousel {
  position: relative;
  perspective: 800px;
  width: 100%;
  max-width: 1000px;
  min-height: 420px;
  margin: 6rem auto 3rem;
  padding: 0 1rem;
  user-select: none;
}


.pt-card {
  position: absolute;
  width: 100%;
  min-height: 420px;
  border-radius: 2.6rem;
  padding: 3rem;
  background: #fff;
  color: #222;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);

  padding: 50px 50px 20px;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;

  display: flex;
  align-items: center;
  gap: 2.6rem;
  cursor: pointer;
}
.pt-card {
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.bg-img {
  display: none;
  position: absolute;
  inset: 0;
}

.pt-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.8rem;
}

.pt-content p {
  align-self: center;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  position: relative;
}

.pt-content p::before {
  content: '';
  background: url('../images/double-quates.webp');
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: -20%;
  left: 0;
  width: 1.6rem;
  height: 1.6rem;
}

.paitent-name {
  font-weight: 600;
}

.pt-media {
  width: 320px;
  height: 320px;
  flex-shrink: 0;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
}

.pt-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12rem 16rem 12rem 16rem;
  display: block;
  position: absolute;
}

.pt-play-img {
  position: absolute;
  width: 4.8rem !important;
  height: 4.8rem !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


/* Dark overlay */
.pt-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12rem 16rem 12rem 16rem;
  z-index: 1;
  /* middle layer */
}

/* Play icon */
.pt-media::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  background: url('../images/play_red.png') center/contain no-repeat;
  width: 4rem;
  height: 4rem;

  z-index: 2;
  /* top layer */
}

.pt-media::before,
.pt-media::after {
  opacity: 0;
  transition: 0.3s ease;
}

.pt-card:hover .pt-media::before,
.pt-card:hover .pt-media::after {
  opacity: 1;
}

.pt-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.pt-controls button {
  background: var(--primary-color);
  color: #fff;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 50%;
  border: none;

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt-controls button img {
  width: 2rem;
  filter: brightness(0) invert(1);
}

.pt-controls button:hover {
  background: #ffc816;
  color: #000;
}

.pt-controls button:hover img {
  filter: brightness(10) invert(0);
}

@media (max-width: 992px) {
  .pt-card {
    padding: 1.8rem 2.5rem;
    gap: 2rem;
  }

  .pt-media {
    width: 260px;
    height: 260px;
  }

  .pt-content p {
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .pt-carousel {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    min-height: auto;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
  }

  .pt-card {
    flex: 1 0 28rem;
    position: static;
    flex-direction: column;
    text-align: center;
    margin: 1rem 0 2rem;
    gap: 1.4rem;
    /* padding: 2rem;
    min-height: auto; */
  }

  .pt-media {
    /* width: 100rem; */

    /* height: 220px; */
  }

  .pt-content {
    align-items: center;
    gap: 1.5rem;
  }

  .pt-content p {
    font-size: 0.89rem;
  }

  .pt-controls {
    /* margin-top: 2rem; */
  }
}
@media (max-width: 480px) {
  .pt-card {
    flex: 1 0 22rem;
  }
  .pt-media {
    width: 200px;
    height: 190px;
  }

  .pt-play-img {
    width: 3.5rem !important;
    height: 3.5rem !important;
  }

  .pt-content img {
    width: 120px;
  }

  .pt-content p {
    font-size: 0.86rem;
  }
  .pt-content p::before {
    top: -12%;
    width: 1.2rem;
    height: 1rem;
  }
  .paitent-info {
    font-size: 0.86rem;
  }

  .pt-controls {
    display: none;
  }
  .pt-controls button {
    padding: 0.7rem;
  }

  .pt-controls button img {
    width: 1.5rem;
  }
}

@media (max-width: 768px) {
  .pt-carousel {
    /* height: 580px; */
  }
}
