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

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

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 40px;
  text-align: center;
  background-color: #111111; /* Card BG */
  position: relative;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 20px;
}

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

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

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 1.1em;
  color: #FFF6D6;
  margin-bottom: 30px;
}

/* Buttons */
.page-blog__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

.page-blog__btn-secondary {
  display: inline-block;
  background-color: #111111; /* Card BG */
  color: #F2C14E; /* Primary color */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #F2C14E;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.page-blog__btn-secondary:hover {
  background-color: #F2C14E;
  color: #111111;
}

.page-blog__btn-outline {
  display: inline-block;
  background: transparent;
  color: #FFD36B; /* Glow color */
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #FFD36B;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin-top: auto; /* Push to bottom of card */
}

.page-blog__btn-outline:hover {
  background-color: #FFD36B;
  color: #111111;
}

/* Section Titles */
.page-blog__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #F2C14E;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

/* Featured Posts Grid */
.page-blog__featured-posts {
  padding: 40px 0;
  background-color: #0A0A0A;
}

.page-blog__posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.page-blog__blog-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

.page-blog__card-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
}

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

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

.page-blog__card-title {
  font-size: 1.4em;
  color: #FFD36B; /* Glow color */
  margin-bottom: 10px;
  line-height: 1.3;
  text-decoration: none;
}

.page-blog__card-title:hover {
  color: #F2C14E;
}

.page-blog__card-excerpt {
  font-size: 0.95em;
  color: #FFF6D6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__card-meta {
  font-size: 0.85em;
  color: #999;
  margin-bottom: 15px;
}

/* Latest Posts List */
.page-blog__latest-posts {
  padding: 40px 0;
  background-color: #0A0A0A;
}

.page-blog__intro-text {
  text-align: center;
  font-size: 1.1em;
  color: #FFF6D6;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-blog__posts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-blog__list-item {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__list-item-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.page-blog__list-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 10px 0 0 10px;
}

.page-blog__list-content {
  padding: 20px;
  flex-grow: 1;
}

.page-blog__list-title {
  font-size: 1.3em;
  color: #FFD36B; /* Glow color */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__list-title:hover {
  color: #F2C14E;
}

.page-blog__list-excerpt {
  font-size: 0.9em;
  color: #FFF6D6;
  margin-bottom: 10px;
}

.page-blog__list-meta {
  font-size: 0.8em;
  color: #999;
}

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

/* Call to Action Section */
.page-blog__cta-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG */
  text-align: center;
  border-top: 1px solid #3A2A12; /* Border */
}

.page-blog__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__cta-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #F2C14E;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

/* General image and button responsive styles */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__btn-outline,
.page-blog a[class*="button"],
.page-blog a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-buttons,
.page-blog__button-group,
.page-blog__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

  .page-blog__main-title {
    font-size: 2em; /* Adjusted for mobile */
  }

  .page-blog__description {
    font-size: 1em;
  }

  .page-blog__hero-image-wrapper {
    max-height: 300px;
  }

  /* Section Titles */
  .page-blog__section-title,
  .page-blog__cta-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  /* Featured Posts Grid */
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__card-image-wrapper {
    height: 180px;
  }

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

  /* Latest Posts List */
  .page-blog__list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-blog__list-item-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-blog__list-image {
    width: 100%;
    height: 200px;
    border-radius: 10px 10px 0 0;
  }

  .page-blog__list-content {
    padding: 15px;
  }

  .page-blog__list-title {
    font-size: 1.1em;
  }

  .page-blog__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  /* CTA Section */
  .page-blog__cta-description {
    font-size: 1em;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* 通用图片与容器 */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-content,
  .page-blog__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog__btn-outline,
  .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,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-blog__cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile vertical stack */
  }
}