.page-customer-testimonials {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Ensures consistency with shared.css default */
}

.page-customer-testimonials__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-customer-testimonials__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-customer-testimonials__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-customer-testimonials__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, #e0f2f1, #ffffff);
  color: #333333;
  overflow: hidden;
}

.page-customer-testimonials__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-customer-testimonials__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-customer-testimonials__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-customer-testimonials__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-customer-testimonials__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-customer-testimonials__intro-text {
  font-size: 20px;
  color: #333333;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-customer-testimonials__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #017439; /* Primary brand color */
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-customer-testimonials__cta-button:hover {
  background: darken(#017439, 10%); /* Darker shade on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Testimonials Grid */
.page-customer-testimonials__testimonials-grid {
  padding: 80px 0;
  background-color: #f8fcf9; /* Light background for contrast */
}

.page-customer-testimonials__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-customer-testimonials__testimonial-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-customer-testimonials__testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.page-customer-testimonials__card-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.page-customer-testimonials__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 3px solid #017439;
}

.page-customer-testimonials__player-info {
  display: flex;
  flex-direction: column;
}

.page-customer-testimonials__player-name {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  margin: 0;
}

.page-customer-testimonials__rating {
  font-size: 18px;
  color: #ffc107; /* Star color */
  margin-top: 5px;
}

.page-customer-testimonials__review-text {
  font-size: 17px;
  color: #444444;
  margin-bottom: 0;
}

/* Why Trust Section */
.page-customer-testimonials__why-trust {
  padding: 80px 0;
  background-color: #017439; /* Dark background for contrast */
  color: #FFFFFF;
}

.page-customer-testimonials__why-trust .page-customer-testimonials__section-title,
.page-customer-testimonials__why-trust .page-customer-testimonials__section-description {
  color: #FFFFFF;
}

.page-customer-testimonials__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-customer-testimonials__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: background 0.3s ease;
}

.page-customer-testimonials__feature-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-customer-testimonials__feature-icon {
  width: 100px;
  height: 75px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.2); /* Slight brightness to stand out on dark background, not changing color */
}

.page-customer-testimonials__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.page-customer-testimonials__feature-text {
  font-size: 16px;
  color: #e0e0e0;
}

/* Submit Review Section */
.page-customer-testimonials__submit-review {
  padding: 80px 0;
  background-color: #f0fdf2;
}

.page-customer-testimonials__review-form {
  max-width: 700px;
  margin: 0 auto;
  background: #FFFFFF;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.page-customer-testimonials__form-group {
  margin-bottom: 25px;
}

.page-customer-testimonials__form-label {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-customer-testimonials__form-input,
.page-customer-testimonials__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 16px;
  color: #333333;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-customer-testimonials__form-input:focus,
.page-customer-testimonials__form-textarea:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
}

.page-customer-testimonials__form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-customer-testimonials__rating-input {
  display: flex;
  justify-content: flex-start;
  gap: 5px;
  flex-wrap: wrap;
}

.page-customer-testimonials__rating-input input[type="radio"] {
  display: none;
}

.page-customer-testimonials__rating-input label {
  cursor: pointer;
  font-size: 30px;
  color: #ccc;
  transition: color 0.2s ease;
}

.page-customer-testimonials__rating-input label:hover,
.page-customer-testimonials__rating-input label:hover ~ label,
.page-customer-testimonials__rating-input input[type="radio"]:checked ~ label {
  color: #ffc107;
}

.page-customer-testimonials__submit-button {
  display: block;
  width: 100%;
  padding: 18px;
  background: #017439;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-customer-testimonials__submit-button:hover {
  background: darken(#017439, 10%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-customer-testimonials__faq-section {
  padding: 80px 0;
  background-color: #fefefe;
}

.page-customer-testimonials__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

/* FAQ容器样式 */
.page-customer-testimonials__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

/* FAQ默认状态 - 答案隐藏 */
.page-customer-testimonials__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #444444;
  font-size: 16px;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-customer-testimonials__faq-item.active .page-customer-testimonials__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Vấn đề phong cách */
.page-customer-testimonials__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  border-bottom: 1px solid #e0e0e0; /* Add bottom border to question for visual separation */
}

.page-customer-testimonials__faq-item.active .page-customer-testimonials__faq-question {
    border-bottom: none; /* Remove bottom border when active */
    border-radius: 5px 5px 0 0;
}

.page-customer-testimonials__faq-question:hover {
  background: #f5f5f5;
}

.page-customer-testimonials__faq-question:active {
  background: #eeeeee;
}

/* Vấn đề tiêu đề phong cách */
.page-customer-testimonials__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp chuột */
}

/* Chuyển đổi biểu tượng */
.page-customer-testimonials__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #017439;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặn biểu tượng chặn sự kiện nhấp chuột */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-customer-testimonials__faq-item.active .page-customer-testimonials__faq-toggle {
  color: #C30808;
  transform: rotate(45deg); /* Change to X or rotate for active state */
}

/* CTA Banner */
.page-customer-testimonials__cta-banner {
  padding: 60px 0;
  background-color: #017439; /* Primary brand color */
  color: #FFFFFF;
  text-align: center;
}

.page-customer-testimonials__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-customer-testimonials__cta-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-customer-testimonials__cta-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
}

.page-customer-testimonials__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-customer-testimonials__btn-register {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register font color */
  border: none;
  font-size: 20px;
  font-weight: bold;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-customer-testimonials__btn-register:hover {
  background-color: darken(#C30808, 10%);
  transform: translateY(-2px);
}

.page-customer-testimonials__btn-login {
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login font color */
  border: none;
  font-size: 20px;
  font-weight: bold;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-customer-testimonials__btn-login:hover {
  background-color: darken(#C30808, 10%);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-customer-testimonials__main-title {
    font-size: 40px;
  }
  .page-customer-testimonials__intro-text {
    font-size: 18px;
  }
  .page-customer-testimonials__section-title {
    font-size: 30px;
  }
  .page-customer-testimonials__section-description {
    font-size: 16px;
  }
  .page-customer-testimonials__cta-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-customer-testimonials__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-customer-testimonials__hero-image img {
    border-radius: 8px;
  }
  
  .page-customer-testimonials__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  
  .page-customer-testimonials__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }
  
  .page-customer-testimonials__cta-button {
    padding: 12px 25px;
    font-size: 18px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-customer-testimonials__testimonials-grid,
  .page-customer-testimonials__why-trust,
  .page-customer-testimonials__submit-review,
  .page-customer-testimonials__faq-section,
  .page-customer-testimonials__cta-banner {
    padding: 50px 0;
  }

  .page-customer-testimonials__container {
    padding: 0 15px;
  }

  .page-customer-testimonials__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .page-customer-testimonials__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-customer-testimonials__testimonial-card {
    padding: 25px;
  }

  .page-customer-testimonials__avatar {
    width: 60px;
    height: 60px;
  }

  .page-customer-testimonials__player-name {
    font-size: 20px;
  }

  .page-customer-testimonials__review-text {
    font-size: 16px;
  }

  .page-customer-testimonials__feature-icon {
    width: 80px;
    height: 60px;
  }

  .page-customer-testimonials__feature-title {
    font-size: 20px;
  }

  .page-customer-testimonials__feature-text {
    font-size: 15px;
  }

  .page-customer-testimonials__review-form {
    padding: 30px;
  }

  .page-customer-testimonials__form-label {
    font-size: 16px;
  }

  .page-customer-testimonials__form-input,
  .page-customer-testimonials__form-textarea,
  .page-customer-testimonials__submit-button {
    font-size: 16px;
    padding: 12px;
  }

  .page-customer-testimonials__rating-input label {
    font-size: 24px;
  }

  .page-customer-testimonials__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-customer-testimonials__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-customer-testimonials__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-customer-testimonials__faq-answer {
    padding: 0 15px;
  }
  
  .page-customer-testimonials__faq-item.active .page-customer-testimonials__faq-answer {
    padding: 15px !important;
  }

  .page-customer-testimonials__cta-title {
    font-size: 28px;
  }

  .page-customer-testimonials__cta-description {
    font-size: 16px;
  }

  .page-customer-testimonials__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-customer-testimonials__btn-register,
  .page-customer-testimonials__btn-login {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    font-size: 18px;
    padding: 15px 20px;
  }

  /* Mobile image and container responsiveness */
  .page-customer-testimonials img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-customer-testimonials__section,
  .page-customer-testimonials__card,
  .page-customer-testimonials__container,
  .page-customer-testimonials__hero-section,
  .page-customer-testimonials__testimonials-grid,
  .page-customer-testimonials__why-trust,
  .page-customer-testimonials__submit-review,
  .page-customer-testimonials__faq-section,
  .page-customer-testimonials__cta-banner,
  .page-customer-testimonials__review-form,
  .page-customer-testimonials__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-customer-testimonials__main-title {
    font-size: 28px;
  }
  .page-customer-testimonials__section-title {
    font-size: 24px;
  }
  .page-customer-testimonials__cta-title {
    font-size: 24px;
  }
  .page-customer-testimonials__avatar {
    width: 50px;
    height: 50px;
  }
}