/* style/about.css */

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

.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.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0;
  line-height: 1.2;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small decorative top padding */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about__hero-content {
  position: relative; /* Not absolute, to be in normal flow */
  max-width: 900px;
  margin-top: 40px; /* Space below image */
  z-index: 10;
  padding: 0 20px;
}

.page-about__main-title {
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.page-about__subtitle {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  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: #1e87c2;
  border-color: #1e87c2;
}

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

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

.page-about__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.1em;
}

.page-about__btn-primary--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Mission & Vision Section */
.page-about__mission-vision {
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

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

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

/* Values Section */
.page-about__values {
  background-color: #0d0d0d;
}

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

.page-about__value-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

/* Security Commitment Section */
.page-about__security-commitment {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-about__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about__image-block {
  flex: 1;
  min-width: 300px;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-about__text-block {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
}

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

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

.page-about__text-block a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-about__text-block a:hover {
  color: #1e87c2;
}

/* Games Overview Section */
.page-about__games-overview {
  background-color: #0d0d0d;
}

.page-about__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  padding-bottom: 20px;
}

.page-about__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

.page-about__game-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

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

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

/* Customer Support Section */
.page-about__customer-support {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-about__support-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about__support-text-block {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
}

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

.page-about__support-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
}

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

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

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

.page-about__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
  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-item summary {
  display: block;
  padding: 20px;
  cursor: pointer;
  position: relative;
  list-style: none; /* Hide default marker */
  color: #ffffff;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
  color: #26A9E0;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: #ffffff;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

.page-about__faq-answer {
  padding: 0 20px 20px;
  color: #f0f0f0;
}

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

.page-about__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-about__faq-answer a:hover {
  color: #1e87c2;
}

/* Call to Action Section */
.page-about__call-to-action {
  background-color: #26A9E0;
  padding: 80px 0;
}

.page-about__cta-content {
  max-width: 900px;
}

.page-about__call-to-action .page-about__section-title {
  color: #ffffff;
}

.page-about__call-to-action .page-about__section-description {
  color: #ffffff;
  margin-bottom: 50px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__content-flex,
  .page-about__support-content {
    flex-direction: column;
  }

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

@media (max-width: 768px) {
  .page-about__section-title {
    font-size: 2em;
  }

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

  .page-about__subtitle {
    font-size: 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-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__hero-content {
    margin-top: 20px;
  }

  .page-about__hero-image {
    min-height: 250px;
  }

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

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

  .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__image-block,
  .page-about__text-block,
  .page-about__game-card,
  .page-about__value-item,
  .page-about__faq-item,
  .page-about__cta-buttons,
  .page-about__hero-section,
  .page-about__hero-image-wrapper,
  .page-about__hero-content,
  .page-about__mission-vision,
  .page-about__values,
  .page-about__security-commitment,
  .page-about__games-overview,
  .page-about__customer-support,
  .page-about__faq-section,
  .page-about__call-to-action {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-about__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-about__value-icon {
    min-width: 150px; /* Adjust min size for smaller screens */
    min-height: 150px; /* Adjust min size for smaller screens */
  }

  .page-about__content-image {
    min-width: 200px;
    min-height: 200px;
  }

  .page-about__game-image {
    min-width: 200px;
    min-height: 200px;
  }

  .page-about__faq-item summary {
    padding: 15px;
  }

  .page-about__faq-question {
    font-size: 1.1em;
  }

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

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }

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

  .page-about__card-title,
  .page-about__sub-title,
  .page-about__game-title,
  .page-about__value-title {
    font-size: 1.4em;
  }

  .page-about__hero-image {
    min-height: 200px;
  }
}