/* style/about.css */

/* Base Styles for Page About */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, explicitly set for clarity */
}

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

.page-about__content-area {
  padding: 40px 20px;
}

/* Sections */
.page-about__hero-section {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  background-color: #017439; /* Brand color as background */
  color: #ffffff;
  padding-top: var(--header-offset, 120px);
}

.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-about__commitment-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-about__team-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-about__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
}

/* Titles & Descriptions */
.page-about__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  color: inherit;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: inherit;
}

.page-about__sub-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
  color: inherit;
}

.page-about__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: inherit;
}

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

.page-about__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Buttons */
.page-about__hero-cta-buttons,
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  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, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

/* Images */
.page-about__image-wrapper {
  text-align: center;
  margin: 20px 0;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover; /* Ensures images cover their area without distortion */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__team-image {
  margin-bottom: 40px;
}

.page-about__cta-image {
  margin-bottom: 40px;
}

/* Grids & Cards */
.page-about__mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__mission-vision-grid .page-about__text-block:first-child {
  grid-column: 1;
}

.page-about__mission-vision-grid .page-about__image-wrapper {
  grid-column: 2;
}

.page-about__mission-vision-grid .page-about__full-width {
  grid-column: 1 / -1; /* Spans full width */
}

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

.page-about__feature-card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__card-image {
  margin-bottom: 20px;
  width: 100%; /* Occupy card's main visual area */
  height: 200px; /* Fixed height for consistency, adjust as needed */
  object-fit: cover;
  border-radius: 5px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__card-link {
  display: inline-block;
  margin-top: auto; /* Pushes link to bottom */
  padding: 10px 20px;
  background-color: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.page-about__card-link:hover {
  background-color: #005f2f;
}

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

.page-about__commitment-item {
  background-color: #f9f9f9;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #eaeaea;
}

.page-about__faq-title {
  margin: 0;
  font-size: 1.1em;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 20px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.5em;
  }

  .page-about__section-title {
    font-size: 2em;
  }

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

  .page-about__mission-vision-grid .page-about__text-block:first-child,
  .page-about__mission-vision-grid .page-about__image-wrapper,
  .page-about__mission-vision-grid .page-about__full-width {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-about__hero-title {
    font-size: 2em;
  }

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

  .page-about__section-title {
    font-size: 1.8em;
  }

  .page-about__section-description {
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: 1.5em;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__container,
  .page-about__content-area,
  .page-about__mission-vision-section,
  .page-about__why-choose-us-section,
  .page-about__commitment-section,
  .page-about__team-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Enforce minimum size even on mobile */
    min-height: 200px; /* Enforce minimum size even on mobile */
  }

  .page-about__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-about__card-image {
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }

  .page-about__section-title {
    font-size: 1.6em;
  }

  .page-about__sub-title {
    font-size: 1.3em;
  }
}