/* style/about.css */

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

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--af88-text-main); /* Default text color for dark background */
  background-color: var(--af88-background-color); /* Matches body background */
  line-height: 1.6;
}

.page-about__section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-about__hero-section {
  padding: 0; /* No padding at the top, controlled by body padding-top */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh; /* Ensure hero section is visible */
  position: relative;
  background-color: var(--af88-background-color);
  color: var(--af88-text-main);
}

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

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-about__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--af88-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-about__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--af88-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--af88-button-gradient);
  color: var(--af88-text-main);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  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 {
  display: inline-block;
  padding: 15px 30px;
  background: transparent;
  color: var(--af88-primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--af88-primary-color);
  cursor: pointer;
  margin-left: 15px;
}

.page-about__btn-secondary:hover {
  background: var(--af88-primary-color);
  color: var(--af88-text-main);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  color: inherit; /* Inherit color from parent section */
}

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

.page-about__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.page-about__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-about__image-text-block--reverse {
  flex-direction: row-reverse;
}

.page-about__image-left, .page-about__image-right {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-about__text-content {
  flex: 1;
  max-width: 50%;
}

.page-about__text-content .page-about__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-about__flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.page-about__value-card {
  background-color: var(--af88-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  flex: 1 1 calc(33% - 30px);
  min-width: 300px;
  text-align: left;
  border: 1px solid var(--af88-border-color);
  color: var(--af88-text-main);
}

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

.page-about__card-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--af88-text-secondary);
}

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

.page-about__value-list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: var(--af88-text-secondary);
}

.page-about__value-list li strong {
  color: var(--af88-text-main);
}

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

.page-about__product-card {
  background-color: var(--af88-card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--af88-border-color);
  color: var(--af88-text-main);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-about__product-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--af88-gold-color);
  margin-bottom: 10px;
}

.page-about__product-description {
  font-size: 1rem;
  color: var(--af88-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__commitment-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex: 1 1 calc(33% - 30px);
  min-width: 300px;
  text-align: left;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-about__item-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--af88-primary-color);
  margin-bottom: 15px;
}

.page-about__item-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 15px;
}

.page-about__text-link {
  color: var(--af88-primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-about__text-link:hover {
  color: var(--af88-deep-green);
  text-decoration: underline;
}

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

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--af88-primary-color);
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

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

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--af88-primary-color);
  margin-left: 15px;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555555;
  text-align: left;
}

.page-about__faq-answer-text {
  margin-bottom: 15px;
}

.page-about__cta-section {
  padding: 80px 20px;
  background-color: var(--af88-deep-green);
  color: var(--af88-text-main);
}

.page-about__cta-section .page-about__main-title,
.page-about__cta-section .page-about__description {
  color: var(--af88-text-main);
}

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

/* --- Responsive Styles --- */

/* Desktop */
@media (min-width: 1025px) {
  .page-about__hero-content {
    padding: 40px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .page-about__image-text-block {
    flex-direction: column;
    text-align: center;
  }

  .page-about__image-text-block--reverse {
    flex-direction: column;
  }

  .page-about__image-left, .page-about__image-right {
    max-width: 100%;
  }

  .page-about__text-content {
    max-width: 100%;
  }

  .page-about__text-content .page-about__text-block {
    text-align: center;
  }

  .page-about__value-card {
    flex: 1 1 calc(50% - 30px);
  }

  .page-about__commitment-item {
    flex: 1 1 calc(50% - 30px);
  }

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

  .page-about__btn-primary, .page-about__btn-secondary {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 60vh;
  }

  .page-about__hero-content {
    padding: 15px;
    width: 90%;
  }

  .page-about__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-about__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

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

  .page-about__text-block {
    font-size: 1rem;
    text-align: left; /* Adjust for better mobile readability */
  }

  .page-about__value-card, .page-about__commitment-item {
    flex: 1 1 100%;
    min-width: unset;
    padding: 25px;
  }

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

  .page-about__product-card {
    padding: 20px;
  }

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

  .page-about__product-description {
    font-size: 0.95rem;
  }

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

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

  .page-about__cta-section {
    padding: 50px 15px;
  }

  /* Mobile responsive for images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile responsive for image containers */
  .page-about__image-text-block,
  .page-about__product-card,
  .page-about__value-card,
  .page-about__commitment-item,
  .page-about__container,
  .page-about__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Mobile responsive for buttons */
  .page-about__cta-button,
  .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;
  }

  /* Button containers for mobile */
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px; /* Buttons themselves have padding */
    padding-right: 0px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    overflow: hidden !important;
  }

  /* Hero content position adjustment for smaller screens */
  .page-about__hero-content {
    position: static;
    transform: none;
    padding: 20px 15px;
    background-color: transparent;
    box-shadow: none;
    margin-top: -100px; /* Pull content up over the image */
    text-align: center;
  }

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

  .page-about__hero-image {
    filter: brightness(0.5); /* Dim more for text on top */
  }

  .page-about__hero-section {
    display: block; /* Change to block for better stacking on mobile */
    padding-top: 10px; /* Small decorative padding */
  }

  .page-about__hero-content .page-about__main-title,
  .page-about__hero-content .page-about__description {
    color: var(--af88-text-main);
  }

  .page-about__hero-content .page-about__btn-primary,
  .page-about__hero-content .page-about__btn-secondary {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .page-about__faq-item[open] .page-about__faq-question {
    border-bottom: 1px solid #e0e0e0; /* Reset border for mobile */
  }
}

/* Ensure images within content sections are at least 200px */
.page-about__section img {
  min-width: 200px;
  min-height: 200px;
}

.page-about__product-image {
  min-height: 150px; /* Adjust min height for cards if needed */
}

/* No filter property on images */
.page-about img:not(.page-about__hero-image) {
  filter: none; 
}