/* style/about.css */

/* Base styles for the page-about scope */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* body handles the main background */
}

/* Container for content sections */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

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

.page-about__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem); /* Responsive H2 */
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #000000; /* Ensure a dark background */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

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

.page-about__main-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem); /* Responsive H1 */
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-description {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-tertiary,
.page-about__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

.page-about__btn-tertiary {
  background-color: #EA7C07; /* Login color for a distinct CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-about__btn-tertiary:hover {
  background-color: #c96806;
  border-color: #c96806;
}

.page-about__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: none;
  padding: 10px 0;
  font-size: 1rem;
  text-decoration: underline;
}

.page-about__btn-link:hover {
  color: #1a8cc2;
}

/* Dark background sections */
.page-about__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter than body background for contrast */
  color: #ffffff;
}
.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__feature-title,
.page-about__dark-bg .page-about__card-title,
.page-about__dark-bg .page-about__promo-title {
  color: #ffffff;
}
.page-about__dark-bg .page-about__section-description,
.page-about__dark-bg .page-about__feature-text,
.page-about__dark-bg .page-about__card-text,
.page-about__dark-bg .page-about__promo-text {
  color: #f0f0f0;
}

/* Vision & Mission Section */
.page-about__vision-mission {
  padding-bottom: 80px;
}
.page-about__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white card for dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__feature-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for titles */
}

.page-about__feature-text {
  font-size: 1rem;
  color: #f0f0f0;
}

/* History Section */
.page-about__history {
  background-color: #000000; /* Match body background */
}
.page-about__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about__content-flex--reverse {
  flex-direction: row-reverse;
}

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

.page-about__text-block p {
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

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

.page-about__category-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__card-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: bold;
}
.page-about__card-title a {
  color: #26A9E0;
  text-decoration: none;
}
.page-about__card-title a:hover {
  text-decoration: underline;
  color: #1a8cc2;
}

.page-about__card-text {
  font-size: 1rem;
  color: #f0f0f0;
}

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

/* Security Section */
.page-about__security {
  background-color: #000000; /* Match body background */
}

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

.page-about__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__promo-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: bold;
  color: #26A9E0;
}

.page-about__promo-text {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #000000; /* Match body background */
}
.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Lighter card for FAQ */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-about__faq-item summary {
  list-style: none; /* Hide default marker */
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
  color: #ffffff;
}

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

.page-about__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-about__faq-qtext {
  color: #ffffff;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #26A9E0;
  margin-left: 15px;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-about__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #f0f0f0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.page-about__faq-answer p {
  color: #f0f0f0; /* Ensure paragraph text in FAQ is light */
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__content-flex {
    flex-direction: column;
    text-align: center;
  }

  .page-about__content-flex--reverse {
    flex-direction: column; /* Also column for reverse on mobile */
  }

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

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

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

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

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

  .page-about__intro-description {
    font-size: 1rem;
  }

  .page-about__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-about__section-description {
    font-size: 0.95rem;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-tertiary,
  .page-about__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Images responsive adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__container,
  .page-about__feature-item,
  .page-about__category-card,
  .page-about__promo-card,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  /* Image specific blocks should maintain full width for the image itself */
  .page-about__hero-image-wrapper,
  .page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* No padding here, image inside should be full width */
    overflow: hidden !important;
  }

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

  /* FAQ specific mobile styles */
  .page-about__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-about__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95rem;
  }
}

/* Ensure all images are responsive by default */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all video containers are responsive */
.page-about video,
.page-about__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-about__video-section,
.page-about__video-container,
.page-about__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Color Contrast Fixes (if needed, but design should prevent this) */
/* The dark background ensures light text is the default */
.page-about p,
.page-about li,
.page-about__section-description,
.page-about__intro-description,
.page-about__feature-text,
.page-about__card-text,
.page-about__promo-text {
  color: #f0f0f0; /* Slightly off-white for better readability on pure black */
}

.page-about__btn-primary,
.page-about__btn-tertiary {
  color: #ffffff; /* Ensure white text on colored buttons */
}
.page-about__btn-secondary {
  color: #26A9E0; /* Ensure brand color text on transparent button */
}