/* style/about.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text should be light */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #ffffff; /* Light text for dark body background */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439; /* Brand color */
  border-radius: 2px;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #017439 100%); /* Mix body background and brand color */
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.page-about__hero-content {
  max-width: 900px;
  z-index: 1;
  color: #ffffff;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
}

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.15; /* Subtler background image */
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* Intro Section */
.page-about__intro-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark body background */
}

.page-about__dark-section {
    background-color: #1a1a2e;
    color: #ffffff;
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__text-block {
    text-align: left;
}

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-about__image-block {
    text-align: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    padding: 80px 0;
    background-color: #0d0d1e; /* Slightly lighter dark background for contrast */
}

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

.page-about__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #ffffff; /* Light text for cards */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__card-title {
    font-size: 1.8em;
    color: #017439; /* Brand color for card titles */
    margin-bottom: 15px;
}

.page-about__card p {
    font-size: 1em;
}

/* Why Choose Section */
.page-about__why-choose-section {
    padding: 80px 0;
}

.page-about__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for feature items */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-about__feature-item:hover {
    transform: translateY(-10px);
}

.page-about__feature-icon {
    width: 100%; /* Ensure image fills container */
    height: auto;
    max-height: 200px; /* Limit height for feature icons */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-about__feature-title {
    font-size: 1.5em;
    color: #017439; /* Brand color for feature titles */
    margin-bottom: 10px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
    padding: 80px 0;
    background-color: #0d0d1e;
}

.page-about__responsibility-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.page-about__responsibility-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-about__responsible-gaming-section a {
    color: #017439; /* Brand color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-about__responsible-gaming-section a:hover {
    color: #00a040; /* Slightly lighter green on hover */
}

/* Join Us Section */
.page-about__join-us-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand color as background for CTA */
    color: #ffffff;
}

.page-about__join-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    max-width: 100%; /* Important for mobile responsiveness */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
    transform: translateY(-3px);
}

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

.page-about__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439; /* Brand color */
    transform: translateY(-3px);
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: #0d0d1e;
}

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

.page-about__faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439; /* Brand color for toggle icon */
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-about__faq-answer p {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-about__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__content-grid {
        grid-template-columns: 1fr;
    }
    .page-about__image-block {
        order: -1; /* Image above text on smaller screens */
    }
    .page-about__feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-about__hero-section {
        padding: 60px 15px;
        min-height: 500px;
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }

    /* Mobile image adaptation */
    .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__image-block,
    .page-about__text-block,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-about__hero-image-wrapper {
        padding: 0 !important; /* Override container padding for full width image */
    }
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
    }

    /* Mobile video adaptation (if any, although none are currently planned for this page) */
    .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: var(--header-offset, 120px) !important;
    }
    .page-about__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    /* Mobile 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;
        margin-bottom: 10px; /* Add spacing between stacked buttons */
        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-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
        overflow: hidden !important;
    }

    .page-about__intro-section,
    .page-about__mission-vision-section,
    .page-about__why-choose-section,
    .page-about__responsible-gaming-section,
    .page-about__join-us-section,
    .page-about__faq-section {
        padding: 40px 0;
    }

    .page-about__faq-question,
    .page-about__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__card-title {
        font-size: 1.5em;
    }
    .page-about__feature-title {
        font-size: 1.3em;
    }
}