.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f0f2f5; /* Inherited from body via shared.css */
}

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

.page-about__hero-section {
  padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
  padding-bottom: 60px;
  background: #B71C1C; /* Custom Background color */
  color: #FFF5E1; /* Custom Text Main color */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF5E1; /* Custom Text Main color */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF5E1;
}

.page-about__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
}

.page-about__btn {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom Button color */
  color: #7A0E0E; /* Deep Red for contrast on gold button */
  border: 2px solid #F4D34D; /* Custom Gold border */
}

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 216, 106, 0.4);
}

.page-about__btn-secondary {
  background: #7A0E0E; /* Custom Deep Red */
  color: #FFF5E1; /* Custom Text Main */
  border: 2px solid #F2B544; /* Custom Border color */
}

.page-about__btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(122, 14, 14, 0.4);
}

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

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

.page-about__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #C91F17; /* Main color */
}

.page-about__text-block {
  font-size: 1.05em;
  margin-bottom: 25px;
  text-align: justify;
}

.page-about__figure {
  margin: 30px auto;
  max-width: 680px;
  text-align: center;
}

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

.page-about__figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: #555555;
  margin-top: 10px;
}

.page-about__why-choose-us-section {
  background: #B71C1C; /* Custom Background color */
  color: #FFF5E1; /* Custom Text Main color */
}

.page-about__why-choose-us-section .page-about__section-title {
  color: #FFF5E1; /* Custom Text Main color */
}

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

.page-about__card {
  background: #D32F2F; /* Custom Card BG color */
  color: #FFF5E1; /* Custom Text Main color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-about__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFF5E1; /* Custom Text Main color */
}

.page-about__card-text {
  font-size: 1em;
  line-height: 1.5;
  color: #FFF5E1;
}

.page-about__commitment-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-about__commitment-item {
  background-color: #ffffff;
  border-left: 5px solid #E53935; /* Auxiliary color */
  margin-bottom: 20px;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-about__commitment-heading {
  font-size: 1.3em;
  color: #C91F17; /* Main color */
  margin-bottom: 10px;
}

.page-about__commitment-text {
  font-size: 1em;
  line-height: 1.5;
  color: #444444;
}

.page-about__licensing-section {
  background: #B71C1C; /* Custom Background color */
  color: #FFF5E1; /* Custom Text Main color */
}

.page-about__licensing-section .page-about__section-title,
.page-about__licensing-section .page-about__text-block,
.page-about__licensing-section .page-about__figcaption {
  color: #FFF5E1; /* Ensure text is visible on dark background */
}

.page-about__final-cta-section {
  padding-bottom: 60px;
}

/* Ensure dark background classes apply correct text color */
.page-about__dark-bg {
  background: #B71C1C;
  color: #FFF5E1;
}

.page-about__text-main {
  color: #FFF5E1;
}

.page-about__card-bg {
  background: #D32F2F;
}

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

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

  /* 1. Top section (title + CTA) */
  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
  }

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

  .page-about__intro-text {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* 4. Buttons and button containers */
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-about__btn,
  .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;
  }

  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
  }

  /* 2. Single column long text container */
  .page-about__section {
    padding: 30px 0;
  }

  .page-about__section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

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

  .page-about__grid-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .page-about__card {
    padding: 20px;
  }

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

  .page-about__commitment-item {
    padding: 15px 20px;
    margin-bottom: 15px;
  }

  .page-about__commitment-heading {
    font-size: 1.1em;
  }

  /* 3. General images and figure */
  .page-about__figure {
    margin: 20px auto;
  }

  .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }
}

/* --- Tablet Responsive Styles (max-width: 1024px) --- */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-about__container {
    padding: 0 30px;
  }

  .page-about__hero-section {
    padding-bottom: 50px;
  }

  .page-about__main-title {
    font-size: 2.5em;
  }

  .page-about__intro-text {
    font-size: 1.05em;
  }

  .page-about__cta-buttons {
    gap: 15px;
  }

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

  .page-about__grid-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-about__card {
    padding: 25px;
  }

  .page-about__image {
    max-width: 100%;
  }
}