/* style/about.css */

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

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--aev999-text-main); /* Default text color for the page, light on dark background */
  background-color: var(--aev999-background);
}

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

.page-about__section-title {
  font-size: 2.8em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--aev999-text-main);
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--aev999-primary);
  border-radius: 2px;
}

.page-about__section-description {
  text-align: center;
  font-size: 1.1em;
  color: var(--aev999-text-secondary);
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--aev999-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-about__text-block a {
  color: var(--aev999-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__text-block a:hover {
  color: var(--aev999-gold);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 80px;
  text-align: center;
  overflow: hidden;
}

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
  margin-top: 100px; /* Push content down to avoid overlapping the very top of the image */
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 800;
  color: var(--aev999-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__lead-text {
  font-size: 1.2em;
  color: var(--aev999-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background: var(--aev999-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--aev999-primary);
  border: 2px solid var(--aev999-primary);
  margin-left: 20px;
}

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

/* Common Section Styles */
.page-about__vision-mission,
.page-about__why-choose,
.page-about__game-portfolio,
.page-about__responsible-gaming,
.page-about__cta-section,
.page-about__faq-section {
  padding: 80px 0;
}

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

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

.page-about__card-bg {
  background-color: var(--aev999-card-bg);
  color: var(--aev999-text-main);
}

/* Grid Layout */
.page-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-about__grid--reverse .page-about__image-block {
  order: 2;
}

.page-about__grid--reverse .page-about__text-block {
  order: 1;
}

.page-about__image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--aev999-border);
}

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

.page-about__feature-item {
  background: var(--aev999-deep-green);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-left: 5px solid var(--aev999-primary);
}

.page-about__feature-item:last-child {
  margin-bottom: 0;
}

.page-about__feature-title {
  font-size: 1.4em;
  color: var(--aev999-text-main);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-about__feature-item p {
  color: var(--aev999-text-secondary);
  margin-bottom: 0;
}

/* CTA Section */
.page-about__cta-section {
  text-align: center;
  background: var(--aev999-background);
  padding: 100px 0;
}

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

/* FAQ Section */
.page-about__faq-section {
  background-color: var(--aev999-card-bg);
}

.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__faq-item {
  background: var(--aev999-deep-green);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--aev999-border);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--aev999-text-main);
  background: var(--aev999-deep-green);
  transition: background-color 0.3s ease;
}

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  margin-left: 15px;
  color: var(--aev999-primary);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  padding: 0 25px;
  color: var(--aev999-text-secondary);
}

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

.page-about__faq-item.active .page-about__faq-question {
  background-color: var(--aev999-divider);
}

.page-about__faq-item.active .page-about__faq-toggle {
  content: '−';
  color: var(--aev999-gold);
}


/* Responsive Design */
@media (max-width: 992px) {
  .page-about__grid {
    grid-template-columns: 1fr;
  }

  .page-about__grid--reverse .page-about__image-block,
  .page-about__grid--reverse .page-about__text-block {
    order: unset; /* Reset order for smaller screens */
  }

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

  .page-about__main-title {
    font-size: clamp(2em, 7vw, 3em);
  }

  .page-about__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-about__hero-content {
    margin-top: 50px;
  }
}

@media (max-width: 768px) {
  .page-about__container,
  .page-about__hero-content,
  .page-about__cta-buttons,
  .page-about__faq-list {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__hero-section,
  .page-about__vision-mission,
  .page-about__why-choose,
  .page-about__game-portfolio,
  .page-about__responsible-gaming,
  .page-about__cta-section,
  .page-about__faq-section {
    padding: 50px 0;
  }

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

  .page-about__section-description {
    margin-bottom: 40px;
  }

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

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

  .page-about__hero-image-wrapper,
  .page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

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

  .page-about__hero-section {
    padding-bottom: 50px;
  }

  .page-about__feature-item {
    padding: 20px;
  }
}

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

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

  .page-about__lead-text {
    font-size: 1em;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    font-size: 1em;
    padding: 12px 25px;
  }
}