/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default white */
}

/* Sections */
.page-about__section {
  padding: 80px 20px;
  text-align: center;
}

.page-about__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-about__light-bg .page-about__section-title {
  color: #333333;
}

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

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

.page-about__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.8;
}

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

.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, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-about__btn-primary:hover {
  background-color: #d16b06;
  transform: translateY(-2px);
}

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

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

/* Content Wrappers for text and image blocks */
.page-about__content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  text-align: left;
}

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

.page-about__text-block {
  flex: 1;
  max-width: 100%;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-about__image-block {
  flex: 1;
  max-width: 100%;
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
  object-fit: cover;
}

.page-about__dark-bg .page-about__text-block p {
  color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 20px;
  background-color: #f8f8f8; /* Lighter background for FAQ */
  color: #333333;
}

.page-about__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  color: #26A9E0; /* Brand color for question */
}

.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-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #333333;
}

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

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #555555;
}

/* Bottom CTA */
.page-about__cta-bottom {
  padding: 80px 20px;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__cta-bottom .page-about__section-title {
  color: #ffffff;
}

.page-about__cta-bottom p {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-bottom .page-about__btn-primary {
  background-color: #EA7C07;
  border-color: #EA7C07;
}

.page-about__cta-bottom .page-about__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-about__cta-bottom .page-about__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.page-about__cta-bottom .page-about__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-about__content-wrapper {
    flex-direction: row;
    text-align: left;
  }

  .page-about__content-wrapper--reverse {
    flex-direction: row-reverse;
  }

  .page-about__text-block,
  .page-about__image-block {
    flex: 1;
  }

  .page-about__text-block {
    padding-right: 30px;
  }

  .page-about__content-wrapper--reverse .page-about__text-block {
    padding-right: 0;
    padding-left: 30px;
  }

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

  .page-about__hero-image {
    height: 100%;
  }
  .page-about__hero-content {
    padding: 40px;
  }
}

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

  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 25px;
  }

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

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

  .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: 12px 20px;
    font-size: 1em;
  }

  .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__hero-image-wrapper,
  .page-about__content-wrapper,
  .page-about__text-block,
  .page-about__image-block,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Adjust padding for hero content on mobile to avoid double padding from container */
  .page-about__hero-content {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
  }

  .page-about__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-about__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }

  /* Ensure content area images are at least 200px wide, but also responsive */
  .page-about__image {
    min-width: unset; /* Remove desktop min-width */
    min-height: unset; /* Remove desktop min-height */
  }
  
  /* Ensure no CSS filter on images */
  .page-about img {
    filter: none !important;
  }
}