/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body handles background color */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #017439; /* Primary color for hero background */
  color: #ffffff;
  overflow: hidden;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for H1 */
}

.page-about__intro-text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  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-about__btn-primary {
  background-color: #C30808; /* Custom color for Register */
  color: #FFFF00; /* Custom font color for Register */
  border: 2px solid #C30808;
}

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

.page-about__btn-secondary {
  background-color: #017439; /* Primary color for secondary button */
  color: #FFFFFF; /* Auxiliary color for secondary button text */
  border: 2px solid #017439;
}

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

/* General Section Styles */
.page-about__section {
  padding: 60px 0;
}

.page-about__introduction {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-about__history,
.page-about__team {
  background-color: #0a0a0a; /* Dark background to match body, ensuring text is white */
}

.page-about__values,
.page-about__social-responsibility {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-about__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #FFFF00; /* Custom font color for titles */
  text-align: center;
  margin-bottom: 40px;
}

.page-about p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-about b {
  color: #FFFF00;
}

.page-about__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 8px;
  object-fit: cover;
}

/* CTA Section */
.page-about__cta {
  background-color: #017439; /* Primary color for CTA background */
  text-align: center;
}

.page-about__cta-content {
  max-width: 900px;
}

/* FAQ Section */
.page-about__faq {
  background-color: #0a0a0a; /* Dark background to match body */
  padding-bottom: 80px;
}

.page-about__faq-list {
  margin-top: 40px;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #005a2e; /* Darker primary for question background */
  color: #FFFF00;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-question::marker {
  display: none;
}

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

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

.page-about__faq-answer {
  padding: 15px 25px;
  font-size: 1rem;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-section {
    padding: 40px 15px;
  }

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

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

  .page-about__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  .page-about__intro-text {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  }

  .page-about__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }

  .page-about p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  /* All images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All image containers responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* Video section top padding */
  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* All buttons responsive */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about 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;
  }

  /* Button containers responsive */
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-about__hero-content {
    margin-bottom: 20px;
  }

  .page-about__hero-image-wrapper {
    margin-top: 20px;
  }

  .page-about__section {
    padding: 30px 0;
  }

  .page-about__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-about__faq-answer {
    padding: 10px 20px;
  }
}