/**
 * Video & Testimonials Section Styles
 * TubeWriter Homepage
 * Note: Using !important to override Elementor styles
 */

/* Main Video Section Container */
.tw-video {
  background: white !important;
  width: 100% !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 150px 75px 75px 75px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 100px !important;
  box-sizing: border-box !important;
}

/* Video Section Top (Video + Content) */
.tw-video__top {
  display: flex !important;
  flex-direction: column !important;
  gap: 75px !important;
  width: 100% !important;
}

/* Video Player Container */
.tw-video__player {
  position: relative !important;
  background: #006cff !important;
  height: 573px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  width: 100% !important;
  cursor: pointer !important;
}

/* Video Poster Image */
.tw-video__poster {
    /* position: absolute !important; */
    top: 50% !important;
    left: 50% !important;
    /* transform: translate(-50%, -50%) !important; */
    width: 100% !important;
    height: 100% !important;
    /* max-width: none !important; */
    object-fit: contain !important;
    /* object-position: 50% 50% !important; */
    pointer-events: none !important;
}

/* Play Button Overlay */
.tw-video__play-button {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 95px !important;
  height: 95px !important;
  cursor: pointer !important;
  transition: transform 0.3s ease !important;
  z-index: 2 !important;
}

.tw-video__play-button:hover {
  transform: translate(-50%, -50%) scale(1.1) !important;
}

.tw-video__play-outer {
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
}

.tw-video__play-inner {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 42% !important;
  height: 42% !important;
}

/* Video Embed (Hidden until play) */
.tw-video__embed {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 3 !important;
}

.tw-video__embed iframe {
  width: 100% !important;
  height: 100% !important;
}

/* Content Below Video */
.tw-video__content {
  display: flex !important;
  gap: 50px !important;
  width: 100% !important;
}

/* Left Column (Headline + Button) */
.tw-video__content-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 40px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.tw-video__headline {
  font-family: 'Instrument Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 50px !important;
  line-height: 50px !important;
  color: #000000 !important;
  margin: 0 !important;
}

.tw-video__button {
  background: #2d69f6 !important;
  color: white !important;
  font-family: 'Instrument Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 15px 20px !important;
  border-radius: 34px !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  transition: background 0.3s ease !important;
  width: fit-content !important;
  cursor: pointer !important;
}

.tw-video__button:hover {
  background: #1e4ec4 !important;
  color: white !important;
}

/* Right Column (Description) */
.tw-video__content-right {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-end !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.tw-video__description {
  font-family: 'Hind', sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: #000000 !important;
  width: 100% !important;
}

.tw-video__description p {
  margin-bottom: 1em !important;
}

.tw-video__description p:last-child {
  margin-bottom: 0 !important;
}

/* Testimonials Section */
.tw-video__testimonials {
  display: flex !important;
  flex-direction: column !important;
  gap: 40px !important;
}

/* Testimonials Header */
.tw-video__testimonials-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1290px !important;
}

.tw-video__testimonials-heading {
  font-family: 'Instrument Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 28px !important;
  line-height: normal !important;
  color: #000000 !important;
  margin: 0 !important;
}

/* Testimonials Navigation */
.tw-video__testimonials-nav {
  display: flex !important;
  gap: 30px !important;
  align-items: center !important;
}

.tw-video__nav-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: opacity 0.3s ease !important;
}

.tw-video__nav-button:hover {
  opacity: 0.7 !important;
}

.tw-video__nav-button img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.tw-video__nav-prev {
  transform: rotate(180deg) scaleY(-1) !important;
}

/* Testimonials Carousel */
.tw-video__testimonials-carousel {
  width: 100% !important;
  max-width: none !important;
  overflow: hidden !important;
  position: relative !important;
}

.tw-video__testimonials-track {
  display: flex !important;
  gap: 20px !important;
  transition: transform 0.4s ease !important;
}

/* Individual Testimonial Card */
.tw-video__testimonial-card {
  flex: 0 0 auto !important;
  width: calc((100% - 40px) / 3) !important;
  min-width: 0 !important;
  height: 367px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  position: relative !important;
  background: #aa4141 !important;
}

/* Testimonial Background Image */
.tw-video__testimonial-bg {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: auto !important;
  height: 110% !important;
  min-width: 120% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: 50% 50% !important;
}

/* Testimonial Gradient Overlay */
.tw-video__testimonial-overlay {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000000 100%) !important;
  opacity: 0.75 !important;
  pointer-events: none !important;
}

/* Testimonial Content */
.tw-video__testimonial-content {
  position: absolute !important;
  bottom: 30px !important;
  left: 30px !important;
  right: 30px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
  z-index: 1 !important;
}

.tw-video__testimonial-quote {
  font-family: 'Instrument Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 28px !important;
  line-height: normal !important;
  color: white !important;
  margin: 0 !important;
}

.tw-video__testimonial-company {
  font-family: 'Hind', sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: normal !important;
  color: white !important;
  margin: 0 !important;
}

/* Responsive Styles */

/* Large Desktop */
@media (max-width: 1400px) {
  .tw-video {
    padding: 120px 60px 60px 60px !important;
    gap: 80px !important;
  }

  .tw-video__top {
    gap: 60px !important;
  }

  .tw-video__player {
    height: 500px !important;
  }

  .tw-video__headline {
    font-size: 45px !important;
    line-height: 45px !important;
  }

  .tw-video__testimonial-card {
    width: calc((100% - 40px) / 3) !important;
    height: 340px !important;
  }

  .tw-video__testimonial-quote {
    font-size: 26px !important;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .tw-video {
    padding: 100px 40px 50px 40px !important;
    gap: 60px !important;
  }

  .tw-video__top {
    gap: 50px !important;
  }

  .tw-video__player {
    height: 400px !important;
  }

  .tw-video__content {
    gap: 40px !important;
  }

  .tw-video__headline {
    font-size: 40px !important;
    line-height: 40px !important;
  }

  .tw-video__description {
    font-size: 15px !important;
  }

  .tw-video__testimonials-heading {
    font-size: 24px !important;
  }

  .tw-video__testimonial-card {
    width: calc((100% - 20px) / 1.75) !important;
    height: 300px !important;
  }

  .tw-video__testimonial-quote {
    font-size: 22px !important;
  }

  .tw-video__testimonial-company {
    font-size: 14px !important;
  }

  .tw-video__testimonial-content {
    bottom: 25px !important;
    left: 25px !important;
    right: 25px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .tw-video {
    padding: 60px 20px 40px 20px !important;
    gap: 40px !important;
  }

  .tw-video__top {
    gap: 40px !important;
  }

  .tw-video__player {
    height: 300px !important;
  }

  .tw-video__play-button {
    width: 70px !important;
    height: 70px !important;
  }

  .tw-video__content {
    flex-direction: column !important;
    gap: 30px !important;
  }

  .tw-video__headline {
    font-size: 32px !important;
    line-height: 36px !important;
  }

  .tw-video__button {
    font-size: 14px !important;
    padding: 12px 18px !important;
  }

  .tw-video__description {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  .tw-video__testimonials {
    gap: 30px !important;
  }

  .tw-video__testimonials-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }

  .tw-video__testimonials-heading {
    font-size: 22px !important;
  }

  .tw-video__testimonials-nav {
    gap: 20px !important;
  }

  .tw-video__testimonials-track {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .tw-video__testimonial-card {
    width: 100% !important;
/*     flex: 1 !important; */
    height: 280px !important;
  }
	
	.tw-video__testimonials-nav {
display: none!important;}

  .tw-video__testimonial-quote {
    font-size: 20px !important;
  }

  .tw-video__testimonial-company {
    font-size: 13px !important;
  }

  .tw-video__testimonial-content {
    bottom: 20px !important;
    left: 20px !important;
    right: 20px !important;
    gap: 10px !important;
  }
}
