.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 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: #26A9E0; /* Brand primary color for hero */
  color: #ffffff;
}

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

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

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

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

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

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

/* Sections */
.page-about__introduction,
.page-about__why-choose-us,
.page-about__responsible-gaming,
.page-about__faq-section {
  padding: 80px 0;
}

.page-about__mission-vision,
.page-about__our-values,
.page-about__our-team,
.page-about__cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  font-weight: bold;
  color: #333333; /* Default for light backgrounds */
}

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

.page-about__subtitle {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  color: #555555; /* Default for light backgrounds */
}

.page-about__subtitle--white {
  color: #f0f0f0;
}

/* Grid Layouts */
.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 40px;
}

.page-about__features-grid,
.page-about__values-grid,
.page-about__team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Text Blocks */
.page-about__text-block h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #333333; /* Default for light backgrounds */
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: #333333; /* Default for light backgrounds */
}

/* Cards */
.page-about__card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333; /* Default for light backgrounds */
}

.page-about__card-title {
  font-size: 1.5em;
  margin-top: 20px;
  margin-bottom: 15px;
  font-weight: bold;
  color: #26A9E0; /* Brand primary color */
}

/* Images */
.page-about__image,
.page-about__feature-icon,
.page-about__team-photo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__team-photo {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #EA7C07;
}

/* Our Values */
.page-about__value-item {
  text-align: center;
  padding: 20px;
  color: #ffffff;
}

.page-about__value-item h3 {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-about__value-item p {
  color: #f0f0f0;
}

/* Responsible Gaming */
.page-about__responsible-gaming .page-about__text-block p a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-about__responsible-gaming .page-about__text-block p a:hover {
  color: #1a7fb0;
}

/* Team Members */
.page-about__member-name {
  font-size: 1.5em;
  margin-bottom: 5px;
  font-weight: bold;
  color: #26A9E0;
}

.page-about__member-position {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
}

.page-about__member-bio {
  font-size: 0.9em;
  color: #333333;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #333333;
  font-weight: bold;
  font-size: 1.1em;
  border-bottom: 1px solid #eee;
}

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

.page-about__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: #333333;
}

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

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

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

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

.page-about__faq-answer p {
  margin-bottom: 0;
  color: #555555;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__grid-two-columns {
    grid-template-columns: 1fr;
  }
  .page-about__image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__subtitle {
    font-size: 1em;
  }
  .page-about__features-grid,
  .page-about__values-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
  }
  .page-about__card {
    padding: 20px;
  }
  .page-about__text-block h3 {
    font-size: 1.5em;
  }
  .page-about__faq-question,
  .page-about__faq-question h3 {
    font-size: 1em;
  }

  /* Mobile image and container responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section,
  .page-about__container,
  .page-about__card,
  .page-about__image-wrapper,
  .page-about__team-member,
  .page-about__faq-item,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__grid-two-columns {
    gap: 30px;
  }
  .page-about__btn-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__team-photo {
    width: 120px;
    height: 120px;
  }
}

/* Color Contrast Fixes (as per instructions) */
.page-about__dark-bg {
  color: #ffffff;
  background: #26A9E0;
}

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

.page-about__text-block p,
.page-about__text-block li,
.page-about__card p,
.page-about__faq-answer p {
  color: #555555; /* Slightly lighter than #333 for readability on white/light backgrounds */
}

.page-about__faq-question h3 {
  color: #333333;
}

.page-about__value-item h3,
.page-about__value-item p {
  color: #ffffff;
}

/* Specific color overrides for dark sections */
.page-about__mission-vision .page-about__text-block h3,
.page-about__our-team .page-about__member-name {
  color: #ffffff; /* Ensure white text on dark blue background */
}

.page-about__mission-vision .page-about__text-block p,
.page-about__our-team .page-about__member-position,
.page-about__our-team .page-about__member-bio {
  color: #f0f0f0; /* Slightly off-white for contrast on dark blue */
}