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

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

.page-about__hero-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  background-color: #017439; /* Brand color */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
}

.page-about__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for prominent titles */
  font-weight: bold;
}

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

.page-about__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for primary action */
  color: #FFFF00; /* Custom font color for primary button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
}

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

.page-about__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  margin-left: 15px;
}

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

.page-about__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #017439;
  font-weight: bold;
}

.page-about__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-about__introduction-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333;
}

.page-about__commitment-section {
  padding: 60px 0;
  background-color: #017439; /* Brand color dark background */
  color: #ffffff;
}

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

.page-about__experience-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-about__responsible-gaming-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

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

.page-about__team-contact-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-about__faq-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

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

.page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__grid-layout--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-about__image-wrapper {
  text-align: center;
}

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

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

.page-about__feature-card, .page-about__game-card, .page-about__contact-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-about__introduction-section .page-about__text-content p, 
.page-about__experience-section .page-about__text-content p, 
.page-about__responsible-gaming-section .page-about__text-content p,
.page-about__team-contact-section .page-about__text-content p {
  color: #333333;
}

.page-about__commitment-section .page-about__feature-card,
.page-about__faq-section .page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-about__experience-section .page-about__game-card,
.page-about__team-contact-section .page-about__contact-card {
  background-color: #f8f8f8;
  color: #333333;
}

.page-about__feature-icon {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 4px;
  display: block;
}

.page-about__feature-title, .page-about__game-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__feature-title a, .page-about__game-title a {
  color: #017439;
  text-decoration: none;
}

.page-about__feature-title a:hover, .page-about__game-title a:hover {
  text-decoration: underline;
}

.page-about__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-about__game-card .page-about__game-title {
  color: #017439;
}

.page-about__game-card p {
  color: #555555;
  font-size: 0.95em;
}

.page-about__cta-buttons {
  text-align: center;
  margin-top: 50px;
}

.page-about__inline-link {
  color: #FFFF00;
  text-decoration: underline;
  font-weight: bold;
}

.page-about__inline-link:hover {
  color: #fff;
}

.page-about__contact-card .page-about__feature-title {
  color: #017439;
}

.page-about__contact-card p {
  color: #555555;
}

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

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

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

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.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-answer p {
  padding-bottom: 15px;
  color: #f0f0f0;
}

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

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Change '+' to 'x' visually */
}

/* General text styles for contrast */
.page-about p {
  color: #f0f0f0; /* Light text for dark backgrounds */
}

.page-about__light-bg p, .page-about__light-bg li {
  color: #333333; /* Dark text for light backgrounds */
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-about__grid-layout--reverse {
    grid-template-areas: 
      "image"
      "text";
  }
  .page-about__grid-layout--reverse .page-about__text-content { grid-area: text; }
  .page-about__grid-layout--reverse .page-about__image-wrapper { grid-area: image; }
}

@media (max-width: 768px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__features-grid, .page-about__game-categories, .page-about__contact-grid {
    grid-template-columns: 1fr;
  }
  .page-about__btn-primary, .page-about__btn-secondary {
    padding: 12px 25px;
    font-size: 0.9em;
    margin-left: 0;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section, .page-about__card, .page-about__container,
  .page-about__hero-section, .page-about__introduction-section, .page-about__commitment-section,
  .page-about__experience-section, .page-about__responsible-gaming-section, .page-about__team-contact-section,
  .page-about__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__text-content, .page-about__image-wrapper {
    padding: 0;
  }
  .page-about__faq-question, .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px;
  }
}