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

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  text-align: center;
  padding: 100px 20px 40px;
  overflow: hidden;
  background: linear-gradient(135deg, #017439, #004d2a);
  color: #ffffff;
}

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle overlay */
}

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

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Highlight for main title */
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.8;
  color: #f0f0f0;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

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

/* General Section Styling */
.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: #017439;
}

.page-about__light-bg .page-about__section-title {
  color: #017439;
}

.page-about__dark-bg .page-about__section-title {
  color: #FFFF00; /* Yellow for titles on dark background */
}

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

.page-about__light-bg .page-about__paragraph {
  color: #333333;
}

.page-about__dark-bg .page-about__paragraph {
  color: #f0f0f0;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-about__dark-bg {
  background-color: #017439; /* Main brand color */
  color: #ffffff;
  padding: 60px 0;
}

/* Introduction Section */
.page-about__introduction-section .page-about__paragraph {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__image-text-block {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-about__image-left {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  object-fit: cover;
  max-width: 100%;
  height: auto;
}

/* History Section */
.page-about__history-section .page-about__paragraph {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 40px 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #FFFF00;
  transform: translateX(-50%);
}

.page-about__timeline-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
  width: 100%;
}

.page-about__timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #C30808;
  border: 3px solid #FFFF00;
  transform: translateX(-50%);
  z-index: 1;
}

.page-about__timeline-year {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFFF00;
  width: 45%;
  text-align: right;
  padding-right: 20px;
}

.page-about__timeline-item:nth-child(odd) .page-about__timeline-year {
  text-align: left;
  padding-left: 20px;
  padding-right: 0;
}

.page-about__timeline-description {
  width: 45%;
  padding-left: 20px;
  color: #f0f0f0;
  font-size: 1.05em;
  text-align: left;
}

.page-about__timeline-item:nth-child(odd) .page-about__timeline-description {
  text-align: right;
  padding-right: 20px;
  padding-left: 0;
}

/* Mission Section */
.page-about__vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.page-about__card {
  background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white on dark body */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-about__dark-bg .page-about__card {
  background-color: rgba(255, 255, 255, 0.1); /* Transparent white on brand green */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__card-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-about__dark-bg .page-about__card-title {
  color: #FFFF00;
}

.page-about__values {
  margin-top: 40px;
  text-align: center;
}

.page-about__values-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 25px;
  color: #017439;
}

.page-about__values-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  text-align: left;
}

.page-about__values-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
  font-size: 1.05em;
}

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

.page-about__game-card {
  text-align: center;
  padding: 25px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  max-width: 100%;
}

.page-about__game-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-about__game-description {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-about__game-link {
  display: inline-block;
  background-color: #C30808;
  color: #FFFF00;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-about__game-link:hover {
  background-color: #e01010;
}

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

.page-about__security-item {
  text-align: center;
  padding: 25px;
}

.page-about__security-icon {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  max-width: 100%;
}

.page-about__security-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #017439;
}

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

.page-about__advantage-item {
  text-align: center;
  padding: 25px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__advantage-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00;
}

/* CTA Section */
.page-about__cta-section {
  text-align: center;
}

.page-about__cta-content {
  padding: 50px 20px;
  background-color: #f5f5f5;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.page-about__cta-content .page-about__section-title {
  color: #017439;
}

.page-about__cta-content .page-about__paragraph {
  color: #333333;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  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-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00;
  transition: transform 0.3s ease;
}

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

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

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

.page-about__faq-answer .page-about__paragraph {
  margin-bottom: 0;
  color: #f0f0f0;
}

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

  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__vision-mission-grid {
    grid-template-columns: 1fr;
  }

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

  .page-about__image-left {
    width: 100%;
    margin-bottom: 20px;
  }

  .page-about__timeline::before {
    left: 20px;
  }

  .page-about__timeline-item {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
    margin-right: 0;
    padding-left: 40px; /* Space for line and dot */
  }

  .page-about__timeline-item::before {
    left: 20px;
    transform: translateX(-50%);
    top: 0;
  }

  .page-about__timeline-year,
  .page-about__timeline-description {
    width: 100%;
    text-align: left;
    padding: 0;
  }

  .page-about__timeline-item:nth-child(odd) .page-about__timeline-year,
  .page-about__timeline-item:nth-child(odd) .page-about__timeline-description {
    text-align: left;
    padding: 0;
  }

  .page-about__timeline-year {
    margin-bottom: 10px;
  }
}

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

  .page-about__hero-section {
    min-height: 500px;
    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;
    width: 100%;
  }

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

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

  .page-about__paragraph {
    font-size: 1em;
  }

  .page-about__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-about__game-grid,
  .page-about__security-grid,
  .page-about__advantages-list {
    grid-template-columns: 1fr;
  }
}