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

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

.page-about__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a minimum height */
  padding-top: var(--header-offset, 120px); /* Apply header offset if shared doesn't */
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.7); /* Darken image for text readability */
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

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

.page-about__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  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;
  font-size: 1.1em;
  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: #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: #a30606;
  border-color: #a30606;
}

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

.page-about__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-about__large-btn {
  padding: 18px 40px;
  font-size: 1.2em;
}

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

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.page-about__light-bg {
  background-color: #FFFFFF;
  color: #333333;
  padding: 60px 0;
}

.page-about__dark-bg {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

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

.page-about__why-choose-us-section .page-about__feature-card .page-about__card-title {
  color: #017439; /* Card title color */
}

.page-about__why-choose-us-section .page-about__feature-card .page-about__card-description {
  color: #333333; /* Card description color */
}

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

.page-about__feature-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-about__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-about__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-about__card-description {
  font-size: 1em;
  line-height: 1.7;
}

.page-about__text-center {
  text-align: center;
}

.page-about__link {
  color: #FFFF00; /* Custom color for links in dark sections */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-about__link:hover {
  color: #C30808;
}

.page-about__footer {
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
}

.page-about__copyright {
  margin: 0;
}

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

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

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

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

  .page-about__feature-card {
    padding: 25px;
  }
}

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

  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    padding-bottom: 60px;
    min-height: 400px;
  }

  .page-about__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 10px;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 1em;
  }

  .page-about__hero-buttons .page-about__btn-primary,
  .page-about__hero-buttons .page-about__btn-secondary {
    width: auto !important; /* Allow buttons to take natural width within max-width */
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-about__light-bg,
  .page-about__dark-bg {
    padding: 40px 0;
  }

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__text-block {
    font-size: 0.95em;
    margin-bottom: 15px;
  }

  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__feature-card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-about__feature-image {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }

  /* General image responsive styles for content area */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

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

  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-about__footer {
    padding: 15px 15px;
  }
}