.ak_test_area {
  padding: 70px 0px 70px 0px;
  background-position: center center;
  background-size: cover;
}
.ak_test_area .icofont-star:before {
  content: "\e624";
  font-family: 'qico' !important;
}
.ak_test_area .witr_section_title_inner p {
  color: var(--color-second);
}
.ak_test_area .witr_section_title_inner h2 {
  color: var(--color-second);
}
.ak_test_area .witr_testi_itemt {
  padding: 0 10px;
}
.ak_test_area .em_single_testimonial {
  margin-bottom: 30px;
  background: var(--color-second);
  transition: all 0.5s ease 0s;
  padding: 50px 70px 30px 70px;
  margin-top: 20px;
  box-shadow: 0 10px 25px 0 rgba(50, 65, 141, 0.12);
  overflow: hidden;
  position: relative;
  text-align: left;
}
.ak_test_area .em_test_thumb {
  float: left;
  margin-right: 20px;
}
.ak_test_area .test-part {
  display: inline-block;
  margin-bottom: 10px;
}
.ak_test_area .em_test_thumb img {
  border-radius: 0;
  width: 59px;
}
.ak_test_area .em_testi_title span {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
}
.ak_test_area .em_testi_content {
  position: relative;
  text-align: center;
}
.ak_test_area .em_testi_text {
  overflow: hidden;
  padding-top: 15px;
  float: left;
  text-align: left;
}
.ak_test_area .test-part ul li {
  display: inline-block;
  padding-top: 0;
}
.ak_test_area .execllent_toggol {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ak_test_area .em_crating i.active {
  color: var(--color-primary);
  font-size: 18px;
}
.ak_test_area .execllent_star {
  margin-left: 15px;
}

.ak_test_area .witr_section_title_inner h2 {
  font-size: 36px;
  margin: auto;
}
.ak_test_area .witr_section_title_inner p {
  font-size: 18px;
  display: inline-block;
  margin: auto;
  color: var(--color-primary);
}
.ak_test_area .witr_section_title {
  margin-bottom: 40px;
}

.ak_test_area .bar_mar30 {
  margin: 30px 0 30px 0;
}
.ak_test_area .witr_bar_inner {
  height: 3px;
  width: 90px;
  background: #e5e5e5;
  margin: 0px auto;
  position: relative;
  border-radius: 30px;
}

.ak_test_area .slick-dots li button {
  font-size: 0;
  width: 30px;
  height: 10px;
  border: 0 solid #f0f0f0;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 0;
  padding: 0;
  transition: 0.5s;
  outline: 0;
  background: #777777;
}
.ak_test_area .slick-dots li button:hover {
  background: var(--color-second);
}
.ak_test_area .slick-dots li {
  display: inline-block;
}
.ak_test_area .slick-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -22px;
  display: inline-block;
  z-index: 11;
  text-align: center;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .ak_test_area .witr_section_title_inner h2 {
    font-size: 34px;
  }
  .ak_test_area .em_single_testimonial {
    padding: 50px 30px 30px 30px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .ak_test_area .witr_section_title_inner h2 {
    font-size: 30px;
  }
  .ak_test_area .em_single_testimonial {
    padding: 50px 30px 30px 30px;
  }
  .ak_test_area .em_test_thumb {
    margin-right: 10px;
  }
  .ak_test_area .em_testi_logo {
    right: 15px;
    top: 35px;
    display: none;
  }
}

@media (max-width: 767px) {
  .ak_test_area .witr_section_title {
    text-align: center;
  }
  .ak_test_area .witr_section_title_inner p {
    font-size: 16px;
  }

  .ak_test_area .witr_section_title_inner h2 {
    font-size: 24px;
  }
  .ak_test_area .all_color_testimonial h4,
  .ak_test_area .all_color_testimonial h3 {
    font-size: 18px;
  }
  .ak_test_area .em_single_testimonial {
    padding: 37px 20px 26px;
  }
  .ak_test_area .em_crating i {
    font-size: 15px;
  }
  .ak_test_area .slick-dots li button {
    display: none;
  }
}

@media only screen and (min-width: 480px) and (max-width: 767px) {
  .ak_test_area .witr_section_title_inner p,
  .ak_test_area .witr_section_title_inner h2 {
    font-size: 25px;
  }
}

/* ==========================================================================
   1. 核心修复：强制轮播卡片整体等高
   ========================================================================== */
.ak_test_area .test_act .slick-track {
  display: flex !important;
  align-items: stretch !important;
}

.ak_test_area .test_act .slick-slide {
  height: auto !important;
  display: flex !important;
}

.ak_test_area .witr_testi_itemt {
  height: auto !important;
  display: flex !important;
  flex: 1;
  padding: 20px 10px !important; /* 预留上下间距，防止卡片阴影被切断 */
}

/* ==========================================================================
   2. 卡片内部：改用现代 Flex 垂直流（确保能把星星推到底部）
   ========================================================================== */
.ak_test_area .em_single_testimonial {
  width: 100%;
  height: auto !important;
  margin: 0 !important;
  padding: 50px 45px 35px 45px !important;
  
  display: flex !important;
  flex-direction: column !important;
}

/* ==========================================================================
   3. 关键：修复顶部“头像+名字”的左右并排布局
   ========================================================================== */
/* 创建一个包裹层感觉的区域，让头像和名字横向排列 */
.ak_test_area .em_test_thumb {
  float: left !important;         /* 恢复左浮动 */
  margin-right: 20px !important;  /* 与右侧文字保持间距 */
  margin-bottom: 0 !important;
}

.ak_test_area .em_testi_title {
  overflow: hidden !important;    /* 配合浮动，形成BFC，完美的左右排版 */
  display: block !important;
}

/* ==========================================================================
   4. 中间评论内容：撑开空间
   ========================================================================== */
.ak_test_area .em_testi_content {
  flex-grow: 1 !important;        /* 核心：自动撑满中间多余的空间 */
  display: flex;
  align-items: flex-start;
  margin-top: 15px;
  margin-bottom: 15px;
}

.ak_test_area .em_testi_text {
  float: none !important;
  padding-top: 0 !important;
  text-align: left !important;
  width: 100%;
}

/* ==========================================================================
   5. 底部评星：牢牢固定在最下方
   ========================================================================== */
.ak_test_area .test-part:last-child {
  margin-top: auto !important;    /* 当内容少时，自动推到卡片最底部 */
  display: block !important;
  clear: both !important;         /* 清除上方可能带来的浮动影响 */
}

.ak_test_area .execllent_toggol {
  justify-content: flex-start !important; /* 星星靠左对齐 */
}

/* ==========================================================================
   6. 移动端细节微调
   ========================================================================== */
@media (max-width: 767px) {
  .ak_test_area .em_single_testimonial {
    padding: 35px 20px 25px 20px !important;
  }
}
