/* Hero Section */

.pvs-hero-section {
  /*background: var(--bg-gradient);*/
  padding: 5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.pvs-hero-section h1 {
  animation: fadeInDown 0.8s ease;
}

.pvs-hero-section p {
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

/* Video Toggle Buttons */

.pvs-video-toggle .btn {
  background-color: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  margin: 0 .5rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pvs-video-toggle .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow);
}

.pvs-video-toggle .btn.active {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Video Cards */

.pvs-video-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px var(--shadow);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  /*height: 100%;*/
}

.pvs-video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Video Container Ratios */

.pvs-video-container {
  position: relative;
  height: 0;
  overflow: hidden;
}

.pvs-video-container.pvs-ratio-16x9 {
  padding-bottom: 56.25%;
  /*16: 9 Aspect Ratio;*/
}

.pvs-video-container.pvs-ratio-9x16 {
  padding-bottom: 180.8%;
  9: 16 Aspect Ratio;
}

.pvs-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Video Info */

.pvs-video-info {
  /*padding: 1.25rem;*/
  display: none;
}

.pvs-video-info h5 {
  margin-bottom: .5rem;
  color: var(--text);
  font-weight: 600;
}

.pvs-video-info p {
  margin-bottom: 0;
  color: var(--text-light);
  font-size: .9rem;
  line-height: 1.5;
}

/* Carousel Controls */

.pvs-video-carousel .carousel-control-prev, .pvs-video-carousel .carousel-control-next {
  max-width: 5%;
  opacity: 1;
}

.pvs-video-carousel .carousel-control-prev-icon, .pvs-video-carousel .carousel-control-next-icon {
  background-color: var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-size: 60%;
  transition: transform 0.3s ease;
}

.pvs-video-carousel .carousel-control-prev:hover .carousel-control-prev-icon, .pvs-video-carousel .carousel-control-next:hover .carousel-control-next-icon {
  transform: scale(1.1);
}

/* Play Button Overlay */

.pvs-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.pvs-play-overlay i {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.pvs-video-card:hover .pvs-play-overlay {
  opacity: 1;
}

.pvs-video-card:hover .pvs-play-overlay i {
  transform: scale(1.1);
}

/* Pop Effect */

.pvs-pop-container {
  position: fixed;
  z-index: 1052;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center center;
  display: flex;
  flex-direction: column;
}

.pvs-pop-video-container {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pvs-pop-video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.pvs-pop-video-info {
  padding: 1.5rem;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  display: none;
}

.pvs-pop-video-info h3 {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-weight: 700;
}

.pvs-pop-video-info p {
  margin: 0;
  color: var(--text-light);
  font-size: 1rem;
}

.pvs-fade-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 1051;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pvs-fade-overlay.active {
  opacity: 1;
}

.pvs-close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  opacity: 0.8;
  transition: all 0.2s ease;
  padding-bottom: 8px;
}

.pvs-close-button:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.9);
  transform: rotate(90deg);
}

/* Responsive adjustments */

@media (max-width: 768px) {
  .carousel-item .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .pvs-video-toggle .btn {
    margin: 0.25rem;
    padding: 0.375rem 0.75rem;
  }
}

@media (max-width: 768px) {
  .pvs-hero-section {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .pvs-hero-section h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .pvs-pop-container {
    max-width: 95vw;
    max-height: 80vh;
  }
}

@media (max-width: 768px) {
  .pvs-pop-video-info {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .pvs-pop-video-info h3 {
    font-size: 1.2rem;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .carousel-item .col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Carousel fade/transform */

.pvs-video-carousel .carousel-inner.pvs-fade-transform {
  opacity: 0;
  transform: scale(0.96);
  transition: all 0.4s ease;
}

.pvs-video-carousel .carousel-inner.pvs-fade-transform.pvs-showing {
  opacity: 1;
  transform: scale(1);
}

.carousel-item {
  padding: 0 15px;
}

.carousel-inner {
  padding: 20px 0;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

