/* style/about.css */
/* Base styles for the page-about scope */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Default text color for dark background sections */
  background-color: #08160F; /* Overall page background */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Sections with light background */
.page-about__light-bg {
  background-color: #ffffff; /* Assuming default body background is light for these sections */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

/* Sections with dark background */
.page-about__dark-bg {
  background-color: #11271B; /* Card BG as dark section background */
  color: #F2FFF6; /* Light text for dark background */
  padding: 60px 0;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: #08160F; /* Dark background for hero */
}

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

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability, not color change */
}

.page-about__hero-content {
  position: relative; /* Ensure content is above image but not absolutely positioned on it */
  z-index: 2;
  max-width: 900px;
  margin-top: 40px; /* Space below image */
  color: #F2FFF6;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-about__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  color: #A7D9B8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about a[class*="button"],
.page-about a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't exceed container width */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 150, 0, 0.3);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 15px rgba(0, 150, 0, 0.4);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-about__btn-secondary:hover {
  background-color: #2AD16F;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-about__btn-text {
  background: none;
  border: none;
  color: #11A84E;
  padding: 0;
  font-weight: 500;
  text-decoration: underline;
}

.page-about__btn-text:hover {
  color: #22C768;
}

.page-about__btn-primary--small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.page-about__cta-buttons--small {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}


/* Section Titles */
.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #11A84E; /* Brand color for titles in light sections */
}

.page-about__section-title--light {
  color: #F2FFF6; /* Light text for titles in dark sections */
}

.page-about__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__section-description--light {
  color: #A7D9B8; /* Secondary light text for dark sections */
}


/* Content Grids */
.page-about__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

/* Cards */
.page-about__card,
.page-about__feature-card,
.page-about__team-member,
.page-about__contact-card {
  background-color: #11271B; /* Dark background for cards */
  color: #F2FFF6; /* Light text for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Override card colors for light-bg sections */
.page-about__light-bg .page-about__card,
.page-about__light-bg .page-about__feature-card,
.page-about__light-bg .page-about__team-member,
.page-about__light-bg .page-about__contact-card {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}


.page-about__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #11A84E; /* Brand color for card titles */
}

/* Adjust card title color for dark-bg sections */
.page-about__dark-bg .page-about__card-title,
.page-about__dark-bg .page-about__feature-card .page-about__card-title,
.page-about__dark-bg .page-about__team-member .page-about__card-title,
.page-about__dark-bg .page-about__contact-card .page-about__card-title {
  color: #57E38D; /* Glow color for titles in dark cards */
}

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

.page-about__card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}

.page-about__card ul li {
  margin-bottom: 5px;
  padding-left: 20px;
  position: relative;
}

.page-about__card ul li::before {
  content: '✔';
  color: #2AD16F;
  position: absolute;
  left: 0;
  top: 0;
}

/* Feature Card Specifics */
.page-about__feature-card {
  align-items: center;
  text-align: center;
}

.page-about__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-about__game-list {
  text-align: left;
  width: 100%;
  margin-top: 15px;
}

.page-about__game-list li {
  padding-left: 25px;
}

.page-about__game-list li::before {
  content: '🎮';
  color: #11A84E;
}


/* Team Section */
.page-about__team-member {
  align-items: center;
  text-align: center;
}

.page-about__team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #11A84E;
}

.page-about__member-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #11A84E;
}
.page-about__dark-bg .page-about__team-member .page-about__member-name {
    color: #57E38D;
}


.page-about__member-role {
  font-size: 1rem;
  color: #A7D9B8;
  margin-bottom: 10px;
}
.page-about__light-bg .page-about__team-member .page-about__member-role {
    color: #666666;
}


/* Contact Section */
.page-about__contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__contact-card {
  align-items: flex-start;
  text-align: left;
}

.page-about__contact-card strong {
  color: #F2FFF6;
}
.page-about__light-bg .page-about__contact-card strong {
    color: #11A84E;
}


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

.page-about__faq-item {
  background-color: #11271B; /* Dark background for FAQ items */
  color: #F2FFF6; /* Light text for FAQ items */
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* Override FAQ item colors for light-bg section */
.page-about__light-bg .page-about__faq-item {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #F2FFF6; /* Light text for FAQ question */
  border-bottom: 1px solid #1E3A2A; /* Divider color */
  list-style: none; /* For details/summary */
}

/* Adjust FAQ question color for light-bg section */
.page-about__light-bg .page-about__faq-question {
  color: #11A84E; /* Brand color for FAQ question in light section */
  border-bottom-color: #e0e0e0;
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom-color: #2E7A4E; /* Border when open */
}
.page-about__light-bg .page-about__faq-item[open] .page-about__faq-question {
  border-bottom-color: #ccc;
}


.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #2AD16F;
  margin-left: 15px;
}

.page-about__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Secondary light text for FAQ answer */
}
.page-about__light-bg .page-about__faq-answer {
    color: #555555;
}

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

/* Details element specific styles */
.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-about__faq-item summary {
  list-style: none;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-section {
    padding-bottom: 40px;
  }
  .page-about__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-about__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
  }
  .page-about__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container,
  .page-about__cta-buttons--small {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-about__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-about__container {
    padding: 0 15px;
  }
  .page-about__light-bg,
  .page-about__dark-bg {
    padding: 40px 0;
  }
  .page-about__content-grid,
  .page-about__features-grid,
  .page-about__team-grid,
  .page-about__contact-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__card,
  .page-about__feature-card,
  .page-about__team-member,
  .page-about__contact-card {
    padding: 25px;
  }
  .page-about__hero-image,
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 10px 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-about__subtitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }
  .page-about__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}