/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Section general styling */
.page-about__section-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H2 */
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for titles */
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: clamp(22px, 3vw, 32px); /* Responsive font size for H3 */
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-about__description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  text-align: center;
}

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

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

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

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

.page-about__text-link {
  color: #26A9E0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-about__text-link:hover {
  color: #1e87b7;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0a0a0a; /* Ensure dark background */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-about__hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 1; /* Ensure content is above any potential background elements */
  color: #ffffff; /* Ensure light text on dark background */
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 60px); /* Responsive H1 font size */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff; /* White color for main title */
}

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width */
  max-width: 500px; /* Limit button group width */
  margin-left: auto;
  margin-right: auto;
}

/* Our Mission Section */
.page-about__our-mission-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background */
}

.page-about__mission-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-about__mission-content--reverse {
  flex-direction: row-reverse;
}

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

.page-about__image-block {
  flex: 1;
  min-width: 300px; /* Ensure image block has a minimum size */
}

.page-about__image-block .page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Another dark shade */
}

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

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  color: #ffffff;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  background: rgba(38, 169, 224, 0.2); /* Brand color highlight on hover */
}

.page-about__feature-icon {
  width: 100px; /* Fixed size for feature icons */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px; /* Added border-radius to icons */
  display: block; /* Ensure it respects width/height */
  margin-left: auto;
  margin-right: auto;
}

.page-about__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

/* Commitment Section */
.page-about__commitment-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-about__commitment-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-about__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden; /* For smooth transition if using max-height */
  color: #ffffff;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #26A9E0;
  list-style: none; /* Remove default summary marker */
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
  content: "−"; /* Not directly applicable to span, handled by JS or content property on pseudo-element */
}

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

/* Call to Action Bottom Section */
.page-about__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0a0a0a;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__mission-content {
    flex-direction: column;
  }
  .page-about__mission-content--reverse {
    flex-direction: column; /* Keep consistent for smaller screens */
  }
  .page-about__image-block {
    order: -1; /* Image appears above text in reverse layout */
    margin-bottom: 30px;
  }
  .page-about__mission-content--reverse .page-about__image-block {
    order: 0; /* Restore order for reverse layout if needed, or keep consistent */
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles header offset */
  }

  .page-about__main-title {
    font-size: clamp(28px, 8vw, 48px);
  }

  .page-about__description {
    font-size: 1em;
  }

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

  /* Image containers responsive */
  .page-about__hero-image-wrapper,
  .page-about__image-block,
  .page-about__container,
  .page-about__section,
  .page-about__card,
  .page-about__commitment-item,
  .page-about__feature-card,
  .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; /* Prevent content overflow */
  }

  /* Buttons responsive */
  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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; /* Allow text to wrap */
    word-wrap: break-word !important; /* Allow long words to break */
    padding-left: 15px;
    padding-right: 15px; /* Add padding to buttons themselves */
  }

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

  .page-about__sub-title {
    font-size: clamp(20px, 5vw, 28px);
  }

  .page-about__our-mission-section,
  .page-about__why-choose-us-section,
  .page-about__commitment-section,
  .page-about__faq-section,
  .page-about__cta-bottom-section {
    padding: 50px 0;
  }

  .page-about__feature-icon {
    width: 80px;
    height: 80px;
  }
}