/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensuring consistency with body background */
}

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

.page-about__dark-bg {
  background-color: #000000;
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

.page-about__hero-section {
  position: relative;
  padding: 100px 0 60px; /* Adjusted padding to prevent header overlap */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

.page-about__hero-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  color: #f0f0f0;
}

.page-about__hero-buttons,
.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

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

.page-about__btn-primary {
  background-color: #C30808; /* Register color */
  color: #ffffff; /* Ensuring contrast on red button */
  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 #017439;
}

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-about__content-section .page-about__section-title,
.page-about__values-section .page-about__section-title,
.page-about__responsibility-section .page-about__section-title,
.page-about__cta-section .page-about__section-title {
  color: #333333;
}

.page-about__mission-vision-section .page-about__section-title,
.page-about__why-choose-us .page-about__section-title,
.page-about__faq-section .page-about__section-title {
  color: #ffffff;
}

.page-about__section-text {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__content-section .page-about__section-text,
.page-about__values-section .page-about__section-text,
.page-about__responsibility-section .page-about__section-text,
.page-about__cta-section .page-about__section-text {
  color: #555555;
}

.page-about__image-block {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-about__card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__dark-bg-card {
  background-color: rgba(1, 116, 57, 0.2); /* Semi-transparent brand green */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__dark-bg-card .page-about__card-title {
  color: #ffffff;
}

.page-about__dark-bg-card .page-about__card-text {
  color: #f0f0f0;
}

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

.page-about__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  text-align: justify;
}

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

.page-about__value-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-about__value-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
  text-align: justify;
}

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

.page-about__advantage-card {
  background-color: rgba(1, 116, 57, 0.2); /* Semi-transparent brand green */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-about__advantage-card .page-about__card-title {
  color: #ffffff;
}

.page-about__advantage-card .page-about__card-text {
  color: #f0f0f0;
}

.page-about__faq-section {
  padding-bottom: 60px;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

.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: 20px;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
  color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px !important;
}

.page-about__faq-answer p {
  margin: 0;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-about__cta-section .page-about__section-text {
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 80px 0 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-buttons,
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain button group width */
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px; /* Add padding to prevent overflow */
    box-sizing: border-box;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-about__section-text {
    font-size: 0.95em;
  }
  .page-about__values-grid,
  .page-about__advantages-grid {
    grid-template-columns: 1fr;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-about__faq-answer {
    padding: 15px !important;
  }
}