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

/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--page-bg); /* Body background is dark */
}

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

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Using clamp for H1 font size */
  font-weight: bold;
  text-align: center;
  color: var(--text-main);
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 20px auto;
}

.page-about__intro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-secondary);
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

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

.page-about__btn-secondary {
  background: var(--page-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding */
  background-color: var(--page-bg);
  position: relative;
  overflow: hidden;
}

.page-about__hero-image-container {
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px;
  text-align: center;
}

.page-about__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-about__hero-content {
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
}

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

/* Mission & Vision Section */
.page-about__mission-vision .page-about__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__mission-vision .page-about__text-block {
  flex: 1;
}

.page-about__mission-vision .page-about__image-block {
  flex: 1;
  text-align: center;
}

.page-about__mission-vision .page-about__image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

/* Why Choose Section */
.page-about__why-choose {
  background-color: #ffffff;
  color: #333333;
}

.page-about__why-choose .page-about__section-title,
.page-about__why-choose .page-about__card-title {
  color: var(--primary-color);
}

.page-about__why-choose .page-about__card p {
  color: #333333;
}

.page-about__why-choose .page-about__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-about__why-choose .page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.page-about__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-about__card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-about__card p {
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__card .page-about__btn-secondary {
  align-self: flex-start;
  margin-top: auto; /* Push button to bottom */
}

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

/* Core Values Section */
.page-about__core-values {
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-about__value-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 800px;
}

.page-about__value-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid var(--primary-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
}

.page-about__value-item span {
  font-weight: bold;
  color: var(--gold-color);
}

.page-about__image--center {
  display: block;
  margin: 0 auto;
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming .page-about__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-direction: row-reverse; /* Image on left, text on right */
}

.page-about__responsible-gaming .page-about__text-block,
.page-about__responsible-gaming .page-about__image-block {
  flex: 1;
}

.page-about__responsible-gaming .page-about__image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #ffffff;
  color: #333333;
}

.page-about__faq-section .page-about__section-title {
  color: var(--deep-green);
}

.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  cursor: pointer;
  color: #333333;
  list-style: none; /* Hide default marker */
}

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

.page-about__faq-question {
  font-size: 1.1em;
  color: var(--deep-green);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--primary-color);
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  color: #555555;
  font-size: 1em;
  line-height: 1.6;
}

/* CTA Bottom Section */
.page-about__cta-bottom {
  background-color: var(--deep-green);
  padding: 80px 0;
  text-align: center;
}

.page-about__cta-bottom .page-about__section-title {
  color: var(--text-main);
  margin-bottom: 20px;
}

.page-about__cta-bottom .page-about__intro-text {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

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

/* General image styling */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }

  .page-about__mission-vision .page-about__content-wrapper,
  .page-about__responsible-gaming .page-about__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__responsible-gaming .page-about__content-wrapper {
    flex-direction: column; /* Ensure it stays column on smaller screens */
  }

  .page-about__grid-layout {
    grid-template-columns: 1fr;
  }

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

  .page-about__hero-section {
    padding-bottom: 40px;
  }
}

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

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

  .page-about__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  /* Mobile image responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-container,
  .page-about__content-wrapper,
  .page-about__image-block,
  .page-about__text-block,
  .page-about__grid-layout,
  .page-about__value-list,
  .page-about__faq-list,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  /* Mobile button responsive */
  .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;
    padding-right: 15px;
  }

  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  .page-about__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  .page-about__hero-content .page-about__btn-primary {
    width: auto !important; /* Allow button to shrink if text is short */
    max-width: fit-content !important;
    padding-left: 25px !important;
    padding-right: 25px !important;
  }
  .page-about__hero-content .page-about__btn-primary {
    width: auto;
    max-width: fit-content;
  }
}