.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background #121212 is dark, so use light text */
  background-color: #121212; /* Explicitly setting for consistency, though shared.css might handle body */
}

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

.page-about__hero-section {
  position: relative;
  background-color: #017439;
  color: #ffffff;
  padding: 100px 0 60px; /* Adjust for header offset */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

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

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Register and Login font color for emphasis */
}

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

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

.page-about__cta-buttons--center {
  margin-top: 40px;
}

.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;
  box-sizing: border-box;
  text-align: center;
}

.page-about__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

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

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 60px;
  color: #FFFF00; /* Register and Login font color for emphasis */
  font-weight: bold;
}

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

.page-about__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-about__paragraph-intro {
  font-size: 1.2em;
  text-align: center;
  max-width: 800px;
  margin: -40px auto 60px;
  color: #f0f0f0;
}

.page-about__mission-vision-section,
.page-about__why-choose-us-section,
.page-about__responsible-gambling-section,
.page-about__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background for these sections */
  color: #333333;
}

.page-about__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__sub-title {
  color: #FFFF00;
}

.page-about__dark-bg .page-about__paragraph,
.page-about__dark-bg .page-about__paragraph-intro,
.page-about__dark-bg .page-about__list li {
  color: #f0f0f0;
}

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

.page-about__image-content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 60px;
}

.page-about__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: #333333;
}

.page-about__dark-bg .page-about__text-block p {
  color: #f0f0f0;
}

.page-about__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-about__list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.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: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.page-about__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__feature-card p {
  color: #555555;
  font-size: 1em;
}

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

.page-about__game-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.page-about__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-about__game-title {
  font-size: 1.4em;
  color: #FFFF00;
  padding: 15px;
  font-weight: bold;
}

.page-about__game-title a {
  color: #FFFF00;
  text-decoration: none;
}

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

.page-about__game-card p {
  color: #cccccc;
  padding: 0 15px 15px;
  font-size: 0.95em;
}

.page-about__link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  display: inline-block;
}

.page-about__link:hover {
  text-decoration: underline;
}

.page-about__faq-list {
  margin-top: 40px;
}

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

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  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-out, padding 0.3s ease-out;
  color: #555555;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it expands */
  padding: 15px 25px;
}

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

.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
}

.page-about__cta-container {
  max-width: 800px;
}

.page-about__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for emphasis */
  font-weight: bold;
}

.page-about__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__hero-description,
  .page-about__paragraph-intro {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__sub-title {
    font-size: 1.6em;
  }
  .page-about__grid-two-cols,
  .page-about__image-content-block {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 80px 0 40px;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description,
  .page-about__paragraph-intro {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .page-about__sub-title {
    font-size: 1.4em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-about__grid-two-cols,
  .page-about__image-content-block {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-about__features-grid,
  .page-about__games-grid {
    grid-template-columns: 1fr;
  }
  .page-about__feature-icon,
  .page-about__game-image,
  .page-about__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__mission-vision-section,
  .page-about__why-choose-us-section,
  .page-about__responsible-gambling-section,
  .page-about__faq-section,
  .page-about__history-section,
  .page-about__games-showcase-section,
  .page-about__future-vision-section,
  .page-about__cta-section {
    padding: 40px 0;
  }
  .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px;
  }
  .page-about__cta-title {
    font-size: 2em;
  }
  .page-about__cta-description {
    font-size: 1em;
  }
  /* Ensure all content areas behave */
  .page-about__section, .page-about__card, .page-about__container {
    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; /* Ensure mobile hero padding */
  }
  .page-about__text-block img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about p,
  .page-about li,
  .page-about h1,
  .page-about h2,
  .page-about h3,
  .page-about h4,
  .page-about h5,
  .page-about h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}