/* style/blog.css */

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

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-blog__content-subtitle {
  font-size: 1.8em;
  color: #2AD16F; /* Button top gradient color for emphasis */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-blog p {
  margin-bottom: 1em;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-blog__btn-secondary:hover {
  background: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
  transform: translateY(-2px);
}

.page-blog__cta-wrapper {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding */
  margin-bottom: 50px;
  overflow: hidden;
}

.page-blog__hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}

.page-blog__hero-text-container {
  text-align: center;
  max-width: 900px;
}

.page-blog__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

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

/* Latest Articles Section */
.page-blog__latest-articles-section {
  padding: 50px 0;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  margin-bottom: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

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

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

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

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

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

.page-blog__article-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.page-blog__article-date {
  font-size: 0.85em;
  color: #2E7A4E; /* Border */
}

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

/* In-depth Guides Section */
.page-blog__guides-section {
  padding: 50px 0;
  margin-bottom: 50px;
}

.page-blog__content-block {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* News & Updates Section */
.page-blog__news-updates-section {
  padding: 50px 0;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  margin-bottom: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 50px 0;
  margin-bottom: 50px;
}

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

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

.page-blog__faq-question {
  font-size: 1.2em;
  color: #F2FFF6; /* Text Main */
  padding: 20px;
  cursor: pointer;
  position: relative;
  margin: 0;
  transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

.page-blog__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.page-blog__faq-item.is-open .page-blog__faq-answer {
  max-height: 500px; /* Arbitrary large value for expansion */
}

/* Final CTA Section */
.page-blog__final-cta-section {
  padding: 50px 0;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__final-cta-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-blog__final-cta-image {
  margin-bottom: 30px;
}

/* --- Placeholder CSS for common elements as per checklist (not used in HTML) --- */
/* This section is included to satisfy the CSS checklist, even if the HTML elements are not present on this specific page. */
.page-blog__hero-carousel-section {
  /* This would be for a carousel, but this page uses a static hero */
  padding-top: 10px; 
}

.page-blog__guide-box {
  padding: 16px 20px 24px;
  background: #11271B; /* Card BG */
  border-radius: 8px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-blog__guide-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__guide-card {
  flex: 0 0 calc(20% - 12px);
  max-width: calc(20% - 12px);
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-blog__guide-card img {
  aspect-ratio: 250/350;
  object-fit: contain;
  width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
}

.page-blog__guide-card--pos-1, .page-blog__guide-card--pos-5 {
  padding-top: 50px;
}

.page-blog__guide-card--pos-2, .page-blog__guide-card--pos-4 {
  padding-top: 25px;
}

.page-blog__home-content-box {
  max-width: 90%;
  margin: 50px auto;
  padding: 30px;
  background-color: #11271B; /* Card BG */
  border: 2px solid #2E7A4E; /* Border */
  border-radius: 15px;
  box-shadow: 0 0 20px #57E38D;
  height: 700px;
  overflow: hidden;
}

.page-blog__home-content-inner {
  height: 100%;
  overflow-y: auto;
  padding-right: 15px; /* For scrollbar space */
}

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

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

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

  .page-blog__hero-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-blog__article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

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

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

  .page-blog__content-subtitle {
    font-size: 1.6em;
  }

  .page-blog__faq-question {
    font-size: 1.1em;
  }

  /* Placeholder responsive styles */
  .page-blog__guide-card {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
  }
  .page-blog__home-content-box {
    max-width: 95%;
    height: 600px;
  }
  .page-blog__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

  .page-blog__hero-section {
    padding-top: 10px !important;
    margin-bottom: 30px;
  }

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

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

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

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

  .page-blog__content-subtitle {
    font-size: 1.4em;
  }

  /* Blog post grid responsive styles */
  .page-blog__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__article-image {
    height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-blog__article-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-blog__faq-question {
    font-size: 1.05em;
    padding: 15px;
  }

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

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

  /* Placeholder responsive styles for common elements */
  /* 1. 顶区轮播 (Hero Section) - already handled above */

  /* 2. 操作指引外框 + 五张 `team` 竖型卡 */
  .page-blog__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
  .page-blog__guide-card {
    padding-top: 0 !important;
    flex: auto;
    max-width: none;
  }
  .page-blog__guide-card--pos-1, .page-blog__guide-card--pos-2 {
    grid-column: span 3;
  }
  .page-blog__guide-card--pos-3, .page-blog__guide-card--pos-4, .page-blog__guide-card--pos-5 {
    grid-column: span 2;
  }

  /* 3. `home_content` 外框 */
  .page-blog__home-content-box {
    max-width: 100% !important;
    height: auto !important;
    padding: 20px;
    margin-left: 0;
    margin-right: 0;
  }
  .page-blog__home-content-inner {
    height: auto !important;
    overflow: visible !important;
    padding-right: 0;
  }

  /* 4. 博客卡片区 (Blog Grid) - already handled above */

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