/* ==============================
   MyDodoLife Review - Success Stories
================================= */

.mdl-review-section {
  width: min(100%, var(--mdl-content-max-width, 1340px));
  margin-inline: auto;
  padding-block: 24px 32px;
  padding-inline: 32px;
}

.mdl-review-filters-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.mdl-review-filters-track {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
}

.mdl-review-filters {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 12px;
  min-width: min-content;
  margin-inline: auto;
  transition: transform 0.3s ease;
  will-change: transform;
}

.mdl-review-section:not(.has-filter-overflow) .mdl-review-filters-wrap {
  justify-content: center;
}

.mdl-review-section:not(.has-filter-overflow) .mdl-review-filters-track {
  flex: 1 1 auto;
  max-width: 100%;
}

.mdl-review-section:not(.has-filter-overflow) .mdl-review-filters {
  justify-content: center;
  width: 100%;
}

.mdl-review-filters-nav {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e0e2;
  border-radius: 50%;
  background: #ffffff;
  color: #073844;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.mdl-review-filters-nav:hover,
.mdl-review-filters-nav:focus-visible {
  border-color: #31616e;
  color: #31616e;
  outline: none;
}

.mdl-review-filters-nav[hidden] {
  display: none;
}

.mdl-review-filter {
  appearance: none;
  border: 2px solid #31616e;
  border-radius: 15px;
  background: transparent;
  color: #31616e;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  min-height: 44px;
  padding: 12px 22px;
  white-space: nowrap;
  flex: 0 0 auto;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.mdl-review-filter:hover,
.mdl-review-filter:focus-visible {
  border-color: #31616e;
  color: #31616e;
  outline: none;
}

.mdl-review-filter.is-active {
  background: #31616e;
  border-color: #31616e;
  color: #ffffff;
}

.mdl-review-panels {
  position: relative;
}

.mdl-review-visa-panel {
  display: none;
}

.mdl-review-visa-panel.is-active {
  display: block;
}

.mdl-review-slide {
  display: none;
}

.mdl-review-slide.is-active {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mdl-review-slide-body {
  display: flex;
  align-items: stretch;
  gap: 50px;
}

/* Stretch with the right column; absolute img fills — no height:100% on this box. */
.mdl-review-photo {
  position: relative;
  flex: 0.95 1 0;
  min-width: 0;
  align-self: stretch;
  border-radius: 18px;
  overflow: hidden;
  background: #eef3f4;
}

.mdl-review-photo-img {
  position: absolute !important;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0;
  border-radius: 18px;
  object-fit: cover !important;
  object-position: center;
}

.mdl-review-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1.05 1 0;
  min-width: 0;
}

.mdl-review-card {
  border-radius: 18px;
  background: #61a1b0;
  color: #ffffff;
  padding: 30px;
  min-height: 360px;
  flex: 1 1 auto;
}

.mdl-review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.mdl-review-card-heading {
  min-width: 0;
}

.mdl-review-logo {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.mdl-review-logo-img {
  display: block;
  width: auto;
  /* height: 100%; */
  max-height: 55px;
  object-fit: contain;
}

.mdl-review-name {
  margin: 0 0 6px;
  color: #fecb0a;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
}

.mdl-review-role {
  margin: 0;
  color: #fecb0a;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

.mdl-review-testimonial {
  color: #ffffff;
  font-size: 15px;
  line-height: 2;
  padding-top: 15px;
 text-align: justify;
}

.mdl-review-testimonial p {
  margin: 0 0 1em;
}

.mdl-review-testimonial p:last-child {
  margin-bottom: 0;
}

.mdl-review-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.mdl-review-dot {
  appearance: none;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c5d2d6;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mdl-review-dot.is-active {
  background: #31616e;
  transform: scale(1.15);
}

.mdl-review-dot:hover,
.mdl-review-dot:focus-visible {
  background: #073844;
  outline: none;
}

/* Matches Elementor `button_yellow` (ID 79) */
.mdl-review-cta {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  align-self: start;
  width: fit-content;
  max-width: 100%;
  column-gap: 24px;
  padding: 6px 24px;
  border-radius: 15px;
  background-color: #fecb0a;
  color: #31616e;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
}

.mdl-review-cta:hover,
.mdl-review-cta:focus-visible {
  color: #31616e;
  outline: none;
}

.mdl-review-cta--static {
  cursor: default;
}

.mdl-review-cta-text {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.mdl-review-cta-icon {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.mdl-review-cta-icon svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ==============================
   Mobile
================================= */

@media (max-width: 991px) {
  .mdl-review-slide-body {
    flex-direction: column;
    gap: 18px;
  }

  .mdl-review-photo {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 300px;
    aspect-ratio: 4 / 3;
  }

  .mdl-review-photo-img {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 18px;
  }

  .mdl-review-right {
    flex: none;
    width: 100%;
  }

  .mdl-review-card {
    min-height: 0;
    padding: 28px 22px 24px;
  }

  .mdl-review-dots {
    margin-top: 0;
  }

  .mdl-review-cta {
    align-self: center;
    width: fit-content;
  }
}

@media (max-width: 767px) {
  .mdl-review-section {
    padding-inline: 20px;
  }

  .mdl-review-filters-wrap {
    margin-bottom: 24px;
    gap: 6px;
  }

  .mdl-review-section.has-filter-overflow .mdl-review-filters-wrap {
    padding-inline: 2px;
  }

  .mdl-review-filters {
    justify-content: flex-start;
  }

  .mdl-review-filters-nav {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .mdl-review-filter {
    min-height: 42px;
    padding: 11px 20px;
    font-size: 13px;
  }

  .mdl-review-slide.is-active {
    gap: 16px;
  }

  .mdl-review-name {
    font-size: 24px;
  }

  .mdl-review-role {
    font-size: 14px;
  }

  .mdl-review-photo {
    border-radius: 16px;
  }

  .mdl-review-card {
    border-radius: 16px;
    padding: 24px 20px 22px;
  }

  .mdl-review-card-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 14px;
  }

  .mdl-review-logo {
    align-self: flex-start;
  }

  .mdl-review-logo-img {
    height: auto;
    max-height: 48px;
  }

  .mdl-review-testimonial {
    font-size: 14px;
    line-height: 1.65;
  }

  .mdl-review-cta {
    justify-self: stretch;
    justify-content: center;
    width: 100%;
    font-size: 18px;
  }
}
