/* -------------------------------------------------------------------------- */
/*                              About Page Styles                             */
/* -------------------------------------------------------------------------- */

/* Base styles for the about page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

/* Section spacing and container */
.page-about__section {
  padding: 60px 0;
  text-align: center;
}

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

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 60px;
  background: #017439; /* Brand primary color for dark background */
  color: #ffffff;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Desktop default */
  aspect-ratio: 16/9;
  max-height: 600px;
}

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

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  max-width: 60ch; /* Restrict H1 width */
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.8;
  max-width: 70ch; /* Restrict paragraph width */
  margin-left: auto;
  margin-right: auto;
}

/* General Section Titles */
.page-about__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 30px;
  color: #017439; /* Brand primary color */
}

.page-about__section-title--white {
  color: #ffffff;
}

/* Text blocks */
.page-about__text-block {
  font-size: 1rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.page-about__text-block--white {
  color: #ffffff;
}

/* CTA Buttons */
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background: #e01010;
  border-color: #e01010;
}

.page-about__btn-secondary {
  background: #ffffff;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
  background: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
}

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

.page-about__card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-about__card-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

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

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  color: #ffffff;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-about__feature-image {
  width: 100%;
  max-width: 300px; /* Constrain image width */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-about__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-about__feature-text {
  font-size: 0.95rem;
  color: #f0f0f0;
  line-height: 1.7;
  flex-grow: 1;
}

.page-about__game-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  font-size: 0.9rem;
  color: #f0f0f0;
  text-align: left;
}

.page-about__game-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.page-about__game-list li::before {
  content: '✓';
  color: #FFFF00; /* Custom yellow for list checkmark */
  position: absolute;
  left: 0;
  top: 0;
}

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

.page-about__commitment-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  border: 1px solid #e0e0e0;
}

.page-about__commitment-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-about__commitment-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

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

.page-about__team-member {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: #ffffff;
}

.page-about__team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #FFFF00; /* Custom yellow border */
}

.page-about__team-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-about__team-role {
  font-size: 0.9rem;
  color: #f0f0f0;
  line-height: 1.6;
}

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

.page-about__future-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  border: 1px solid #e0e0e0;
}

.page-about__future-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-about__future-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  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: #f5f5f5;
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Contact Section */
.page-about__contact-section {
  padding-bottom: 80px;
}

.page-about__contact-info {
  margin-top: 30px;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

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

/* -------------------------------------------------------------------------- */
/*                                 Responsive Styles                          */
/* -------------------------------------------------------------------------- */

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

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

  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section Mobile */
  .page-about__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    padding-bottom: 40px;
  }

  .page-about__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .page-about__hero-image {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    max-height: 300px;
  }

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

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

  .page-about__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* Section Titles Mobile */
  .page-about__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 25px;
  }

  .page-about__text-block {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  /* CTA Buttons Mobile */
  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    margin-top: 25px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Content Grid Mobile */
  .page-about__content-grid,
  .page-about__feature-grid,
  .page-about__commitment-grid,
  .page-about__team-grid,
  .page-about__future-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
    margin-top: 30px;
  }

  .page-about__card,
  .page-about__feature-card,
  .page-about__commitment-item,
  .page-about__future-item,
  .page-about__team-member {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__card-image,
  .page-about__feature-image,
  .page-about__team-avatar {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
  }

  .page-about__card-title,
  .page-about__feature-title,
  .page-about__commitment-title,
  .page-about__future-title,
  .page-about__team-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .page-about__card-text,
  .page-about__feature-text,
  .page-about__commitment-text,
  .page-about__future-text,
  .page-about__team-role {
    font-size: 0.9rem;
  }

  .page-about__game-list {
    font-size: 0.85rem;
  }

  /* FAQ Section Mobile */
  .page-about__faq-list {
    margin-top: 30px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }

  .page-about__faq-qtext {
    font-size: 15px;
  }

  .page-about__faq-toggle {
    font-size: 20px;
    margin-left: 10px;
    width: 24px;
    height: 24px;
  }

  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }

  /* Contact Section Mobile */
  .page-about__contact-section {
    padding-bottom: 60px;
  }

  .page-about__contact-info {
    margin-top: 20px;
    font-size: 1rem;
  }
}

/* Desktop/Tablet (max-width: 1024px) - Adjustments for larger screens if needed, otherwise 768px covers most mobile */
@media (max-width: 1024px) {
  .page-about__container {
    padding: 0 30px;
  }

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

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

  .page-about__hero-description {
    font-size: 1rem;
  }

  .page-about__section-title {
    font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  }

  .page-about__content-grid,
  .page-about__feature-grid,
  .page-about__commitment-grid,
  .page-about__future-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
  }

  .page-about__team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

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

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

/* Ensure all content area containers prevent overflow on mobile */
.page-about__section,
.page-about__card,
.page-about__container,
.page-about__cta-buttons,
.page-about__content-grid,
.page-about__feature-grid,
.page-about__commitment-grid,
.page-about__team-grid,
.page-about__future-grid,
.page-about__faq-list {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent horizontal scroll */
}

@media (max-width: 768px) {
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__cta-buttons,
  .page-about__content-grid,
  .page-about__feature-grid,
  .page-about__commitment-grid,
  .page-about__team-grid,
  .page-about__future-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}