/* GoBizi Video Slider Styles */

.gb-slider-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 60px 0;
}

.gb-slider-container {
  font-family: 'Outfit', sans-serif;
  width: 100%;
  overflow: visible !important;
}

/* Pre-init styles to avoid full-width layout jump on page load */
.gb-slider-container:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 30px;
}

.gb-slider-container:not(.swiper-initialized) .swiper-slide {
  width: calc(33.33% - 20px);
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .gb-slider-container:not(.swiper-initialized) .swiper-slide {
    width: calc(45% - 15px);
  }
}

@media (max-width: 768px) {
  .gb-slider-container:not(.swiper-initialized) .swiper-slide {
    width: 85%;
  }
}

.gb-card {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  transition: all 0.5s ease;
  z-index: 10;
}

.gb-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.gb-card:hover .gb-card-bg {
  transform: scale(1.05);
}

.gb-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}

/* Overlay logic removed as requested */

.gb-card-content {
  position: relative;
  z-index: 50; /* High z-index to stay on top of video */
  height: 100%;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  color: #fff;
  transition: opacity 0.4s ease;
  pointer-events: none; /* Let clicks pass through it to the card/video */
}

/* Hide content when playing unless hovered */
.gb-card.is-playing:not(:hover) .gb-card-content {
  opacity: 0;
}

.gb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.gb-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.gb-client-logo {
  max-width: 100px;
  width: 100px;
  max-height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.gb-quote {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.gb-card:hover .gb-quote {
  transform: translateY(-20px);
  opacity: 0;
}

.gb-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.gb-designation {
  margin: 4px 0 0;
  font-size: 14px;
  opacity: 0.8;
}

/* Play Button */
.gb-play-btn-wrapper {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
  pointer-events: none; /* Pass clicks to card */
}

.gb-card:hover .gb-play-btn-wrapper {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.gb-play-btn {
  background: #fff;
  border: none;
  border-radius: 100px;
  padding: 8px 24px 8px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.gb-play-icon {
  width: 42px;
  height: 42px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gb-play-icon svg {
  width: 20px;
  height: 20px;
  color: #000;
}

.gb-play-text {
  color: #000;
  font-weight: 700;
  font-size: 15px;
}

/* Navigation Arrows */
.gb-slider-wrapper .swiper-button-next,
.gb-slider-wrapper .swiper-button-prev {
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  color: #000;
}

.gb-slider-wrapper .swiper-button-next:after,
.gb-slider-wrapper .swiper-button-prev:after {
  font-size: 16px;
  font-weight: bold;
}

.gb-slider-wrapper .swiper-button-next { right: 30px; }
.gb-slider-wrapper .swiper-button-prev { left: 30px; }

/* Video Modal */
.gb-video-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 20;
  display: none;
}

.gb-video-modal video,
.gb-video-modal iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* Crucial: Let clicks go to card */
}

.gb-video-close { display: none; }

@media (max-width: 768px) {
  .gb-card { height: 420px; }
  .gb-quote { font-size: 20px; }
}
