.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
  box-sizing: border-box;
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

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

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-about__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-about__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 50px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__introduction-section,
.page-about__safety-section,
.page-about__promotions-section,
.page-about__support-section,
.page-about__call-to-action {
  padding: 80px 0;
}

.page-about__dark-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-about__content-grid--reverse {
  grid-template-areas: "image text";
}

.page-about__content-grid--reverse .page-about__image-block {
  grid-area: image;
}

.page-about__content-grid--reverse .page-about__text-block {
  grid-area: text;
}

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

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

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

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

.page-about__game-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__game-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

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

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

.page-about__game-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-about__game-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-about__game-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-about__game-link:hover {
  background-color: #005a2e;
}

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

.page-about__promo-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-about__promo-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439;
}

.page-about__promo-description {
  font-size: 1em;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 25px;
}

.page-about__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

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

.page-about__call-to-action {
  background: linear-gradient(135deg, #017439, #005a2e);
  text-align: center;
}

.page-about__call-to-action .page-about__section-title {
  color: #ffffff;
}

.page-about__call-to-action .page-about__section-subtitle {
  color: #f0f0f0;
}

.page-about__cta-button {
  display: inline-block;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-about__cta-button:hover {
  background-color: #a00606;
  transform: translateY(-3px);
}

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

.page-about__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

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

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

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

.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;
}

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

.page-about__faq-answer p {
  font-size: 1.05em;
  line-height: 1.6;
  color: #cccccc;
}

/* Button styles */
.page-about__btn-primary {
  background: #017439;
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background-color: #005a2e;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__hero-section {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    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__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-about__introduction-section,
  .page-about__safety-section,
  .page-about__promotions-section,
  .page-about__support-section,
  .page-about__call-to-action {
    padding: 50px 0;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-about__section-subtitle {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .page-about__content-grid--reverse {
    grid-template-areas: "text" "image";
  }

  .page-about__text-block p {
    font-size: 1em;
  }

  .page-about__game-grid {
    grid-template-columns: 1fr;
  }

  .page-about__game-image {
    height: 180px;
  }

  .page-about__promo-grid {
    grid-template-columns: 1fr;
  }

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

  .page-about__cta-bottom p {
    font-size: 1em;
  }

  .page-about__cta-button {
    font-size: 1.1em;
    padding: 15px 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-right: 0;
  }

  .page-about__faq-section {
    padding: 50px 0;
  }

  .page-about__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  
  .page-about__faq-answer {
    padding: 0 20px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px;
  }

  .page-about__faq-answer p {
    font-size: 0.95em;
  }

  /* 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__card,
  .page-about__container,
  .page-about__text-block,
  .page-about__image-block,
  .page-about__game-card,
  .page-about__promo-card,
  .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__game-card, .page-about__promo-card {
    margin-left: 15px;
    margin-right: 15px;
  }
  
  .page-about__faq-list {
    margin-left: 15px;
    margin-right: 15px;
  }
  
  .page-about__content-grid {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button group for mobile */
  .page-about__btn-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-section {
    height: 350px;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
}

/* Color Contrast Fixes (if needed, based on body background #0a0a0a - dark) */
.page-about {
  color: #ffffff; /* Default text color for dark body background */
}

.page-about__text-block p,
.page-about p,
.page-about li {
  color: #f0f0f0; /* Slightly off-white for readability on dark background */
}

.page-about__game-card,
.page-about__promo-card,
.page-about__faq-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly more visible background for cards on dark body */
  border-color: rgba(255, 255, 255, 0.15);
}

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

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

.page-about__section-subtitle {
  color: #cccccc;
}

.page-about__btn-primary {
  background-color: #017439;
  color: #ffffff;
}

.page-about__btn-primary:hover {
  background-color: #005a2e;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #017439;
  border-color: #017439;
}

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

/* Custom colors for register/login */
.page-about__hero-button.page-about__btn-primary,
.page-about__cta-button.page-about__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
}

.page-about__hero-button.page-about__btn-primary:hover,
.page-about__cta-button.page-about__btn-primary:hover {
  background-color: #a00606;
}