/* 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 body background */
  background-color: #FFFFFF; /* Explicitly set for clarity, though body is default white */
}

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #26A9E0; /* Brand color for titles */
  font-weight: bold;
}

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

.page-about__text-block {
  max-width: 800px;
  margin: 0 auto 20px auto;
  font-size: 1.1em;
  color: #333333;
  text-align: left;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: none !important; /* Ensure no CSS filter on images */
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 2;
}

.page-about__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

.page-about__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  box-sizing: border-box; /* Crucial for mobile responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn-primary {
  background-color: #26A9E0; /* Brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-about__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand color */
  border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7fb3;
  border-color: #1a7fb3;
}

.page-about__btn-large {
    padding: 18px 35px;
    font-size: 1.1em;
}

/* Section specific styles */
.page-about__intro-mission .page-about__text-block {
    text-align: justify;
}

.page-about__history-milestones {
  background-color: #f5f5f5; /* Light background */
}

.page-about__container--flex {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about__content-column {
  flex: 1;
}

.page-about__image-column {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  filter: none !important; /* Ensure no CSS filter on images */
}

.page-about__why-choose {
  background-color: #26A9E0; /* Dark background */
  color: #ffffff;
}

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

.page-about__feature-card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
}

.page-about__feature-icon {
  width: auto; /* Allow original image width or max-width */
  height: auto;
  max-width: 250px; /* Still a large image */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  margin-bottom: 20px;
  border-radius: 5px;
  filter: none !important; /* Ensure no CSS filter on images */
}

.page-about__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__feature-description {
  font-size: 1em;
  color: #555555;
}

.page-about__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on mobile */
  gap: 20px;
}

.page-about__values-responsibility {
  background-color: #ffffff;
}

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

.page-about__value-item {
  padding: 25px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__value-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__value-description {
  color: #555555;
  font-size: 1em;
}

.page-about__future-vision {
  background-color: #f5f5f5;
}

.page-about__future-vision .page-about__text-block {
    text-align: justify;
}

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

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

.page-about__faq-item {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 10px;
}

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

.page-about__faq-question:hover {
  color: #26A9E0;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content, !important for priority */
  padding: 15px; /* Padding when active */
}

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

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

.page-about__cta-container {
  max-width: 900px;
}

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

.page-about__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Content area images CSS dimensions lower bound (by scope, not class name) */
/* Any selector that can reach .page-about under any img */
.page-about img:not(.shared-header img):not(.shared-footer img) {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__hero-section {
    height: 500px;
  }
  .page-about__main-title {
    font-size: 2.8em;
  }
  .page-about__description {
    font-size: 1.1em;
  }
  .page-about__container--flex {
    flex-direction: column;
  }
  .page-about__image-column {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__main-title {
    font-size: 2.2em;
  }
  .page-about__description {
    font-size: 1em;
  }
  .page-about__hero-section {
    height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  /* Image responsive rules */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: none !important; /* Ensure no CSS filter on images */
  }
  .page-about__image-column,
  .page-about__feature-card,
  .page-about__value-item,
  .page-about__faq-item,
  .page-about__cta-container,
  .page-about__intro-mission,
  .page-about__history-milestones,
  .page-about__why-choose,
  .page-about__values-responsibility,
  .page-about__future-vision,
  .page-about__faq-section,
  .page-about__cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow */
  }
  .page-about__feature-icon {
    max-width: 100% !important; /* Ensure feature icons are also responsive */
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Button responsive rules */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    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 {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__cta-title {
    font-size: 2em;
  }
  .page-about__cta-description {
    font-size: 1.1em;
  }
  .page-about__faq-question {
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 0 10px; /* Adjust padding for smaller screens */
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px; /* Adjust padding for smaller screens when active */
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }
  .page-about__description {
    font-size: 0.9em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__feature-title {
    font-size: 1.3em;
  }
  .page-about__value-title {
    font-size: 1.4em;
  }
  .page-about__cta-title {
    font-size: 1.8em;
  }
}