/* style/about.css */

/* Base Styles & Typography */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text is light */
  background-color: #000000; /* Ensure consistency with body background */
}

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

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #ffffff;
  font-weight: bold;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 1em;
  color: #ffffff;
}

.page-about__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__hero-description {
  font-size: 1.4em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
.page-about__hero-section {
  position: relative;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #017439, #004d29);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-about__intro-section,
.page-about__licensing-section,
.page-about__technology-section,
.page-about__vision-section,
.page-about__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-about__intro-section .page-about__section-title,
.page-about__licensing-section .page-about__section-title,
.page-about__technology-section .page-about__section-title,
.page-about__vision-section .page-about__section-title,
.page-about__faq-section .page-about__section-title {
  color: #017439; /* Brand color for titles on light background */
}

.page-about__intro-section .page-about__paragraph,
.page-about__licensing-section .page-about__paragraph,
.page-about__technology-section .page-about__paragraph,
.page-about__vision-section .page-about__paragraph,
.page-about__faq-section .page-about__paragraph {
  color: #333333; /* Dark text for light background */
}

.page-about__history-section,
.page-about__social-responsibility-section,
.page-about__team-section,
.page-about__conclusion-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background for contrast */
  color: #ffffff; /* Light text for dark background */
}

.page-about__history-section .page-about__section-title,
.page-about__social-responsibility-section .page-about__section-title,
.page-about__team-section .page-about__section-title,
.page-about__conclusion-section .page-about__section-title {
  color: #ffffff; 
}

.page-about__history-section .page-about__paragraph,
.page-about__social-responsibility-section .page-about__paragraph,
.page-about__team-section .page-about__paragraph,
.page-about__conclusion-section .page-about__paragraph {
  color: #ffffff;
}

/* Content Grid */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__content-text {
  flex: 1;
}

.page-about__content-image {
  flex: 1;
  text-align: center;
}

.page-about__content-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto; /* Center the image */
}

/* Call to Action Buttons */
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

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

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

/* For light sections, secondary button needs adjustment */
.page-about__light-bg .page-about__btn-secondary {
  color: #017439;
  border-color: #017439;
}

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

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333333;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #e5e5e5;
}

.page-about__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #333333;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(0deg); /* No rotation needed if using +/- */
  color: #C30808;
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  background-color: #ffffff;
}

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

.page-about__faq-answer p {
  margin-bottom: 0;
  color: #555555; /* Darker text for answer on light background */
}

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

  .page-about__hero-description {
    font-size: 1.2em;
  }

  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__content-grid {
    flex-direction: column;
  }

  .page-about__content-grid--reverse {
    flex-direction: column;
  }

  .page-about__content-text,
  .page-about__content-image {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header */
  }

  .page-about__hero-title {
    font-size: 2.2em;
  }

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

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-about__paragraph {
    font-size: 1em;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-about__container,
  .page-about__intro-section,
  .page-about__history-section,
  .page-about__licensing-section,
  .page-about__social-responsibility-section,
  .page-about__technology-section,
  .page-about__team-section,
  .page-about__vision-section,
  .page-about__faq-section,
  .page-about__conclusion-section {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__content-image,
  .page-about__faq-list {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .page-about__faq-question {
    padding: 12px 15px;
  }

  .page-about__faq-question h3 {
    font-size: 1.1em;
  }

  .page-about__faq-answer {
    padding: 0 15px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 12px 15px !important;
  }
}