/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default to white */
}

.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: 100px 0;
  text-align: center;
  color: #ffffff;
  background-color: #017439; /* Primary brand color */
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Custom color for title for impact */
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  margin: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  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: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

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

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

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

/* Section Titles */
.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  color: #017439;
}

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

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

.page-about__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.page-about__card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-about__card-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 1em;
  color: #555555;
}

/* Core Values Section */
.page-about__core-values {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-about__value-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
}

.page-about__value-title {
  font-size: 1.4em;
  color: #FFFF00; /* Highlight for value titles */
  margin-bottom: 15px;
}

.page-about__value-text {
  color: #f0f0f0;
}

/* Team CTA Section */
.page-about__team-cta {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-about__team-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about__team-text {
  flex: 1;
}

.page-about__team-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-about__text-block {
  margin-bottom: 20px;
  color: #555555;
}

/* Security Section */
.page-about__security {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

.page-about__security .page-about__btn-primary,
.page-about__security .page-about__btn-secondary {
  margin-top: 20px;
}

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

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

.page-about__faq-item {
  background-color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #fdfdfd;
  border-bottom: 1px solid #eee;
}

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

.page-about__faq-title {
  font-size: 1.2em;
  color: #017439;
  margin: 0;
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

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

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

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

/* CTA Banner */
.page-about__cta-banner {
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
  background-color: #017439;
}

.page-about__banner-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFF00;
}

.page-about__banner-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

  .page-about__team-content {
    flex-direction: column;
    text-align: center;
  }

  .page-about__team-image {
    max-width: 80%;
    margin-top: 30px;
  }
}

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

  .page-about__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing below fixed header */
  }

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

  .page-about__hero-description {
    font-size: 1em;
  }

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

  .page-about__card,
  .page-about__value-item {
    padding: 20px;
  }

  .page-about__card-title {
    font-size: 1.4em;
  }

  .page-about__value-title {
    font-size: 1.2em;
  }

  .page-about__cta-banner {
    padding: 60px 0;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-about__security .page-about__btn-primary,
  .page-about__security .page-about__btn-secondary {
    margin-left: auto;
    margin-right: auto;
  }

  .page-about__team-content {
    padding: 0 15px; /* Add padding to content containers */
  }

  .page-about__team-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
  }
  
  .page-about__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
  }

  .page-about__mission-vision,
  .page-about__core-values,
  .page-about__team-cta,
  .page-about__security,
  .page-about__faq-section,
  .page-about__cta-banner {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

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

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

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

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