/* style/about.css */
:root {
  --page-about-bg: #08160F;
  --page-about-card-bg: #11271B;
  --page-about-text-main: #F2FFF6;
  --page-about-text-secondary: #A7D9B8;
  --page-about-border: #2E7A4E;
  --page-about-glow: #57E38D;
  --page-about-gold: #F2C14E;
  --page-about-divider: #1E3A2A;
  --page-about-deep-green: #0A4B2C;
  --page-about-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--page-about-text-main); /* Light text on dark background */
  background-color: var(--page-about-bg);
  line-height: 1.6;
  padding-bottom: 60px;
}

.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__dark-section {
  background-color: var(--page-about-card-bg);
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

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

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-about__hero-content {
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
  text-align: center;
}

.page-about__main-title {
  color: var(--page-about-text-main);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-size: clamp(2em, 3.5vw, 3.2em); /* Using clamp for responsive H1 font size */
}

.page-about__hero-description {
  color: var(--page-about-text-secondary);
  font-size: 1.15em;
  margin-bottom: 30px;
}

.page-about__section-title {
  color: var(--page-about-text-main);
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.page-about__text-block {
  color: var(--page-about-text-secondary);
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: left;
}

.page-about__text-block:last-of-type {
  margin-bottom: 0;
}

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

.page-about__image--centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__image--full-width {
  width: 100%;
}

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

.page-about__feature-item {
  background-color: var(--page-about-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-about-border);
}

.page-about__feature-title {
  color: var(--page-about-text-main);
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-about__feature-description {
  color: var(--page-about-text-secondary);
  font-size: 1em;
}

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

.page-about__btn-primary {
  background: var(--page-about-btn-gradient);
  color: #ffffff;
  border: none;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background-color: var(--page-about-glow);
  color: var(--page-about-bg);
  transform: translateY(-2px);
}

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

.page-about__game-card {
  background-color: var(--page-about-bg);
  border: 1px solid var(--page-about-border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--page-about-text-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 200px;
}

.page-about__game-card:hover {
  transform: translateY(-5px);
}

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

.page-about__game-card-title {
  font-size: 1.3em;
  margin: 15px 10px;
  color: var(--page-about-text-main);
}

.page-about__faq-section {
  text-align: left;
}

.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: var(--page-about-card-bg);
  border: 1px solid var(--page-about-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: var(--page-about-text-main);
  font-weight: 600;
  font-size: 1.2em;
  background-color: var(--page-about-deep-green);
}

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

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 20px;
  padding-top: 0;
  color: var(--page-about-text-secondary);
  font-size: 1.05em;
}

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

.page-about__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-about__cta-bottom {
  padding: 80px 0;
}

.page-about__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em);
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__features-grid,
  .page-about__game-categories {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px !important;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-about__hero-content {
    margin-top: 20px;
  }
  .page-about__main-title {
    font-size: 2em; /* Smaller font size for mobile H1 */
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__text-block {
    font-size: 1em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 5px 0 !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-about__image,
  .page-about__hero-image,
  .page-about__game-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important;
    min-height: unset !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__features-grid,
  .page-about__game-categories,
  .page-about__faq-item,
  .page-about__cta-buttons,
  .page-about__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-about__game-card {
    min-height: unset !important;
  }
  .page-about__game-card img {
     /* Adjust height for mobile */
  }
  .page-about__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-about__faq-answer {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__features-grid,
  .page-about__game-categories {
    grid-template-columns: 1fr;
  }
}