/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom */
  background-color: #0A4B2C; /* Deep Green for hero background */
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__hero-title {
  font-size: clamp(2em, 3.5vw, 3.2em); /* H1 font size constraint */
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-blog__hero-description {
  font-size: 1.15em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-blog__cta-button--secondary {
  background: #11271B; /* Card BG */
  border: 2px solid #2E7A4E; /* Border */
  color: #F2FFF6;
}

.page-blog__cta-button--secondary:hover {
  background: #1E3A2A; /* Deep Green variant */
  border-color: #57E38D; /* Glow */
}

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

.page-blog__blog-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

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

.page-blog__blog-card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__blog-card-content {
  padding: 25px;
}

.page-blog__blog-card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-blog__blog-card-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__blog-card-title a:hover {
  color: #57E38D; /* Glow */
}

.page-blog__blog-card-excerpt {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-blog__blog-card-date {
  font-size: 0.85em;
  color: #A7D9B8; /* Text Secondary */
  display: block;
  margin-bottom: 15px;
}

.page-blog__blog-card-link {
  display: inline-block;
  color: #2AD16F;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__blog-card-link:hover {
  color: #57E38D;
}

.page-blog__view-all-button-wrapper {
  text-align: center;
  margin-top: 20px;
}

/* General Content Sections */
.page-blog__dark-section {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  padding: 60px 20px;
}

.page-blog__dark-section .page-blog__section-title {
  color: #F2FFF6;
}

.page-blog__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-blog__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-blog__text-content {
  flex: 1;
  min-width: 300px;
}

.page-blog__image-content {
  flex: 1;
  min-width: 300px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__text-content p {
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__text-content p strong {
  color: #F2FFF6; /* Text Main */
}

.page-blog__text-content a {
  color: #2AD16F;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-blog__text-content a:hover {
  color: #57E38D;
}

.page-blog__benefits-list, .page-blog__game-list, .page-blog__tips-list, .page-blog__responsible-list, .page-blog__promotions-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-blog__benefits-list li, .page-blog__game-list li, .page-blog__tips-list li, .page-blog__responsible-list li, .page-blog__promotions-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%232AD16F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
  background-size: 18px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__benefits-list li strong, .page-blog__game-list li strong, .page-blog__tips-list li strong, .page-blog__responsible-list li strong, .page-blog__promotions-list li strong {
  color: #F2FFF6; /* Text Main */
}

.page-blog__register-steps {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__register-steps li {
  margin-bottom: 10px;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__register-steps li strong {
  color: #F2FFF6; /* Text Main */
}

.page-blog__button-wrapper {
  text-align: center;
  margin-top: 30px;
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 30px;
}

.page-blog__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  color: #F2FFF6; /* Text Main */
  transition: background-color 0.3s ease;
}

.page-blog__faq-item summary:hover {
  background-color: #1E3A2A; /* Deep Green variant */
}

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

.page-blog__faq-item .page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #2AD16F;
}

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

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* Conclusion Section */
.page-blog__conclusion-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #A7D9B8; /* Text Secondary */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: clamp(2em, 4.5vw, 2.8em);
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__blog-card-title {
    font-size: 1.2em;
  }
  .page-blog__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-blog__content-wrapper {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 20px 15px;
  }
  .page-blog__hero-section {
    padding: 10px 15px 40px;
  }
  .page-blog__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-blog__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__blog-card-image {
    height: 180px;
  }
  .page-blog__blog-card-content {
    padding: 20px;
  }
  .page-blog__blog-card-title {
    font-size: 1.1em;
  }
  .page-blog__text-content, .page-blog__image-content {
    min-width: unset;
    width: 100%;
  }
  .page-blog__content-wrapper {
    flex-direction: column !important; /* Force column for mobile */
    gap: 20px;
  }
  .page-blog__dark-section {
    padding: 40px 15px;
  }
  .page-blog__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }

  /* Mobile image responsive adaptation */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__video-section {
    padding-top: 10px !important; /* body 已承担 --header-offset，此处禁止 var(--header-offset) */
  }

  /* Mobile button responsive adaptation */
  .page-blog__cta-button,
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog 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-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container,
  .page-blog__button-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }
}