/* style/about.css */

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

.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__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__section-description,
.page-about__section-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__section-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 0 60px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  overflow: hidden;
  color: #ffffff;
  text-align: center;
}

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
  border-radius: 0;
  box-shadow: none;
}

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

.page-about__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  color: #f0f0f0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-download {
  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;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
  box-shadow: 0 4px 15px rgba(195, 8, 8, 0.4);
}

.page-about__btn-primary:hover {
  background-color: #e01010;
  border-color: #e01010;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(195, 8, 8, 0.6);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.page-about__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.page-about__btn-download {
  background-color: #017439; /* Main brand color */
  color: #ffffff;
  border: 2px solid #017439;
  box-shadow: 0 4px 15px rgba(1, 116, 57, 0.4);
}

.page-about__btn-download:hover {
  background-color: #01904a;
  border-color: #01904a;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(1, 116, 57, 0.6);
}

/* Introduction Section */
.page-about__introduction-section {
  background-color: #1a1a2e; /* Inherit body background */
  padding: 80px 0;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  background-color: #017439; /* Dark brand background */
  color: #ffffff;
  padding: 80px 0;
}

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

.page-about__why-choose-us-section .page-about__section-description {
  color: #f0f0f0;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

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

.page-about__feature-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Commitment Section */
.page-about__commitment-section {
  background-color: #1a1a2e;
  padding: 80px 0;
}

/* Team Section */
.page-about__team-section {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 0;
}

.page-about__team-section .page-about__section-title {
  color: #ffffff;
}

.page-about__team-section .page-about__section-text {
  color: #f0f0f0;
}

/* Future Section */
.page-about__future-section {
  background-color: #1a1a2e;
  padding: 80px 0;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 0;
}

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

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

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  list-style: none; /* For details/summary */
}

.page-about__faq-item details > summary::-webkit-details-marker { display: none; }

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

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

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.8;
}

/* CTA Section */
.page-about__cta-section {
  background-color: #1a1a2e;
  padding: 80px 0;
}

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

/* Responsive adjustments */
@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__features-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 {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-download {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-about__section,
  .page-about__container,
  .page-about__hero-content {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__section-text,
  .page-about__section-description {
    font-size: 0.95em;
  }
  .page-about__feature-card {
    padding: 25px;
  }
  .page-about__feature-title {
    font-size: 1.4em;
  }
  .page-about__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }
  .page-about__faq-answer {
    padding: 0 20px 18px 20px;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Content area images CSS dimensions lower bound */
  .page-about__section-image,
  .page-about__feature-icon,
  .page-about__hero-image {
    min-width: 200px !important; /* Ensure content images are not too small */
    min-height: 200px !important;
    width: auto !important; /* Allow auto width to maintain aspect ratio */
    height: auto !important;
    max-width: 100% !important;
  }
  .page-about__feature-icon {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
  }
  .page-about__hero-image {
    width: 100% !important;
    height: 100% !important;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
  .page-about__section-title {
    font-size: 1.6em;
  }
  .page-about__faq-question {
    font-size: 1em;
  }
}