/* ============================================
   PluginAZ Testimonial Slider - Style v3.2 (Updated)
   ============================================ */

/* Container chính của slider */
.az-testimonial-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 60px auto;
  padding: 50px 60px 120px 60px; /* Tăng padding dưới để có không gian cho control */
  background: #fff;
  border-radius: 12px;
  overflow: visible; /* Cho phép control hiển thị bên ngoài */
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

/* Bố cục 2 cột cho mỗi slide */
.pluginaz-testimonial-item__inner {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Cột nội dung (bên trái) */
.pluginaz-testimonial-item__content {
  flex: 0 0 45%; 
  position: relative;
align-items: end;
 align-self: end;
}

/* Cột hình ảnh (bên phải) */
.pluginaz-testimonial-item__images {
  flex: 1; /* Cột phải sẽ chiếm phần còn lại */
  position: relative;
}

/* Biểu tượng dấu ngoặc kép */
.pluginaz-testimonial-item__content .quote-symbol {
    font-family: Georgia, serif;
    font-size: 150px;
    line-height: 1;
    font-weight: bold;
    color: #8adfe1;
    position: absolute;
    top: 20px;
    left: 10px;
    z-index: 3;
}

.pluginaz-testimonial-item__content .review-text {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-top: 23px;
    margin-bottom: -20px;
    text-align: justify;
    position: relative;
    z-index: 2;
    background-color: #efe9e3;
    padding: 70px 92px 37px 40px;
    min-height: 400px;
    border-radius: 10px;
}

/* Thông tin tác giả */
.pluginaz-testimonial-item__content .author {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.pluginaz-testimonial-item__content .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
    --tw-shadow: 0 2px 10px #999999;
    --tw-shadow-colored: 0 2px 10px red;
    box-shadow: 4px 4px 10px 2px rgb(255 252 42 / 50%);
}

.pluginaz-testimonial-item__content .author-name {
  font-weight: 700;
  font-size: 16px;
  color: #000;
}

/* Phần hình ảnh mockup */
.pluginaz-testimonial-item__images .mockup-bg {
  width: 100%;
  padding-top: 60%; 
  background-size: cover;
  background-position: center;
	min-height :600px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pluginaz-testimonial-item__images .mockup-frame {
    position: absolute;
    top: 59%;
    left: 50%;
    width: 100%;
    height: auto;
    transform: translate(-50%, -50%) scale(1.01);
    pointer-events: none;
    object-fit: contain;
    margin-left: -23%;
    z-index: 10;
    border: 10px solid #8adfe1;
    width: 68%;
}

/* **QUAN TRỌNG: Điều chỉnh lại vị trí và bố cục của control** */
.az-testimonial-controls {
  position: absolute;
  bottom: 50px; /* Đặt ở dưới cùng của wrapper */
  left: 60px;   /* Căn lề trái bằng với padding của wrapper */
  width: 45%;   /* Chiều rộng bằng với cột nội dung bên trái */
  display: flex;
  align-items: center;
  justify-content: space-between; /* Đẩy nút và số đếm ra 2 bên */
  padding-right: 20px; /* Thêm khoảng cách bên phải */
}

.az-testimonial-nav {
  display: flex;
  gap: 10px;
}

.az-nav-button {
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.az-nav-button:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.az-testimonial-counter {
  font-size: 16px;
  color: #555;
  font-family: monospace;
}

/* Responsive cho thiết bị di động */
@media (max-width: 991px) {
.pluginaz-testimonial-item__inner {
    display: block !important;
}
.pluginaz-testimonial-item__content {
    flex: 0 0 100%;
  }
  .az-testimonial-wrapper {
    padding: 40px 30px 100px 30px;
  }
  .az-testimonial-controls {
    width: 100%;
    left: 0;
    bottom: 30px;
    padding: 0 30px;
  }
.pluginaz-testimonial-item__content .review-text {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    margin-top: 23px;
    margin-bottom: -20px;
    text-align: justify;
    position: relative;
    z-index: 2;
    background-color: #efe9e3;
    padding: 70px 20px 30px 20px !important;
    min-height: 400px;
    border-radius: 10px;
}	
.pluginaz-testimonial-item__content .quote-symbol {
    font-size: 100px !important;
    top: 15px !important;
}	
.pluginaz-testimonial-item__images .mockup-bg {
    min-height: 350px !important;
}	
.pluginaz-testimonial-item__images .mockup-frame {
        top: 50% !important;
        left: 50% !important;
        width: 70% !important;
        margin: unset !important;
    }
}
.pluginaz-testimonial-item__content .author-name:after {
    content: '';
    width: 60%;
    height: 1px;
    border: 1px solid red;
    position: absolute;
    margin-top: 14px;
    margin-left: 35px;
}