/* style/about.css */

/* Root variables for colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

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

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

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

.page-about__sub-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  width: 100%;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Use clamp for H1 */
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.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,
.page-about__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  max-width: 100%;
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid var(--primary-color);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(17, 168, 78, 0.4);
}

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

.page-about__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-main);
  transform: translateY(-3px);
}

.page-about__btn-link {
  background-color: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-about__btn-link:hover {
  background-color: var(--secondary-color);
  color: var(--background-color);
}

.page-about__btn-primary.--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-about__mission-vision-section,
.page-about__history-section,
.page-about__products-section,
.page-about__why-choose-us-section,
.page-about__responsibility-section,
.page-about__faq-section,
.page-about__cta-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color);
}

.page-about__mission-vision-section p,
.page-about__history-section p,
.page-about__responsibility-section p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-about__mission-vision-section ul,
.page-about__history-section ul,
.page-about__responsibility-section ul {
  list-style: none;
  padding-left: 20px;
  margin-bottom: 15px;
}

.page-about__mission-vision-section li,
.page-about__history-section li,
.page-about__responsibility-section li {
  position: relative;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.page-about__mission-vision-section li::before,
.page-about__history-section li::before,
.page-about__responsibility-section li::before {
  content: '•';
  color: var(--secondary-color);
  position: absolute;
  left: -20px;
}

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

.page-about__content-grid.--reverse {
  grid-template-areas: "image text";
}

.page-about__content-grid.--reverse .page-about__text-block {
  grid-area: text;
}

.page-about__content-grid.--reverse .page-about__image-block {
  grid-area: image;
}

.page-about__image-block {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.page-about__product-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

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

.page-about__card-title {
  font-size: 1.3em;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-about__product-card p {
  color: var(--text-secondary);
  font-size: 0.95em;
  margin-bottom: 20px;
}

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

.page-about__feature-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
}

.page-about__feature-card .page-about__card-title {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

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

.page-about__video-block {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  background-color: var(--deep-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-sizing: border-box;
}

.page-about__video-link {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

.page-about__video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-about__video-caption {
  color: var(--text-secondary);
  font-size: 0.9em;
  margin-top: 15px;
  text-align: center;
}

.page-about__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-about__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-item summary {
  list-style: none; /* Remove default marker */
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--border-color);
}

.page-about__faq-question:hover {
  background-color: var(--primary-color);
}

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

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

.page-about__faq-answer {
  padding: 20px 25px;
  color: var(--text-secondary);
  font-size: 0.95em;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
}

.page-about__faq-answer .page-about__btn-link {
  margin-top: 10px;
  display: inline-block;
}

.page-about__cta-section {
  text-align: center;
  padding: 80px 0;
}

.page-about__cta-section .page-about__description {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__content-grid,
  .page-about__content-wrapper {
    grid-template-columns: 1fr;
  }
  .page-about__content-grid.--reverse {
    grid-template-areas: unset;
  }
  .page-about__content-grid.--reverse .page-about__text-block,
  .page-about__content-grid.--reverse .page-about__image-block {
    grid-area: unset;
  }
}

@media (max-width: 768px) {
  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

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

  .page-about__sub-title {
    font-size: 1.3em;
  }

  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__history-section,
  .page-about__products-section,
  .page-about__why-choose-us-section,
  .page-about__responsibility-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 40px 0;
  }

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

  .page-about__hero-image-wrapper,
  .page-about__image-block,
  .page-about__product-card,
  .page-about__feature-card,
  .page-about__video-block,
  .page-about__faq-item,
  .page-about__container,
  .page-about__cta-buttons,
  .page-about__content-grid,
  .page-about__products-grid,
  .page-about__features-grid,
  .page-about__content-wrapper,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

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

  .page-about__video-section {
    padding-top: 10px !important; /* body handles --header-offset, this is just visual padding */
  }

  /* Button responsiveness */
  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link,
  .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-left: 15px;
    padding-right: 15px;
  }

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