/* -------------------------------------------------------------------------- */
/*                            Blog Page Specific CSS                          */
/* -------------------------------------------------------------------------- */

/* Base styles for the blog page content */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background: var(--color-background, #f8f8f8); /* Inherit from shared or default light gray */
}

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

.page-blog__section {
  padding: 60px 0;
}

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #C91F17;
  text-align: center;
  margin-bottom: 20px;
}

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

/* Hero Section */
.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding to avoid double spacing with body padding-top */
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #B71C1C; /* Background for entire hero section */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

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

.page-blog__hero-content {
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly with image */
  background: #FFF5E1; /* Text Main */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  width: calc(100% - 40px);
  box-sizing: border-box;
  border: 1px solid #F2B544;
}

.page-blog__hero-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #C91F17;
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 800;
}

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

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

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

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid #F4D34D; /* Gold border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary {
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-secondary:hover {
  background: #C91F17;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Featured Topics Section */
.page-blog__featured-topics {
  background: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
  padding: 80px 0;
}

.page-blog__featured-topics .page-blog__section-title {
  color: #FFD86A; /* Gold for title */
}

.page-blog__featured-topics .page-blog__section-description {
  color: #FFF5E1;
}

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

.page-blog__topic-card {
  background: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #F2B544; /* Border color */
}

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

.page-blog__topic-card .page-blog__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFD86A; /* Gold */
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-blog__topic-card .page-blog__card-text {
  font-size: 16px;
  color: #FFF5E1; /* Text Main */
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-blog__topic-card .page-blog__card-link {
  display: inline-block;
  margin-top: auto;
  color: #FFD86A; /* Gold */
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 2px solid #FFD86A;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-blog__topic-card .page-blog__card-link:hover {
  color: #FFF5E1;
  border-color: #FFF5E1;
}

.page-blog__cta-area {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid #F2B544;
}

.page-blog__cta-area .page-blog__cta-text {
  font-size: 22px;
  font-weight: 600;
  color: #FFF5E1;
  margin-bottom: 30px;
}

/* Latest Articles Section */
.page-blog__latest-articles {
  background: #f8f8f8;
  padding: 80px 0;
}

.page-blog__latest-articles .page-blog__section-title {
  color: #C91F17;
}

.page-blog__latest-articles .page-blog__section-description {
  color: #555555;
}

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

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

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

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

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

.page-blog__article-title {
  font-size: 22px;
  font-weight: 700;
  color: #C91F17;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__article-title a {
  color: #C91F17;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #E53935;
}

.page-blog__article-meta {
  font-size: 14px;
  color: #888888;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  margin-top: auto;
  color: #E53935;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 2px solid #E53935;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #C91F17;
  border-color: #C91F17;
}

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

/* Why Follow Section */
.page-blog__why-follow {
  background: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
  padding: 80px 0;
}

.page-blog__why-follow .page-blog__section-title {
  color: #FFD86A; /* Gold */
}

.page-blog__why-follow .page-blog__section-description {
  color: #FFF5E1;
}

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

.page-blog__advantage-item {
  background: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #F2B544;
}

.page-blog__advantage-item .page-blog__advantage-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFD86A; /* Gold */
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-blog__advantage-item .page-blog__advantage-text {
  font-size: 16px;
  color: #FFF5E1; /* Text Main */
  line-height: 1.7;
}

/* Newsletter Signup Section */
.page-blog__newsletter-signup {
  background: #f0f0f0;
  padding: 80px 0;
}

.page-blog__newsletter-signup .page-blog__section-title {
  color: #C91F17;
}

.page-blog__newsletter-signup .page-blog__section-description {
  color: #555555;
}

.page-blog__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__form-input {
  flex-grow: 1;
  padding: 15px 20px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 16px;
  max-width: calc(100% - 150px); /* Adjust max-width for input */
  box-sizing: border-box;
}

.page-blog__form-input::placeholder {
  color: #999999;
}

.page-blog__form-note {
  text-align: center;
  font-size: 14px;
  color: #777777;
  margin-top: 20px;
}

/* FAQ Section */
.page-blog__faq-section {
  background: #B71C1C; /* Background */
  padding: 80px 0;
}

.page-blog__faq-section .page-blog__section-title {
  color: #FFD86A; /* Gold */
}

.page-blog__faq-section .page-blog__section-description {
  color: #FFF5E1;
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #F2B544; /* Border color */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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: #C91F17; /* Darker red on hover */
}

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

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

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: #C91F17; /* Main Color for answer background */
  border-radius: 0 0 10px 10px;
}

details.page-blog__faq-item .page-blog__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: #FFF5E1; /* Text Main */
}

/* -------------------------------------------------------------------------- */
/*                              Responsive Styles                             */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: -60px;
    padding: 30px 20px;
  }

  .page-blog__hero-title {
    font-size: clamp(26px, 4vw, 42px);
  }

  .page-blog__hero-description {
    font-size: 17px;
  }

  .page-blog__btn-primary, .page-blog__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-blog__section-title {
    font-size: 32px;
  }

  .page-blog__section-description {
    font-size: 17px;
  }

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

  .page-blog__topic-card .page-blog__card-title,
  .page-blog__advantage-item .page-blog__advantage-title {
    font-size: 22px;
  }

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

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

@media (max-width: 768px) {
  /* General */
  .page-blog__section {
    padding: 40px 0;
  }

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

  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px;
    margin-bottom: 20px;
  }

  .page-blog__hero-image-wrapper {
    border-radius: 0;
  }

  .page-blog__hero-image {
    object-fit: contain !important; /* Mobile: prevent cropping, show full image */
    aspect-ratio: unset !important; /* Reset aspect ratio */
    height: auto !important;
    width: 100% !important;
    border-radius: 0;
  }

  .page-blog__hero-content {
    margin-top: -40px; /* Less overlap on mobile */
    padding: 25px 15px;
    border-radius: 8px;
    width: calc(100% - 30px);
  }

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

  .page-blog__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* 按钮与按钮容器 */
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    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: 12px 15px;
    font-size: 16px;
  }

  /* Featured Topics */
  .page-blog__topic-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__topic-card {
    padding: 25px;
  }

  .page-blog__topic-card .page-blog__card-title {
    font-size: 20px;
  }

  .page-blog__topic-card .page-blog__card-text {
    font-size: 15px;
  }

  .page-blog__cta-area {
    padding: 30px 20px;
  }

  .page-blog__cta-area .page-blog__cta-text {
    font-size: 18px;
  }

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

  .page-blog__article-card {
    flex-direction: column;
  }

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

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

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

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

  /* Why Follow */
  .page-blog__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-blog__advantage-item .page-blog__advantage-text {
    font-size: 15px;
  }

  /* Newsletter */
  .page-blog__newsletter-form {
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
  }

  .page-blog__form-input {
    max-width: 100%;
    width: 100%;
  }

  /* FAQ */
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
  }

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

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

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

  details.page-blog__faq-item .page-blog__faq-answer p {
    font-size: 15px;
  }

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

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-image-wrapper,
  .page-blog__newsletter-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}