/* style/about.css */

/* --- Base Styles --- */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #333333); /* Default text color on light background */
  background-color: var(--bg-primary, #F5F7FA); /* Main background color */
}

/* Ensure text on brand color backgrounds is white */
.page-about__dark-section,
.page-about__hero-content,
.page-about__cta-banner .page-about__cta-content {
  color: #ffffff;
}

/* --- Hero Section --- */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #E53935; /* Primary brand color as hero background */
}

.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;
  min-width: 200px;
  min-height: 200px;
}

.page-about__hero-content {
  padding: 20px 15px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  background-color: rgba(229, 57, 53, 0.9); /* Semi-transparent brand color for content */
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1; /* Ensure content is above the image layer */
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-about__subtitle {
  font-size: clamp(1em, 2vw, 1.25em);
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-about__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* --- General Section Styles --- */
.page-about__section {
  padding: 60px 0;
  overflow: hidden; /* Prevent content overflow */
}

.page-about__introduction {
  background-color: var(--card-bg, #FFFFFF);
}

.page-about__mission-vision,
.page-about__commitment,
.page-about__security-responsible-gaming,
.page-about__customer-support,
.page-about__faq-section {
  background-color: var(--bg-primary, #F5F7FA);
}

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

.page-about__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  color: var(--text-main, #333333);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-about__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #FF5A4F 0%, #E53935 100%);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-about__sub-title {
  font-size: clamp(1.4em, 2.5vw, 1.8em);
  font-weight: 600;
  color: var(--text-main, #333333);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__text-block {
  font-size: 1.05em;
  color: var(--text-main, #333333);
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__text-block--light {
  color: #f0f0f0;
}

.page-about__text-block--small {
  font-size: 0.9em;
  text-align: center;
  margin-top: 30px;
}

/* --- Flex Container Layouts --- */
.page-about__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__flex-container--reverse {
  flex-direction: row-reverse;
}

.page-about__content-column {
  flex: 1;
}

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

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

/* --- Core Values Grid --- */
.page-about__core-values {
  background-color: var(--card-bg, #FFFFFF);
}

.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__value-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid var(--border-color, #E0E0E0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__card-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #E53935; /* Brand primary color for card titles */
  margin-bottom: 10px;
}

.page-about__card-text {
  font-size: 0.95em;
  color: var(--text-main, #333333);
}

/* --- Commitment List --- */
.page-about__commitment-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-about__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: var(--text-main, #333333);
}

.page-about__list-item::before {
  content: '✔'; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: #E53935;
  font-weight: bold;
  font-size: 1.2em;
}

/* --- Security & Responsible Gaming Grid --- */
.page-about__security-responsible-gaming {
  background-color: var(--bg-primary, #F5F7FA);
}

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

.page-about__grid-item {
  background-color: var(--card-bg, #FFFFFF);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color, #E0E0E0);
  text-align: center;
}

.page-about__grid-item .page-about__image {
  margin: 20px auto;
  min-width: 200px;
  min-height: 200px;
}

/* --- Customer Support --- */
.page-about__customer-support {
  text-align: center;
  background-color: var(--card-bg, #FFFFFF);
}

.page-about__support-channels {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- FAQ Section --- */
.page-about__faq-section {
  background-color: var(--bg-primary, #F5F7FA);
}

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

.page-about__faq-item {
  background-color: var(--card-bg, #FFFFFF);
  border: 1px solid var(--border-color, #E0E0E0);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-main, #333333);
  cursor: pointer;
  background-color: #fcfcfc;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-about__faq-item[open] > .page-about__faq-question {
  background-color: #f0f0f0;
}

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

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

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--text-main, #333333);
}

/* --- Join Us CTA Banner --- */
.page-about__join-us {
  padding: 0; /* Remove default padding as cta-banner has its own */
}

.page-about__cta-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  min-height: 300px;
  background-color: #E53935; /* Fallback background */
}

.page-about__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* Slightly dim the image for text readability */
  z-index: 0;
  min-width: 200px;
  min-height: 200px;
}

.page-about__cta-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 800px;
}

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

/* --- Responsive Design (Tablet & Mobile) --- */

/* Tablet styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: -60px;
  }

  .page-about__flex-container {
    flex-direction: column;
    text-align: center;
  }

  .page-about__flex-container--reverse {
    flex-direction: column; /* Revert to column for smaller screens */
  }

  .page-about__content-column,
  .page-about__image-column {
    flex: none;
    width: 100%;
  }

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

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

/* Mobile styles */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 30px !important;
  }

  .page-about__hero-content {
    margin-top: -40px !important; /* Adjust overlap for mobile */
    padding: 20px 15px !important;
  }

  .page-about__main-title {
    font-size: 2em !important; /* Smaller H1 for mobile */
    margin-bottom: 10px !important;
  }

  .page-about__subtitle {
    font-size: 1em !important;
    margin-bottom: 20px !important;
  }

  /* 通用图片与容器 */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Enforce minimum size even on mobile */
    min-height: 200px !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__grid-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 按钮与按钮容器 */
  .page-about__cta-buttons,
  .page-about__support-channels {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important; /* Add padding to button containers */
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }

  .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 !important; /* Ensure button text has padding */
    padding-right: 15px !important;
  }

  /* 其他内容模块 */
  .page-about__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px !important;
  }

  .page-about__sub-title {
    font-size: 1.2em !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
  }

  .page-about__text-block,
  .page-about__card-text,
  .page-about__list-item {
    font-size: 0.95em !important;
  }

  .page-about__values-grid {
    grid-template-columns: 1fr !important; /* Single column for values */
  }

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

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

  .page-about__cta-content {
    padding: 30px 15px !important;
  }

  /* Mobile responsive for FAQ */
  .page-about__faq-question {
    font-size: 1em !important;
    padding: 15px !important;
  }
  .page-about__faq-answer {
    padding: 0 15px 15px !important;
    font-size: 0.95em !important;
  }
}