/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #000 (dark), so use light text */
  background-color: #000;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
}

.page-about__main-title {
  font-size: 3.2em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__intro-text {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

/* General Section Styling */
.page-about__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.page-about__text-block {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-about__dark-section {
  background-color: #0d0d0d; /* Slightly lighter dark for contrast */
  color: #ffffff;
}

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

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #000;
}

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

.page-about__card {
  background-color: #1a1a1a; /* Darker card background on dark body */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__light-bg {
  background-color: #1a1a1a; /* Consistent dark card background */
  color: #ffffff;
}

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

.page-about__card p {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: auto; /* Push image to bottom if content is shorter */
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* History Section */
.page-about__history-section {
  padding: 80px 0;
}

.page-about__history-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-about__history-item {
  background-color: #1a1a1a;
  border-left: 5px solid #26A9E0;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #f0f0f0;
}

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

/* Why Choose Section */
.page-about__why-choose-section {
  padding: 80px 0;
  background-color: #000;
}

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

.page-about__feature-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-about__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-about__commitment-item {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
}

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

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
  background-color: #000;
}

.page-about__team-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-about__team-member-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__team-member-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #26A9E0;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-about__member-name {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 1em;
  color: #f0f0f0;
}

/* Future Section */
.page-about__future-section {
  padding: 80px 0;
}

.page-about__future-goals-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-about__future-goal-item {
  background-color: #1a1a1a;
  border-right: 5px solid #26A9E0;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #f0f0f0;
}

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

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

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

.page-about__faq-item {
  background-color: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #f0f0f0;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #26A9E0;
  color: #ffffff;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #1a7bbd;
}

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

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

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

.page-about__faq-item[open] .page-about__faq-question {
  background-color: #1a7bbd;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

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

.page-about__faq-item summary {
  list-style: none;
}

/* Bottom CTA Section */
.page-about__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
}

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

  .page-about__hero-section {
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }

  .page-about__text-block {
    font-size: 0.95em;
  }

  .page-about__grid-layout,
  .page-about__features-grid,
  .page-about__commitment-grid,
  .page-about__team-members-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-about__card,
  .page-about__feature-card,
  .page-about__commitment-item,
  .page-about__team-member-card {
    padding: 20px;
  }

  .page-about__card-title,
  .page-about__commitment-title,
  .page-about__member-name {
    font-size: 1.4em;
  }

  .page-about__card p,
  .page-about__member-role {
    font-size: 0.9em;
  }

  .page-about__card-image,
  .page-about__feature-icon,
  .page-about__team-member-photo {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__history-list,
  .page-about__future-goals-list,
  .page-about__faq-list {
    padding: 0 15px;
  }

  .page-about__history-item,
  .page-about__future-goal-item,
  .page-about__faq-item {
    padding: 15px;
    font-size: 1em;
  }

  .page-about__faq-question {
    font-size: 1em;
    padding: 15px;
  }

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

  /* Ensure all containers handle overflow */
  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__history-section,
  .page-about__why-choose-section,
  .page-about__commitment-section,
  .page-about__team-section,
  .page-about__future-section,
  .page-about__faq-section,
  .page-about__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}