/* -------------------------------------------------------------------------- */
/*                              Base Styles                                   */
/* -------------------------------------------------------------------------- */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--Text-Main); /* Using light text on dark body background */
  background-color: var(--Deep-Navy);
}

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

.page-about__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--Gold);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__section-description {
  font-size: 18px;
  color: var(--Text-Secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: var(--Text-Secondary);
}

.page-about__text-block a {
  color: var(--Glow);
  text-decoration: underline;
}

.page-about__dark-section {
  background-color: var(--Card-B-G);
  color: var(--Text-Main);
}

.page-about__dark-section .page-about__section-title {
  color: var(--Gold);
}

.page-about__dark-section .page-about__section-description {
  color: var(--AFC4E8);
}

/* -------------------------------------------------------------------------- */
/*                                 Buttons                                    */
/* -------------------------------------------------------------------------- */
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-about__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: var(--Text-Main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--Glow);
  border: 2px solid var(--Glow);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary:hover {
  background: var(--Glow);
  color: var(--Deep-Navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------------------------------- */
/*                                Hero Section                                */
/* -------------------------------------------------------------------------- */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  overflow: hidden;
  text-align: center;
  background-color: var(--Deep-Navy);
}

.page-about__hero-image {
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.page-about__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-about__hero-content {
  padding: 60px 15px;
  background: linear-gradient(0deg, var(--Deep-Navy) 0%, rgba(8, 22, 43, 0.8) 50%, rgba(8, 22, 43, 0.5) 100%);
  position: relative;
  z-index: 1;
  margin-top: -150px; /* Overlap image slightly for effect */
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--Gold);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-about__intro-description {
  font-size: 20px;
  color: var(--Text-Secondary);
  max-width: 900px;
  margin: 0 auto 30px auto;
}

/* -------------------------------------------------------------------------- */
/*                            Vision Mission Section                          */
/* -------------------------------------------------------------------------- */
.page-about__vision-mission-section {
  padding: 80px 0;
}

.page-about__vision-mission-section .page-about__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__vision-mission-section .page-about__text-block {
  flex: 1;
}

.page-about__vision-mission-section .page-about__image-block {
  flex: 1;
  text-align: center;
}

.page-about__vision-mission-section .page-about__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
  display: block;
}

/* -------------------------------------------------------------------------- */
/*                               History Section                              */
/* -------------------------------------------------------------------------- */
.page-about__history-section {
  padding: 80px 0;
  background-color: var(--Deep-Navy);
}

.page-about__timeline {
  position: relative;
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: var(--Divider);
  transform: translateX(-50%);
}

.page-about__timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  margin-bottom: 20px;
  background-color: var(--Card-B-G);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--Text-Secondary);
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 12px;
  height: 12px;
  background-color: var(--Glow);
  border-radius: 50%;
  border: 2px solid var(--Deep-Navy);
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::before {
  right: -6px;
  transform: translateX(50%);
}

.page-about__timeline-item:nth-child(even)::before {
  left: -6px;
  transform: translateX(-50%);
}

.page-about__timeline-year {
  font-size: 24px;
  font-weight: bold;
  color: var(--Gold);
  margin-bottom: 10px;
}

.page-about__timeline-description {
  font-size: 16px;
}

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

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

.page-about__feature-card {
  background-color: var(--Card-B-G);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--Text-Secondary);
}

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

.page-about__feature-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--Gold);
  margin-bottom: 15px;
}

/* -------------------------------------------------------------------------- */
/*                          Responsible Gambling Section                      */
/* -------------------------------------------------------------------------- */
.page-about__responsible-gambling-section {
  padding: 80px 0;
  background-color: var(--Deep-Navy);
}

.page-about__responsible-gambling-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__responsible-gambling-content .page-about__text-block {
  flex: 1;
}

.page-about__responsible-gambling-content .page-about__image-block {
  flex: 1;
  text-align: center;
}

.page-about__responsible-gambling-content .page-about__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
  display: block;
}

/* -------------------------------------------------------------------------- */
/*                                 Team Section                               */
/* -------------------------------------------------------------------------- */
.page-about__team-section {
  padding: 80px 0;
}

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

.page-about__team-member {
  background-color: var(--Card-B-G);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--Text-Secondary);
}

.page-about__team-member img {
  width: 100%;
  
  height: auto;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  border: 4px solid var(--Glow);
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-about__member-name {
  font-size: 24px;
  font-weight: bold;
  color: var(--Gold);
  margin-bottom: 5px;
}

.page-about__member-position {
  font-size: 16px;
  color: var(--Glow);
  margin-bottom: 15px;
}

.page-about__member-bio {
  font-size: 15px;
}

/* -------------------------------------------------------------------------- */
/*                                  FAQ Section                               */
/* -------------------------------------------------------------------------- */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--Deep-Navy);
}

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--Card-B-G);
  border: 1px solid var(--Border);
}

details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--Text-Main);
  font-weight: 600;
}

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

details.page-about__faq-item summary.page-about__faq-question:hover {
  background: rgba(var(--Deep-Navy), 0.5);
}

.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--Gold);
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--Glow);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 20px;
  background: rgba(var(--Deep-Navy), 0.3);
  border-radius: 0 0 10px 10px;
  color: var(--Text-Secondary);
}

.page-about__faq-answer p {
  margin-bottom: 10px;
}

.page-about__faq-answer p:last-child {
  margin-bottom: 0;
}

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

/* -------------------------------------------------------------------------- */
/*                             Responsive Styles                              */
/* -------------------------------------------------------------------------- */
/* All images responsive base */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile specific styles */
@media (max-width: 1024px) {
  .page-about__hero-section .page-about__hero-image {
    height: 500px;
  }

  .page-about__hero-content {
    padding: 40px 15px;
    margin-top: -100px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-about__intro-description {
    font-size: 18px;
  }

  .page-about__section-title {
    font-size: 30px;
  }

  .page-about__section-description {
    font-size: 16px;
  }

  .page-about__vision-mission-section .page-about__container,
  .page-about__responsible-gambling-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__history-section .page-about__timeline::before {
    left: 15px;
    transform: translateX(0);
  }

  .page-about__timeline-item {
    width: calc(100% - 30px);
    left: 30px;
    padding: 15px 20px;
    text-align: left;
  }

  .page-about__timeline-item:nth-child(odd) {
    text-align: left;
  }

  .page-about__timeline-item:nth-child(odd)::before {
    left: -6px;
    right: auto;
    transform: translateX(-50%);
  }

  .page-about__timeline-item:nth-child(even) {
    left: 30px;
  }

  .page-about__timeline-year {
    font-size: 20px;
  }

  .page-about__timeline-item::before {
    left: -6px;
    transform: translateX(-50%);
    top: 25px;
  }

  .page-about__features-grid,
  .page-about__team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px 20px;
  }

  .page-about__faq-qtext {
    font-size: 16px;
  }

  .page-about__faq-toggle {
    font-size: 24px;
    width: 25px;
  }

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

@media (max-width: 768px) {
  /* 1. HERO 主图区域 */
  .page-about__hero-section {
    padding-top: 10px;
  }

  .page-about__hero-image {
    height: auto;
    aspect-ratio: 16/9; /* Maintain aspect ratio for smaller screens */
  }

  .page-about__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Let the image define its aspect ratio within contain */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__hero-content {
    padding: 30px 15px;
    margin-top: -80px;
  }

  .page-about__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-about__intro-description {
    font-size: 16px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 5. 按钮与按钮容器 */
  .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;
  }

  /* 3. 装饰主标题 + 长文 SEO 区 */
  .page-about__section-title {
    font-size: clamp(24px, 7vw, 28px);
    padding: 0 15px;
  }

  .page-about__section-description {
    font-size: 15px;
    padding: 0 15px;
  }

  .page-about__container {
    padding: 10px 15px;
  }

  .page-about__vision-mission-section,
  .page-about__history-section,
  .page-about__why-choose-us-section,
  .page-about__responsible-gambling-section,
  .page-about__team-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 40px 0;
  }

  .page-about__vision-mission-section .page-about__text-block,
  .page-about__responsible-gambling-content .page-about__text-block {
    padding: 0 15px;
  }

  .page-about__history-section .page-about__timeline::before {
    left: 15px;
  }

  .page-about__timeline-item {
    width: calc(100% - 30px);
    left: 30px;
    padding: 15px;
  }

  .page-about__timeline-item:nth-child(even) {
    left: 30px;
  }

  .page-about__features-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-about__feature-card,
  .page-about__team-member {
    padding: 20px;
  }

  .page-about__feature-card img,
  .page-about__team-member img {
    
    min-width: 200px;
    min-height: 200px;
  }

  .page-about__team-member img {
    
  }

  /* 4. 通用图片与容器 */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__text-block,
  .page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px;
    padding-right: 15px; */ /* Already handled by page-about__container for content sections */
  }

  details.page-about__faq-item summary.page-about__faq-question {
    padding: 12px 15px;
  }

  .page-about__faq-qtext {
    font-size: 15px;
  }

  .page-about__faq-toggle {
    font-size: 22px;
    width: 20px;
  }

  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 12px;
  }
}