/* -------------------------------------------------------------------------- */
/*                              Base Styles                                 */
/* -------------------------------------------------------------------------- */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--secondary-color, #FFFFFF); /* Body background from shared */
}

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

.page-about__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  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-color: #26A9E0;
  border-radius: 2px;
}

.page-about__sub-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #555;
}

.page-about__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.page-about__card-title {
  font-size: 22px;
  font-weight: 600;
  color: #26A9E0;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-text,
.page-about a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

.page-about__btn-secondary:hover {
  background: #f0f8ff;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-about__btn-text {
  color: #26A9E0;
  text-decoration: underline;
  padding: 0;
  background: none;
  border: none;
  font-weight: 500;
}

.page-about__btn-text:hover {
  color: #1e87c0;
}

.page-about__dark-section {
  background: #26A9E0;
  color: #ffffff;
}

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

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

.page-about__dark-section .page-about__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-about__dark-section .page-about__btn-secondary:hover {
  background: #f0f8ff;
  color: #1e87c0;
  border-color: #f0f8ff;
}

/* -------------------------------------------------------------------------- */
/*                              Hero Section                                */
/* -------------------------------------------------------------------------- */
.page-about__hero-section {
  position: relative;
  padding-top: 10px; /* Rely on body padding-top for header offset, use small top padding here */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-about__hero-image-wrapper {
  width: 100%;
  height: 500px; /* Adjust height as needed */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about__hero-content-wrapper {
  position: relative;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 20px;
}

.page-about__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__lead-text {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

/* -------------------------------------------------------------------------- */
/*                          Introduction Section                            */
/* -------------------------------------------------------------------------- */
.page-about__introduction-section {
  padding: 80px 0;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.page-about__text-block p {
  margin-bottom: 15px;
}

.page-about__image-block {
  text-align: center;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-about__image-caption {
  font-style: italic;
  color: #777;
  margin-top: 10px;
}

/* -------------------------------------------------------------------------- */
/*                            Features Section                              */
/* -------------------------------------------------------------------------- */
.page-about__features-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-about__feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
  display: block;
}

.page-about__game-list {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.page-about__game-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.page-about__game-list li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #26A9E0;
}

/* -------------------------------------------------------------------------- */
/*                             Values Section                               */
/* -------------------------------------------------------------------------- */
.page-about__values-section {
  padding: 80px 0;
}

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

.page-about__value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.2));
}

.page-about__value-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-about__dark-section .page-about__value-item {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__dark-section .page-about__value-item p {
  color: #f0f0f0;
}

.page-about__dark-section .page-about__value-item .page-about__btn-text {
  color: #ffffff;
}

.page-about__dark-section .page-about__value-item .page-about__btn-text:hover {
  color: #f0f8ff;
}

/* -------------------------------------------------------------------------- */
/*                           Why Choose Section                             */
/* -------------------------------------------------------------------------- */
.page-about__why-choose-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-about__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-about__why-choose-card {
  min-height: 220px; /* Ensure cards have similar height */
}

.page-about__final-cta {
  text-align: center;
  background: #f0f8ff;
  padding: 40px;
  border-radius: 8px;
  margin-top: 50px;
}

.page-about__final-cta-text {
  font-size: 24px;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 25px;
}

.page-about__btn-large {
  padding: 15px 35px;
  font-size: 18px;
}

/* -------------------------------------------------------------------------- */
/*                                FAQ Section                               */
/* -------------------------------------------------------------------------- */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: #f5f5f5;
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-about__faq-item[open] .page-about__faq-toggle {
  color: #26A9E0;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555;
}

/* -------------------------------------------------------------------------- */
/*                             Responsive Styles                            */
/* -------------------------------------------------------------------------- */

/* General image responsiveness */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tablets and small desktops */
@media (max-width: 1024px) {
  .page-about__hero-image-wrapper {
    height: 400px;
  }

  .page-about__introduction-section,
  .page-about__features-section,
  .page-about__values-section,
  .page-about__why-choose-section,
  .page-about__faq-section {
    padding: 60px 0;
  }

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

  .page-about__image-block {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }

  .page-about__feature-cards-grid,
  .page-about__values-grid,
  .page-about__why-choose-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100%;
  }

  .page-about__final-cta-text {
    font-size: 20px;
  }

  .page-about__main-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }

  .page-about__lead-text {
    font-size: clamp(16px, 2.2vw, 20px);
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  /* HERO Main Image Area */
  .page-about__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }
  .page-about__hero-image-wrapper {
    height: 250px;
    display: block; /* Ensure block display for object-fit */
  }
  .page-about__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Reset aspect ratio if set */
    width: 100% !important;
    height: auto !important;
  }

  .page-about__hero-content-wrapper {
    padding-top: 20px;
  }
  .page-about__main-title {
    font-size: clamp(28px, 8vw, 36px); /* Adjusted clamp for smaller screens */
    margin-bottom: 15px;
  }
  .page-about__lead-text {
    font-size: clamp(15px, 4vw, 18px);
    margin-bottom: 20px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* General Sections */
  .page-about__introduction-section,
  .page-about__features-section,
  .page-about__values-section,
  .page-about__why-choose-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: clamp(18px, 6vw, 24px);
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-about__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  /* Feature Cards Grid */
  .page-about__feature-cards-grid,
  .page-about__values-grid,
  .page-about__why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card {
    padding: 20px;
  }

  .page-about__card-title {
    font-size: 18px;
  }

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

  .page-about__value-icon {
    width: 80px;
    height: 80px;
  }

  .page-about__final-cta {
    padding: 30px 20px;
  }

  .page-about__final-cta-text {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .page-about__btn-large {
    padding: 12px 25px;
    font-size: 16px;
  }

  /* FAQ Specifics */
  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-qtext {
    font-size: 15px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }

  /* General Images and Containers for mobile overflow prevention */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__container,
  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__features-section,
  .page-about__values-section,
  .page-about__why-choose-section,
  .page-about__faq-section,
  .page-about__card,
  .page-about__value-item,
  .page-about__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Ensure buttons and their containers are responsive on mobile */
  .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: 0;
    padding-right: 0;
    flex-wrap: wrap !important; /* Allow buttons to wrap */
    gap: 10px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
  }
}