.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #F5F7FA; /* Default background for the page content */
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Minimal top padding, relying on shared.css for body padding */
  margin-bottom: 40px;
}

.page-about__hero-image-wrap {
  width: 100%;
  height: auto;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-about__hero-content {
  text-align: center;
  padding: 40px 20px;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin: -60px auto 0 auto; /* Overlap with the image slightly */
  max-width: 900px;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  color: #E53935;
  margin-bottom: 15px;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-about__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__btn--primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-about__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn--secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-about__btn--secondary:hover {
  background-color: #f0f0f0;
  color: #E53935;
  transform: translateY(-2px);
}

.page-about__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-about__container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-about__description-center {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-about__content-flex {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__text-block {
  flex: 1;
  min-width: 0;
}

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

.page-about__btn--link {
  background: none;
  border: 2px solid #E53935;
  color: #E53935;
  padding: 10px 25px;
  margin-top: 15px;
}

.page-about__btn--link:hover {
  background-color: #E53935;
  color: #ffffff;
}

.page-about__image-block {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-about__feature-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

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

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

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

.page-about__values {
  background-color: #F5F7FA;
}

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

.page-about__value-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  transition: transform 0.3s ease;
}

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

.page-about__value-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 10px;
}

.page-about__value-text {
  font-size: 0.95em;
  color: #555555;
}

.page-about__join-us {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  border-radius: 0;
  margin-bottom: 0;
}

.page-about__container--promo {
  max-width: 900px;
}

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

.page-about__description-center--white {
  color: #f0f0f0;
}

.page-about__cta-buttons-bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-about {
    font-size: 15px;
    line-height: 1.5;
  }

  /* 1. Top section title + CTAs */
  .page-about__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
    margin-bottom: 20px;
  }

  .page-about__hero-content {
    padding: 30px 15px;
    margin: -40px auto 0 auto;
    border-radius: 8px;
  }

  .page-about__main-title {
    font-size: 1.8em !important;
    margin-bottom: 10px;
  }

  .page-about__description {
    font-size: 1em !important;
    margin-bottom: 20px;
  }

  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

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

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

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

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

  .page-about__description-center {
    font-size: 1em !important;
    margin-bottom: 30px;
  }

  /* 2. Single column long text containers */
  .page-about__content-flex {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__text-block,
  .page-about__image-block {
    width: 100%;
  }

  /* 3. Generic images and figure */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-about__card-image {
    height: auto !important; /* Allow aspect ratio to adjust */
  }

  /* 4. Buttons and button containers */
  .page-about__features-grid,
  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__cta-buttons-bottom {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding: 0 15px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  /* 5. Registration tutorial & FAQ (generic card/text blocks) */
  .page-about__feature-card,
  .page-about__value-item {
    padding: 20px;
    border-radius: 8px;
  }

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

  .page-about__card-text,
  .page-about__value-text {
    font-size: 0.9em;
  }

  .page-about__join-us {
    padding: 50px 0;
  }

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