/* style/about.css */

:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient-start: #2AD16F;
  --color-button-gradient-end: #13994A;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

/* Base styles for the page-about scope */
.page-about {
  color: var(--color-text-main); /* Light text for dark body background */
  background-color: var(--color-background); /* Ensure consistency with body background */
  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 {
  padding: 60px 0;
  text-align: center;
}

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

.page-about__section-title {
  font-size: clamp(2.2rem, 3vw, 3rem);
  color: var(--color-gold);
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-about__text-block {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 900px;
  margin: 0 auto 30px auto;
}

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin-top: 40px;
  padding: 0 20px;
  text-align: center;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  color: var(--color-gold);
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: bold;
  letter-spacing: -0.03em;
}

.page-about__description {
  font-size: 1.2rem;
  color: var(--color-text-main);
  margin-bottom: 30px;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

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

.page-about__btn-secondary:hover {
  background-color: var(--color-button-gradient-start);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Grid Layouts */
.page-about__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  align-items: start;
}

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

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

/* Cards */
.page-about__card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

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

.page-about__card p,
.page-about__list li {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-about__list li:last-child {
  margin-bottom: 0;
}

.page-about__list li::before {
  content: '✓';
  color: var(--color-button-gradient-start);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* Product Cards */
.page-about__product-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.page-about__product-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-about__product-title {
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 10px;
  font-weight: bold;
  flex-grow: 1;
}

.page-about__product-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__product-title a:hover {
  color: var(--color-button-gradient-start);
}

.page-about__product-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Feature Items */
.page-about__feature-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px var(--color-glow));
  display: block;
}

.page-about__feature-title {
  font-size: 1.6rem;
  color: var(--color-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__feature-item p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Step List */
.page-about__step-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-about__step-list li {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 70px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--color-text-main);
  font-size: 1.1rem;
}

.page-about__step-list li strong {
  color: var(--color-gold);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 5px;
}

.page-about__step-list li::before {
  content: attr(data-step);
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.3rem;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* For details summary */
}

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

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

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

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  /* For div based FAQ */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px; /* Sufficiently large for content */
  padding-top: 10px;
}

/* Image specific styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-about__image-content {
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-about__grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-about__grid-layout .page-about__image-content--grid {
    grid-column: 1 / -1; /* Span full width below cards */
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__section {
    padding: 40px 0;
  }

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

  .page-about__main-title {
    font-size: 2.2rem;
  }

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

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

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

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

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

  .page-about__card,
  .page-about__product-card,
  .page-about__feature-item {
    padding: 20px;
  }

  .page-about__card-title,
  .page-about__product-title,
  .page-about__feature-title {
    font-size: 1.4rem;
  }

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

  .page-about__list li {
    font-size: 0.95rem;
  }

  .page-about__step-list li {
    font-size: 1rem;
    padding-left: 60px;
  }

  .page-about__step-list li strong {
    font-size: 1.1rem;
  }

  .page-about__step-list li::before {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
    left: 15px;
  }

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

  .page-about__faq-answer {
    font-size: 0.95rem;
    padding: 0 15px 15px 15px;
  }

  /* Image responsive rules */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__image-content,
  .page-about__product-card,
  .page-about__feature-item,
  .page-about__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

/* Ensure all images maintain aspect ratio and fit container */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Global image sizing for content area - ensure minimum 200px */
.page-about img:not(.page-about__hero-image):not(.page-about__feature-icon) {
  min-width: 200px;
  min-height: 200px;
}

/* Specific override for feature icons to allow smaller visual but still >200px source */
.page-about__feature-icon {
  width: 100px;
  height: 100px;
  min-width: unset; /* Override min-width for icons if needed, but ensure source is >200 */
  min-height: unset;
}