:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --background-dark: #000;
  --background-light: #f9f9f9;
  --card-background-dark-mode: rgba(255, 255, 255, 0.08);
  --border-color-dark-mode: rgba(255, 255, 255, 0.15);
}

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

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

/* Fixed nav bar spacing */
.page-about__hero-section {
  padding-top: 120px; /* Adjust based on actual header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--secondary-color), var(--background-dark));
  color: var(--text-color-dark-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-about__hero-cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-about__hero-cta-button--primary {
  background-color: var(--primary-color);
  color: var(--background-dark);
}

.page-about__hero-cta-button--primary:hover {
  background-color: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.page-about__hero-cta-button--secondary:hover {
  background-color: var(--primary-color);
  color: var(--background-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-about__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
  font-weight: bold;
}

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

.page-about__section-description {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__introduction-section,
.page-about__why-choose-us-section,
.page-about__commitment-section,
.page-about__game-portfolio-section,
.page-about__faq-section,
.page-about__blog-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-color-dark-bg);
}

.page-about__introduction-content {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-about__introduction-card {
  background-color: var(--card-background-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__introduction-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

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

.page-about__advantages-grid,
.page-about__commitment-grid,
.page-about__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__advantage-item,
.page-about__commitment-item,
.page-about__game-card {
  background-color: var(--card-background-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__advantage-icon,
.page-about__commitment-image,
.page-about__game-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-about__item-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-background-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-color-dark-bg);
  pointer-events: none;
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change to X for active */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.8);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
  background: var(--card-background-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-top: none;
  border-radius: 0 0 5px 5px;
}

/* Blog Section */
.page-about__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__blog-item {
  background-color: var(--card-background-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

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

.page-about__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-about__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color-dark-mode);
}

.page-about__blog-item-title {
  font-size: 1.4em;
  color: var(--primary-color);
  padding: 15px 20px 10px;
  margin: 0;
  font-weight: bold;
}

.page-about__blog-item-excerpt {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 20px 15px;
  flex-grow: 1; /* Push date to bottom */
}

.page-about__blog-item-date {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 20px 15px;
  display: block;
  text-align: right;
}

/* General image responsive styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on mobile header height */
    padding-bottom: 40px;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-about__hero-cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-about__introduction-section,
  .page-about__why-choose-us-section,
  .page-about__commitment-section,
  .page-about__game-portfolio-section,
  .page-about__faq-section,
  .page-about__blog-section {
    padding: 50px 0;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__introduction-card,
  .page-about__advantage-item,
  .page-about__commitment-item,
  .page-about__game-card {
    padding: 25px;
  }
  .page-about__card-title,
  .page-about__item-title {
    font-size: 1.4em;
  }
  .page-about__introduction-image,
  .page-about__advantage-icon,
  .page-about__commitment-image,
  .page-about__game-image {
    width: 100px;
    height: 100px;
  }

  /* FAQ Mobile */
  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-about__faq-question h3 {
    font-size: 1em;
    width: calc(100% - 40px);
  }
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }

  /* Blog Mobile */
  .page-about__blog-image {
    height: 180px;
  }
  .page-about__blog-item-title {
    font-size: 1.2em;
    padding: 12px 15px 8px;
  }
  .page-about__blog-item-excerpt {
    font-size: 0.9em;
    padding: 0 15px 12px;
  }
  .page-about__blog-item-date {
    padding: 0 15px 12px;
  }

  /* Universal image, video, button mobile styles */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-about video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-about__section,
  .page-about__container,
  .page-about__card,
  .page-about__introduction-card,
  .page-about__advantage-item,
  .page-about__commitment-item,
  .page-about__game-card,
  .page-about__blog-item,
  .page-about__hero-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }
  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.6em;
  }
  .page-about__introduction-card,
  .page-about__advantage-item,
  .page-about__commitment-item,
  .page-about__game-card {
    max-width: 100%;
  }
  .page-about__introduction-content,
  .page-about__advantages-grid,
  .page-about__commitment-grid,
  .page-about__game-grid,
  .page-about__blog-list {
    grid-template-columns: 1fr;
  }
}