/* style/about.css */
/* Body background is #0a0a0a (dark), so text color should be light. */
/* The page-about__light-bg sections will have a white background for contrast. */

.page-about {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Rely on body background from shared.css */
}

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

.page-about__section-title {
  font-size: clamp(2em, 5vw, 2.8em);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: clamp(1.5em, 4vw, 2em);
  font-weight: 600;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-about__dark-bg {
  background-color: #0a0a0a; /* Ensure dark background for sections */
  color: #ffffff;
  padding: 60px 0;
}

.page-about__light-bg {
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

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

.page-about__hero-image {
  width: 100%;
  height: auto;
  max-height: 700px; /* Limit height for aesthetic */
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
}

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
  color: #ffffff;
}

.page-about__main-title {
  font-size: clamp(2.5em, 6vw, 3.5em);
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__intro-text {
  font-size: clamp(1.1em, 2.5vw, 1.3em);
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

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

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

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

.page-about__btn-secondary:hover {
  background-color: #c96504;
  border-color: #c96504;
}

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

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

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

/* Story Section */
.page-about__story-section .page-about__paragraph {
  color: #333333; /* Dark text on light background */
}

.page-about__content-grid {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  align-items: center;
}

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

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

.page-about__image--center {
  margin: 30px auto 0 auto;
  max-width: 800px; /* Constrain for visual appeal */
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark bg */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-about__feature-icon {
  width: 150px; /* Min size 200px requirement, this is placeholder, actual image will be larger */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

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

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

.page-about__value-item {
  background-color: #f8f8f8; /* Light background for item */
  color: #333333;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  box-sizing: border-box;
}

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

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

/* Compliance Section */
.page-about__compliance-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__compliance-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark bg */
  border-radius: 10px;
  padding: 30px;
  height: 100%;
  box-sizing: border-box;
}

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

.page-about__compliance-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-about__faq-question::marker {
  display: none; /* Hide default marker for Firefox */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

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

/* Ensure details summary does not prevent default */
.page-about__faq-item[open] > .page-about__faq-question {
  border-bottom: 1px solid transparent; /* No border when open */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-block {
    width: 100%;
  }
}

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

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

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* For multiple buttons */
    gap: 10px;
  }

  .page-about__hero-section,
  .page-about__story-section,
  .page-about__why-us-section,
  .page-about__values-section,
  .page-about__compliance-section,
  .page-about__join-us-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__content-grid,
  .page-about__features-grid,
  .page-about__values-list,
  .page-about__compliance-list,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-about__video-section { /* If video were present */
    padding-top: 10px !important;
  }
}

/* Additional color contrast considerations */
.page-about__story-section h2, .page-about__story-section h3, .page-about__story-section .page-about__paragraph {
  color: #333333; /* Dark text on white background */
}
.page-about__values-section h2, .page-about__values-section h3, .page-about__values-section .page-about__value-description {
  color: #333333; /* Dark text on white background for this section's content */
}
.page-about__value-item .page-about__value-title {
  color: #26A9E0;
}

/* Ensure images do not use filter */
.page-about img {
  filter: none; /* Explicitly prevent any filter */
}

/* Content area images CSS dimensions lower bound */
.page-about__image, .page-about__feature-icon, .page-about__hero-image {
  min-width: 200px;
  min-height: 200px;
  /* Ensure CSS dimensions are not smaller than HTML width/height attributes or 200px */
}

/* Specific adjustment for feature icons to respect min size */
.page-about__feature-icon {
  width: 200px;
  height: 200px;
}