/* style/about.css */

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

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__section-title {
  font-size: 2.8em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__section-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles header offset, small top padding for aesthetic */
  overflow: hidden;
  background-color: #FFFFFF;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 40px;
}

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

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
}

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

.page-about__intro-text {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  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: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-about__btn-secondary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-about__btn-secondary:hover {
  background-color: #c76706;
  border-color: #c76706;
}

/* Introduction Section */
.page-about__introduction .page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: left;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

/* Core Values Section */
.page-about__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__dark-section .page-about__section-title {
  color: #ffffff;
}

.page-about__dark-section .page-about__section-description {
  color: #f0f0f0;
}

.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-10px);
}

.page-about__value-icon {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__value-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
}

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

.page-about__game-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-about__game-card:hover {
  transform: translateY(-5px);
}

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

.page-about__game-title {
  font-size: 1.4em;
  color: #26A9E0;
  padding: 15px;
  margin-bottom: 0;
}

.page-about__game-card p {
  padding: 0 15px 15px;
  color: #666666;
}

.page-about__game-link {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 15px 15px;
  background-color: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

/* Promotions Section */
.page-about__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__promo-card {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
}

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

.page-about__promo-card p {
  color: #f0f0f0;
}

.page-about__cta-center {
  margin-top: 50px;
}

/* Support Section */
.page-about__support .page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: left;
}

.page-about__support-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__support-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #333333;
  position: relative;
  padding-left: 25px;
}

.page-about__support-list li::before {
  content: '✔';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-about__list-strong {
  color: #26A9E0;
}

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

.page-about__faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit */
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  margin-left: 10px;
  color: #26A9E0;
}

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.1em;
  color: #555555;
}

/* Final CTA Section */
.page-about__cta-final {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__cta-final .page-about__section-title {
  color: #ffffff;
}

.page-about__cta-final .page-about__section-description {
  color: #f0f0f0;
  margin-bottom: 50px;
}

.page-about__cta-final .page-about__cta-buttons .page-about__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-about__cta-final .page-about__cta-buttons .page-about__btn-secondary:hover {
  background-color: #e0e0e0;
  border-color: #e0e0e0;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-about__introduction .page-about__content-grid,
  .page-about__support .page-about__content-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: left;
  }

  .page-about__introduction .page-about__image-block {
    order: 2; /* Image on right for introduction */
  }

  .page-about__support .page-about__image-block {
    order: 1; /* Image on left for support */
  }

  .page-about__support .page-about__text-block {
    order: 2;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }

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

  .page-about__hero-section {
    padding: 10px 0 40px 0;
  }

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

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100%;
    padding: 12px 20px;
  }

  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__image-block {
    order: initial !important; /* Reset order for mobile */
  }

  .page-about__values-grid,
  .page-about__game-grid,
  .page-about__promo-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-about__value-card,
  .page-about__game-card,
  .page-about__promo-card {
    padding: 20px;
  }

  .page-about__game-image {
    height: 180px;
  }

  .page-about__game-link {
    width: calc(100% - 30px);
    text-align: center;
  }

  .page-about__support-list {
    padding: 0 15px;
  }

  .page-about__faq-list {
    padding: 0 15px;
  }

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

  .page-about__faq-answer {
    padding: 0 15px 15px;
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .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__hero-image-wrapper,
  .page-about__image-block,
  .page-about__value-icon,
  .page-about__game-image,
  .page-about__cta-buttons,
  .page-about__game-grid,
  .page-about__promo-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__introduction .page-about__container,
  .page-about__core-values .page-about__container,
  .page-about__game-ecosystem .page-about__container,
  .page-about__promotions .page-about__container,
  .page-about__support .page-about__container,
  .page-about__faq-section .page-about__container,
  .page-about__cta-final .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

/* Ensure no filter is applied to images */
.page-about img {
  filter: none !important;
}