/* style/testimonials.css */

/* Variables for colors */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-on-dark: #FFFFFF;
  --text-on-light: #333333;
  --register-btn-bg: #C30808;
  --login-btn-bg: #C30808;
  --register-login-font: #FFFF00;
  --body-bg: #0a0a0a; /* From shared.css */
  --card-bg-light: rgba(255, 255, 255, 0.1);
}

/* Base styles for the page */
.page-testimonials {
  color: var(--text-on-dark); /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-testimonials__section {
  padding: 60px 0;
  text-align: center;
}

.page-testimonials__dark-bg {
  background-color: var(--body-bg);
  color: var(--text-on-dark);
}

.page-testimonials__light-card-bg {
  background-color: var(--card-bg-light);
  color: var(--text-on-dark);
}

.page-testimonials__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--text-on-dark);
  font-weight: bold;
}

.page-testimonials__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-testimonials__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
}

.page-testimonials__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-testimonials__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-testimonials__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-testimonials__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--text-on-dark);
  line-height: 1.2;
  font-weight: bold;
}

.page-testimonials__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: var(--text-on-dark);
}

.page-testimonials__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-testimonials__btn-primary,
.page-testimonials__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-testimonials__btn-primary {
  background-color: var(--register-btn-bg); /* Custom register color */
  color: var(--register-login-font); /* Custom register font color */
  border: 2px solid var(--register-btn-bg);
}

.page-testimonials__btn-primary:hover {
  background-color: #a40707; /* Darken by 10% */
  border-color: #a40707; /* Darken by 10% */
}

.page-testimonials__btn-secondary {
  background-color: transparent;
  color: var(--text-on-dark);
  border: 2px solid var(--text-on-dark);
}

.page-testimonials__btn-secondary:hover {
  background-color: var(--text-on-dark);
  color: var(--body-bg);
}

/* About 88neo Section */
.page-testimonials__about-88neo {
  background-color: var(--body-bg);
  color: var(--text-on-dark);
}

/* Why Trust Section */
.page-testimonials__why-trust {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-testimonials__feature-item {
  background-color: var(--card-bg-light);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-on-dark);
}

.page-testimonials__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-testimonials__feature-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-testimonials__feature-description {
  font-size: 1em;
}

/* Testimonials Section */
.page-testimonials__success-stories {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-testimonials__testimonial-card {
  background-color: var(--card-bg-light);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-testimonials__testimonial-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--primary-color);
}

.page-testimonials__testimonial-name {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-testimonials__testimonial-quote {
  font-style: italic;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-testimonials__testimonial-rating {
  font-size: 1.2em;
  color: gold;
}

.page-testimonials__cta-area {
  margin-top: 50px;
}

/* Commitment Section */
.page-testimonials__commitment {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-testimonials__commitment-item {
  background-color: var(--card-bg-light);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-on-dark);
}

.page-testimonials__commitment-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-testimonials__commitment-description {
  font-size: 1em;
}

/* Video Section */
.page-testimonials__video-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--body-bg);
  color: var(--text-on-dark);
}

.page-testimonials__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
}

.page-testimonials__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-testimonials__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* FAQ Section */
.page-testimonials__faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-testimonials__faq-item {
  background-color: var(--card-bg-light);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-on-dark);
}

.page-testimonials__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-on-dark);
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-testimonials__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-testimonials__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-testimonials__faq-item.active .page-testimonials__faq-toggle {
  transform: rotate(45deg); /* Plus to X / Minus */
}

.page-testimonials__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-on-dark);
}

.page-testimonials__faq-item.active .page-testimonials__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-testimonials__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
}

/* Final CTA Section */
.page-testimonials__cta-final {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-testimonials__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-testimonials__hero-title {
    font-size: 3em;
  }
  .page-testimonials__hero-description {
    font-size: 1.2em;
  }
  .page-testimonials__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-testimonials {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-testimonials__hero-section {
    padding: 60px 15px;
  }

  .page-testimonials__hero-title {
    font-size: 2.5em;
  }

  .page-testimonials__hero-description {
    font-size: 1.1em;
  }

  .page-testimonials__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-testimonials__btn-primary,
  .page-testimonials__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-testimonials__section {
    padding: 40px 0;
  }

  .page-testimonials__section-title {
    font-size: 1.8em;
  }

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

  .page-testimonials__features-grid,
  .page-testimonials__testimonial-grid,
  .page-testimonials__commitment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-testimonials__feature-item,
  .page-testimonials__testimonial-card,
  .page-testimonials__commitment-item {
    padding: 20px;
  }

  .page-testimonials__feature-image {
    height: 200px;
  }

  .page-testimonials__video-wrapper {
    margin: 20px auto;
  }

  .page-testimonials__faq-list {
    margin-top: 20px;
  }

  .page-testimonials__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-testimonials__faq-answer {
    padding: 0 20px;
  }

  .page-testimonials__faq-item.active .page-testimonials__faq-answer {
    padding: 15px 20px;
  }

  /* Image responsive enforcement */
  .page-testimonials img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive enforcement */
  .page-testimonials video,
  .page-testimonials__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-testimonials__video-section,
  .page-testimonials__video-container,
  .page-testimonials__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Ensure all containers with images/videos/buttons are responsive */
  .page-testimonials__section,
  .page-testimonials__card,
  .page-testimonials__container,
  .page-testimonials__hero-cta,
  .page-testimonials__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* For multiple buttons, allow wrapping */
  .page-testimonials__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px; /* Adjust gap for stacked buttons */
  }
}