/* style/about.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #017439;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --register-login-font: #FFFF00;
}

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--background-light);
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 500px;
  background-color: var(--primary-color);
  color: var(--text-light);
  overflow: hidden;
  /* Assumed shared.css handles body padding-top, so hero's top padding is for visual spacing */
  padding-top: 80px; 
}

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

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

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  margin: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background-color: var(--register-button-bg); /* Use custom register color */
  color: var(--register-login-font); /* Use custom font color */
  border: 2px solid var(--register-button-bg);
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-about__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

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

.page-about__introduction {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-about__history {
  background-color: var(--background-dark); /* Primary color as background */
  color: var(--text-light); /* White text for contrast */
}

.page-about__advantages {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-about__values {
  background-color: var(--background-dark); /* Primary color as background */
  color: var(--text-light); /* White text for contrast */
}

.page-about__products {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-about__future-vision {
  background-color: var(--background-dark); /* Primary color as background */
  color: var(--text-light); /* White text for contrast */
}

.page-about__faq {
  background-color: var(--background-light);
  color: var(--text-dark);
}

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

.page-about__heading {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from section */
}

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

.page-about__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-about__milestones-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  text-align: left;
}

.page-about__milestone-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.page-about__milestone-item::before {
  content: '✓';
  color: var(--register-login-font); /* Highlight with custom font color */
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

.page-about__card {
  background-color: var(--background-light);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-about__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-about__card-description {
  font-size: 1em;
  line-height: 1.6;
  flex-grow: 1;
}

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

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-about__card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-about__card-title a:hover {
  text-decoration: underline;
}

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

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

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

.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;
  background-color: #f9f9f9;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--register-button-bg); /* Use custom register color for toggle */
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: var(--background-light);
  color: var(--text-dark);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__heading {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 60px 15px;
    min-height: 400px;
    /* IMPORTANT: Ensure hero section has correct padding for header on mobile */
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section {
    padding: 40px 15px;
  }
  .page-about__heading {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__paragraph {
    font-size: 0.95em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 25px;
    font-size: 0.9em;
  }

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

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  
  /* Mobile responsive for buttons */
  .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;
    margin: 5px 0;
  }

  .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: 0;
    padding-right: 0;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }
  .page-about__cta-buttons .page-about__btn-primary,
  .page-about__cta-buttons .page-about__btn-secondary {
    width: calc(100% - 30px) !important; /* Account for container padding */
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-about__grid,
  .page-about__product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
  .page-about__heading {
    font-size: 1.5em;
  }
}