/* ---- Testimonial with Video Styles ---- */

.c-testimonial-video {
  max-width: 1240px;
  margin: 64px auto;
  padding: 0 20px;
  box-sizing: border-box;
  font-family: var(--font-family, sans-serif);
}

/* Header */
.c-testimonial-video__header {
  text-align: center;
  margin-bottom: 40px;
}

.c-testimonial-video__title {
  font-size: 26px;
  line-height: 38px;
  color: #2c3e50;
  font-family: var(--font-family-mmc-bold);
  text-align: center;
  margin-bottom: 15px;
}

.c-testimonial-video__subtitle {
  color: #012c52;
  font-size: 20px;
  line-height: 24px;
  text-align: center;
  letter-spacing: 0px;
  text-transform: capitalize;
  font-family: var(--font-family);
  margin: 0;
}

/* Tabs Bar */
.c-testimonial-video__tabs {
  border-bottom: 1px solid #b9bfc7;
  margin-bottom: 48px;
  width: 100%;
}

.c-testimonial-video__tabs-inner {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.c-testimonial-video__tabs-inner::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.c-testimonial-video__tab {
  background: #f8fafc;
  border: 1px solid transparent;
  border-bottom: none;
  padding: 16px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 190px;
  height: 90px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  position: relative;
  margin-bottom: -1px;
}

.c-testimonial-video__tab-logo {
  max-width: 160px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

/* Hover Tab */
.c-testimonial-video__tab:hover {
  background: #edf2f7;
}

.c-testimonial-video__tab:hover .c-testimonial-video__tab-logo {
  opacity: 1;
}

/* Active Tab */
.c-testimonial-video__tab.is-active {
  background: #ffffff;
  border-color: #b9bfc7;
  border-bottom-color: #ffffff;
  z-index: 2;
}

.c-testimonial-video__tab.is-active .c-testimonial-video__tab-logo {
  opacity: 1;
}

.c-testimonial-video__tab.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #008cd0;
}

/* Content Panes */
.c-testimonial-video__panes {
  position: relative;
}

.c-testimonial-video__pane {
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.c-testimonial-video__pane.is-active {
  display: block;
  opacity: 1;
}

.c-testimonial-video__inner-grid {
  display: flex;
  gap: 64px;
  align-items: center;
}

/* Left Column: Details */
.c-testimonial-video__details {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.c-testimonial-video__quote-mark {
  width: 36px;
  height: 26px;
  margin-bottom: 24px;
  display: block;
}

.c-testimonial-video__quote-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.c-testimonial-video__quote-text {
  font-size: 16px;
  line-height: 1.65;
  color: #012c52;
  font-weight: 500;
  margin: 0 0 24px;
}

.c-testimonial-video__divider {
  width: 100%;
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 0 0 24px;
}

.c-testimonial-video__author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.c-testimonial-video__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #cbd5e1;
}

.c-testimonial-video__author-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.c-testimonial-video__author-name {
  font-size: 15px;
  font-weight: 700;
  color: #012c52;
  margin: 0;
}

.c-testimonial-video__author-role {
  font-size: 13px;
  color: #718096;
  margin: 0;
  line-height: 1.3;
}

/* CTA Button */
.c-testimonial-video__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #008cd0 0%, #00ac69 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 140, 208, 0.2);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.c-testimonial-video__cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 140, 208, 0.3);
}

/* Right Column: YouTube Video Iframe Player */
.c-testimonial-video__visual {
  flex: 1.2;
  min-width: 0;
}

.c-testimonial-video__video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.c-testimonial-video__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
  background: #000000;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .c-testimonial-video__inner-grid {
    flex-direction: column;
    gap: 40px;
  }

  .c-testimonial-video__visual,
  .c-testimonial-video__details {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 768px) {
  .c-testimonial-video {
    margin: 40px auto;
  }

  .c-testimonial-video__tab {
    padding: 12px 16px;
    min-width: 150px;
    height: 76px;
  }

  .c-testimonial-video__tab-logo {
    max-width: 120px;
    max-height: 40px;
  }

  .c-testimonial-video__title {
    font-size: 24px;
  }

  .c-testimonial-video__subtitle {
    font-size: 15px;
  }
}
