/**
 * MCD Video Testimonial - Frontend Styles
 */
@font-face {
  font-family: 'Gotham-Black';
  src: url('../fonts/gotham-black-webfont.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

.mcd-video-testimonial-landing-page h1,
.mcd-video-testimonial-landing-page h2,
.mcd-video-testimonial-landing-page h3,
.mcd-video-testimonial-landing-page h4,
.mcd-video-testimonial-landing-page h5,
.mcd-video-testimonial-landing-page h6 {
  font-family: 'Gotham-Black', sans-serif !important;
  color: #133156;
}
.mcd-video-testimonial-landing-page p,
.mcd-video-testimonial-landing-page a,
.mcd-video-testimonial-landing-page strong,
.mcd-video-testimonial-landing-page select {
  font-family: 'Gotham', sans-serif;
  color: #133156;
}

/* Hero Section */
.hero-section {
  padding: 7.5rem 2rem;
  margin-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: 1160px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-section.video::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: 1160px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url('../images/bk-ellipses.png') no-repeat 92% 50%;
}

.hero-container {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-heading {
  font-family: 'Gotham-Black', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* IMAGE HERO SECTION */
.hero-section.image {
  padding: 5rem 2rem;
}
.hero-section.image::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url('../images/bk-ellipses-02.png') no-repeat 50% 50%;
  background-size: 100% auto;
  z-index: 0;
}
.hero-section.image .hero-content {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  text-align: center;
  margin: 0 auto;
  /* padding-right: 2rem; */
}
.hero-section.image .hero-heading {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}
.hero-media .hero-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.hero-media .hero-image {
  display: block;
}
.hero-media .hero-image.mobile {
  display: none;
}

.hero-video-wrapper {
  position: relative;
}

.hero-video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  background: #f5f5f5;
}

.hero-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}

.hero-video-placeholder {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #eff0f2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-video-placeholder a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-video-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Single Video Testimonial Page */

/* .mcd-video-testimonial-single {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
} */

/* .advisor-name {
  font-size: 1.3rem;
  color: #666;
  font-weight: 600;
  margin: 0;
} */

.testimonial-body {
  margin-bottom: 2rem;
}

/* Video Embed Styling */
.testimonial-video {
  margin: 2rem auto;
  max-width: 900px;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.testimonial-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.testimonial-still-image,
.testimonial-thumbnail {
  margin: 2rem auto;
  max-width: 900px;
}

.testimonial-still-image img,
.testimonial-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* categories  */
.testimonial-categories {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.testimonial-categories ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.testimonial-categories li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.testimonial-categories li a:hover {
  background: #5568d3;
}

/* Archive Page */
.mcd-video-testimonial-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-size: 2.5rem;
  color: #333;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ddd;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.testimonial-card:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.testimonial-card-media {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  height: 208px;
}

.testimonial-card-media img {
  width: 100%;
  height: auto;
  display: block;
}

.play-icon,
.placeholder-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.play-icon .dashicons,
.placeholder-image .dashicons {
  font-size: 38px;
  color: #fff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
}

.hero-video-placeholder:hover .play-icon,
.testimonial-card:hover .play-icon,
.testimonial-card:hover .placeholder-image,
.video-testimonial-popup:focus-visible .play-icon {
  transform: translate(-50%, -50%) scale(1.025);
  background: rgba(0, 0, 0, 0.65);
}

.video-testimonial-popup:focus-visible .play-icon {
  outline: rgb(0, 95, 204) solid 2px;
}
.mfp-close:focus-visible {
  outline: rgb(0, 95, 204) solid 2px;
}

.testimonial-card-content {
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.testimonial-card-title {
  margin: 0 0 0.5rem 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  line-height: 28px;
}
.testimonial-advisor-title {
  display: block;
  font-family: 'Gotham', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #133156;
  margin-top: 0;
}

.testimonial-statement {
  margin: 0 0 1.5rem 0;
  padding-bottom: 0;
  font-size: 15px;
  font-style: italic;
  line-height: 22px;
}

.testimonial-card-link {
  display: inline-block;
  padding: 12px 20px;
  background: rgba(108, 197, 233, 1);
  color: #133156;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 25px;
  transition: all 0.3s;
  font-weight: 700;
}

.testimonial-card-link:hover {
  background: rgba(108, 197, 233, 0.8);
  color: #133156;
}

/* Landing Page */
.mcd-video-testimonial-landing-page {
  max-width: 1224px;
  margin: 0 auto;
  padding: 0 2rem;
}

.landing-header {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.testimonial-category-nav select {
  appearance: none; /* Removes default styling for most browsers */
  -webkit-appearance: none; /* For Webkit browsers like Chrome, Safari */
  -moz-appearance: none; /* For Firefox */

  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  width: 350px;
  padding: 1.25rem;

  font-size: 15px;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid #133156;
  border-radius: 3px;
  box-shadow: none;

  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="11" viewBox="0 0 18 11" fill="none"><path d="M17 0.999999L9 9L1 1" stroke="%23133156" stroke-width="2" stroke-linecap="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 20px;
}
.testimonial-category-nav select:focus-visible {
  outline: rgb(0, 95, 204) solid 2px;
}

.landing-title {
  font-size: 2.5rem;
  text-align: left;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-content {
  margin-bottom: 3rem;
  line-height: 1.8;
}

.landing-testimonials {
  margin-top: 3rem;
}

h3.category-title {
  font-size: 1.5rem;
  text-align: left;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

/* Category Sections */
.category-section {
  margin: 5rem 0;
  /* padding-bottom: 3rem; */
  /* border-bottom: 2px solid #e0e0e0; */
}

.category-section:last-child {
  border-bottom: none;
}

.category-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* 3-Column Grid for Desktop */
.testimonial-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.landing-back-to-top {
  text-align: center;
  margin-bottom: 8rem;
}
.back-to-top-link {
  display: inline-block;
  margin: 0 auto;
  padding: 14px 34px;
  background-color: #eee;
  color: #133156;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  transition: background-color 0.3s;
}
.back-to-top-link:hover {
  color: #133156;
  background-color: #e1e1e1;
}

.mfp-bg {
  z-index: 10042;
}
.mfp-wrap {
  z-index: 10043;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .testimonial-grid-3col {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .hero-container {
    gap: 3rem;
  }

  .hero-heading {
    font-size: 2rem;
    line-height: 120%; /* 38.4px */
  }
  .hero-section.image .hero-heading {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
  .hero-media img {
    max-width: 100%;
    height: auto;
  }

  .landing-header {
    flex-direction: column;
    gap: 1.5rem;
  }
  .testimonial-category-nav {
    width: 100%;
  }
  .testimonial-category-nav select {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .testimonial-grid,
  .testimonial-grid-3col {
    grid-template-columns: 1fr;
  }

  .page-title,
  .landing-title {
    font-size: 2rem;
    line-height: 120%; /* 38.4px */
    text-align: center;
  }

  .mcd-video-testimonial-single,
  .mcd-video-testimonial-archive,
  .mcd-video-testimonial-landing-page {
    padding: 2.5rem 1.25rem;
  }

  .category-section {
    margin: 2rem 0;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 2.5rem 1.25rem;
    margin-bottom: 0;
  }

  .hero-section.video::before,
  .hero-section.video::after {
    display: none;
  }

  .hero-section.image {
    padding: 2.5rem 2.6rem;
    margin-bottom: 0;
  }
  .hero-section.image::after {
    background: url('../images/bk-ellipses-02.png') no-repeat 50% 100%;
    background-size: 100% auto;
  }
  .hero-media .hero-image {
    display: none;
  }
  .hero-media .hero-image.mobile {
    display: block;
    max-width: 100%;
    height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content {
    padding-right: 0;
    text-align: center;
  }

  .hero-play-icon {
    width: 80px;
    height: 80px;
  }

  .hero-play-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
  }

  .testimonial-card-media {
    height: 32vh;
  }
}

@media (max-width: 525px) {
  .testimonial-card-media {
    height: 208px;
  }
}
