/* style/about.css */

/* Base styles for the about page */
.page-about {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Fixed header offset for the first content section */
.page-about__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 60px;
  background-color: #000000; /* Dark background for hero */
  text-align: center;
  overflow: hidden; /* Prevent content overflow */
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 80px 15px;
}

.page-about__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff; /* Ensure high contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-about__btn-primary {
  display: inline-block;
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-about__btn-primary:hover {
  background-color: #1e87b6; /* Slightly darker shade on hover */
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  display: inline-block;
  background-color: #ffffff; /* Auxiliary color */
  color: #26A9E0; /* Main brand color for text */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #26A9E0;
  cursor: pointer;
  font-size: 1em;
}

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

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Make it a background image */
}

/* General section styling */
.page-about__section {
  padding: 80px 0;
  background-color: #000000; /* Consistent dark background */
  color: #ffffff;
}

.page-about__section:nth-of-type(even) {
  background-color: #0a0a0a; /* Slightly different shade for alternating sections */
}

.page-about__section-title {
  font-size: 2.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 60px;
  color: #26A9E0; /* Brand color for main titles */
}

.page-about__sub-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 25px;
  color: #ffffff;
}

.page-about__text {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-about__grid-item {
  text-align: left;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__image--centered {
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
}

/* Core Values Section */
.page-about__core-values {
  background-color: #0a0a0a;
}

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

.page-about__value-item.page-about__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-about__value-item.page-about__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-about__value-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for value titles */
}

/* Why Choose Us Section */
.page-about__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__why-choose-item.page-about__card {
  background: rgba(255, 255, 255, 0.08); /* Slightly less opaque for variety */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__why-choose-item.page-about__card:hover {
  background: rgba(255, 255, 255, 0.15);
}

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

/* Commitments Section */
.page-about__commitment-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-about__list-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #26A9E0;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #f0f0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__list-item strong {
  color: #26A9E0;
}

/* Team Section */
.page-about__team .page-about__text {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

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

.page-about__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
  color: #ffffff;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__faq-title {
  font-size: 1.25em;
  font-weight: bold;
  margin: 0;
  color: #ffffff;
}

.page-about__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

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

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

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

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

.page-about__faq-answer .page-about__btn-primary,
.page-about__faq-answer .page-about__btn-secondary {
  margin-top: 10px;
}

/* CTA Section */
.page-about__cta-section {
  text-align: center;
  padding: 100px 0;
  background: linear-gradient(135deg, #26A9E0, #1e87b6); /* Gradient with brand color */
  color: #ffffff;
}

.page-about__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-about__cta-section .page-about__section-title {
  color: #ffffff;
  margin-bottom: 30px;
}

.page-about__cta-section .page-about__text {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-about__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
}

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

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

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

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

  .page-about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    padding-bottom: 40px;
  }

  .page-about__hero-content {
    padding: 60px 15px;
  }

  .page-about__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .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;
    margin-bottom: 15px; /* Add space between stacked buttons */
  }

  /* Ensure button containers also adapt */
  .page-about__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-about__faq-answer .page-about__btn-primary,
  .page-about__faq-answer .page-about__btn-secondary {
    width: auto !important; /* Allow buttons in FAQ to be smaller if needed, but still responsive */
    max-width: 100% !important;
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-about__section {
    padding: 50px 0;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }

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

  .page-about__values-grid,
  .page-about__why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__faq-question {
    padding: 15px 20px;
  }

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

  .page-about__faq-answer {
    padding: 0 20px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Image responsive adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers containing images must adapt */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__grid-item,
  .page-about__value-item,
  .page-about__why-choose-item,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Adding padding to prevent content sticking to edges, if not already handled by .page-about__container */
    padding-left: 15px; 
    padding-right: 15px;
  }
  
  /* Override specific paddings if needed to avoid double padding */
  .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-about__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-about__faq-answer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .page-about__faq-question {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__btn-primary {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-about__btn-large {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}

/* Ensure content area images maintain minimum size if not already handled by layout */
.page-about__image {
  min-width: 200px;
  min-height: 200px;
}
/* Ensure card images (if any) are large */
.page-about__card img {
  min-width: 200px;
  min-height: 200px;
}