.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); /* Matches body background #FFFFFF */
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
  background-color: #26A9E0; /* Primary color for hero section background */
  color: #ffffff; /* Light text for dark background */
}

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

.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%;
}

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

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #f0f0f0;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login color for CTA */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-about__section {
  padding: 80px 20px;
}

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

.page-about__heading {
  font-size: 2.2em;
  color: #26A9E0; /* Primary color for headings */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333;
}

.page-about__sub-heading {
  font-size: 1.6em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: center;
}

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

.page-about__card {
  background: #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;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-about__card-image {
  width: 100%;
  max-width: 400px; /* Constrain max width for card images */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Min size for content images */
  min-height: 200px; /* Min size for content images */
}

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

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

.page-about__image-text-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  margin-top: 40px;
}

.page-about__image-text-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-about__image-text-item:nth-child(even) {
  flex-direction: column-reverse; /* Example for alternating layout if needed */
}

.page-about__feature-image {
  width: 100%;
  max-width: 600px; /* Max width for feature images */
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  object-fit: cover;
  min-width: 200px; /* Min size for content images */
  min-height: 200px; /* Min size for content images */
}

.page-about__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-about__feature-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.2s ease;
  color: #333333;
}

.page-about__feature-item:hover {
  transform: translateY(-3px);
}

.page-about__feature-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-about__feature-description {
  font-size: 0.95em;
  color: #555555;
}

.page-about__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

/* Color contrast specific styles */
.page-about__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__dark-bg .page-about__heading, 
.page-about__dark-bg .page-about__paragraph, 
.page-about__dark-bg .page-about__sub-heading {
  color: #ffffff;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__heading {
    font-size: 1.8em;
  }
  .page-about__paragraph {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__hero-description {
    font-size: 1em;
    max-width: 100%;
  }
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    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;
  }
  
  .page-about__section {
    padding: 40px 15px;
  }

  .page-about__container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__heading {
    font-size: 1.6em;
    margin-bottom: 30px;
  }
  
  .page-about__paragraph {
    text-align: left;
  }

  .page-about__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-about__card {
    padding: 20px;
  }

  .page-about__card-image, .page-about__feature-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__image-text-grid {
    gap: 40px;
  }

  .page-about__feature-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}