/* style/about.css */

/* Base styles for the about page content */
.page-about {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background from shared.css */
  line-height: 1.6;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  box-sizing: border-box;
}

.page-about__hero-image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: -1;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(18, 18, 18, 0.7); /* Darker background for text block */
  border-radius: 8px;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* General Section Styles */
.page-about__section {
  padding: 60px 20px;
  background-color: #1a1a1a;
  border-bottom: 1px solid #333;
  box-sizing: border-box;
}

.page-about__section:nth-child(even) {
  background-color: #222;
}

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

.page-about__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

.page-about__subsection-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 500;
}

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

.page-about__keyword-highlight {
  color: #EA7C07;
  font-weight: bold;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* List Styles */
.page-about__values-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__values-list li {
  background-color: #262626;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-left: 5px solid #26A9E0;
  border-radius: 4px;
  color: #f0f0f0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.page-about__values-list li strong {
  color: #EA7C07;
}

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

.page-about__game-card {
  background-color: #262626;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

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

.page-about__game-card p {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-about__game-link {
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-about__game-link:hover {
  color: #ff9933;
  text-decoration: underline;
}

/* Call to Action Buttons */
.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.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: #26A9E0;
  border: 2px solid #26A9E0;
}

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

.page-about__text-link {
  color: #EA7C07;
  text-decoration: underline;
  font-weight: bold;
}

.page-about__text-link:hover {
  color: #ff9933;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 30px;
}

.page-about__faq-item {
  background-color: #262626;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.page-about__faq-item summary {
  list-style: none;
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: #ffffff;
  background-color: #333333;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-item summary:hover {
  background-color: #444444;
}

.page-about__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

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

.page-about__faq-answer {
  padding: 20px;
  background-color: #222222;
  color: #cccccc;
  border-top: 1px solid #444444;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-about__main-title {
    font-size: 2em; /* Smaller H1 for mobile */
  }

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

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

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

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-about__subsection-title {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-about__image {
    margin: 20px auto;
  }

  .page-about__games-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

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

  .page-about__game-title {
    font-size: 1.3em;
  }

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

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

  /* Image responsive force */
  .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-container,
  .page-about__hero-content,
  .page-about__games-grid,
  .page-about__games-grid > div,
  .page-about__faq-list,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-image-container, .page-about__hero-content {
    padding-left: 0;
    padding-right: 0;
  }
}