/* style/about.css */

/* Base styles for the page content */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

/* General section padding and max-width */
.page-about__section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  background-color: #2F6BFF; /* Main Color for background if image not loaded */
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

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

.page-about__hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  color: #ffffff; /* White text on blue/image */
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f8ff; /* Slightly off-white for contrast */
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-about__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary:hover {
  background: #f0f8ff;
  color: #1a58e0;
  border-color: #1a58e0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Section Titles */
.page-about__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  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: linear-gradient(90deg, #2F6BFF 0%, #6FA3FF 100%);
  border-radius: 2px;
}

/* Values List */
.page-about__values-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-about__values-item {
  background: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__values-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2F6BFF; /* Main Color */
  margin-bottom: 15px;
}

.page-about__values-item p {
  font-size: 1rem;
  color: #333333;
}

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

.page-about__game-card {
  background: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.page-about__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-about__game-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 20px 15px 10px;
  color: #1F2D3D; /* Text Main */
}

.page-about__game-title a {
  color: #1F2D3D;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__game-title a:hover {
  color: #2F6BFF; /* Main Color */
}

.page-about__game-card p {
  font-size: 0.95rem;
  color: #555555;
  padding: 0 15px 20px;
}

.page-about__cta-center {
  text-align: center;
  margin-top: 30px;
}

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger radius */
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #ffffff; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  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: #f9f9f9;
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 1.1rem; /* Slightly larger font */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-about__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  color: #2F6BFF; /* Main Color */
  flex-shrink: 0;
  margin-left: 20px; /* Increased margin */
  width: 30px; /* Larger hit area */
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 25px; /* Increased padding */
  background: #fbfdff; /* Lighter background for answer */
  border-radius: 0 0 8px 8px;
  color: #333333;
}
.page-about__faq-answer p {
  margin-bottom: 0;
}

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

/*
  ---------------------------------------------------------------------
  Mobile Responsiveness @media (max-width: 768px) - MUST INCLUDE ALL
  ---------------------------------------------------------------------
*/
@media (max-width: 768px) {
  .page-about__section {
    padding: 20px 15px;
  }

  /* Hero Section */
  .page-about__hero-section {
    padding-top: 10px !important;
  }

  .page-about__hero-content {
    padding: 30px 15px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-about__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Section Titles */
  .page-about__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }

  .page-about__section-title::after {
    width: 60px;
    height: 3px;
  }

  /* Values List */
  .page-about__values-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-about__values-item {
    padding: 25px;
  }

  .page-about__values-heading {
    font-size: 1.3rem;
  }

  /* Game Grid Section */
  .page-about__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .page-about__game-card {
    padding-bottom: 15px;
  }

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

  .page-about__game-title {
    font-size: 1.2rem;
    margin: 15px 10px 8px;
  }

  .page-about__game-card p {
    font-size: 0.9rem;
    padding: 0 10px 15px;
  }

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

  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px 18px;
  }
  .page-about__faq-qtext {
    font-size: 1rem;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 25px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 18px 18px;
  }

  /* Universal image/container responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__content-area,
  .page-about__hero-content,
  .page-about__cta-buttons,
  .page-about__game-grid,
  .page-about__values-list,
  .page-about__faq-list,
  .page-about__cta-center,
  .page-about__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/*
  ---------------------------------------------------------------------
  Tablet Responsiveness @media (max-width: 1024px) - Also required
  ---------------------------------------------------------------------
*/
@media (max-width: 1024px) {
  .page-about__section {
    padding: 30px;
  }

  .page-about__hero-content {
    padding: 30px;
  }

  .page-about__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
  }

  .page-about__description {
    font-size: 1.05rem;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

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

  .page-about__values-list {
    gap: 25px;
  }

  .page-about__values-item {
    padding: 25px;
  }

  .page-about__values-heading {
    font-size: 1.4rem;
  }

  .page-about__game-grid {
    gap: 25px;
  }

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

  .page-about__game-title {
    font-size: 1.25rem;
  }

  details.page-about__faq-item summary.page-about__faq-question {
    padding: 16px 20px;
  }
  .page-about__faq-qtext {
    font-size: 1.05rem;
  }
  .page-about__faq-toggle {
    font-size: 26px;
    margin-left: 18px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 20px 20px;
  }
}