/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  color: #F2FFF6; /* Text Main for dark background */
  background-color: #08160F; /* Background color */
  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__title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 40px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
}

.page-about__text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  min-height: 600px;
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.3; /* Subtle overlay for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  color: #F2FFF6;
  padding: 20px;
}

.page-about__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

/* Buttons */
.page-about__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for primary button */
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Green text for secondary button */
  border: 2px solid #2AD16F;
}

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

/* About Us Section */
.page-about__about-us .page-about__content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: left;
}

.page-about__about-us .page-about__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Why Choose Us Section */
.page-about__why-choose-us .page-about__features-grid,
.page-about__our-commitment .page-about__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__card {
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-about__card-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

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

.page-about__card-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-about__faq-item {
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: #F2FFF6; /* Text Main */
  list-style: none;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: #2AD16F; /* Green accent */
}

.page-about__faq-answer {
  padding: 0 20px 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
}

.page-about__faq-answer p {
  margin: 0;
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-about__about-us .page-about__content-wrapper {
    flex-direction: row;
    align-items: center;
  }
  .page-about__about-us .page-about__text {
    flex: 1;
    margin-right: 30px;
  }
  .page-about__about-us .page-about__image {
    flex: 0 0 400px; /* Fixed width for image on desktop */
    max-width: 400px;
  }
  .page-about__about-us .page-about__content-wrapper:nth-child(even) {
    flex-direction: row-reverse;
  }
  .page-about__about-us .page-about__content-wrapper:nth-child(even) .page-about__text {
    margin-left: 30px;
    margin-right: 0;
  }
}

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

  .page-about__title {
    font-size: 2em;
  }

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

  .page-about__hero-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-about__hero-description {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .page-about__about-us .page-about__content-wrapper {
    flex-direction: column;
  }

  .page-about__about-us .page-about__text {
    margin-right: 0;
  }

  .page-about__about-us .page-about__image {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  /* Mobile button responsiveness */
  .page-about__btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important; /* Adjust padding for smaller screens */
    font-size: 1em !important;
  }

  .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-wrap: wrap !important;
    gap: 10px;
  }

  .page-about__about-us .page-about__container,
  .page-about__why-choose-us .page-about__container,
  .page-about__our-commitment .page-about__container,
  .page-about__download-app .page-about__container,
  .page-about__contact-us .page-about__container,
  .page-about__faq-section .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure content doesn't overflow */
  }

  .page-about__card-image {
    height: auto; /* Allow image to scale */
  }
}

/* Ensure min-width 200px for content images (excluding small shared icons) */
.page-about__image, .page-about__card-image {
  min-width: 200px;
  min-height: 200px;
}

/* Specific contrast rules for elements */
.page-about h1, .page-about h2, .page-about h3, .page-about__card-title {
  color: #F2FFF6; /* Main Text for titles */
}

.page-about p, .page-about li, .page-about__card-text, .page-about__faq-answer {
  color: #A7D9B8; /* Secondary Text for body content */
}

.page-about__faq-question {
  color: #F2FFF6;
}

.page-about__faq-toggle {
  color: #2AD16F;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
}

.page-about__btn-secondary {
  background: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}