.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 0;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background-color: #1A202C; /* Dark background for hero */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-about__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-about__hero-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.5); /* Darken video for text readability */
  cursor: pointer;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff;
}

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

/* General Sections */
.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700;
}

.page-about__subsection-title {
  font-size: 2em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

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

.page-about__image-margin-top {
    margin-top: 50px;
}

/* Color classes for contrast */
.page-about__dark-bg {
  background-color: #1A202C;
  color: #ffffff;
}

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

.page-about__dark-bg-card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__text-dark {
  color: #333333;
}

/* Story Section */
.page-about__story-section {
  padding: 60px 0;
}

/* Advantages Section */
.page-about__advantages-section {
  padding: 60px 0;
}

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

.page-about__advantage-card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-about__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-about__card-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Values Section */
.page-about__values-section {
  padding: 60px 0;
}

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

.page-about__value-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-about__value-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #1A202C;
}

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

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
}

.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: #1A202C;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question:hover {
  background-color: #2c3a4e;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 1.05em;
  color: #f0f0f0;
}

/* CTA Section */
.page-about__cta-section {
  padding: 60px 0;
  text-align: center;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__subsection-title {
    font-size: 1.8em;
  }
  .page-about__hero-content {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 500px;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-about__advantages-grid,
  .page-about__values-list {
    grid-template-columns: 1fr;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__subsection-title {
    font-size: 1.5em;
  }
  .page-about__text-block, .page-about p, .page-about li {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__faq-question {
    font-size: 1.1em;
  }

  /* Image responsive rules for mobile */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__image-content {
    margin-left: auto;
    margin-right: auto;
  }

  /* Video responsive rules for mobile */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure containers do not overflow */
  .page-about__container,
  .page-about__hero-section,
  .page-about__story-section,
  .page-about__advantages-section,
  .page-about__values-section,
  .page-about__faq-section,
  .page-about__cta-section,
  .page-about__advantage-card,
  .page-about__value-item,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-about__hero-video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
  }
  .page-about__hero-video {
      max-width: none !important; /* Allow video to be wider than 100% if needed for object-fit: cover */
      width: auto !important;
      height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__subsection-title {
    font-size: 1.3em;
  }
  .page-about__faq-question {
    font-size: 1em;
  }
}