/* style/blog.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8; /* A very light default background for page content */
}

/* --- Hero Section --- */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  z-index: 0;
  max-height: 600px; /* Limit height for hero image */
}

.page-blog__hero-content {
  max-width: 900px;
  margin: 40px auto 0 auto; /* Spacing below the image */
  padding: 0 20px;
  text-align: center;
  color: #333333;
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #C91F17; /* Main brand color for title */
}

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

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #333333; /* Dark text for contrast on gold button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-blog__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- General Section Styling --- */
.page-blog__section {
  padding: 60px 20px;
  margin-bottom: 40px;
}

.page-blog__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #C91F17;
}

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

/* --- Background Color Handling for Contrast --- */
.page-blog__dark-bg {
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Light text for dark background */
}

.page-blog__dark-bg .page-blog__section-title,
.page-blog__dark-bg .page-blog__section-description,
.page-blog__dark-bg .page-blog__category-title,
.page-blog__dark-bg .page-blog__category-text,
.page-blog__dark-bg .page-blog__why-item-title,
.page-blog__dark-bg .page-blog__why-item-text {
  color: #FFF5E1; /* Ensure all text elements are light */
}

.page-blog__light-bg {
  background-color: #ffffff; /* Custom background color */
  color: #333333; /* Dark text for light background */
}

/* --- Benefits Section --- */
.page-blog__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-blog__benefit-card.page-blog__card {
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__benefit-card.page-blog__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.page-blog__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-blog__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFF5E1;
}

.page-blog__card-text {
  font-size: 1em;
  color: #FFF5E1;
}

.page-blog__section-footer {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Categories Section --- */
.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-blog__category-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border: 1px solid #F2B544; /* Border color */
  border-radius: 12px;
  padding: 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-blog__category-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFF5E1;
}

.page-blog__category-text {
  font-size: 1em;
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-blog__category-link {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #333333;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__category-link:hover {
  filter: brightness(1.1);
}

/* --- Featured Posts Section --- */
.page-blog__posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-blog__post-card.page-blog__card {
  background-color: #D32F2F;
  color: #FFF5E1;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-card.page-blog__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-blog__post-card .page-blog__card-image {
  height: 220px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-blog__post-card .page-blog__card-content {
  padding: 20px;
}

.page-blog__post-card .page-blog__card-link {
  text-decoration: none;
  color: #FFF5E1;
}

.page-blog__post-card .page-blog__card-link:hover .page-blog__card-title {
  text-decoration: underline;
}

.page-blog__post-card .page-blog__card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFF5E1;
}

.page-blog__post-card .page-blog__card-text {
  font-size: 0.95em;
  margin-bottom: 15px;
  color: #FFF5E1;
}

.page-blog__post-card .page-blog__post-date {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.7);
}

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

/* --- Why JUN888 Section --- */
.page-blog__why-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__why-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-left: 5px solid #F2B544; /* Border color */
  padding: 20px 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__why-item-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFF5E1;
}

.page-blog__why-item-text {
  font-size: 1em;
  color: #FFF5E1;
}

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

.page-blog__faq-item {
  background-color: #ffffff;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-blog__faq-item summary {
  list-style: none; /* Hide default marker */
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: #C91F17;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
  background-color: #f5f5f5;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #C91F17;
  margin-left: 15px;
}

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

/* --- Final CTA Section --- */
.page-blog__cta-final {
  text-align: center;
  padding: 80px 20px;
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1;
}

.page-blog__cta-final .page-blog__section-title {
  color: #FFF5E1;
}

.page-blog__cta-final .page-blog__section-description {
  color: #FFF5E1;
  margin-bottom: 50px;
}

.page-blog__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2em;
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: 30px;
  }
  .page-blog__section {
    padding: 50px 20px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Images responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image/Video/Button containers responsive */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__benefits-grid,
  .page-blog__categories-grid,
  .page-blog__posts-grid,
  .page-blog__why-list,
  .page-blog__faq-list,
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container,
  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific padding for hero/video section top */
  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }
  /* If video section were present */
  .page-blog__video-section {
    padding-top: 10px !important;
  }
  
  .page-blog__hero-image {
    max-height: 400px;
  }

  .page-blog__main-title {
    font-size: 1.8em;
  }

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

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

  .page-blog__section-description {
    font-size: 0.95em;
  }

  .page-blog__benefits-grid,
  .page-blog__categories-grid,
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__card-image {
    height: auto; /* Allow height to adjust */
    min-height: 180px; /* Ensure minimum height */
  }

  .page-blog__cta-button,
  .page-blog__cta-button--large,
  .page-blog__category-link {
    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 { /* If there were multiple buttons */
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-blog__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-section {
    padding-bottom: 30px !important;
  }
  .page-blog__hero-image {
    max-height: 300px;
  }
  .page-blog__main-title {
    font-size: 1.5em;
  }
  .page-blog__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}