/* style/about.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-about {
  color: #ffffff; /* Body background is dark (#0a0a0a), so text should be light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0a0a0a;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.3; /* Slightly transparent to allow text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-about__intro-text {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-about__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-about__sub-title {
  font-size: clamp(1.4em, 2vw, 1.8em);
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

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

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

@media (min-width: 768px) {
  .page-about__grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-about__values-section {
  background-color: #1a1a1a; /* Darker background for contrast on body */
  padding: 60px 20px;
}

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

.page-about__value-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-about__value-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__value-title {
  font-size: clamp(1.2em, 1.8vw, 1.5em);
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-about__why-choose-us .page-about__grid-container {
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 992px) {
  .page-about__why-choose-us .page-about__grid-container {
    grid-template-columns: 1fr 1.5fr;
  }
}

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

.page-about__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #f0f0f0;
}

.page-about__feature-heading {
  font-size: clamp(1.1em, 1.6vw, 1.3em);
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-about__responsible-gambling {
  background-color: #1a1a1a;
  padding: 60px 20px;
}

.page-about__responsible-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-about__responsible-list li {
  margin-bottom: 10px;
}

.page-about__responsible-gambling a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-about__cta-section {
  text-align: center;
  padding: 60px 20px;
}

.page-about__cta-text {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-about__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #1e87b7;
}

/* Specific button color for Login */
a[href*="login.html"].page-about__btn-primary,
a[href*="register.html"].page-about__btn-primary {
  background-color: #EA7C07;
  border-color: #EA7C07;
}

a[href*="login.html"].page-about__btn-primary:hover,
a[href*="register.html"].page-about__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

.page-about__faq-section {
  padding: 60px 20px;
}

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

.page-about__faq-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  font-weight: bold;
  font-size: clamp(1em, 1.5vw, 1.1em);
  color: #FFFFFF;
  list-style: none; /* For details/summary */
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

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

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 0.95em;
  color: #f0f0f0;
}

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

/* Ensure content images are not smaller than 200px */
.page-about img:not(.page-about__hero-image) {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Responsive styles for images, videos, buttons */
@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__hero-image {
    position: relative !important; /* Adjust hero image positioning for mobile to be in flow */
    opacity: 0.5 !important;
  }

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

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-vision,
  .page-about__values-section,
  .page-about__why-choose-us,
  .page-about__responsible-gambling,
  .page-about__cta-section,
  .page-about__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
  }

  .page-about__main-title {
    font-size: 2em !important;
  }

  .page-about__intro-text {
    font-size: 1em !important;
  }

  .page-about__section-title {
    font-size: 1.8em !important;
  }

  .page-about__sub-title {
    font-size: 1.3em !important;
  }

  .page-about__value-icon {
    max-width: 150px !important;
  }

  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !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;
    text-align: center;
  }
}