/* style/about.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

/* General styles for the about page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  padding-bottom: 40px; /* Add some padding at the bottom for content */
}

/* Section styling */
.page-about__section {
  padding: 60px 0;
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-about__section:last-of-type {
  border-bottom: none;
}

.page-about__dark-section {
  background-color: #11271B; /* Card BG, used as dark section background */
  color: #F2FFF6; /* Text Main */
}

.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; /* Image on top, content below */
  align-items: center;
  padding: 10px 0 60px; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden;
}

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

.page-about__hero-section img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-about__hero-content {
  position: relative; /* Ensure content is above the image but not overlapping */
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly to overlap with image but not cover */
  background-color: rgba(17, 39, 27, 0.9); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1; /* Ensure content is above the image */
}

.page-about__main-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold */
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

/* Section Titles */
.page-about__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Gold */
}

.page-about__sub-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

/* Text Blocks */
.page-about__text-block {
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-about__text-block a {
  color: #57E38D; /* Glow */
  text-decoration: none;
}

.page-about__text-block a:hover {
  text-decoration: underline;
}

/* CTA Buttons */
.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #FFFFFF; /* White text for button */
  border: none;
  max-width: 100%; /* Ensure button adapts to mobile */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

.page-about__cta-button--secondary {
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
  margin-left: 20px;
}

.page-about__cta-button--secondary:hover {
  background: #2E7A4E; /* Border color on hover */
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}


/* Mission, Vision, Values Section */
.page-about__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-about__grid-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Text Main */
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__list li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  color: #A7D9B8; /* Text Secondary */
}

.page-about__list-icon {
  margin-right: 10px;
  color: #57E38D; /* Glow */
  font-weight: bold;
  font-size: 1.2em;
}

/* History Section Timeline */
.page-about__timeline {
  position: relative;
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-about__timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #2E7A4E; /* Border color */
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  z-index: 0;
}

.page-about__timeline-item {
  padding: 20px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: #11A84E; /* Primary color */
  border: 4px solid #2AD16F; /* Button color light */
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -10px;
}

.page-about__timeline-year {
  color: #F2C14E; /* Gold */
  font-size: 1.3em;
  margin-bottom: 10px;
}

/* Why Choose Us Section */
.page-about__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-about__feature-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Text Main */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-about__feature-title {
  color: #F2C14E; /* Gold */
  font-size: 1.4em;
  margin-bottom: 15px;
}

/* Responsible Gaming Section */
.page-about__responsibility-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-about__responsibility-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Text Main */
}

/* Technology Section */
.page-about__list--tech {
  margin-top: 30px;
}

.page-about__list--tech li {
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-about__list--tech .page-about__list-icon {
  color: #57E38D; /* Glow */
  font-size: 1.3em;
  margin-right: 15px;
}

/* Community and Partners Section */
.page-about__partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-about__partner-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Text Main */
}

/* Images */
.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__image--large {
  max-width: 100%;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #F2C14E; /* Gold */
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #57E38D; /* Glow */
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate + to form an X or close icon */
}

.page-about__faq-answer {
  padding: 0 20px 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.2em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__hero-content {
    margin-top: -50px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-content {
    margin-top: 0; /* Remove overlap on mobile */
    padding: 30px 15px;
    border-radius: 0;
    background-color: rgba(17, 39, 27, 1); /* Solid background on mobile */
  }

  .page-about__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-about__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-about__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: 1.3em;
  }

  .page-about__timeline::after {
    left: 18px;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 15px;
  }

  .page-about__timeline-item::after {
    left: 10px;
  }

  .page-about__timeline-item:nth-child(odd),
  .page-about__timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }

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

  .page-about__cta-button,
  .page-about__cta-button--secondary {
    margin-left: 0;
    width: 90%;
  }

  /* Mobile image adaptation */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__hero-image-wrapper,
  .page-about__hero-content,
  .page-about__cta-buttons,
  .page-about__faq-list,
  .page-about__timeline,
  .page-about__feature-grid,
  .page-about__responsibility-features,
  .page-about__partners-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* Video adaptation (though no video is explicitly in the HTML, keep the rule for robustness) */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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__video-section {
    padding-top: 10px !important;
  }
  
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button adaptation */
  .page-about__cta-button,
  .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; /* Add padding to text inside button */
    padding-right: 15px;
  }
  
  .page-about__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically */
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.5em;
  }
  .page-about__section-title {
    font-size: 1.4em;
  }
  .page-about__cta-button {
    font-size: 1em;
    padding: 12px 20px;
  }
}