.editorial-widget {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 350px;
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 10px;
}

.author-image, .reviewer-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.author-details, .widget-body {
    display: flex;
    flex-direction: column;
}

.author-title, .body-title {
    font-weight: bold;
    margin: 0;
}

.author-name, .reviewer-name {
    font-weight: bold;
    margin: 0;
    text-decoration: none;
    color: #0077b6; /* Link color */
    font-weight: bold;
}

.author-name:hover, .reviewer-name:hover {
    text-decoration: underline;
}

 .unique-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ff6b6b;
    color: white;
    font-size: 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    animation: ring 2s infinite;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .unique-button:hover {
    animation-play-state: paused; /* Pause shaking animation on hover */
  }

  @keyframes ring {
    0%, 100% {
      transform: translateY(0);
    }
    10%, 90% {
      transform: translateY(-5px);
    }
    30%, 70% {
      transform: translateY(5px);
    }
    50% {
      transform: translateY(0);
    }
  }
/* grid for reviews*/

.custom-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
  padding: 20px;
}

.custom-grid-item {
  background-color: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
}

.custom-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
}

.custom-title {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.custom-cta {
  display: inline-block;
  padding: 10px;
  background-color: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 15px;
}

.custom-cta span {
  display: inline-block;
  margin-left: 5px;
}

.custom-cta:hover {
  background-color: #2980b9;
}

/* Add styles for FAQ-like dropdown */
.custom-why-chose {
  position: relative;
}

.custom-dropdown-indicator {
  position: absolute;
  top: -5px;
  text-align: center;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.custom-why-chose .description {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s ease-out;
  padding: 10px;
 font-size: 0.8rem;
  margin-bottom: 25px;
  opacity: 0;
  visibility: hidden;
}

.custom-why-chose.open .description {
  max-height: 250px;
  opacity: 1;
  visibility: visible;
}

/* Style the FAQ-like dropdown indicator */
.custom-why-chose .dropdown-indicator::before {
  content: '';
  display: inline-block;
  margin-right: 5px;
  transform: rotate(0deg);
  transition: transform 0.3s ease-in-out;
}

.custom-why-chose.open .dropdown-indicator::before {
  content: '';
  transform: rotate(180deg);
}
/* blog review cards */
.blog-review-main {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-review-cards {
  display: grid;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.blog-review-cards_item {
  display: flex;
}

.blog-review-card_image {
  display: flex;
  height: 250px;
  padding: 5px;
  box-shadow: 0 50px 100px 0 #a16ae8;
}

.blog-review-card_image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.blog-review-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  width: 300px;
  height: 600px;
  background-color: #603f8b;
  border-radius: 5px 25px 5px 50px;
  transition: transform 0.1s linear, box-shadow 0.2s;
}

.blog-review-card_text:focus,
.blog-review-card:focus {
  outline: 2px dashed #b4fee7;
}
.blog-review-card_text p{
  color: #efefef;
}
.blog-review-card:focus,
.blog-review-card:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 5px -5px rgba(0, 0, 0, 0.2);
}

.blog-review-card_content {
  padding: 0.5rem 1rem 1rem;
  color: #efefef;
}

.blog-review-card_title {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: auto;
  color: #ffffff;
  padding: 0.5rem;
  border-radius: 5px 0 0 5px;
  transform: rotate(-3.3deg);
  transform-origin: left top;
  font-family: Georgia, Times, serif;
  font-weight: 300;
  font-size: 0.50rem;
  overflow: hidden;
  z-index: 1;
  background-color: rgba(96, 245, 225, 0.75);
  animation: 0s 0s fly-in 0 reverse both;
}

@media (min-width: 285px) {
  .blog-review-card_title {
    animation: 0.5s 0.25s fly-out 1 both;

  }

}

.blog-review-card:focus .blog-review-card_title,
.blog-review-card:hover .blog-review-card_title {
  animation: 0.5s ease-in 0s fly-in 1 both;
  
}

.blog-review-card_text {
  font-family: Segoe UI, Frutiger, Frutiger Linotype, Dejavu Sans, Helvetica,
    Helvetica Neue, Arial, sans-serif;
  line-height: 1.5;
  text-size-adjust: 0.2px;
  padding: 0 1rem;
}

.blog-review-card_text p:first-of-type:first-letter {
  font-size: 1.8em;
  font-family: Georgia, Times, serif;
  margin-right: 0.05em;
}

@media (min-width: 280px) {
  .blog-review-card_text {
    overflow: auto;
    max-height: 20rem;
    scrollbar-width: thin;
    scrollbar-color: #b4fee7 #a16ae8;
  }

  .blog-review-card_text::-webkit-scrollbar {
    width: 12px;
  }

  .blog-review-card_text::-webkit-scrollbar-track {
    background: #a16ae8;
  }

  .blog-review-card_text::-webkit-scrollbar-thumb {
    background-color: #b4fee7;
  }
}

.blog-review-card_text strong {
  color: #b4fee7;
}

.upcharge {
  position: relative;
  font-weight: 600;
  background-color: #a16ae8;
  padding: 0.5rem 0.75rem;
  color: #ffffff;
  border-radius: 0 10px;
  z-index: 0;
  overflow: hidden;
}

.upcharge::after,
.upcharge::before {
  content: "+";
  display: block;
  line-height: 0;
  font-size: 3rem;
  position: absolute;
  color: #603f8b;
  z-index: -1;
  opacity: 0.3;
}

.upcharge::before {
  left: 0;
  top: 0.5rem;
}

.upcharge::after {
  right: 0;
  bottom: 1.25rem;
}

.note {
  display: block;
  text-align: center;
  padding: 0.5rem;
  font-weight: 600;
  background-image: linear-gradient(
    -45deg,
    transparent 10%,
    #b4fee7 10.5%,
    #b4fee7 90%,
    transparent 90.5%
  );
  color: #222;
  font-size: 1.3em;
  font-style: italic;
  margin-top: 1rem;
}

@keyframes fly-in {
  0% {
    top: 0;
    right: 0;
    font-size: 1.325rem;
  }

  25% {
    top: 0;
    right: -200%;
    font-size: 1.325rem;
  }

  26% {
    font-size: 2rem;
  }

  100% {
    top: 2rem;
    right: 0;
    font-size: 2rem;
  }
}

@keyframes fly-out {
  0% {
    top: 2rem;
    right: 0;
    font-size: 2rem;
  }

  50% {
    top: 0;
    right: -200%;
    font-size: 1.325rem;
  }

  100% {
    top: 0;
    right: 0;
    font-size: 1.325rem;
  }
}
@media screen and (max-width: 600px) {
  .blog-review-card {
    width: 90%;
    max-width: none;
  }
}