/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  background-color: var(--deep-green);
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: -150px; /* Adjust to slightly overlap the image, but text is below */
  padding: 40px;
  background: rgba(8, 22, 15, 0.8); /* Dark background for text visibility */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  color: var(--text-main);
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

.page-about__cta-buttons--centered {
  margin-top: 40px;
}

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

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background: var(--glow);
  color: var(--background);
  transform: translateY(-2px);
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__text-block {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-about__image-content--large {
  max-width: 1000px;
}

.page-about__intro-section,
.page-about__tech-security-section,
.page-about__future-section {
  background-color: var(--background);
}

.page-about__milestones-section,
.page-about__products-section,
.page-about__social-responsibility-section,
.page-about__team-support-section,
.page-about__faq-section {
  background-color: var(--card-bg);
}

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

.page-about__milestone-card {
  background-color: var(--deep-green);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

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

.page-about__card-text {
  color: var(--text-secondary);
}

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

.page-about__product-item {
  background-color: var(--deep-green);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__product-image {
  width: 100%;
  max-width: 600px; /* Ensure images are not too small */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-about__product-name {
  font-size: 1.6em;
  color: var(--gold);
  margin-bottom: 10px;
}

.page-about__product-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__image-block {
  text-align: center;
}

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

.page-about__faq-item {
  background-color: var(--deep-green);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green);
  position: relative;
  user-select: none;
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-question::marker {
  display: none;
}

.page-about__faq-item[open] .page-about__faq-question {
  background-color: var(--deep-green);
}

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

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

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
  max-height: 500px; /* Arbitrary large value for smooth transition */
  transition: max-height 0.5s ease-in;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: -100px;
    padding: 30px;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 4.5vw, 2.8em);
  }

  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__content-grid {
    grid-template-columns: 1fr;
  }

  .page-about__image-block {
    order: -1; /* Image appears above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-about__hero-content {
    margin-top: -80px;
    padding: 20px;
  }

  .page-about__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }

  .page-about__description {
    font-size: 1em;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
    padding: 12px 20px;
  }

  .page-about__container {
    padding: 30px 15px;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Allow smaller display if needed */
    min-height: unset !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__milestone-card,
  .page-about__product-item,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__product-list {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 480px) {
  .page-about__hero-content {
    margin-top: -60px;
    padding: 15px;
  }

  .page-about__main-title {
    font-size: clamp(1.2em, 7vw, 1.8em);
  }

  .page-about__cta-buttons {
    gap: 10px;
  }
}

/* Color Contrast Fixes (if needed) */
.page-about__dark-bg {
  background-color: var(--background);
  color: var(--text-main);
}

.page-about__card-bg {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-about__dark-section {
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-about__hero-content {
  color: var(--text-main);
}

.page-about__milestone-card,
.page-about__product-item,
.page-about__faq-item {
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-about__product-name,
.page-about__card-title {
  color: var(--gold);
}

.page-about__faq-question {
  color: var(--text-main);
}

.page-about__faq-toggle {
  color: var(--gold);
}