/* style/about.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #050505;
  --login-color: #EA7C07;
}

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Dark body background, so light text */
  background-color: var(--bg-dark);
  line-height: 1.6;
}

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

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

.page-about__section-title--light {
  color: var(--text-light);
}

.page-about__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-about__text-block--light {
  color: var(--text-light);
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

.page-about__btn-primary:hover {
  background-color: #1a7fb2; /* Darken primary color */
  border-color: #1a7fb2;
}

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

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-about__hero-content {
  position: relative;
  z-index: 3;
  color: var(--text-light);
  max-width: 900px;
  padding: 20px;
}

.page-about__hero-title {
  font-size: 4em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-about__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: var(--text-light);
}

.page-about__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Intro Section */
.page-about__intro-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-about__content-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* Feature Section */
.page-about__feature-section {
  background-color: var(--primary-color);
  padding: 80px 0;
}

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

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.page-about__feature-title {
  font-size: 1.6em;
  color: var(--text-light);
  margin-bottom: 15px;
}

/* Team & Tech Section */
.page-about__team-tech-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

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

.page-about__content-block-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 15px;
}

/* Security Section */
.page-about__security-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-about__responsible-gambling-cta {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin-top: 60px;
}

/* Services Section */
.page-about__services-section {
  background-color: var(--primary-color);
  padding: 80px 0;
}

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

.page-about__service-card {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__service-image {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__service-title {
  font-size: 1.6em;
  color: var(--text-light);
  margin-bottom: 15px;
}

/* Community Section */
.page-about__community-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

/* FAQ Section */
.page-about__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-about__faq-list {
  margin-top: 40px;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-about__faq-heading {
  font-size: 1.4em;
  margin: 0;
  color: var(--text-light);
}

.page-about__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.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;
}

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

.page-about__faq-answer p {
  margin: 0;
  color: var(--text-light);
}

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

/* Buttons container */
.page-about__cta-buttons,
.page-about__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Media Queries for Responsive Design */

/* Tablet & Smaller Desktop */
@media (max-width: 1024px) {
  .page-about__hero-section {
    height: 500px;
  }

  .page-about__hero-title {
    font-size: 3.5em;
  }

  .page-about__hero-description {
    font-size: 1.2em;
  }

  .page-about__section-title {
    font-size: 2.5em;
  }

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

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

  .page-about__content-card,
  .page-about__feature-item,
  .page-about__service-card {
    padding: 25px;
  }

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

/* Mobile Specific Styles */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-about__hero-section {
    height: 400px !important;
    padding-top: 0 !important; /* Ensure no double padding, assuming shared handles body */
  }

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

  .page-about__hero-title {
    font-size: 2.2em !important;
    margin-bottom: 15px !important;
  }

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

  .page-about__hero-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

  /* LOGO 轮播区域 - Not present in this page, but if it were, it would be here */
  /* If .page-about__logo-item were present, its styles would be: */
  /*
  .page-about__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box !important;
  }
  */

  /* 游戏展示区域 - Handled by service-grid and service-card */
  .page-about__service-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-about__service-card {
    padding: 20px !important;
  }

  .page-about__service-image {
    height: 180px !important;
  }

  /* 通用图片与容器 */
  .page-about img:not(.page-about__logo-item) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-about__container,
  .page-about__content-card,
  .page-about__feature-item,
  .page-about__service-card,
  .page-about__responsible-gambling-cta,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !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: 12px 20px !important;
    font-size: 1em !important;
  }

  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 15px !important; /* Adjusted gap for mobile buttons */
    flex-direction: column !important; /* Stack buttons vertically */
  }

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

  .page-about__text-block {
    font-size: 1em !important;
  }

  .page-about__card-title,
  .page-about__feature-title,
  .page-about__content-block-title,
  .page-about__service-title,
  .page-about__faq-heading {
    font-size: 1.3em !important;
  }

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

  .page-about__intro-section,
  .page-about__team-tech-section,
  .page-about__security-section,
  .page-about__community-section,
  .page-about__faq-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .page-about__feature-section,
  .page-about__services-section,
  .page-about__cta-section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
}