.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #ffffff; /* Explicitly set for clarity, though body handles it */
}

.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  background-color: #f8f8f8; /* Light background for hero section */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain hero image width */
  margin-bottom: 30px;
  overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: 2.8em; /* Adjusted for desktop, will use clamp if needed */
  font-weight: 700;
  color: #017439; /* Brand color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #555555;
}

.page-about__hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
  text-align: center;
}

.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: #e02020;
  border-color: #e02020;
}

.page-about__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Brand color for secondary button */
  border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

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

.page-about__section:nth-of-type(even) {
  background-color: #f8f8f8;
}

.page-about__dark-section {
  background-color: #017439; /* Primary brand color for dark sections */
  color: #ffffff; /* White text for dark background */
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__sub-title {
  color: #ffffff; /* Ensure titles are white in dark sections */
}

.page-about__dark-section .page-about__text-block {
  color: #f0f0f0;
}

.page-about__dark-section .page-about__figure-caption {
  color: #cccccc;
}

.page-about__dark-section a {
  color: #FFFF00;
}

.page-about__dark-section a:hover {
  text-decoration: underline;
}

.page-about__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-about__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #017439; /* Brand color for section titles */
  text-align: center;
  margin-bottom: 40px;
}

.page-about__sub-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-about__text-block strong {
  color: #017439; /* Emphasize keywords with brand color */
}

.page-about__text-block a {
  color: #017439;
  text-decoration: underline;
}

.page-about__text-block a:hover {
  color: #005f2c; /* Darker shade on hover */
}

.page-about__figure {
  margin: 30px auto;
  text-align: center;
  max-width: 800px; /* Max width for content images */
  overflow: hidden;
}

.page-about__figure-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 10px;
  object-fit: cover;
}

.page-about__figure-caption {
  font-size: 0.9em;
  color: #777777;
}

.page-about__final-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 50px;
  flex-wrap: wrap;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.5em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__sub-title {
    font-size: 1.4em;
  }
  .page-about__hero-image-wrapper {
    max-width: 90%;
  }
  .page-about__article-wrap {
    padding: 0 30px;
  }
  .page-about__hero-cta,
  .page-about__final-cta {
    gap: 10px;
  }
}

/* Mobile (max-width: 768px) - MUST BE COMPREHENSIVE */
@media (max-width: 768px) {
  /* 1. Top section title + dual CTA */
  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }
  .page-about__main-title {
    font-size: 1.8em !important; /* Smaller font for mobile H1 */
    margin-bottom: 15px;
  }
  .page-about__description {
    font-size: 1em !important;
    margin-bottom: 25px;
  }
  .page-about__hero-cta {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    max-width: 300px; /* Constrain button group width */
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding to button container */
    box-sizing: border-box;
  }
  .page-about__btn {
    width: 100% !important; /* Full width for mobile buttons */
    max-width: 100% !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    font-size: 0.95em !important;
  }

  /* 2. Single-column long text container */
  .page-about__section {
    padding: 30px 0 !important; /* Smaller section padding */
  }
  .page-about__article-wrap {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__section-title {
    font-size: 1.6em !important;
    margin-bottom: 30px;
  }
  .page-about__sub-title {
    font-size: 1.2em !important;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-about__text-block {
    font-size: 0.95em !important;
  }

  /* 3. Generic images and figures */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__figure {
    margin: 20px auto !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-about__figure-caption {
    font-size: 0.85em !important;
  }
  /* Ensure all containers holding images also adapt */
  .page-about__hero-image-wrapper,
  .page-about__introduction,
  .page-about__core-values,
  .page-about__products,
  .page-about__commitment,
  .page-about__why-choose,
  .page-about__join-us {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 4. Buttons and button containers (already covered in top section, but repeating for clarity and other button groups) */
  .page-about__final-cta {
    flex-direction: column !important;
    gap: 10px;
    margin-top: 30px;
    width: 100%;
    max-width: 300px; /* Constrain button group width */
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px; /* Add horizontal padding to button container */
    box-sizing: border-box;
  }
  /* Individual button styles already apply from .page-about__btn */

  /* 5. Registration tutorial and FAQ blocks (if present) - Not explicitly an FAQ accordion, but regular content blocks */
  /* The general text-block and figure rules above cover these. */
  /* For this "About Us" page, FAQ is not a dedicated section, but general content adaptation applies. */
}