.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px; /* Ensure sufficient height for hero */
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
}

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(8, 22, 15, 0.7); /* Deep Green background with transparency */
  border-radius: 10px;
  color: var(--text-main);
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-about__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__light-bg {
  background-color: var(--background);
  color: var(--text-main);
}

.page-about__dark-section {
  background-color: var(--background);
  color: var(--text-main);
}

.page-about__intro-section, .page-about__security-section, .page-about__social-responsibility-section {
  padding: 60px 0;
}

.page-about__games-section, .page-about__experience-section, .page-about__contact-faq-section {
  padding: 60px 0;
  background-color: var(--deep-green);
}

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

.page-about__text-block p, .page-about__list-item {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-about__list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
}

.page-about__list-item {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.page-about__image-block {
  text-align: center;
}

.page-about__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

.page-about__image-centered {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

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

.page-about__game-card, .page-about__security-item, .page-about__experience-item, .page-about__responsibility-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__game-title {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__game-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__security-item p, .page-about__experience-item p, .page-about__responsibility-item p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  margin-top: 20px;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border);
  margin-top: 20px;
}

.page-about__btn-secondary:hover {
  background-color: var(--border);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-about__btn-tertiary {
  background-color: var(--deep-green);
  color: var(--text-main);
  border: 1px solid var(--divider);
  margin-top: 15px;
}

.page-about__btn-tertiary:hover {
  background-color: var(--border);
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-about__contact-info p {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 10px;
}

.page-about__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: var(--card-bg);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--text-main);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--divider);
  user-select: none; /* Prevent text selection on toggle */
}

.page-about__faq-question:hover {
  background-color: var(--border);
}

.page-about__faq-item[open] .page-about__faq-question {
  background-color: var(--border);
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  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: 20px;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider);
}

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

.page-about__faq-link {
    color: var(--gold);
    text-decoration: underline;
    font-weight: 600;
}

.page-about__faq-link:hover {
    color: var(--glow);
}

/* Details/Summary specific styles to remove default markers */
.page-about__faq-item summary {
  list-style: none;
}

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

/* Responsive Design */
@media (min-width: 769px) {
  .page-about__content-grid {
    grid-template-columns: 2fr 1fr;
  }
  .page-about__image-block {
    order: 2;
  }
}

@media (min-width: 1024px) {
  .page-about__content-grid {
    grid-template-columns: 3fr 2fr;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 400px;
    padding-bottom: 40px;
  }

  .page-about__hero-content {
    padding: 15px;
  }

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

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

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

  .page-about__sub-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .page-about__section-description {
    font-size: 0.95rem;
  }

  .page-about__container {
    padding: 30px 15px;
  }

  .page-about__games-grid, .page-about__security-grid, .page-about__experience-grid, .page-about__responsibility-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__game-card, .page-about__security-item, .page-about__experience-item, .page-about__responsibility-item {
    padding: 20px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__image-block,
  .page-about__image-centered,
  .page-about__hero-section,
  .page-about__games-section,
  .page-about__security-section,
  .page-about__experience-section,
  .page-about__social-responsibility-section,
  .page-about__contact-faq-section
  {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow for sections/containers */
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

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

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

/* Custom Colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

.page-about__dark-section .page-about__main-title,
.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__sub-title,
.page-about__dark-section .page-about__game-title,
.page-about__dark-section .page-about__faq-question {
  color: var(--gold);
}

.page-about__dark-section .page-about__subtitle,
.page-about__dark-section .page-about__section-description,
.page-about__dark-section p,
.page-about__dark-section li,
.page-about__dark-section .page-about__contact-info p {
  color: var(--text-secondary);
}

.page-about__light-bg .page-about__main-title,
.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__sub-title,
.page-about__light-bg .page-about__game-title,
.page-about__light-bg .page-about__faq-question {
  color: var(--primary-color);
}

.page-about__light-bg .page-about__subtitle,
.page-about__light-bg .page-about__section-description,
.page-about__light-bg p,
.page-about__light-bg li,
.page-about__light-bg .page-about__contact-info p {
  color: #333333; /* Default dark text for light background */
}

.page-about__game-card, .page-about__security-item, .page-about__experience-item, .page-about__responsibility-item {
    background-color: var(--card-bg);
}

.page-about__faq-item {
    background-color: var(--card-bg);
}

.page-about__faq-answer {
    border-top: 1px solid var(--divider);
}

.page-about__faq-question {
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider);
}

.page-about__faq-question:hover {
    background-color: var(--border);
}

.page-about__faq-item[open] .page-about__faq-question {
    background-color: var(--border);
}

.page-about__faq-link {
    color: var(--gold);
}

.page-about__faq-link:hover {
    color: var(--glow);
}