/* style/about.css */

/* --- General Styles for Page About --- */
.page-about {
  background-color: #0A0A0A; /* Background color from custom scheme */
  color: #FFF6D6; /* Text Main color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* General padding at the bottom */
}

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

.page-about__container--centered {
  text-align: center;
}

.page-about__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Main brand color for titles */
  text-align: center;
  margin-bottom: 30px;
  margin-top: 50px;
  font-weight: bold;
}

.page-about__description,
.page-about__section-intro,
.page-about p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #FFF6D6; /* Ensure text is visible on dark background */
}

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as per rules */
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #111111; /* Card BG for this section */
  border-bottom: 1px solid #3A2A12; /* Border color */
}

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

.page-about__hero-section .page-about__container {
  max-width: 900px;
  text-align: center;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* H1 font size clamp, no fixed large value */
  color: #FFD36B; /* Glow color for main title */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-about__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A; /* Dark text for light button */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* --- Mission Section --- */
.page-about__mission-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG */
  border-bottom: 1px solid #3A2A12;
}

.page-about__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

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

.page-about__mission-section .page-about__image {
  flex: 0 0 45%;
  max-width: 45%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__btn-secondary {
  display: inline-block;
  background: #0A0A0A; /* Background color */
  color: #F2C14E; /* Main brand color */
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background 0.3s ease, transform 0.2s ease;
  border: 2px solid #F2C14E; /* Main brand color border */
  cursor: pointer;
  margin-top: 20px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-secondary:hover {
  background: #F2C14E;
  color: #0A0A0A;
  transform: translateY(-2px);
}

/* --- Why Choose Us Section --- */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Background color */
  border-bottom: 1px solid #3A2A12;
}

.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-about__feature-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #FFD36B; /* Glow color */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__feature-card p {
  font-size: 1em;
  color: #FFF6D6;
  flex-grow: 1; /* Allow paragraph to take available space */
}

.page-about__card-link {
  display: inline-block;
  color: #F2C14E; /* Main brand color */
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-about__card-link:hover {
  color: #FFD36B; /* Glow color on hover */
  text-decoration: underline;
}

.page-about__why-choose-us-section .page-about__image {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 50px auto 0;
  border-radius: 8px;
  object-fit: cover;
}

/* --- History Section --- */
.page-about__history-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG */
  border-bottom: 1px solid #3A2A12;
}

.page-about__history-section .page-about__section-title {
  color: #F2C14E;
}

.page-about__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A; /* Dark text for light button */
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  margin-top: 30px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* --- Responsible Gaming Section --- */
.page-about__responsible-gaming-section {
  padding: 80px 0;
  background-color: #0A0A0A; /* Background color */
  border-bottom: 1px solid #3A2A12;
}

.page-about__responsibility-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-about__responsibility-list li {
  background: #111111; /* Card BG */
  border-left: 5px solid #F2C14E; /* Main brand color */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 1.05em;
  color: #FFF6D6;
}

.page-about__responsibility-list li strong {
  color: #FFD36B; /* Glow color */
}

.page-about__responsible-gaming-section .page-about__image {
  flex: 0 0 45%;
  max-width: 45%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* --- Final CTA Section --- */
.page-about__cta-final-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG */
}

.page-about__cta-final-section .page-about__description {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__cta-final-section .page-about__image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 50px auto 0;
  border-radius: 8px;
  object-fit: cover;
}

/* --- Responsive Styles (Mobile First / Desktop Override) --- */

/* Universal Image and Button Responsiveness */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__button-group,
.page-about__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-about__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-about__mission-section .page-about__image,
  .page-about__responsible-gaming-section .page-about__image {
    max-width: 100%;
    flex: none;
  }
  .page-about__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-about__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }
  .page-about__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
  }
  .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__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;
  }

  /* Specific mobile rules for sections on *this* page */
  .page-about__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .page-about__mission-section .page-about__image,
  .page-about__responsible-gaming-section .page-about__image {
    max-width: 100% !important;
    flex: none;
  }
  .page-about__features-grid {
    grid-template-columns: 1fr; /* Single column for feature cards */
    gap: 20px;
  }
  .page-about__feature-card {
    padding: 20px;
  }
  .page-about__responsibility-list li {
    padding: 10px 15px;
    font-size: 1em;
  }
  .page-about__cta-final-section .page-about__image {
    margin-top: 30px;
  }

  /* --- MANDATORY @media (max-width: 768px) blocks for other sections (as per strict rules) --- */
  /* Although these sections are not on about.html, the CSS MUST contain their media queries. */

  /* 1. 顶区轮播: .page-about__hero-carousel-section */
  .page-about__hero-carousel-section { /* Placeholder for homepage carousel */
    padding-top: 10px !important;
    padding-bottom: 20px;
  }
  .page-about__hero-slider {
    position: relative;
    overflow: hidden;
  }
  .page-about__hero-slide {
    display: none;
    width: 100%;
    text-align: center;
  }
  .page-about__hero-slide.is-active {
    display: block;
  }
  .page-about__hero-slide img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }
  .page-about__hero-slider-prev,
  .page-about__hero-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5em;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .page-about__hero-slider-prev { left: 10px; }
  .page-about__hero-slider-next { right: 10px; }

  /* 2. 操作指引外框 + 五张 `team` 竖型卡: .page-about__guide-box */
  .page-about__guide-box { /* Placeholder for homepage guide box */
    padding: 15px 10px 20px;
  }
  .page-about__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 8px;
  }
  .page-about__guide-card {
    padding-top: 0 !important;
    flex: none;
    max-width: 100% !important;
  }
  .page-about__guide-card--pos-1,
  .page-about__guide-card--pos-2 {
    grid-column: span 3;
  }
  .page-about__guide-card--pos-3,
  .page-about__guide-card--pos-4,
  .page-about__guide-card--pos-5 {
    grid-column: span 2;
  }
  .page-about__guide-card img {
    aspect-ratio: 250/350;
    object-fit: contain;
    width: 100% !important;
    height: auto !important;
  }

  /* 3. `home_content` 外框: .page-about__home-content-box */
  .page-about__home-content-box { /* Placeholder for homepage content box */
    max-width: 100% !important;
    height: auto !important;
    border: none;
    box-shadow: none;
    padding: 10px 0;
  }
  .page-about__home-content-inner {
    height: auto !important;
    overflow: visible !important;
  }

  /* 4. 博客卡片区: .page-about__blog-section */
  .page-about__blog-section { /* Placeholder for homepage blog section */
    padding: 40px 0;
  }
  .page-about__blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
  }
  .page-about__blog-card {
    background: #111111;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .page-about__blog-card-image {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    aspect-ratio: 16/9;
  }
  .page-about__blog-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .page-about__blog-card-title {
    font-size: 1.1em;
    color: #FFD36B;
    margin-bottom: 10px;
    line-height: 1.3;
  }
  .page-about__blog-card-meta {
    font-size: 0.85em;
    color: #F2C14E;
    margin-bottom: 10px;
  }
  .page-about__blog-card-excerpt {
    font-size: 0.9em;
    color: #FFF6D6;
    margin-bottom: 15px;
  }
  .page-about__blog-card-link {
    display: inline-block;
    color: #F2C14E;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
  }
  .page-about__blog-card-link:hover {
    color: #FFD36B;
    text-decoration: underline;
  }
  @media (max-width: 480px) {
    .page-about__blog-grid {
      grid-template-columns: 1fr !important;
    }
  }
}