/* style/about.css */

/* Base styles for the page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #ffffff; /* Default background */
  padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Fixed header offset */
/* Assuming shared.css does NOT set body padding-top, so we set it on the main content area */
.page-content.page-about {
  padding-top: var(--header-offset, 120px);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff; /* White text for dark brand color background */
  background-color: #017439; /* Brand primary color */
  overflow: hidden;
  padding: 80px 20px;
}

.page-about__hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6); /* Darken background image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Yellow for prominence */
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styling */
.page-about__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-about__section--light {
  background-color: #f8f8f8;
  color: #333333;
}

.page-about__section--dark {
  background-color: #017439;
  color: #ffffff;
}

.page-about__section--dark .page-about__text-block {
  color: #f0f0f0;
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #017439; /* Brand primary for titles on light backgrounds */
  font-weight: bold;
}

.page-about__section--dark .page-about__section-title {
  color: #ffffff; /* White for titles on dark backgrounds */
}

.page-about__section-subtitle {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #333333;
}

.page-about__section--dark .page-about__section-subtitle {
  color: #f0f0f0;
}

.page-about__text-block {
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
}

.page-about__image-container {
  margin: 40px auto;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

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

.page-about__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
}

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

.page-about__feature-description {
  font-size: 1em;
  color: #555555;
}

/* CTA Section */
.page-about__cta-section {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-about__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-about__btn {
  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;
  cursor: pointer;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn--primary {
  background-color: #C30808; /* Red for register/login */
  color: #FFFF00; /* Yellow text for prominence */
  border: 2px solid #C30808;
}

.page-about__btn--primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-about__btn--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

.page-about__btn--support {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-about__btn--support:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-about__faq-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  color: #017439;
  font-weight: bold;
}

.page-about__faq-item {
  margin-bottom: 15px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-item details {
  width: 100%;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.page-about__faq-item details summary {
  list-style: none; /* Remove default marker */
}

.page-about__faq-item details summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit browsers */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}


.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
  line-height: 1.7;
}

/* Image styles for content areas */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__section {
    padding: 40px 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__section-subtitle {
    font-size: 1.5em;
  }
  .page-about__text-block {
    font-size: 1em;
  }
  .page-about__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-about__cta-title {
    font-size: 2em;
  }
  .page-about__cta-description {
    font-size: 1em;
  }
  .page-about__faq-title {
    font-size: 2em;
  }
  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__image-container,
  .page-about__section,
  .page-about__feature-card,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-about__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure no filter on images */
.page-about img {
  filter: none !important;
}