/* Base Styles for Blog Page */
.page-blog {
  background-color: #08160F; /* Background color from custom palette */
  color: #F2FFF6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 15px;
}

.page-blog__section-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: #A7D9B8; /* Secondary text color */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__description {
  font-size: 17px;
  line-height: 1.8;
  color: #F2FFF6;
  margin-bottom: 20px;
}

/* Buttons */
.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6;
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-blog__btn-secondary {
  background: #11271B; /* Card BG color */
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-blog__btn-secondary:hover {
  background: #2AD16F;
  color: #F2FFF6;
  transform: translateY(-2px);
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-blog__hero-content-wrapper {
  max-width: 900px;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green for contrast */
}

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

.page-blog__article-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  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 12px 25px rgba(0, 0, 0, 0.4);
}

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

.page-blog__article-image {
  width: 100%;
  height: 225px; /* 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: 20px;
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__article-excerpt {
  font-size: 15px;
  color: #A7D9B8;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__article-date {
  font-size: 13px;
  color: #2AD16F;
  text-align: right;
  margin-top: auto;
}

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

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

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__category-card {
  background-color: #11271B;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

.page-blog__category-title {
  font-size: 22px;
  font-weight: 700;
  color: #F2FFF6;
  padding: 15px 20px 5px;
}

.page-blog__category-description {
  font-size: 14px;
  color: #A7D9B8;
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* About Blog Section */
.page-blog__about-blog-section {
  padding: 80px 0;
  background-color: #0A4B2C;
}

.page-blog__about-blog-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-blog__text-content {
  flex: 1;
}

.page-blog__image-content {
  flex: 1;
  min-width: 400px; /* Ensure image has some minimum width */
}

.page-blog__about-blog-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #08160F;
}

.page-blog__faq-list {
  margin-top: 40px;
}

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

details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: #1E3A2A; /* Divider color for hover */
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6;
}

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2AD16F;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: #1E3A2A; /* Divider color for answer background */
  border-radius: 0 0 8px 8px;
  color: #A7D9B8;
  font-size: 16px;
}

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

.page-blog__faq-answer a {
  color: #2AD16F;
  text-decoration: underline;
}

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

/* General Image Styles */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 0 20px;
  }

  .page-blog__about-blog-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-blog__image-content {
    min-width: unset;
    width: 100%;
  }

  .page-blog__hero-content-wrapper {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .page-blog__hero-image-wrapper {
    max-height: 50vh;
  }

  .page-blog__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    border-radius: 0;
  }

  .page-blog__main-title {
    font-size: clamp(30px, 8vw, 48px);
    margin-bottom: 15px;
  }

  .page-blog__description {
    font-size: 15px;
    margin-bottom: 15px;
  }

  /* 按钮与按钮容器 */
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .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: 12px 20px;
    font-size: 16px;
  }

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

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__about-blog-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 产品展示图区域 (Latest Articles Grid) */
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-blog__article-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-blog__article-title {
    font-size: 18px;
  }

  .page-blog__article-excerpt {
    font-size: 14px;
  }

  /* Categories Grid */
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-blog__category-image {
    height: 160px;
  }

  .page-blog__category-title {
    font-size: 20px;
  }

  /* 装饰主标题 + 长文 SEO 区 (About Blog Section) */
  .page-blog__about-blog-section {
    padding: 40px 0;
  }

  .page-blog__text-content {
    padding-right: 0;
  }

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

  .page-blog__faq-qtext {
    font-size: 16px;
  }

  .page-blog__faq-toggle {
    font-size: 24px;
    width: 24px;
  }

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

  .page-blog__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 10px;
  }

  .page-blog__section-subtitle {
    font-size: 15px;
    margin-bottom: 30px;
  }

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