/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #FFFFFF); /* Ensure light background for main content if not explicitly dark */
}

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

.page-about__dark-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
}

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

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  object-fit: cover;
}

.page-about__hero-content {
  position: relative;
  z-index: 10; /* Ensure content is above image but not overlaying */
  margin-top: 40px; /* Space between image and content */
  max-width: 900px;
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff; /* White text on dark hero section */
}

.page-about__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for contrast on brand blue */
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-about__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand primary color for secondary action */
  border: 2px solid #26A9E0;
}

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

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

.page-about__section-title {
  font-size: clamp(1.8em, 4vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-about__content-section {
  padding: 80px 0;
}

.page-about__text-block {
  margin-bottom: 30px;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: inherit;
}

.page-about__image-inline {
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-about__image-inline--full-width {
    width: 100%;
}

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

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
  text-align: left;
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: inherit;
}

.page-about__feature-card p {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-about__security-section {
  padding: 80px 0;
}

.page-about__two-column-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-about__two-column-layout > div {
  flex: 1;
  min-width: 300px;
}

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

.page-about__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

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

.page-about__section-description {
  font-size: 1.1em;
  margin-bottom: 50px;
  color: #f0f0f0;
}

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

.page-about__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  color: #ffffff;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__game-card p {
  font-size: 0.95em;
  line-height: 1.5;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__card-link {
  display: inline-block;
  margin-top: auto; /* Push link to bottom */
  color: #EA7C07; /* Login color for links */
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #EA7C07;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-about__card-link:hover {
  color: #d16b06;
  border-color: #d16b06;
}

.page-about__customer-support-section,
.page-about__vision-section {
  padding: 80px 0;
}

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

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

.page-about__faq-item {
  background-color: #f9f9f9;
  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: 20px;
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0; /* Brand primary for question */
  cursor: pointer;
  list-style: none;
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

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

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-content {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
    padding-bottom: 40px;
  }

  .page-about__main-title {
    font-size: clamp(2em, 8vw, 2.8em);
  }

  .page-about__intro-text {
    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: 0.95em;
  }

  .page-about__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 30px;
  }

  .page-about__content-section,
  .page-about__features-section,
  .page-about__security-section,
  .page-about__games-section,
  .page-about__customer-support-section,
  .page-about__vision-section,
  .page-about__faq-section {
    padding: 50px 0;
  }

  .page-about__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about p,
  .page-about li {
    font-size: 0.95em;
  }

  .page-about__image-inline,
  .page-about__image-responsive {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-about__two-column-layout {
    flex-direction: column;
    gap: 30px;
  }

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

  .page-about__faq-answer {
    padding: 0 15px 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: clamp(1.8em, 9vw, 2.5em);
  }

  .page-about__intro-text {
    font-size: 0.9em;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9em;
  }
}