/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

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

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

.page-about__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff; /* Default for dark sections */
}

.page-about__light-bg .page-about__section-title {
  color: #017439; /* Brand color for light sections */
}

.page-about__sub-title {
  font-size: 2em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Slightly off-white for better readability on dark */
}

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

.page-about__hero-section {
  position: relative;
  padding: 100px 0 60px; /* Adjust padding-top for header offset */
  padding-top: var(--header-offset, 120px); /* Desktop default */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, #017439 0%, #004d27 100%);
}

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

.page-about__main-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__intro-text {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 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/login */
  color: #ffffff; /* Ensured contrast: #ffffff on #C30808 is 4.59:1 */
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
  transform: translateY(-3px);
}

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

.page-about__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
  transform: translateY(-3px);
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: grayscale(50%); /* Allowed for stylistic effect, not color change */
}

.page-about__about-us-intro {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-about__image-text-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-about__image-wrapper {
  flex: 1;
  min-width: 300px;
}

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

.page-about__text-content {
  flex: 2;
}

.page-about__text-content .page-about__sub-title {
  color: #017439; /* Brand color for sub-titles in content */
  text-align: left;
}

.page-about__text-content .page-about__paragraph {
  text-align: left;
}

.page-about__why-choose-us {
  background-color: #ffffff;
  color: #333333;
}

.page-about__why-choose-us .page-about__section-title {
  color: #017439;
}

.page-about__why-choose-us .page-about__paragraph {
  color: #333333;
}

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

.page-about__feature-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
}

.page-about__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-about__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-about__card-description {
  color: #555555;
  font-size: 0.95em;
}

.page-about__card-description a {
  color: #017439;
  text-decoration: underline;
}

.page-about__card-description a:hover {
  color: #004d27;
}

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

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

.page-about__commitment-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
}

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

.page-about__commitment-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-about__commitment-description {
  color: #f0f0f0;
  font-size: 0.95em;
}

.page-about__commitment-description a {
  color: #ffffff;
  text-decoration: underline;
}

.page-about__commitment-description a:hover {
  color: #ccffcc;
}

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

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

.page-about__team-member {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__team-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-about__member-name {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 1.1em;
  color: #aaaaaa;
  margin-bottom: 15px;
}

.page-about__member-description {
  color: #f0f0f0;
  font-size: 0.95em;
}

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

.page-about__faq-section .page-about__section-title {
  color: #017439;
}

.page-about__faq-section .page-about__paragraph {
  color: #333333;
}

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

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

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

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

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

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

.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-out, padding 0.3s ease-out;
  background-color: #f0f0f0;
  color: #555555;
}

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

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

.page-about__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-about__faq-answer a:hover {
  color: #004d27;
}

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

.page-about__cta-bottom .page-about__section-title {
  color: #ffffff;
}

.page-about__cta-bottom .page-about__paragraph {
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2.2em;
  }
  .page-about__sub-title {
    font-size: 1.8em;
  }
  .page-about__image-text-layout {
    flex-direction: column;
    text-align: center;
  }
  .page-about__text-content .page-about__sub-title,
  .page-about__text-content .page-about__paragraph {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    padding-bottom: 40px;
  }
  .page-about__main-title {
    font-size: 2.2em;
  }
  .page-about__intro-text {
    font-size: 1.1em;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
  .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__faq-list,
  .page-about__hero-content,
  .page-about__cta-bottom .page-about__container,
  .page-about__features-grid,
  .page-about__commitment-grid,
  .page-about__team-grid {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure content area images are not too small */
  .page-about__content-image,
  .page-about__feature-image,
  .page-about__commitment-icon,
  .page-about__team-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Specific card/section adjustments for mobile */
  .page-about__feature-card,
  .page-about__commitment-item,
  .page-about__team-member,
  .page-about__faq-item {
    padding: 20px;
  }
  .page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-answer {
    padding: 0 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.6em;
  }
  .page-about__sub-title {
    font-size: 1.3em;
  }
  .page-about__intro-text {
    font-size: 0.95em;
  }
}