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

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

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, #26A9E0, #1a7bbd); /* Blend of primary color */
  min-height: 500px;
  overflow: hidden;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-about__hero-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-about__hero-image-wrapper {
  position: absolute;
  bottom: -50px; /* Adjust to show more of the image */
  right: -100px;
  width: 60%;
  max-width: 800px;
  opacity: 0.8;
  z-index: 0;
}

.page-about__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #26A9E0;
}

.page-about__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #ffffff; /* Default for dark sections */
}

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

.page-about__btn-primary {
  display: inline-block;
  background: #EA7C07; /* Login/CTA color */
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
  border: none;
  cursor: pointer;
}

.page-about__btn-primary:hover {
  background-color: #d16e06;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  display: inline-block;
  background: transparent;
  color: #26A9E0;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
  border: 2px solid #26A9E0;
  cursor: pointer;
}

.page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.page-about__btn-center {
  display: block;
  margin: 30px auto;
  text-align: center;
}

/* Section specific styles */
.page-about__introduction-section, .page-about__values-section, .page-about__responsible-gambling-section, .page-about__future-section {
  background-color: #FFFFFF; /* Light background for these sections */
}

.page-about__introduction-section .page-about__paragraph,
.page-about__values-section .page-about__paragraph,
.page-about__responsible-gambling-section .page-about__paragraph,
.page-about__future-section .page-about__paragraph {
  color: #333333; /* Dark text for light background */
}

.page-about__history-section, .page-about__why-choose-us-section, .page-about__team-section, .page-about__faq-section {
  background-color: #0a0a0a; /* Dark background from body */
}

.page-about__milestones-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  color: #f0f0f0;
}

.page-about__milestone-item {
  background-color: rgba(38, 169, 224, 0.1);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-left: 4px solid #26A9E0;
  border-radius: 5px;
  font-size: 1.1em;
  line-height: 1.5;
}

.page-about__milestone-item strong {
  color: #26A9E0;
}

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

.page-about__value-card, .page-about__feature-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-about__value-card:hover, .page-about__feature-card:hover {
  transform: translateY(-5px);
}

.page-about__value-title, .page-about__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__value-description, .page-about__feature-description {
  font-size: 1em;
  color: #555555;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #f0f0f0;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(38, 169, 224, 0.1);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.2);
}

.page-about__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #FFFFFF;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Plus to X */
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    flex-direction: column;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    min-height: 400px;
  }

  .page-about__hero-image-wrapper {
    position: relative;
    bottom: auto;
    right: auto;
    width: 80%;
    margin-top: 30px;
    opacity: 1;
  }

  .page-about__hero-title {
    font-size: 2.2em;
  }

  .page-about__hero-description {
    font-size: 1em;
  }

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

  .page-about__sub-title {
    font-size: 1.5em;
  }

  .page-about__paragraph {
    font-size: 1em;
  }

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

  .page-about__values-grid, .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__image,
  .page-about__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Ensure all image containers are responsive */
  .page-about__hero-image-wrapper,
  .page-about__introduction-section,
  .page-about__history-section,
  .page-about__values-section,
  .page-about__why-choose-us-section,
  .page-about__responsible-gambling-section,
  .page-about__team-section,
  .page-about__future-section,
  .page-about__faq-section,
  .page-about__value-card,
  .page-about__feature-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .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,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-about__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

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