/* style/about.css */
/* body background is #0a0a0a (dark), so main text color should be light (#ffffff) */

:root {
  --page-about-primary-color: #26A9E0;
  --page-about-secondary-color: #FFFFFF;
  --page-about-login-color: #EA7C07;
  --page-about-background-light: #FFFFFF;
  --page-about-text-dark: #000000;
  --page-about-text-light: #FFFFFF;
  --page-about-dark-bg-color: #1a1a1a; /* Slightly lighter than body for contrast in sections */
}

.page-about {
  color: var(--page-about-text-light); /* Main text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-about__section {
  padding: 60px 20px;
}

.page-about__light-bg {
  background: var(--page-about-background-light);
  color: #333333; /* Dark text for light background */
}

.page-about__dark-bg {
  background: var(--page-about-dark-bg-color); /* Dark section background */
  color: var(--page-about-text-light);
}

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

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px; /* Space between image and content */
}

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

.page-about__hero-content {
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.page-about__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--page-about-text-light);
  margin-bottom: 20px;
}

.page-about__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--page-about-text-light);
}

/* Section Titles */
.page-about__section-title {
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
  color: inherit;
}

.page-about__sub-title {
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
  color: inherit;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: var(--page-about-primary-color);
  color: var(--page-about-text-light);
  border: 2px solid var(--page-about-primary-color);
}

.page-about__btn-primary:hover {
  background-color: darken(var(--page-about-primary-color), 10%);
  border-color: darken(var(--page-about-primary-color), 10%);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--page-about-primary-color);
  border: 2px solid var(--page-about-primary-color);
}

.page-about__btn-secondary:hover {
  background-color: var(--page-about-primary-color);
  color: var(--page-about-text-light);
}

.page-about__btn-text {
  color: var(--page-about-primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-about__btn-text:hover {
  color: darken(var(--page-about-primary-color), 10%);
}

/* Content Grid (for image/text sections) */
.page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

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

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

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

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

.page-about__feature-card {
  background: var(--page-about-background-light);
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 400px; /* Ensure cards have similar height */
}

.page-about__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-about__card-title {
  font-weight: 700;
  margin-bottom: 15px;
  color: inherit;
}

.page-about__card-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Team Members */
.page-about__team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__team-card {
  background: var(--page-about-background-light);
  color: #333333;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-about__team-avatar {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px auto;
  display: block;
}

.page-about__team-name {
  font-weight: 700;
  margin-bottom: 5px;
  color: inherit;
}

.page-about__team-role {
  font-size: 0.9em;
  color: #666;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background: var(--page-about-background-light);
  color: #333333;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: 600;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.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); /* Plus to X */
}

.page-about__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95em;
  line-height: 1.6;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid--reverse {
    flex-direction: column;
  }
}

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

  .page-about__section {
    padding: 40px 15px;
  }

  .page-about__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-about__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .page-about__section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-bottom: 10px; /* Space between stacked buttons */
  }

  .page-about__hero-content .page-about__btn-primary {
    margin-top: 15px;
  }

  .page-about__feature-card,
  .page-about__team-card {
    padding: 20px;
  }

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

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

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

  /* All containers with images/content */
  .page-about__section,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__image-wrapper,
  .page-about__feature-card,
  .page-about__team-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 horizontal scroll */
  }
  
  .page-about__hero-image-wrapper, .page-about__image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .page-about__feature-grid, .page-about__team-members {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.5em;
  }

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