.page-about {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: var(--background-color, #FFFFFF);
  line-height: 1.6;
}

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

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

.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;
  color: inherit;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
}

.page-about__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.page-about__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.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;
  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: #d46a00;
  border-color: #d46a00;
}

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

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

/* Content Grid */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 60px;
}

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

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

.page-about__text-block h3 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: inherit;
}

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

.page-about__image-wrapper {
  flex: 1;
  min-width: 200px; /* Ensure images are not too small */
}

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

/* Features Grid */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

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

.page-about__feature-card h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

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

/* Game List */
.page-about__game-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__game-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.7;
  position: relative;
  padding-left: 30px;
  color: inherit;
}

.page-about__game-list li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #EA7C07;
}

/* Download Register Steps */
.page-about__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-about__step-icon {
  font-size: 3em;
  font-weight: bold;
  color: #EA7C07;
  margin-bottom: 15px;
}

.page-about__step-card h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: inherit;
}

.page-about__step-card p {
  font-size: 1em;
  line-height: 1.6;
  color: inherit;
}

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

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 15px;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  transition: color 0.3s ease;
}

.page-about__faq-question:hover {
  color: #26A9E0;
}

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

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px;
}

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

/* 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: 2em;
  }
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid--reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset on mobile */
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-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: 40px 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-about__content-grid,
  .page-about__features-grid,
  .page-about__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-about__text-block h3 {
    font-size: 1.5em;
  }
  .page-about__game-list li {
    font-size: 1em;
  }
  .page-about__cta-buttons--center {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__faq-question {
    font-size: 1.1em;
  }
  
  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__image-wrapper,
  .page-about__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Ensure images in content sections are not too small */
.page-about__text-block img, .page-about__image {
  min-width: 200px;
  min-height: 200px;
}

/* For social images in meta tags, ensure they are not affected by min-width/height rules */
img[src*="[GALLERY:social"]"] {
  min-width: unset;
  min-height: unset;
  width: 1200px; /* Set specific dimensions for social images if needed for meta */
  height: 630px;
  display: none; /* Hide social images if they are only for meta */
}