/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
}

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

.page-about__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relies on body padding-top from shared.css */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  background-color: #E53935; /* Main color as background for hero section */
  color: #ffffff;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for aesthetic */
  margin-bottom: 20px;
}

.page-about__hero-content {
  padding: 0 20px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-about__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  opacity: 0.9;
}

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

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

.page-about__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #E53935; /* Main color */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

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

.page-about__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-about__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  max-width: 900px;
}

.page-about__dark-section {
  background-color: #E53935; /* Main color */
  color: #ffffff;
  padding: 60px 0;
}

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

.page-about__game-card {
  background-color: #ffffff; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-about__game-card:hover {
  transform: translateY(-5px);
}

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

.page-about__game-card .page-about__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: #333333;
}

.page-about__game-card .page-about__card-title a {
  color: #E53935; /* Main color */
  text-decoration: none;
}

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

.page-about__game-card .page-about__card-description {
  font-size: 1rem;
  color: #555555;
  padding: 0 15px 20px;
}

.page-about__text-link {
  color: #E53935;
  text-decoration: none;
  font-weight: bold;
}

.page-about__text-link:hover {
  text-decoration: underline;
}

.page-about__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: center;
}

.page-about__contact-item {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-about__contact-item strong {
  color: #ffffff;
}

.page-about__contact-item .page-about__text-link {
  color: #ffffff;
}

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

.page-about__faq-item {
  background-color: #ffffff; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  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.2rem;
  font-weight: bold;
  color: #333333; /* Text Main */
  cursor: pointer;
  background-color: #f9f9f9;
  list-style: none;
}

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

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #E53935;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

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

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding, relies on body padding-top from shared.css */
  }

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

  .page-about__description {
    font-size: 1rem;
  }

  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }

  .page-about__hero-content .page-about__cta-button {
    margin-left: auto;
    margin-right: auto;
  }

  .page-about__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    padding-top: 30px;
  }

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

  .page-about__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
    box-sizing: border-box !important;
  }

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

  .page-about__game-card {
    margin-left: 15px;
    margin-right: 15px;
  }

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

  .page-about__game-card .page-about__card-title {
    font-size: 1.3rem;
  }

  .page-about__game-card .page-about__card-description {
    font-size: 0.95rem;
  }

  .page-about__contact-list {
    padding: 0 15px;
  }

  .page-about__contact-item {
    font-size: 1rem;
  }

  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

  .page-about__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* General image and container rules for mobile */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__container,
  .page-about__section,
  .page-about__card,
  .page-about__game-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }

  /* Multiple buttons arrangement for mobile */
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }
}