/* style/testimonials.css */

/* Base Styles for Testimonials Page */
.page-testimonials {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Inherited from shared.css, specified for clarity */
}

.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: #0a0a0a;
  color: #ffffff;
}

.page-testimonials__section-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-testimonials__section-intro {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-testimonials__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px);
  background-color: #017439; /* Brand color as hero background */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 600px; /* Ensure hero section has a minimum height */
}

.page-testimonials__hero-section .page-testimonials__container {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.page-testimonials__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff; /* White text for contrast */
}

.page-testimonials__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0; /* Slightly off-white for readability */
}

.page-testimonials__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
  z-index: 1;
}

/* 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: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-testimonials__btn-primary {
  background-color: #017439; /* Brand primary color */
  color: #ffffff; /* White text for contrast */
  border: 2px solid #017439;
}

.page-testimonials__btn-primary:hover {
  background-color: #02944b;
  border-color: #02944b;
}

.page-testimonials__btn-secondary {
  background-color: transparent;
  color: #ffffff; /* White text for contrast */
  border: 2px solid #ffffff;
}

.page-testimonials__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

/* Custom colors for Register/Login */
.page-testimonials__btn-register {
  background-color: #C30808; /* Register color */
  border-color: #C30808;
  color: #FFFF00; /* Register font color */
}

.page-testimonials__btn-register:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
}

.page-testimonials__btn-login {
  background-color: #C30808; /* Login color */
  border-color: #C30808;
  color: #FFFF00; /* Login font color */
}

.page-testimonials__btn-login:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
}

/* Testimonials Grid Section */
.page-testimonials__testimonials-grid-section {
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

.page-testimonials__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff; /* White text for card content */
}

.page-testimonials__card-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #017439;
}

.page-testimonials__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-testimonials__rating {
  color: #FFD700; /* Gold color for stars */
  font-size: 1.2em;
  margin-bottom: 15px;
}

.page-testimonials__card-text {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.7;
}

/* Why Choose Section */
.page-testimonials__why-choose-section {
  background-color: #0a0a0a;
  padding-bottom: 80px;
}

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

.page-testimonials__feature-card {
  background: rgba(1, 116, 57, 0.15); /* Semi-transparent brand color for feature cards */
  border: 1px solid #017439;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
}

.page-testimonials__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-testimonials__feature-text {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.7;
}

.page-testimonials__why-choose-image {
  width: 800px;
  height: 600px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-top: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Submit Review Section */
.page-testimonials__submit-review-section {
  background-color: #1a1a1a;
  padding-bottom: 80px;
}

.page-testimonials__submit-review-image {
  width: 800px;
  height: 600px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-top: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-testimonials__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-testimonials__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #017439; /* Brand color for FAQ questions */
  color: #ffffff;
  position: relative;
}

.page-testimonials__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-testimonials__faq-qtext {
  flex-grow: 1;
  color: #ffffff;
}

.page-testimonials__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-testimonials__faq-item[open] .page-testimonials__faq-toggle {
  transform: rotate(45deg);
}

.page-testimonials__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.7;
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answers */
}

/* CTA Section */
.page-testimonials__cta-section {
  padding-top: 80px;
  padding-bottom: 100px;
  background-color: #017439; /* Brand color for final CTA */
}

.page-testimonials__cta-section .page-testimonials__section-title {
  color: #ffffff;
}

.page-testimonials__cta-section .page-testimonials__section-intro {
  color: #f0f0f0;
}

.page-testimonials__button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-testimonials__hero-title {
    font-size: 2.8em;
  }
  .page-testimonials__hero-description {
    font-size: 1.1em;
  }
  .page-testimonials__section-title {
    font-size: 2.2em;
  }
  .page-testimonials__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-testimonials {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-testimonials__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-testimonials__hero-title {
    font-size: 2.2em;
  }
  .page-testimonials__hero-description {
    font-size: 1em;
  }
  .page-testimonials__section {
    padding: 40px 0;
  }
  .page-testimonials__section-title {
    font-size: 1.8em;
  }
  .page-testimonials__section-intro {
    font-size: 0.95em;
  }
  .page-testimonials__grid,
  .page-testimonials__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-testimonials__card,
  .page-testimonials__feature-card {
    padding: 25px;
  }
  .page-testimonials__btn-primary,
  .page-testimonials__btn-secondary,
  .page-testimonials a[class*="button"],
  .page-testimonials a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-testimonials__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-testimonials__hero-image,
  .page-testimonials__why-choose-image,
  .page-testimonials__submit-review-image,
  .page-testimonials img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-testimonials__section,
  .page-testimonials__card,
  .page-testimonials__container,
  .page-testimonials__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-testimonials__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-testimonials__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }
}