/* style/blog.css */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #ffffff;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

/* Hero Section */
.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding for non-homepage */
  padding-bottom: 60px;
  background-color: #017439;
  color: #ffffff;
}

.page-blog__hero-content {
  max-width: 800px;
  padding: 20px;
  z-index: 1;
}

.page-blog__hero-title {
  font-size: clamp(2em, 4vw, 3.5em);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-blog__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

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

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

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

.page-blog__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

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

.page-blog__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #FFFF00;
}

.page-blog__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

.page-blog__btn-large {
  padding: 15px 30px;
  font-size: 1.1em;
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-blog__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-blog__article-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

.page-blog__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-blog__article-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-blog__article-content {
  padding: 20px;
}

.page-blog__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439;
  line-height: 1.3;
}

.page-blog__article-title:hover {
  color: #005f2e;
}

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
}

.page-blog__article-date {
  font-size: 0.85em;
  color: #777777;
}

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

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 8px 20px;
  transition: background-color 0.3s ease;
}

.page-blog__category-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-blog__category-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #ffffff;
}

.page-blog__cta-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-blog__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  /* Hero Section */
  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-blog__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-blog__hero-description {
    font-size: 1em;
  }

  .page-blog__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  /* Latest Articles Section */
  .page-blog__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  /* Categories Section */
  .page-blog__category-list {
    flex-direction: column;
    gap: 10px;
  }

  .page-blog__category-item {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  /* Image responsive adaptations */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-blog__hero-image-wrapper,
  .page-blog__article-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  /* CSS for other required media query blocks (even if HTML not present on this page) */
  /* 顶区轮播 (Hero Carousel) */
  .page-blog__hero-carousel-section {
    /* Placeholder styles for carousel if it were present */
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-blog__hero-slider-prev, .page-blog__hero-slider-next {
    /* Hide or resize navigation for mobile if carousel was active */
    display: none;
  }
  .page-blog__hero-slide {
    /* Ensure slides are full width */
    width: 100%;
  }

  /* 操作指引外框 + 五张 team 竖型卡 (Guide Box + 5 Vertical Team Cards) */
  .page-blog__guide-box {
    padding: 10px;
  }
  .page-blog__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }
  .page-blog__guide-card {
    padding-top: 0 !important; /* Reset desktop specific padding */
    grid-column: span 3; /* Two cards per row */
    max-width: 100%; /* Ensure full width within grid column */
  }
  .page-blog__guide-card:nth-child(3), .page-blog__guide-card:nth-child(4), .page-blog__guide-card:nth-child(5) {
    grid-column: span 2; /* Three cards per row for the last three */
  }
  .page-blog__guide-card img {
    aspect-ratio: 250/350;
    object-fit: contain;
    width: 100%;
    height: auto;
  }

  /* home_content 外框 (Home Content Box) */
  .page-blog__home-content-box {
    max-width: 100%;
    height: auto; /* Allow content to expand */
    padding: 10px;
    border-radius: 8px;
  }
  .page-blog__home-content-inner {
    height: auto;
    overflow: visible; /* Show all content */
  }

  /* 博客卡片区 (Blog Card Section) - already handled above by .page-blog__blog-grid */

  /* 通用图片与按钮 (General Images & Buttons) - already handled above */
}