/* style/about.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-about {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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__dark-bg {
  background-color: #0a0a0a; /* Matches body background for consistency */
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #1a1a1a; /* A slightly lighter dark background for contrast sections */
  color: #ffffff;
}

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

.page-about__section-description {
  font-size: 1.1em;
  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;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as per requirements */
  overflow: hidden;
}

.page-about__hero-image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px; /* Space between image and content */
}

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

.page-about__hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Use clamp for H1 font size */
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Buttons */
.page-about__btn-primary {
  display: inline-block;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-about__btn-primary:hover {
  background-color: #1e87c0; /* Slightly darker on hover */
  transform: translateY(-2px);
}

/* Content Grid */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

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

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

.page-about__content-grid .page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-width: 200px; /* Ensure minimum image size */
  min-height: 200px;
}

.page-about__content-grid .page-about__text-block p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

/* Mission & Vision Section */
.page-about__grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-about__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.page-about__card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__card p {
  color: #f0f0f0;
}

/* Why Choose Us Section */
.page-about__grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  text-align: left;
  margin-bottom: 40px;
}

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  color: #ffffff;
}

.page-about__feature-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-about__feature-item p {
  color: #f0f0f0;
}

.page-about__game-diversity-image {
  margin-top: 40px;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #26A9E0; /* Brand color for question background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

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

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
}

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

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-section {
    padding: 40px 15px;
  }

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

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

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

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 20px 15px;
    padding-top: 10px !important;
  }

  .page-about__section {
    padding: 40px 0;
  }

  .page-about__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__content-grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__grid-3-col, .page-about__grid-2-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

  .page-about__btn-primary,
  .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,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }

  /* Content area image CSS size lower limit check */
  .page-about .page-about__image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about p,
  .page-about li {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__card {
    padding: 20px;
  }

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

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

/* Ensure no CSS filters are used on images */
.page-about img {
  filter: none; /* Explicitly disable any potential filter */
}

/* Ensure content area images are not too small by CSS */
.page-about__content-area img,
.page-about__image-block img,
.page-about__game-diversity-image img {
  min-width: 200px;
  min-height: 200px;
}