/* style/about.css */

/* --- Base Styles & Variables --- */
.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); /* Fallback to white if var not defined */
}

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

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

.page-about__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: inherit; /* Inherit from section background */
  font-weight: bold;
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__center-text {
  text-align: center;
}

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 500px;
  padding-top: 10px; /* Small decorative padding, body handles --header-offset */
  padding-bottom: 60px;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for readability */
  border-radius: 8px;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.page-about__subtitle {
  font-size: clamp(1em, 1.8vw, 1.25em);
  margin-bottom: 30px;
  font-weight: 300;
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-category {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

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

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

.page-about__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  margin-left: 15px;
}

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

.page-about__btn-category {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin: 5px;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-about__btn-category:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__game-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  gap: 10px;
}

/* --- Content Layout --- */
.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-bottom: 40px;
}

.page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
}

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

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-about__text-block ul {
  list-style: none;
  padding-left: 0;
}

.page-about__text-block ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-about__text-block ul li::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #26A9E0;
}

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

/* --- FAQ Section --- */
.page-about__faq-section {
  padding-bottom: 80px;
}

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

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

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  list-style: none; /* Remove default marker */
  color: #26A9E0; /* Brand color for questions */
}

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

.page-about__faq-qtext {
  flex-grow: 1;
}

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

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

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

.page-about__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .page-about__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-about__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-about__image {
    max-width: 80%;
    margin-bottom: 30px;
  }

  .page-about__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-about__subtitle {
    font-size: clamp(0.9em, 3vw, 1.1em);
  }

  .page-about__hero-section {
    padding-bottom: 40px;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__container,
  .page-about__hero-section,
  .page-about__content-wrapper,
  .page-about__cta-buttons,
  .page-about__game-categories,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  /* Mobile button responsiveness */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-category {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 10px !important;
    padding: 12px 20px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-about__game-categories {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .page-about__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

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

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.8em;
  }

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

  .page-about__subtitle {
    font-size: clamp(0.85em, 3.5vw, 1em);
  }
}