/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: var(--background-color, #08160F);
}

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

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  background-color: var(--background-color, #08160F);
  overflow: hidden; /* Ensure no overflow */
  color: var(--text-main-color, #F2FFF6);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers the area */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2em, 5vw, 3.2em);
  font-weight: 700;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1em;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  text-align: center;
}

.page-about__btn-primary {
  background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
  color: #ffffff;
  border: none;
}

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

.page-about__btn-secondary {
  background: transparent;
  color: var(--text-main-color, #F2FFF6);
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-about__btn-secondary:hover {
  background: var(--deep-green-color, #0A4B2C);
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-about__section--mission,
.page-about__section--games,
.page-about__section--support,
.page-about__section--download {
  background-color: #ffffff; /* Use white for light-bg sections */
  color: #333333; /* Dark text for light background */
}

.page-about__section--history,
.page-about__section--security,
.page-about__section--responsible,
.page-about__section--faq {
  background-color: var(--background-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
}

.page-about__heading {
  font-size: clamp(1.8em, 4vw, 2.5em);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: inherit; /* Inherit color from section */
}

.page-about__sub-heading {
  font-size: clamp(1.4em, 3vw, 2em);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
  color: inherit;
}

.page-about__text {
  font-size: 1.05em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

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

.page-about__feature-item {
  background-color: var(--card-bg-color, #11271B);
  color: var(--text-main-color, #F2FFF6);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-icon {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-about__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main-color, #F2FFF6);
}

.page-about__feature-description {
  font-size: 0.95em;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-about__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  object-fit: cover;
}

.page-about__list {
  list-style: disc;
  margin: 20px auto;
  padding-left: 40px;
  max-width: 900px;
  color: inherit;
}

.page-about__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

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

.page-about__game-card {
  background-color: var(--card-bg-color, #11271B);
  color: var(--text-main-color, #F2FFF6);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

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

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

.page-about__game-title {
  font-size: 1.3em;
  font-weight: 600;
  padding: 20px 20px 10px;
  color: var(--text-main-color, #F2FFF6);
}

.page-about__game-description {
  font-size: 0.95em;
  padding: 0 20px 20px;
  flex-grow: 1;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-about__game-link {
  display: inline-block;
  margin: 0 20px 20px;
  padding: 10px 15px;
  background: var(--deep-green-color, #0A4B2C);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-about__game-link:hover {
  background-color: var(--main-color, #11A84E);
}

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

.page-about__security-item {
  background-color: var(--card-bg-color, #11271B);
  color: var(--text-main-color, #F2FFF6);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__security-icon {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-about__security-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main-color, #F2FFF6);
}

.page-about__security-description {
  font-size: 0.95em;
  color: var(--text-secondary-color, #A7D9B8);
}

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

.page-about__contact-item {
  background-color: var(--card-bg-color, #11271B);
  color: var(--text-main-color, #F2FFF6);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__contact-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main-color, #F2FFF6);
}

.page-about__contact-description {
  font-size: 0.95em;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 20px;
}

.page-about__contact-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--main-color, #11A84E);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.page-about__contact-link:hover {
  background-color: var(--deep-green-color, #0A4B2C);
}

.page-about__responsible-gaming-info {
  margin-top: 40px;
  padding: 30px;
  background-color: var(--card-bg-color, #11271B);
  border-radius: 12px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-about__list--responsible {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
  text-align: left;
}

.page-about__list--responsible .page-about__list-item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-about__list--responsible .page-about__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--main-color, #11A84E);
  font-weight: bold;
}

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

.page-about__image--download {
  margin-top: 60px;
}

.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: var(--card-bg-color, #11271B);
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--deep-green-color, #0A4B2C);
  color: var(--text-main-color, #F2FFF6);
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
  list-style: none; /* For details/summary */
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-about__faq-answer {
  padding: 15px 20px 20px;
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
}

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

.page-about__faq-answer .page-about__btn-primary,
.page-about__faq-answer .page-about__btn-secondary {
  margin-top: 10px;
  display: inline-block;
  font-size: 0.95em;
  padding: 10px 20px;
}

/* Custom colors from requirements */
:root {
  --main-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --background-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Ensure color contrast for light-bg sections */
.page-about__section--mission,
.page-about__section--games,
.page-about__section--support,
.page-about__section--download {
  color: #333333; /* Dark text for white/light backgrounds */
}

.page-about__section--mission .page-about__heading,
.page-about__section--games .page-about__heading,
.page-about__section--support .page-about__heading,
.page-about__section--download .page-about__heading {
  color: #000000; /* Ensure headings are very dark on light background */
}

.page-about__section--mission .page-about__feature-item,
.page-about__section--games .page-about__game-card,
.page-about__section--support .page-about__contact-item {
  background-color: #f8f8f8; /* Slightly off-white for cards on white background */
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-about__section--mission .page-about__feature-title,
.page-about__section--games .page-about__game-title,
.page-about__section--support .page-about__contact-title {
  color: #000000;
}

.page-about__section--mission .page-about__feature-description,
.page-about__section--games .page-about__game-description,
.page-about__section--support .page-about__contact-description {
  color: #555555;
}

.page-about__section--games .page-about__game-link {
  background: var(--main-color, #11A84E);
  color: #ffffff;
}

.page-about__section--support .page-about__contact-link {
  background: var(--main-color, #11A84E);
  color: #ffffff;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-about__hero-content {
    margin-top: 20px;
  }

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

  .page-about__description {
    font-size: 1em;
  }

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

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

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

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

  .page-about__text {
    font-size: 0.95em;
  }

  .page-about__feature-icon,
  .page-about__security-icon {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important; 
    min-height: 200px !important;
  }

  .page-about__game-card {
    margin-bottom: 20px;
  }

  .page-about__image-full-width,
  .page-about__hero-image,
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__container,
  .page-about__hero-section,
  .page-about__section,
  .page-about__cta-buttons,
  .page-about__download-buttons,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-about__hero-image-wrapper {
    max-height: 400px; /* Adjust hero image height for mobile */
  }

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

  .page-about__faq-answer {
    padding: 10px 15px 15px;
    font-size: 0.9em;
  }

  .page-about__list {
    padding-left: 20px;
  }

  .page-about__list--responsible .page-about__list-item {
    padding-left: 20px;
  }
}