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

.page-about {
  color: var(--text-main-color); /* Main text color for the page */
  background-color: var(--background-color); /* Page background from shared */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
  color: var(--text-main-color);
}

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

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

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

.page-about__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--gold-color);
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-about__description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  color: var(--text-secondary-color);
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: 2px solid var(--primary-color);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
}

.page-about__btn-secondary:hover {
  background-color: var(--glow-color);
  color: var(--background-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

.page-about__mission-section,
.page-about__games-section,
.page-about__technology-section,
.page-about__promotions-section,
.page-about__support-section,
.page-about__cta-section,
.page-about__faq-section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-about__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--gold-color);
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary-color);
}

.page-about__value-cards,
.page-about__game-categories,
.page-about__features,
.page-about__support-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-about__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  color: var(--text-main-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-about__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--glow-color);
}

.page-about__card-title a {
  color: var(--glow-color);
  text-decoration: none;
}

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

.page-about__card p {
  font-size: 1em;
  color: var(--text-secondary-color);
}

.page-about__content-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: block;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-about__promo-list ul {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px;
  max-width: 800px;
  text-align: left;
}

.page-about__promo-list li {
  background-color: var(--card-bg);
  border: 1px solid var(--divider-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--text-main-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-about__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--glow-color);
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--divider-color);
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid var(--border-color);
}

.page-about__faq-question::-webkit-details-marker,
.page-about__faq-question::marker {
  display: none;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--gold-color);
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--text-secondary-color);
  line-height: 1.7;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-about__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-about__description {
    font-size: clamp(0.9em, 3.5vw, 1.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 15px;
    font-size: 1em;
  }

  .page-about__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 30px;
  }

  .page-about__text-block,
  .page-about__card p,
  .page-about__promo-list li,
  .page-about__faq-answer {
    font-size: 16px; /* Ensure readability */
    line-height: 1.6;
  }

  .page-about__value-cards,
  .page-about__game-categories,
  .page-about__features,
  .page-about__support-channels {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card {
    padding: 20px;
  }

  .page-about__card-title {
    font-size: 1.2em;
  }

  .page-about__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__mission-section,
  .page-about__games-section,
  .page-about__technology-section,
  .page-about__promotions-section,
  .page-about__support-section,
  .page-about__cta-section,
  .page-about__faq-section {
    padding: 40px 15px;
  }

  /* Ensure all image and video containers are responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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

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