/* style/about.css */

/* Base styles for the page-about content, ensuring light text on dark body background */
.page-about {
  color: #ffffff; /* Light text for readability on dark body background */
  background-color: transparent; /* Main content background is transparent to show body's dark 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;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it takes full width */
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Space between image and text */
}

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

.page-about__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

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

.page-about__intro-text {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Important for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

.page-about__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

.page-about__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-about__btn-link {
  background-color: transparent;
  color: #017439;
  border: 1px solid #017439;
  padding: 8px 15px;
  font-size: 0.9rem;
}

.page-about__btn-link:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Section Titles */
.page-about__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #ffffff;
  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-color: #017439;
  border-radius: 2px;
}

/* Dark Sections */
.page-about__dark-section {
  background-color: #017439; /* Brand primary color as background */
  padding: 80px 0;
  color: #ffffff;
}

.page-about__dark-section .page-about__section-title {
  color: #ffffff;
}

.page-about__dark-section .page-about__section-title::after {
  background-color: #ffffff;
}

/* Mission Vision Section */
.page-about__mission-vision-section .page-about__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 8px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-about__card-title {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 15px;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: transparent; /* Keep showing body background */
}

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

.page-about__feature-item {
  background: rgba(255, 255, 255, 0.05); /* Lighter semi-transparent for contrast */
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-about__feature-image {
  width: 100%;
  max-width: 400px; /* Constrain image width within feature item */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
  margin-left: auto;
  margin-right: auto;
}

.page-about__feature-title {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 10px;
}

/* Core Values Section */
.page-about__core-values-section {
  padding: 80px 0;
}

.page-about__values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__value-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 30px;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__value-heading {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 15px;
}

/* Products Services Section */
.page-about__products-services-section {
  padding: 80px 0;
  background-color: transparent; /* Keep showing body background */
}

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

.page-about__product-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-about__product-title {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-about__product-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-about__product-title a:hover {
  color: #017439;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
}

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

.page-about__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__faq-item[open] > .page-about__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

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

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-about__faq-answer p {
  margin-top: 10px;
}

/* For <details> tag, hide default marker */
.page-about__faq-item > summary {
  list-style: none;
}
.page-about__faq-item > summary::-webkit-details-marker {
  display: none;
}

/* Contact CTA Section */
.page-about__contact-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: transparent; /* Keep showing body background */
}

.page-about__contact-description {
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
  font-size: 1.1rem;
}

/* General Link Styling for content */
.page-about a {
  color: #017439; /* Brand color for links */
  text-decoration: underline;
}

.page-about a:hover {
  color: #02a353; /* Slightly lighter green on hover */
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-image-wrapper {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* Small top padding for mobile */
  }

  .page-about__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link {
    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;
  }
  
  .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;
  }

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

  .page-about__hero-image-wrapper,
  .page-about__feature-item,
  .page-about__product-card,
  .page-about__card,
  .page-about__container,
  .page-about__mission-vision-section,
  .page-about__why-choose-us-section,
  .page-about__core-values-section,
  .page-about__products-services-section,
  .page-about__faq-section,
  .page-about__contact-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-about__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-about__dark-section,
  .page-about__why-choose-us-section,
  .page-about__products-services-section,
  .page-about__faq-section,
  .page-about__contact-cta-section {
    padding: 50px 0;
  }

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

  .page-about__card-title,
  .page-about__feature-title,
  .page-about__value-heading,
  .page-about__product-title {
    font-size: 1.3rem;
  }

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

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