/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF);
}

/* Section styles */
.page-about__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  text-align: center;
  background-color: #FFFFFF;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-about__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__mission-vision,
.page-about__ecosystem,
.page-about__team-support,
.page-about__cta-final {
  padding: 60px 20px;
}

.page-about__history,
.page-about__security,
.page-about__promotions,
.page-about__faq-section {
  padding: 60px 20px;
}

/* Background colors */
.page-about__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-about__dark-bg {
  background-color: #017439; /* Primary brand color */
  color: #FFFFFF;
}

/* Container for content width */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-about__container--flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__container--flex-reverse {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 40px;
}

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

.page-about__image {
  flex: 1;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Typography */
.page-about__hero-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #017439;
}

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}

.page-about__dark-bg .page-about__section-title {
  color: #FFFFFF;
}

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

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
}

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

.page-about p,
.page-about li {
  color: inherit;
}

/* Buttons */
.page-about__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-about__button--primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-about__button--secondary {
  background-color: transparent;
  color: #017439; /* Primary brand color */
  border: 2px solid #017439;
}

.page-about__button--secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
}

.page-about__button--center {
  display: block;
  margin: 30px auto 0 auto;
  width: fit-content;
}

.page-about__button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* Lists */
.page-about__value-list,
.page-about__game-categories,
.page-about__security-features,
.page-about__support-channels {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-about__value-item,
.page-about__category-item,
.page-about__feature-item,
.page-about__channel-item {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-about__value-item::before,
.page-about__category-item::before,
.page-about__feature-item::before,
.page-about__channel-item::before {
  content: '✓';
  color: #FFFF00; /* Yellow for highlights */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-about__dark-bg .page-about__value-item,
.page-about__dark-bg .page-about__category-item,
.page-about__dark-bg .page-about__feature-item,
.page-about__dark-bg .page-about__channel-item {
  color: #f0f0f0;
}

.page-about__category-item a {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: none;
}

.page-about__category-item a:hover {
  text-decoration: underline;
}

/* History Timeline */
.page-about__history-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__timeline-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #017439;
}

.page-about__timeline-year {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 10px;
}

.page-about__timeline-description {
  font-size: 1em;
  color: #555555;
}

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

.page-about__promo-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__promo-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
}

.page-about__promo-description {
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__promo-card .page-about__button--secondary {
  margin-top: auto;
}

/* CTA Final */
.page-about__cta-final {
  text-align: center;
}

.page-about__cta-title {
  font-size: 2.8em;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-about__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-about__cta-description a {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
}

.page-about__cta-description a:hover {
  text-decoration: none;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #f5f5f5;
}

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

.page-about__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

.page-about__faq-question:hover {
  background-color: #eaf7ed;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

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

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

.page-about__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-about__faq-answer a:hover {
  text-decoration: none;
}

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

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

  .page-about__container--flex,
  .page-about__container--flex-reverse {
    flex-direction: column;
  }

  .page-about__image {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-about__hero-description {
    font-size: 1em;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-about__text-block,
  .page-about p,
  .page-about li {
    font-size: 1em;
  }

  .page-about__button {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__button-group {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-about__mission-vision,
  .page-about__history,
  .page-about__ecosystem,
  .page-about__security,
  .page-about__team-support,
  .page-about__promotions,
  .page-about__faq-section,
  .page-about__cta-final {
    padding: 40px 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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-about__cta-description {
    font-size: 1em;
  }

  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

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

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

  .page-about__history-timeline {
    grid-template-columns: 1fr;
  }
}