/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #26A9E0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-about__section {
  padding: 80px 20px;
}

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

.page-about__section-title {
  font-size: 2.8em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
}

.page-about__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.page-about__intro-section, .page-about__security-section, .page-about__promotions-section, .page-about__app-section, .page-about__faq-section {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

.page-about__vision-section, .page-about__games-section, .page-about__support-section, .page-about__responsibility-section, .page-about__cta-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__content-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-about__text-block {
  font-size: 1.1em;
  line-height: 1.8;
}

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

.page-about__image-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  min-width: 200px; /* Min image size requirement */
  min-height: 200px; /* Min image size requirement */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__feature-card, .page-about__promo-card, .page-about__game-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__feature-title, .page-about__promo-title, .page-about__game-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

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

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

.page-about__app-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-about__app-image {
  max-width: 400px;
  height: auto;
  min-width: 200px; /* Min image size requirement */
  min-height: 200px; /* Min image size requirement */
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-about__app-features {
  flex: 2;
}

.page-about__app-features-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-about__app-features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-about__app-features-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2326A9E0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-8.83"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-about__cta-section {
  text-align: center;
}

.page-about__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__cta-title {
  font-size: 3em;
  color: #26A9E0;
  margin-bottom: 20px;
}

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

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

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

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

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

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

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

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

.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;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  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.15);
}

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

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Change '+' to 'x' or '-' */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.2em;
  }
  .page-about__section-title {
    font-size: 2.5em;
  }
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__content-grid--reverse {
    grid-template-columns: 1fr;
  }
  .page-about__image-block {
    order: -1; /* Image appears above text on mobile for reverse grid */
    margin-bottom: 30px;
  }
  .page-about__app-content {
    flex-direction: column;
  }
  .page-about__app-image-wrapper {
    order: -1;
  }
  .page-about__app-image {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__section {
    padding: 60px 15px;
  }
  .page-about__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-about__text-block {
    font-size: 1em;
  }
  .page-about__feature-card, .page-about__promo-card, .page-about__game-card {
    padding: 20px;
  }
  .page-about__feature-title, .page-about__promo-title, .page-about__game-title {
    font-size: 1.5em;
  }
  .page-about__app-features-title {
    font-size: 1.8em;
  }
  .page-about__app-features-list li {
    font-size: 1em;
  }
  .page-about__cta-title {
    font-size: 2.5em;
  }
  .page-about__cta-description {
    font-size: 1.1em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    flex-wrap: wrap !important;
  }
  .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;
  }
  
  /* Mobile image and video overflow prevention */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__image-block, .page-about__app-image-wrapper, .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__section, .page-about__card, .page-about__container, .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-about__faq-answer {
    padding: 0 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px;
  }
}