/* style/about.css */
/* Page-specific styles for the About Us page */

.page-about {
  background-color: #0A0A0A; /* From custom配色 -> 背景 */
  color: #FFF6D6; /* From custom配色 -> Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Fixed header spacing - body padding-top is handled by shared.css */
/* First content section within main should have a small top padding */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding after body's header offset */
  padding-bottom: 80px;
  background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Brand colors */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-top: -150px; /* Pull content up over the bottom part of the hero image */
  padding: 40px;
  background-color: rgba(17, 17, 17, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  border: 1px solid #3A2A12; /* Border from custom配色 */
}

.page-about__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Flexible font size for H1 */
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-about__hero-description {
  font-size: 1.1rem;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* General Section Styles */
.page-about__section {
  padding: 60px 0;
  border-bottom: 1px solid #3A2A12; /* Border from custom配色 */
}

.page-about__section:last-of-type {
  border-bottom: none;
}

.page-about__section-title {
  font-size: 2.5rem;
  color: #F2C14E; /* Main color for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

/* Story Section */
.page-about__story-section {
  background-color: #0A0A0A; /* Background from custom配色 */
}

.page-about__story-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.page-about__story-text {
  flex: 2;
  min-width: 300px;
}

.page-about__story-text p {
  margin-bottom: 1.5em;
  color: #FFF6D6; /* Text Main */
}

.page-about__story-subtitle {
  font-size: 1.8rem;
  color: #FFD36B; /* Auxiliary color for subtitles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__story-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-about__story-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-height: 200px;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  background-color: #111111; /* Card BG from custom配色 */
}

.page-about__why-choose-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__feature-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border from custom配色 */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #FFF6D6; /* Text Main */
  text-align: center;
}

.page-about__card-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Main color for card titles */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-about__feature-card p {
  color: #FFF6D6; /* Text Main */
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  background-color: #0A0A0A; /* Background from custom配色 */
}

.page-about__responsible-gaming-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap-reverse;
}

.page-about__responsible-gaming-text {
  flex: 2;
  min-width: 300px;
}

.page-about__responsible-gaming-text p {
  margin-bottom: 1.5em;
  color: #FFF6D6; /* Text Main */
}

.page-about__responsible-gaming-subtitle {
  font-size: 1.8rem;
  color: #FFD36B; /* Auxiliary color for subtitles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__responsible-gaming-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-about__responsible-gaming-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-height: 200px;
}

/* Future Section */
.page-about__future-section {
  background-color: #111111; /* Card BG from custom配色 */
}

.page-about__future-content p {
  color: #FFF6D6; /* Text Main */
  margin-bottom: 1.5em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-about__future-subtitle {
  font-size: 1.8rem;
  color: #FFD36B; /* Auxiliary color for subtitles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
}

/* CTA Section */
.page-about__cta-section {
  text-align: center;
  background-color: #0A0A0A; /* Background from custom配色 */
}

.page-about__cta-description {
  font-size: 1.1rem;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box; /* For mobile responsiveness */
  white-space: normal; /* For mobile responsiveness */
  word-wrap: break-word; /* For mobile responsiveness */
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button color */
  color: #ffffff; /* White text on gradient */
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E; /* Border from custom配色 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary:hover {
  background-color: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #111111; /* Card BG from custom配色 */
}

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

.page-about__faq-item {
  background-color: #0A0A0A; /* Background for individual FAQ item */
  border: 1px solid #3A2A12; /* Border from custom配色 */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF6D6; /* Text Main */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  background-color: #111111; /* Card BG */
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #1A1A1A; /* Slightly lighter hover */
}

.page-about__faq-title {
  color: #FFF6D6; /* Text Main */
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #F2C14E; /* Main color for toggle */
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Plus to X */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

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

.page-about__faq-answer p {
  margin-bottom: 0;
  color: #FFF6D6; /* Text Main */
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__story-content,
  .page-about__responsible-gaming-content {
    flex-direction: column;
    align-items: center;
  }

  .page-about__story-image-wrapper,
  .page-about__responsible-gaming-image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-bottom: 60px;
  }

  .page-about__hero-content {
    padding: 20px;
    margin-top: -100px; /* Adjust overlap for smaller screens */
  }

  .page-about__hero-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .page-about__hero-description {
    font-size: 1rem;
  }

  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    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__section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-about__story-subtitle,
  .page-about__responsible-gaming-subtitle,
  .page-about__future-subtitle {
    font-size: 1.5rem;
  }

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

  .page-about__card-title {
    font-size: 1.3rem;
  }

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

  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific adjustment for hero section padding-top on mobile if needed, though shared.css handles body */
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media query for --header-offset */
  }
}

@media (max-width: 480px) {
  .page-about__hero-content {
    margin-top: -80px;
  }
  .page-about__hero-cta-buttons {
    gap: 10px;
  }
}

/* Ensure no filter on images */
.page-about img {
  filter: none;
}