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

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

.page-about__dark-section {
  background-color: var(--primary-color, #017439);
  color: #ffffff;
}

.page-about__light-bg {
  background-color: var(--secondary-color, #FFFFFF);
  color: #333333;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-about__heading {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 25px;
  color: inherit;
}

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

.page-about__sub-heading {
  font-size: 24px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-about__dark-section .page-about__sub-heading {
  color: #ffffff;
}

.page-about__paragraph {
  font-size: 17px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__keyword {
  font-weight: bold;
  color: var(--primary-color);
}

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

/* HERO Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  overflow: hidden;
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #ffffff;
}

.page-about__hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-about__intro-description {
  font-size: 19px;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: #C30808; /* Register/Login custom color */
  color: #ffffff; /* Overriding #FFFF00 for WCAG AA contrast */
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary:hover {
  background: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mission and Vision */
.page-about__mission-vision .page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-about__mission-vision .page-about__grid-layout .page-about__grid-item:first-child {
  order: 2;
}

.page-about__mission-vision .page-about__grid-layout .page-about__grid-item:last-child {
  order: 1;
}

.page-about__mission-vision img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-about__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-about__card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Why Choose Us */
.page-about__why-choose-us .page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-about__why-choose-us img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-about__team-member-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-about__team-member-card img {
  width: 100%;
  max-width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

.page-about__member-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-about__member-role {
  font-size: 15px;
  color: #666;
}

/* Commitment Section */
.page-about__commitment-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__commitment-list li {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 17px;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.page-about__commitment-list li::before {
  content: '✓';
  color: #FFFF00; /* Yellow checkmark for visibility */
  font-weight: bold;
  margin-right: 10px;
  font-size: 20px;
}

/* CTA Section */
.page-about__cta-section .page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-about__mission-vision .page-about__grid-layout {
    grid-template-columns: 1fr 1fr;
  }

  .page-about__mission-vision .page-about__grid-layout .page-about__grid-item:first-child {
    order: 1;
  }
  
  .page-about__mission-vision .page-about__grid-layout .page-about__grid-item:last-child {
    order: 2;
  }

  .page-about__why-choose-us .page-about__grid-layout {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

  .page-about__heading {
    font-size: 28px;
  }

  .page-about__sub-heading {
    font-size: 20px;
  }

  .page-about__paragraph {
    font-size: 16px;
  }

  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific offset */
    padding-bottom: 40px;
  }

  .page-about__hero-content h1 {
    font-size: 32px;
  }

  .page-about__intro-description {
    font-size: 17px;
  }

  .page-about__cta-button {
    width: 100% !important;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 20px;
    font-size: 16px;
  }

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

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__team-member-card img {
    max-width: 200px;
    height: 200px;
  }

  .page-about__commitment-list li {
    font-size: 15px;
    padding: 12px 15px;
  }
}