.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark #1a1a2e, so text should be light */
  background-color: transparent; /* Inherit from body or shared.css */
}

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

.page-about__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background-color: #017439; /* Use brand color for hero */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-about__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

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

.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;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-about__btn-primary {
  background-color: #C30808; /* Use custom color for register/login */
  color: #FFFF00; /* Use custom color for register/login font */
  border: 2px solid #C30808;
}

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

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

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

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

.page-about__dark-section {
  background-color: #1a1a2e; /* Use body background color for dark sections */
  color: #ffffff;
}

.page-about__section-heading {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff; /* Ensure light text on dark background */
}

.page-about__section:not(.page-about__dark-section) .page-about__section-heading {
  color: #017439; /* Brand color for headings on light sections */
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.page-about__section:not(.page-about__dark-section) .page-about__text-block {
  color: #333333; /* Dark text on light background */
}

.page-about__image-text-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

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

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

.page-about__sub-heading {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439; /* Brand color for sub-headings */
}

.page-about__dark-section .page-about__sub-heading {
  color: #ffffff; /* Light text on dark background */
}

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

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  display: block; /* Ensure it behaves as a block element */
  width: 100%; /* For display sizing in HTML */
}

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

.page-about__advantage-card,
.page-about__game-card,
.page-about__security-item,
.page-about__contact-item {
  background-color: #ffffff; /* Light background for cards */
  color: #333333; /* Dark text for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__dark-section .page-about__advantage-card,
.page-about__dark-section .page-about__game-card,
.page-about__dark-section .page-about__security-item,
.page-about__dark-section .page-about__contact-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__advantage-card:hover,
.page-about__game-card:hover,
.page-about__security-item:hover,
.page-about__contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-about__advantage-icon,
.page-about__security-icon {
  width: 80px; /* Larger than 200px is preferred, but for icons, 80px might be a placeholder. The requirement is MINIMUM 200x200 for content images. These are illustrative icons. Let's make them 200x200 to be safe. */
  height: 80px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-about__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439; /* Brand color for card titles */
}

.page-about__dark-section .page-about__card-title {
  color: #ffffff; /* Light text on dark background */
}

.page-about__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-about__card-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

.page-about__dark-section .page-about__card-description {
  color: #e0e0e0;
}

.page-about__btn-centered {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: fit-content; /* Allow button to size to content */
}

.page-about__contact-item .page-about__btn-primary {
  margin-top: 20px;
  width: 100%;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
  color: #ffffff;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-about__faq-title {
  font-size: 1.3em;
  margin: 0;
  color: #ffffff;
}

.page-about__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFF00; /* Use custom color for toggle icon */
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an 'x' or minus */
  color: #C30808; /* Change color when active */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  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 25px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.8em;
  }

  .page-about__section-heading {
    font-size: 2.2em;
  }

  .page-about__image-text-grid {
    flex-direction: column;
  }

  .page-about__image-text-grid--reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile */
  }

  .page-about__main-title {
    font-size: 2.2em;
  }

  .page-about__hero-description {
    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: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__section-heading {
    font-size: 1.8em;
  }

  .page-about__sub-heading {
    font-size: 1.5em;
  }

  .page-about__advantages-grid,
  .page-about__games-grid,
  .page-about__security-grid,
  .page-about__contact-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__image-wrapper,
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__cta-buttons,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-about__section,
  .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-about__advantage-icon,
  .page-about__security-icon {
    width: 100px; /* Adjusting for mobile, but still keeping it large */
    height: 100px;
  }

  .page-about__game-image {
    height: 180px; /* Adjust height for mobile */
  }

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

  .page-about__faq-title {
    font-size: 1.1em;
  }
}

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

  .page-about__section-heading {
    font-size: 1.5em;
  }

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

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