/* style/about.css */
.page-about {
  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, ensuring consistency */
}

.page-about__section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-about__dark-section {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
}

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

.page-about__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff; /* Always white for titles on dark sections */
  font-weight: bold;
}

.page-about__section-subtitle {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
}

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

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: -1;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  max-width: 900px;
  padding: 0 20px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
}

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

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

.page-about__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  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;
}

.page-about__btn-large {
  font-size: 1.1em;
  padding: 18px 35px;
}

.page-about__intro-section {
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff; /* Light text for dark background */
}

.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about__text-block {
  flex: 1;
  font-size: 1.1em;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-about__image-center {
  display: block;
  margin: 40px auto;
}

.page-about__mission-vision-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-about__grid-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-about__grid-title {
  font-size: 1.8em;
  color: #FFFF00; /* Highlight color for subtitles */
  margin-bottom: 15px;
}

.page-about__grid-item p {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 10px;
}

.page-about__values-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-about__value-title {
  font-size: 1.5em;
  color: #FFFF00; /* Highlight color for value titles */
  margin-bottom: 10px;
}

.page-about__value-card p {
  color: #f0f0f0;
}

.page-about__why-choose-section {
  background-color: #017439;
  color: #ffffff;
}

.page-about__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  text-align: left;
}

.page-about__advantage-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-about__advantage-title {
  font-size: 1.8em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-about__advantage-item p {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 10px;
}

.page-about__cta-section {
  background-color: #0a0a0a;
  color: #ffffff;
  padding-bottom: 80px;
}

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

.page-about__faq-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-about__faq-title {
  font-size: 1.2em;
  color: #ffffff;
  margin: 0;
}

.page-about__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFFF00;
  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;
  color: #f0f0f0;
}

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

.page-about__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__grid {
    grid-template-columns: 1fr;
  }
  .page-about__advantages-grid {
    grid-template-columns: 1fr;
  }
  .page-about__values-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    height: auto;
    min-height: 400px;
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__section-subtitle {
    font-size: 1em;
  }
  .page-about__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-about__image-block {
    order: -1; /* Image first on mobile */
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__grid,
  .page-about__advantages-grid,
  .page-about__values-grid {
    grid-template-columns: 1fr;
  }
  .page-about__grid-item,
  .page-about__advantage-item,
  .page-about__value-card {
    padding: 25px;
  }
  .page-about__grid-title,
  .page-about__advantage-title,
  .page-about__value-title {
    font-size: 1.4em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-title {
    font-size: 1em;
  }
  .page-about__faq-answer {
    padding: 0 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px;
    padding-top: 0;
  }
}

/* Ensure all content-area images are not smaller than 200px */
.page-about__text-block img,
.page-about__image-block img,
.page-about__grid-item img,
.page-about__value-card img,
.page-about__advantage-item img,
.page-about__cta-section img {
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-about__text-block img,
  .page-about__image-block img,
  .page-about__grid-item img,
  .page-about__value-card img,
  .page-about__advantage-item img,
  .page-about__cta-section img {
    min-width: unset;
    min-height: unset;
  }
}