/* style/about.css */

/* Custom Colors */
:root {
  --page-about-bg: #08160F;
  --page-about-card-bg: #11271B;
  --page-about-text-main: #F2FFF6;
  --page-about-text-secondary: #A7D9B8;
  --page-about-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-about-border: #2E7A4E;
  --page-about-glow: #57E38D;
  --page-about-gold: #F2C14E;
  --page-about-divider: #1E3A2A;
  --page-about-deep-green: #0A4B2C;
}

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

.page-about h1, .page-about h2, .page-about h3, .page-about h4, .page-about h5, .page-about h6 {
  color: var(--page-about-text-main);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-about h1 {
  font-weight: bold;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--page-about-glow);
  border-radius: 2px;
}

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

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-about-text-secondary);
}

.page-about a {
  color: var(--page-about-glow);
  text-decoration: none;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: 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%;
  margin-bottom: 30px; /* Space between image and content */
}

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

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

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Using clamp for h1 font-size */
  margin-bottom: 20px;
}

.page-about__description {
  font-size: 1.2em;
  color: var(--page-about-text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button, .page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  margin: 10px;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__cta-button {
  background: var(--page-about-button-gradient);
  color: var(--page-about-text-main);
  border: none;
}

.page-about__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary:hover {
  background: var(--page-about-glow);
  color: var(--page-about-bg);
}

/* Dark sections */
.page-about__dark-section {
  background-color: var(--page-about-card-bg);
  color: var(--page-about-text-main);
}

/* Grid layout for cards/features */
.page-about__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-about__card {
  background-color: var(--page-about-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--page-about-border);
  color: var(--page-about-text-main);
}

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

.page-about__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 30px;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

/* History Section */
.page-about__timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--page-about-divider);
  transform: translateX(-50%);
}

.page-about__timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 0;
  padding-right: 40px;
  box-sizing: border-box;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 40px;
  padding-right: 0;
  text-align: left;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--page-about-glow);
  border: 3px solid var(--page-about-card-bg);
  top: 25px;
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::after {
  right: -8px;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -8px;
}

.page-about__timeline-year {
  font-size: 1.8em;
  color: var(--page-about-gold);
  margin-bottom: 10px;
}

/* Products Section */
.page-about__product-card {
  padding: 20px;
  background-color: var(--page-about-bg);
}

.page-about__product-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

/* Why Choose Us Section */
.page-about__feature-card {
  background-color: var(--page-about-card-bg);
  border: 1px solid var(--page-about-border);
}

.page-about__light-bg {
  background-color: var(--page-about-bg); /* Using page bg for consistency with theme */
  color: var(--page-about-text-main);
}

/* CTA Download Section */
.page-about__cta-download-section {
  text-align: center;
  padding: 80px 20px;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 20px;
  background-color: var(--page-about-bg);
}

.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: var(--page-about-card-bg);
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid var(--page-about-border);
  overflow: hidden;
  color: var(--page-about-text-main);
}

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  list-style: none; /* Remove default marker */
  color: var(--page-about-glow);
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-about__timeline-item {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    text-align: left;
  }

  .page-about__timeline-item:nth-child(odd) {
    left: 0;
  }

  .page-about__timeline-item:nth-child(even) {
    left: 0;
  }

  .page-about__timeline-item::after {
    left: 5px;
  }

  .page-about__timeline::before {
    left: 10px;
  }
}

@media (max-width: 768px) {
  .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__cta-download-section,
  .page-about__faq-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
  }

  .page-about__container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

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

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

  .page-about__cta-button,
  .page-about__btn-secondary {
    width: 100% !important;
    margin: 10px 0 !important;
    padding: 12px 20px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
  }

  .page-about__hero-image,
  .page-about__image-content,
  .page-about__product-image,
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset; /* Allow smaller images on mobile if needed */
    min-height: unset; /* Allow smaller images on mobile if needed */
  }

  .page-about__product-image {
    height: auto; /* Allow auto height for mobile */
  }

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

  .page-about__timeline::before {
    left: 10px;
  }

  .page-about__timeline-item {
    padding-left: 30px; /* Adjust for mobile dot position */
  }

  .page-about__timeline-item::after {
    left: 5px;
  }

  .page-about__faq-item summary {
    font-size: 1.1em;
  }

  .page-about__faq-answer {
    font-size: 1em;
  }
}