:root {
  --primary-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;
}

/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Use custom text color */
  background-color: var(--background-color); /* Use custom background color */
  line-height: 1.6;
  font-size: 16px;
}

/* Base styles for sections and containers */
.page-about__section {
  padding: 60px 20px;
  text-align: center;
}

.page-about__dark-section {
  background-color: var(--card-bg-color); /* Darker background for some sections */
  color: var(--text-main-color);
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden; /* Ensure no overflow from hero image */
}

.page-about__hero-content-wrapper {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column; /* Image above, text below */
    align-items: center;
    box-sizing: border-box;
}

.page-about__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and text */
}

.page-about__hero-text-container {
    max-width: 800px;
    padding: 0 15px;
    box-sizing: border-box;
    color: var(--text-main-color);
    text-align: center;
}

.page-about__hero-title {
  font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem); /* Responsive H1 font size */
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--gold-color); /* Use gold for striking title */
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-secondary-color);
}

.page-about__hero-cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on mobile */
  gap: 20px;
  justify-content: center;
}

/* General button styles */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons fit on mobile */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--glow-color); /* Use glow color for secondary button text */
  border: 2px solid var(--glow-color);
}

.page-about__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-2px);
}

/* Section titles */
.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw + 1rem, 2.8rem);
  font-weight: bold;
  margin-bottom: 40px;
  color: var(--text-main-color);
}

.page-about__sub-title {
  font-size: clamp(1.4rem, 2.5vw + 1rem, 2.2rem);
  font-weight: bold;
  margin-bottom: 25px;
  color: var(--text-main-color);
}

/* Content blocks */
.page-about__content-block {
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: left;
  color: var(--text-secondary-color);
}

.page-about__content-block p {
  margin-bottom: 15px;
}

/* Image styles */
.page-about__image-full-width {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.page-about__image-centered {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-about__image-responsive {
    width: 100%;
    height: auto;
    max-width: 100%; /* Default to 100% for flex child */
    display: block;
    border-radius: 10px;
    object-fit: cover;
}


/* Flex containers */
.page-about__flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  text-align: left;
}

.page-about__content-column {
  flex: 1;
  min-width: 300px; /* Minimum width for columns before wrapping */
  color: var(--text-secondary-color);
}

.page-about__image-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Core Values Grid */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-about__value-card.page-about__card {
  background-color: var(--deep-green-color); /* Use Deep Green for cards on dark section */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-main-color);
}

.page-about__card-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold-color); /* Gold for card titles */
}

/* List styles */
.page-about__list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.page-about__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: var(--text-secondary-color);
}

.page-about__list-item::before {
  content: '✔'; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: var(--glow-color);
  font-weight: bold;
}

/* Inline link for responsible gaming */
.page-about__link-inline {
    color: var(--glow-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-about__link-inline:hover {
    color: var(--gold-color);
}

/* Text alignment */
.page-about__text-center {
  text-align: center;
}

/* CTA Section */
.page-about__cta-buttons {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-about__hero-description {
    font-size: 1rem;
  }
  .page-about__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-about__sub-title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 15px;
  }

  .page-about__hero-image {
    margin-bottom: 20px;
  }

  .page-about__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important; /* Mobile buttons full width */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__flex-container {
    flex-direction: column;
    gap: 20px;
  }

  .page-about__flex-reverse-mobile {
    flex-direction: column-reverse; /* Image below text on mobile */
  }

  .page-about__content-column,
  .page-about__image-column {
    min-width: unset; /* Remove min-width on mobile */
    width: 100%;
  }

  .page-about__values-grid {
    grid-template-columns: 1fr; /* Single column for cards on mobile */
    gap: 20px;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile container/section responsiveness */
  .page-about__section,
  .page-about__container,
  .page-about__hero-content-wrapper,
  .page-about__hero-text-container,
  .page-about__content-block,
  .page-about__value-card,
  .page-about__cta-buttons,
  .page-about__flex-container,
  .page-about__content-column,
  .page-about__image-column {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
  }

  /* Ensure text on mobile is readable */
  .page-about p, .page-about li {
    font-size: 15px;
    line-height: 1.6;
  }
}