/* style/about.css */

/* General styles for the about page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-text-color, #F2FFF6); /* Default to light text for dark body background */
  background-color: var(--background-color, #08160F); /* Assume body background is dark */
}

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main, #F2FFF6);
  line-height: 1.2;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles top padding, only small decorative top padding here */
  background: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-width: 1200px; /* Display size */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 font size */
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
  line-height: 1.2;
}

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

.page-about__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  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: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

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

.page-about__btn-secondary {
  background: transparent;
  color: var(--main-color, #11A84E);
  border: 2px solid var(--main-color, #11A84E);
}

.page-about__btn-secondary:hover {
  background: var(--main-color, #11A84E);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Content Sections */
.page-about__content-section,
.page-about__history-section,
.page-about__commitment-section,
.page-about__products-section,
.page-about__experience-section,
.page-about__responsibility-section,
.page-about__future-section,
.page-about__faq-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-about__content-section.page-about__light-bg,
.page-about__commitment-section.page-about__light-bg,
.page-about__experience-section.page-about__light-bg,
.page-about__future-section.page-about__light-bg {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

.page-about__history-section.page-about__dark-section,
.page-about__products-section.page-about__dark-section,
.page-about__responsibility-section.page-about__dark-section,
.page-about__faq-section.page-about__dark-section {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-about__image-inline {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px; /* Display size */
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* Product List */
.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__list-item {
  background: var(--card-bg, #11271B);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__list-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__product-link {
  display: block;
  text-decoration: none;
  color: var(--text-main, #F2FFF6);
  padding-bottom: 20px;
}

.page-about__product-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-about__product-title {
  font-size: 1.4em;
  font-weight: bold;
  margin: 0 20px 10px 20px;
  color: var(--text-main, #F2FFF6);
}

.page-about__product-description {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8);
  margin: 0 20px;
}

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

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background: var(--card-bg, #11271B);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

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

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow, #57E38D);
}

.page-about__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

.page-about__faq-answer p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-image-wrapper {
    margin-bottom: 30px;
  }

  .page-about__hero-content {
    max-width: 768px;
  }

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

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

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

  .page-about__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-about__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-about__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__hero-content {
    padding: 0 15px;
  }

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

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__content-section,
  .page-about__history-section,
  .page-about__commitment-section,
  .page-about__products-section,
  .page-about__experience-section,
  .page-about__responsibility-section,
  .page-about__future-section,
  .page-about__faq-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: 1.8em;
    margin-bottom: 25px;
  }

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

  .page-about__image-inline {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 30px auto;
  }

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

  .page-about__product-image {
    height: 180px;
  }

  .page-about__product-title {
    font-size: 1.2em;
  }

  .page-about__product-description {
    font-size: 0.9em;
  }

  .page-about__faq-item summary {
    padding: 15px;
    font-size: 1em;
  }

  .page-about__faq-answer {
    padding: 15px;
    font-size: 0.9em;
  }
}

/* Ensure all images and video wrappers are responsive */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-about__hero-image-wrapper,
.page-about__image-inline,
.page-about__product-image {
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__video-section,
.page-about__video-container,
.page-about__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-about__video,
  .page-about video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
}