/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  color: #ffffff; /* Text color for dark 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__heading {
  font-size: 2.8em;
  color: #017439; /* Brand primary color for headings */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__sub-heading {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__section-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  color: #ffffff;
  overflow: hidden;
}

.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;
  filter: brightness(0.5); /* Darken image for text readability */
}

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

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-about__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-about__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

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

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

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

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

/* Overview Section */
.page-about__overview-section {
  background-color: #0a0a0a; /* Ensure contrast with text */
  text-align: left;
}

.page-about__overview-section .page-about__heading {
    text-align: center;
}

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

/* Values Section */
.page-about__values-section {
  background-color: #017439; /* Brand primary color for this section */
  color: #ffffff;
}

.page-about__values-section .page-about__heading {
  color: #ffffff;
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-about__value-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-about__value-title {
  font-size: 1.5em;
  color: #FFFF00; /* Highlight important titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__value-card p {
  color: #f0f0f0;
  flex-grow: 1;
}

/* Products Section */
.page-about__products-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-about__product-card {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-about__product-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-about__product-title {
  font-size: 1.4em;
  color: #FFFF00; /* Highlight important titles */
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-about__product-title a:hover {
  text-decoration: underline;
}

.page-about__product-card p {
  color: #f0f0f0;
  flex-grow: 1;
}

/* Commitment Section */
.page-about__commitment-section {
  background-color: #017439;
  color: #ffffff;
  text-align: left;
}

.page-about__commitment-section .page-about__heading,
.page-about__commitment-section .page-about__section-intro {
  text-align: center;
}

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

.page-about__commitment-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-about__commitment-title {
  font-size: 1.6em;
  color: #FFFF00;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__commitment-item p {
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__commitment-item .page-about__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  align-self: flex-start;
  background-color: #C30800;
  color: #FFFF00;
  border: 2px solid #C30800;
}

.page-about__commitment-item .page-about__btn--small:hover {
  background-color: #ff3b3b;
  border-color: #ff3b3b;
}

.page-about__commitment-image-wrapper {
  margin-top: 40px;
  text-align: center;
}

.page-about__commitment-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

/* Why Choose Section */
.page-about__why-choose-section {
  background-color: #0a0a0a;
  color: #ffffff;
  text-align: left;
}

.page-about__why-choose-section .page-about__heading,
.page-about__why-choose-section .page-about__section-intro {
  text-align: center;
}

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

.page-about__why-choose-item {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-about__why-choose-title {
  font-size: 1.6em;
  color: #FFFF00;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__why-choose-item p {
  color: #f0f0f0;
  flex-grow: 1;
}

.page-about__why-choose-image-wrapper {
  margin-top: 40px;
  text-align: center;
}

.page-about__why-choose-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

/* Future Section */
.page-about__future-section {
  background-color: #017439;
  color: #ffffff;
  text-align: left;
}

.page-about__future-section .page-about__heading,
.page-about__future-section .page-about__section-intro {
  text-align: center;
}

.page-about__future-image-wrapper {
  margin-top: 40px;
  text-align: center;
}

.page-about__future-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-about__faq-section .page-about__heading {
  color: #017439;
}

.page-about__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: #1a1a1a;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #1a1a1a;
  color: #FFFF00;
  font-weight: bold;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

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

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

.page-about__faq-answer {
  padding: 20px;
  background-color: #2a2a2a;
  color: #f0f0f0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.page-about__faq-answer .page-about__btn--small {
  background-color: #C30800;
  color: #FFFF00;
  border: 2px solid #C30800;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-about__faq-answer .page-about__btn--small:hover {
  background-color: #ff3b3b;
  border-color: #ff3b3b;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__heading {
    font-size: 2.2em;
  }
  .page-about__sub-heading {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-content {
    padding: 15px;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__heading {
    font-size: 1.8em;
  }
  .page-about__sub-heading {
    font-size: 1.4em;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__content-grid,
  .page-about__values-grid,
  .page-about__products-grid,
  .page-about__commitment-grid,
  .page-about__why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__values-section,
  .page-about__products-section,
  .page-about__commitment-section,
  .page-about__why-choose-section,
  .page-about__future-section,
  .page-about__faq-section,
  .page-about__hero-buttons,
  .page-about__commitment-item .page-about__btn--small {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }
  .page-about__faq-answer {
    padding: 15px;
  }
  .page-about__faq-answer .page-about__btn--small {
    width: auto;
    align-self: flex-start;
    padding: 8px 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
  .page-about__heading {
    font-size: 1.5em;
  }
  .page-about__sub-heading {
    font-size: 1.2em;
  }
  .page-about__btn {
    padding: 12px 20px;
  }
}