/* style/about.css */

/* Body background is dark from shared.css, so default text color should be light */
.page-about {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height to prevent excessive image size */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and text */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
  color: #ffffff;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-register,
.page-about__btn-login {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  cursor: pointer;
}

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

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

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

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

.page-about__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-about__btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-about__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-about__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

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

.page-about__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  opacity: 0.8;
}

.page-about__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #017439;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.7;
  color: #f0f0f0; /* Slightly lighter for readability on dark backgrounds */
}

.page-about__dark-bg {
  background-color: #1a1a1a; /* A slightly lighter dark background for sections */
  color: #ffffff;
}

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

.page-about__grid-two-cols--reversed {
  grid-template-columns: 1fr 1fr;
}

.page-about__grid-two-cols--reversed .page-about__text-block {
  order: 2;
}

.page-about__grid-two-cols--reversed .page-about__image-block {
  order: 1;
}

.page-about__image-block {
  text-align: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card for dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
}

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-about__value-card p {
  font-size: 1rem;
  color: #e0e0e0;
}

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

.page-about__team-member-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-about__team-member-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #017439;
}

.page-about__member-name {
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 1rem;
  color: #017439;
  margin-bottom: 15px;
}

.page-about__member-bio {
  font-size: 0.95rem;
  color: #e0e0e0;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For <details> summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <details> summary */
}

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

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

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 20px;
  color: #017439;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  color: #ffffff;
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.7;
}

.page-about__cta-section {
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

.page-about__cta-content {
  padding: 40px 20px;
}

.page-about__cta-content .page-about__section-title {
  color: #ffffff;
}

.page-about__cta-content .page-about__section-description {
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__grid-two-cols {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .page-about__grid-two-cols--reversed .page-about__text-block,
  .page-about__grid-two-cols--reversed .page-about__image-block {
    order: unset;
  }
  .page-about__section-title {
    font-size: 2rem;
  }
  .page-about__sub-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-about__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-about__main-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }
  .page-about__intro-text {
    font-size: 1rem;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-register,
  .page-about__btn-login {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important; /* Stack buttons vertically */
    padding: 12px 20px;
  }
  .page-about__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-about__section,
  .page-about__container,
  .page-about__value-card,
  .page-about__team-member-card,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-about__section-title {
    font-size: 1.8rem;
  }
  .page-about__sub-title {
    font-size: 1.3rem;
  }
  .page-about__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 0 20px 15px 20px;
  }
}