/* style/about.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --background-light: #FFFFFF;
  --border-color: #e0e0e0;
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--background-light);
}

.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: 700;
  color: var(--primary-color);
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-about p {
  font-size: 1.1em;
  margin-bottom: 1em;
  color: var(--text-dark);
}

/* Hero Section */
.page-about__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #007bff 100%);
  color: var(--text-light);
  padding: 20px 0 60px 0; /* Small top padding, more bottom padding for content */
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 40px; /* Space between image and content */
  box-sizing: border-box;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
  /* clamp for responsive font size, avoiding fixed large values */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-about__btn-primary:hover {
  background-color: #1a8ecf; /* darken(var(--primary-color), 10%) */
  border-color: #1a8ecf; /* darken(var(--primary-color), 10%) */
  transform: translateY(-2px);
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-about__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.page-about__btn-link {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-about__btn-link:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Video Section */
.page-about__video-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.page-about__video-description {
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-about__video-wrapper {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  box-sizing: border-box;
}

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

/* Flex Containers for alternating content/image */
.page-about__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about__flex-container--reverse {
  flex-direction: row-reverse;
}

.page-about__content-block {
  flex: 1;
  min-width: 300px; /* Ensure content block has a minimum width */
}

.page-about__image-block {
  flex: 1;
  min-width: 300px; /* Ensure image block has a minimum width */
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-about__game-card {
  background-color: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-about__game-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-about__game-card p {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

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

.page-about__feature-item {
  font-size: 1.1em;
  color: var(--text-dark);
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-about__feature-item::before {
  content: '✓';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #eaf6fc; /* Lighter background for summary */
  border-bottom: 1px solid var(--border-color);
  list-style: none; /* Hide default marker for details/summary */
}

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

.page-about__faq-item[open] > .page-about__faq-question {
  border-bottom: 1px solid var(--border-color);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1.1em;
  color: var(--text-dark);
}

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

  .page-about__flex-container--reverse {
    flex-direction: column;
  }

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

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

  .page-about__sub-title {
    font-size: 1.5em;
  }

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

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

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