/* style/blog.css */

.page-blog__hero-section {
  padding-top: 10px; /* Rely on body for header offset, use small top padding */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #e0f2f7, #ffffff);
  color: #333333;
}

.page-blog__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 40px 16px;
  gap: 40px;
}

.page-blog__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Clamp for responsive H1, no fixed large size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-blog__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #333333;
}

.page-blog__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-blog__btn-primary:hover {
  background-color: #1e87b3;
  border-color: #1e87b3;
}

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

.page-blog__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1e87b3;
  border-color: #1e87b3;
}

.page-blog__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-blog__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-blog__articles-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  color: #333333;
}

.page-blog__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-blog__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-blog__section-title--light {
  color: #ffffff;
}

.page-blog__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
  color: #555555;
}

.page-blog__section-description--light {
  color: #e0e0e0;
}

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

.page-blog__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-blog__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__article-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
  line-height: 1.4;
}

.page-blog__article-meta {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  flex-grow: 1;
}

.page-blog__view-all {
  text-align: center;
  margin-top: 50px;
}

.page-blog__cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  text-align: center;
}

.page-blog__faq-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-blog__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__faq-item {
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-blog__faq-item summary {
  display: block;
  padding: 20px 25px;
  cursor: pointer;
  outline: none;
  list-style: none;
  position: relative;
  font-weight: 600;
  font-size: 1.1em;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-blog__faq-item summary:hover {
  background-color: #e9ecef;
}

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

.page-blog__faq-qtext {
  display: block;
  padding-right: 30px;
}

.page-blog__faq-toggle {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: '−';
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-blog__faq-answer p {
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-container {
    padding: 30px 16px;
    gap: 30px;
  }

  .page-blog__hero-content,
  .page-blog__hero-image {
    flex: 1 1 100%;
    text-align: center;
  }

  .page-blog__main-title {
    font-size: clamp(2.2em, 5vw, 2.6em);
  }

  .page-blog__cta-buttons {
    justify-content: center;
  }

  .page-blog__section-title {
    font-size: 2em;
  }

  .page-blog__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section { /* HERO 双栏 */
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-blog__hero-container {
    flex-direction: column;
    padding: 20px 15px;
    gap: 25px;
  }

  .page-blog__hero-content {
    order: 2;
    text-align: center;
  }

  .page-blog__hero-image {
    order: 1;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.4em);
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-blog__section-title { /* 各 content 模块 */
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-blog__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__article-image {
    height: 180px;
  }

  .page-blog__article-title {
    font-size: 1.2em;
  }

  .page-blog__cta-section {
    padding: 60px 0;
  }

  .page-blog__faq-section {
    padding: 40px 0;
  }

  .page-blog__faq-item summary {
    padding: 18px 20px;
    font-size: 1em;
  }

  .page-blog__faq-toggle {
    right: 20px;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }

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

  .page-blog__articles-section,
  .page-blog__cta-section,
  .page-blog__faq-section,
  .page-blog__article-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Module 1 three-column round image is not present on this page, so no specific rule for it. */
  /* Game tabs is not present on this page, so no specific rule for it. */
}