.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--dark-background); /* Inherited from shared.css */
}

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

.page-about__hero-section {
  position: relative;
  padding: 100px 20px 60px; /* Adjust top padding for header offset */
  padding-top: var(--header-offset, 120px);
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

.page-about__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

.page-about__btn-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: underline;
  font-weight: bold;
  margin-top: 15px;
}

.page-about__btn-link:hover {
  color: #1a7bbd;
}

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

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

.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block,
.page-about__image-block {
  flex: 1;
  min-width: 300px;
}

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

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

.page-about__mission-vision,
.page-about__responsible-gambling,
.page-about__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for these sections */
  color: #333333; /* Dark text for light background */
}

.page-about__why-choose-us,
.page-about__technology-innovation,
.page-about__cta-bottom {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color background for these sections */
  color: #ffffff; /* Light text for brand color background */
}

.page-about__why-choose-us .page-about__section-title,
.page-about__technology-innovation .page-about__section-title,
.page-about__cta-bottom .page-about__section-title {
  color: #ffffff;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #ffffff;
}

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

.page-about__feature-card p {
  font-size: 1em;
  line-height: 1.6;
}

.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

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

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

.page-about__faq-item summary {
  list-style: none;
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-about__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

.page-about__cta-bottom {
  text-align: center;
  padding: 100px 0;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
  color: #ffffff;
}

.page-about__cta-bottom .page-about__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-wrapper {
    flex-direction: column;
  }
  .page-about__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-about__text-block, .page-about__image-block {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 350px;
  }
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__mission-vision,
  .page-about__why-choose-us,
  .page-about__responsible-gambling,
  .page-about__technology-innovation,
  .page-about__faq-section,
  .page-about__cta-bottom {
    padding: 60px 0;
  }
  .page-about__container {
    padding: 0 15px !important;
  }
  .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__feature-card {
    padding: 25px;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-about__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-about__cta-bottom .page-about__cta-description {
    font-size: 1.1em;
  }
  /* Ensure all containers with images/videos/buttons are constrained */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__cta-buttons,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-about__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color contrast specific styles (as per instruction) */
.page-about__dark-bg {
  color: #ffffff; /* Deep background with light text */
  background: #26A9E0;
}

.page-about__light-bg {
  color: #333333; /* Light background with dark text */
  background: #ffffff;
}

.page-about p,
.page-about li {
  color: inherit;
}

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards on dark background */
  color: #ffffff;
}

.page-about__faq-item {
  background-color: #f8f8f8;
  color: #333333;
}
.page-about__faq-question {
  background-color: #f0f0f0;
  color: #333333;
}
.page-about__faq-answer {
  color: #555555;
}