/**
 * Reform Showcase Widget Styles
 * @format
 */

.cpd-reform-showcase-widget {
  width: 100%;
  background: #FFFFFF;
}

/* Header Section */
.reform-showcase-header {
  padding: 80px 0 60px 0;
  text-align: center;
}

.reform-showcase-title {
  font-weight: 600;
  font-size: 40px;
  line-height: 125%;
  letter-spacing: 0;
  text-align: center;
  color: #000000;
  margin-bottom: 20px;
}

.reform-showcase-description {
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: 0;
  text-align: center;
  color: #000000;
  max-width: 60%;
  margin: 0 auto;
}

/* Reform Categories Grid */
.reform-categories-section {
  padding: 40px 0;
}

.reform-categories-grid {
  display: grid;
  gap: 30px;
  margin-bottom: 60px;
  padding: 0 15px;
}

.categories-grid-col-2 {
  grid-template-columns: repeat(2, 1fr);
}

.categories-grid-col-3 {
  grid-template-columns: repeat(3, 1fr);
}

.categories-grid-col-4 {
  grid-template-columns: repeat(4, 1fr);
}

.reform-category-item {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #00000026;
  box-shadow: 0 5px 30px 0 #00000014;
}

.reform-category-item:hover {
  box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0);;
  transform: translateY(-4px);
}

.category-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-icon-wrapper {
  position: relative;
  margin-bottom: 20px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.category-icon-placeholder {
  width: 80px;
  height: 80px;
  background: #F5F5F5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle {
  display: inline-block;
  width: 60px;
  height: 60px;
  background: #E5E5E5;
  border-radius: 50%;
}

.upcoming-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #00000040;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 500;
  font-size: 12px;
  line-height: 130%;
  letter-spacing: 0;
  text-align: center;

}

.category-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 140%;
  color: #000000;
  margin: 0;
}

/* Testimonials Section */
.reform-testimonials-section {
  max-width: 100%;
  overflow: hidden;
  padding: 0 0 60px;
}

.testimonials-header {
  margin-bottom: 40px;
  /*display: flex;*/
  /*align-items: center;*/
  /*justify-content: space-between;*/
  display: flex;
  align-items: flex-start;
}

.testimonials-title {
  color: #000000;
  margin: 0;
  font-weight: 600;
  font-size: 40px;
  line-height: 125%;
  letter-spacing: 0;

}

.testimonials-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 30px;
}

.testimonials-grid-col-2 {
  grid-template-columns: repeat(2, 1fr);
}

.testimonials-grid-col-3 {
  grid-template-columns: repeat(3, 1fr);
}

.testimonials-grid-col-4 {
  grid-template-columns: repeat(4, 1fr);
}

.testimonial-item {
  background: white;
  border-radius: 20px;
  border: 1px solid #0000000D;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 5px 30px 0 #0000000D;
  transition: all 0.3s ease;
}

.testimonial-item:hover {
  box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0);
}

.testimonial-content {
  flex-grow: 1;
  margin-bottom: 20px;
}

.testimonial-text {
  font-weight: 400;
  font-size: 18px;
  line-height: 140%;
  letter-spacing: 0;
  color: #000000;
}

.testimonial-author {
  margin-top: 20px;
}

.author-name {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  color: #6A7282;
  padding: 0;
  margin: 0;

}

.author-position {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  color: #6A7282;
  margin: 0;

}

/* Testimonials Navigation */
.testimonials-navigation {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.testimonial-description {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  color: #364153;
  margin-top: 15px;

}

.testimonial-nav-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
}


.testimonial-nav-btn svg {
  width: 40px;
  height: 40px;
}

/* Swiper Slider Version */
.testimonials-swiper-wrapper {
  position: relative;
  margin-bottom: 30px;
}

.cpd-testimonials-slider {
  position: relative;
  width: 100%;
  overflow: visible;
}

.cpd-testimonials-slider.swiper {
  overflow: visible;
}

.cpd-testimonials-slider .swiper-wrapper {
  display: flex;
}

.cpd-testimonials-slider .swiper-slide {
  width: 100%;
  height: auto;
  display: flex;
  align-items: stretch;
}

.cpd-testimonials-slider .testimonial-item {
  width: 100%;
}

.swiper-slide-active.swiper-slide-visible {
  opacity: 1;
}

.swiper-slide-fully-visible.swiper-slide-visible {
  opacity: 1;
}

.swiper-slide-visible {
  opacity: 0.5;
}

/* Responsive Swiper - Multiple Items Per View */
@media (min-width: 1200px) {


  .cpd-testimonials-slider .swiper-slide {
    width: calc(25% - 18px);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {


  .cpd-testimonials-slider .swiper-slide {
    width: calc(50% - 12px);
  }
}

@media (max-width: 767px) {

  .cpd-testimonials-slider .swiper-slide {
    width: 100%;
  }
}

/* Fade effect support */
.cpd-testimonials-slider.swiper-fade .swiper-slide {
  pointer-events: none;
  transition-property: opacity;
}

.cpd-testimonials-slider.swiper-fade .swiper-slide-active {
  pointer-events: auto;
  z-index: 10;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .categories-grid-col-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid-col-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .reform-showcase-title {
    font-size: 36px;
  }

  .testimonials-title {
    font-size: 28px;
  }
}

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

  .testimonials-grid-col-2,
  .testimonials-grid-col-3,
  .testimonials-grid-col-4 {
    grid-template-columns: 1fr;
  }

  .reform-showcase-header {
    padding: 30px 0 40px 0;
  }

  .reform-showcase-title {
    font-size: 28px;
  }

  .reform-categories-section {
    padding: 30px 0;
  }

  .reform-testimonials-section {
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 15px !important;
    padding-right: 15px;
  }

  .testimonials-title {
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .categories-grid-col-2,
  .categories-grid-col-3,
  .categories-grid-col-4 {
    grid-template-columns: 1fr;
  }

  .testimonials-grid-col-2,
  .testimonials-grid-col-3,
  .testimonials-grid-col-4 {
    grid-template-columns: 1fr;
  }

  .reform-showcase-title {
    font-size: 24px;
  }

  .reform-showcase-description {
    font-size: 14px;
  }

  .reform-category-item {
    padding: 20px;
  }

  .category-title {
    font-size: 14px;
  }

  .testimonials-title {
    font-size: 20px;
  }

  .testimonial-item {
    padding: 16px;
  }

  .testimonials-navigation {
    justify-content: center;
  }
}

