/* style/about.css */

/* Base styles for the page-about scope */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
}

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

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

.page-about__sub-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 20px;
}

.page-about__description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.page-about__text-link {
  color: var(--main-color);
  text-decoration: underline;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.page-about__text-link:hover {
  color: var(--glow-color);
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts to container */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.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(--main-color);
  border: 2px solid var(--main-color);
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-about__hero-content-wrapper {
  width: 100%;
  padding: 40px 20px 60px;
  text-align: center;
  background-color: var(--background);
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* Section common styles */
.page-about__introduction-section,
.page-about__why-choose-section,
.page-about__social-responsibility-section,
.page-about__products-services-section,
.page-about__getting-started-section,
.page-about__faq-section,
.page-about__contact-section {
  padding: 80px 0;
  position: relative;
}

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

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__sub-title {
  color: var(--text-main);
}

.page-about__dark-section .page-about__description,
.page-about__dark-section .page-about__text-block p {
  color: var(--text-secondary);
}

/* Content Grid (for text and image side-by-side) */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
}

.page-about__image-block {
  flex: 1;
  max-width: 50%;
  box-sizing: border-box;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Value List */
.page-about__value-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

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

.page-about__value-item strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* Features Grid */
.page-about__features-grid,
.page-about__products-grid,
.page-about__step-grid,
.page-about__contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
  min-height: 200px; /* Ensure card content area is not too small */
}

.page-about__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-about__card-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-about__feature-card p,
.page-about__product-card p,
.page-about__step-card p,
.page-about__contact-card p {
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__feature-card .page-about__text-link {
  margin-top: 0;
}

.page-about__product-card .page-about__btn-primary {
  margin-top: auto; /* Push button to bottom */
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

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

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid var(--divider-color);
}

.page-about__faq-question::-webkit-details-marker, /* Hide default marker for Chrome/Safari */
.page-about__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
}

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

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

.page-about__faq-answer .page-about__text-link {
  margin-top: 5px;
  display: block;
}

/* Contact Section */
.page-about__contact-section .page-about__description {
  margin-bottom: 40px;
}

/* General image sizing for content areas */
.page-about img {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-image {
    max-height: 500px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

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

  .page-about__sub-title {
    font-size: 1.5rem;
  }

  .page-about__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__content-grid--reverse {
    flex-direction: column;
  }

  .page-about__image-block {
    max-width: 100%;
  }
}

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

  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
  }

  .page-about__hero-image {
    max-height: 300px;
  }

  .page-about__hero-content-wrapper {
    padding: 30px 15px 40px;
  }

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

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

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

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

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 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-left: 15px;
    padding-right: 15px;
  }

  .page-about__introduction-section,
  .page-about__why-choose-section,
  .page-about__social-responsibility-section,
  .page-about__products-services-section,
  .page-about__getting-started-section,
  .page-about__faq-section,
  .page-about__contact-section {
    padding: 40px 0;
  }

  .page-about__content-grid {
    margin-bottom: 40px;
  }

  .page-about__image-block img,
  .page-about__card img,
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__image-block,
  .page-about__card,
  .page-about__section,
  .page-about__box,
  .page-about__hero-image-wrapper,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-about__value-list,
  .page-about__features-grid,
  .page-about__products-grid,
  .page-about__step-grid,
  .page-about__contact-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

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

  .page-about__card {
    padding: 20px;
  }
}

/* Ensure min-width for content images */
.page-about__image-block img,
.page-about__card img {
  min-width: 200px;
  min-height: 200px;
}