/* style/about.css */

/* General styling for the about page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background-color, #08160F); /* Body background from shared */
}

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

.page-about__flex-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 40px 0;
}

.page-about__flex-container.page-about__flex-reverse-on-mobile {
  flex-direction: row;
}

.page-about__content-column {
  flex: 1;
}

.page-about__image-column {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-height: 200px; /* Enforce minimum image size */
  min-width: 200px; /* Enforce minimum image size */
}

.page-about__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem); /* Responsive H2 font size */
  font-weight: bold;
  color: var(--gold, #F2C14E); /* Gold for titles */
  margin-bottom: 25px;
  text-align: center;
}

.page-about__section-title:not(:first-child) {
    margin-top: 60px;
}

.page-about__text-block {
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
}

.page-about__keyword {
  color: var(--glow, #57E38D);
  font-weight: bold;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom */
  background-color: var(--deep-green, #0A4B2C); /* A dark background for the hero section */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  min-height: 200px; /* Ensure minimum size */
  object-fit: cover;
  border-radius: 0; /* Hero image typically full width, no border radius */
}

.page-about__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above any potential background layers */
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* H1 font size */
  font-weight: 700;
  color: var(--gold, #F2C14E);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__lead-text {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main, #F2FFF6);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Sections with dark background */
.page-about__dark-section {
  background-color: var(--background-color, #08160F);
  color: var(--text-main, #F2FFF6);
  padding: 60px 0;
}

/* Card Grid for Products/Services */
.page-about__card-grid {
  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(--card-bg, #11271B); /* Dark card background */
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #F2FFF6); /* Light text for dark card */
}

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

.page-about__card-title {
  font-size: 1.5rem;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 0.95rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 25px;
}

.page-about__card-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  background: var(--main-color, #11A84E); /* Default button background if not specified */
  color: #ffffff; /* White text for contrast */
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  min-width: 200px; /* Ensure buttons are not too small */
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__card-button:hover {
  background: var(--auxiliary-color, #22C768);
}

.page-about__image-centered {
    text-align: center;
    margin-top: 40px;
}

.page-about__image-centered .page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Advantage List */
.page-about__advantage-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__advantage-list li {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: var(--text-main, #F2FFF6);
}

.page-about__list-item-title {
  font-size: 1.25rem;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
}

.page-about__advantage-list p {
  color: var(--text-secondary, #A7D9B8);
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
  background-color: var(--deep-green, #0A4B2C); /* Dark green background */
  color: var(--text-main, #F2FFF6);
}

.page-about__faq-list {
  margin-top: 40px;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--gold, #F2C14E);
  cursor: pointer;
  background-color: var(--card-bg, #11271B);
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

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

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

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

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Change '+' to 'x' or rotate */
}

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Contact CTA Section */
.page-about__contact-cta-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
  text-align: center;
}

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

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container responsiveness */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main, #F2FFF6);
  border: none;
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--gold, #F2C14E);
  border: 2px solid var(--gold, #F2C14E);
}

.page-about__btn-secondary:hover {
  background: var(--gold, #F2C14E);
  color: var(--background-color, #08160F);
}

/* Responsive design */
@media (max-width: 992px) {
  .page-about__flex-container {
    flex-direction: column;
  }
  .page-about__flex-container.page-about__flex-reverse-on-mobile {
    flex-direction: column-reverse; /* Reverse order for mobile */
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px;
  }

  .page-about__hero-section {
    padding-bottom: 40px;
  }

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

  .page-about__lead-text {
    font-size: 1rem;
  }

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

  .page-about__dark-section,
  .page-about__faq-section,
  .page-about__contact-cta-section {
    padding: 40px 0;
  }

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

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

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

  /* Images responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsiveness */
  .page-about__hero-image-wrapper,
  .page-about__image-column,
  .page-about__image-centered,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Buttons responsiveness */
  .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 responsiveness */
  .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: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    overflow: hidden !important;
  }
  
  /* Video section top padding (small, not --header-offset) */
  .page-about__hero-section {
    padding-top: 10px !important;
  }
}