/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background #1a1a2e is dark, so text is light */
  background-color: #1a1a2e; /* Ensure consistency with shared body background */
}

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

.page-about__section {
  padding: 80px 0;
  text-align: center;
}

.page-about__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Adjusted padding to accommodate header offset */
  padding-top: var(--header-offset, 120px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

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

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

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

.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: 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;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #26A9E0;
  position: relative;
  display: inline-block;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  border-radius: 2px;
}

.page-about__text-block {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

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

.page-about__text-block strong {
  color: #ffffff;
}

.page-about__image-content {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

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

.page-about__mission-vision,
.page-about__security-commitment,
.page-about__responsible-gambling {
  background-color: #1a1a2e; /* Explicitly set for content sections */
  color: #ffffff;
}

.page-about__core-values .page-about__section-title,
.page-about__game-diversity .page-about__section-title,
.page-about__future-vision .page-about__section-title {
  color: #26A9E0;
}

.page-about__value-list,
.page-about__game-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__value-item,
.page-about__game-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white card */
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__value-item:hover,
.page-about__game-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__value-item h3,
.page-about__game-item h3 {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__value-item p,
.page-about__game-item p {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.7;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-about__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: left;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  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;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  color: #26A9E0;
  margin-left: 15px;
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  color: #f0f0f0;
  line-height: 1.7;
}

/* Details tag specific styling for FAQ */
.page-about__faq-item summary {
  list-style: none; /* Remove default marker */
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−'; /* Change toggle icon when open */
}

.page-about__cta-bottom {
  background-color: #26A9E0;
  padding: 60px 0;
  color: #ffffff;
}

.page-about__cta-bottom .page-about__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__cta-bottom .page-about__cta-title::after {
  background-color: #ffffff;
}

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

.page-about__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__value-list,
  .page-about__game-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: calc(var(--header-offset, 120px) + 40px) 0 40px;
  }
  .page-about__hero-title {
    font-size: 2.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 {
    padding: 60px 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__text-block p {
    font-size: 1em;
  }
  .page-about__value-list,
  .page-about__game-list {
    grid-template-columns: 1fr;
  }
  .page-about__value-item,
  .page-about__game-item {
    padding: 25px;
  }
  .page-about__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }
  .page-about__faq-answer {
    font-size: 1em;
    padding: 0 20px 18px;
  }
  .page-about__cta-bottom .page-about__cta-title {
    font-size: 2em;
  }
  .page-about__cta-bottom .page-about__cta-description {
    font-size: 1em;
  }
  .page-about__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  /* Mobile image responsive adaptations */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__container,
  .page-about__text-block,
  .page-about__value-item,
  .page-about__game-item,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }
}