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

.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 hidden by fixed header */
  background-color: var(--primary-color);
  color: #ffffff;
}

.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;
  order: 1; /* Image first on desktop */
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  order: 2; /* Content second on desktop */
}

.page-about__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__intro-text {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

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

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-about__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 600;
}

.page-about__text-light {
  color: #ffffff;
}

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

.page-about__content-area {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-about__content-area p {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
  color: #333333;
}

.page-about__content-area ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
  text-align: left;
}

.page-about__content-area li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #333333;
}

.page-about__content-area a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-about__card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #333333;
}

.page-about__card-dark {
  background: var(--primary-color);
  color: #ffffff;
}

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

.page-about__card-dark .page-about__card-title {
  color: #ffffff;
}

.page-about__card p {
  font-size: 1em;
  line-height: 1.7;
  color: #333333;
}

.page-about__card-dark p {
  color: #f0f0f0;
}

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

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

.page-about__medium-bg {
  background-color: #f9f9f9;
  color: #333333;
}

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

.page-about__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  color: #333333;
}

.page-about__feature-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-about__feature-item p {
  font-size: 1em;
  line-height: 1.7;
  color: #333333;
}

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

.page-about__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-about__cta-wrapper {
  margin-top: 50px;
  text-align: center;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-about__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
}

.page-about__contact-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
}

.page-about__contact-list strong {
  color: var(--primary-color);
}

.page-about__contact-list a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__contact-list a:hover {
  color: #004d26;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-about__hero-section .page-about__hero-container {
    flex-direction: row;
    align-items: center;
  }
  .page-about__hero-image {
    width: 50%;
    margin-right: 40px;
    margin-bottom: 0;
    order: 2;
  }
  .page-about__hero-content {
    width: 50%;
    text-align: left;
    order: 1;
  }
  .page-about__main-title {
    font-size: 3.5em;
  }
  .page-about__intro-text {
    margin-left: 0;
    margin-right: 0;
  }
}

@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__main-title {
    font-size: 2.2em;
  }
  .page-about__intro-text {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
  .page-about__card-title {
    font-size: 1.3em;
  }
  .page-about__feature-title {
    font-size: 1.4em;
  }
  .page-about__content-area, .page-about__contact-list {
    text-align: center;
  }
  .page-about__content-area p, .page-about__content-area li {
    font-size: 1em;
    text-align: left;
  }
  .page-about__content-area ul {
    padding-left: 20px;
  }

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__content-area,
  .page-about__feature-item,
  .page-about__cta-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive */
  .page-about__cta-button,
  .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;
  }
  .page-about__cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}