/* style/about.css */

/* General Styling */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main for dark background */
  background-color: #08160F; /* Background color */
  padding-top: 10px; /* Small top padding for the first section, body handles header offset */
}

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: bold;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.page-about__section-description {
  font-size: clamp(16px, 2vw, 20px);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about p {
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-about a {
  color: #57E38D; /* Glow color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about a:hover {
  color: #2AD16F;
  text-decoration: underline;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  min-height: 500px;
  background-color: #08160F; /* Ensure dark background for text contrast */
}

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

.page-about__hero-content {
  padding: 40px 15px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main for button */
  font-weight: bold;
  border-radius: 8px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Content Sections */
.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

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

.page-about__text-block h3 {
  font-size: clamp(22px, 3vw, 32px);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-about__text-block p {
  color: #A7D9B8; /* Text Secondary */
}

.page-about__image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  display: block;
}

.page-about__image--full-width {
  max-width: 100%;
  margin-top: 40px;
}

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

.page-about__game-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #2E7A4E; /* Border color */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__game-title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-about__game-title a {
  color: #F2FFF6; /* Text Main for links in titles */
}

.page-about__game-card p {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green for summary background */
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-about__faq-item[open] .page-about__faq-question {
  background-color: #11A84E; /* Main color when open */
  border-bottom-color: #2E7A4E;
}

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

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

.page-about__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-about__faq-answer {
  padding: 20px;
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
  padding-top: 0;
}

.page-about__faq-answer p {
  color: #A7D9B8; /* Text Secondary */
}

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

  .page-about__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-about__image {
    max-width: 80%;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .page-about__text-block {
    min-width: unset;
    width: 100%;
  }
}

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

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

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

  .page-about__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .page-about__hero-description {
    font-size: clamp(16px, 4vw, 18px);
  }

  .page-about__cta-button {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto;
  }

  .page-about__hero-image {
    max-height: 400px;
  }

  .page-about__image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-about__hero-section {
    padding-top: 10px !important; /* body handles header offset */
  }

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

  .page-about__faq-question {
    font-size: 16px;
    padding: 15px;
  }

  .page-about__faq-answer {
    padding: 15px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-about__hero-image {
    max-height: 300px;
  }
}