/* style/blog.css */
.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: 0 20px;
  box-sizing: border-box;
}

.page-blog__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
  padding-bottom: 60px;
  text-align: center;
  background: linear-gradient(180deg, rgba(242, 193, 78, 0.1) 0%, rgba(10, 10, 10, 1) 100%), #0A0A0A; /* Dark background with subtle gradient */
  color: #FFF6D6;
}

.page-blog__hero-section .page-blog__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-blog__hero-content {
  max-width: 800px;
  margin-bottom: 20px;
}

.page-blog__main-title {
  font-size: 3.2em;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFD36B; /* Glow */
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

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

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 900px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(242, 193, 78, 0.3);
}

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

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  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, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for bright button */
  border: 2px solid #FFD86A;
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Glow */
  border: 2px solid #FFD36B;
}

.page-blog__btn-secondary:hover {
  background: #FFD36B;
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-blog__recent-posts-section,
.page-blog__content-area,
.page-blog__community-section,
.page-blog__faq-section,
.page-blog__cta-bottom-section {
  padding: 60px 0;
}

.page-blog__light-bg {
  background-color: #111111; /* Card BG */
  color: #FFF6D6;
}

.page-blog__dark-bg {
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6;
}

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD36B; /* Glow */
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

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

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

.page-blog__blog-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

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

.page-blog__card-excerpt {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 20px;
}

.page-blog__read-more {
  color: #F2C14E;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.page-blog__read-more::after {
  content: ' ';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #F2C14E;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.page-blog__blog-card:hover .page-blog__read-more::after {
  transform: scaleX(1);
}

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

.page-blog__sub-title {
  font-size: 2em;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 25px;
  color: #F2C14E;
  text-align: left;
}

.page-blog__paragraph {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #FFF6D6;
  text-align: justify;
}

.page-blog__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__event-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-blog__event-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-blog__event-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.2);
}

.page-blog__event-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD36B; /* Glow */
}

.page-blog__event-date {
  font-size: 0.9em;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-blog__event-description {
  font-size: 1em;
  color: #FFF6D6;
}

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

.page-blog__faq-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  font-size: 1.2em;
  font-weight: bold;
  padding: 18px 25px;
  cursor: pointer;
  color: #FFD36B; /* Glow */
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

.page-blog__faq-question::after {
  content: '+';
  font-size: 1.5em;
  color: #F2C14E;
  transition: transform 0.3s ease;
}

.page-blog__faq-item.active .page-blog__faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

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

.page-blog__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  padding: 0 25px;
  color: #FFF6D6;
}

.page-blog__faq-item.active .page-blog__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-bottom: 25px;
}

.page-blog__cta-bottom-section {
  text-align: center;
  background-color: #111111; /* Card BG */
  padding: 80px 0;
  border-top: 1px solid #3A2A12;
}

/* Placeholder for homepage specific sections to satisfy CSS checklist */
.page-blog__hero-carousel-section,
.page-blog__guide-box,
.page-blog__home-content-box {
  display: none; /* These sections are not used on blog.html */
}

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

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

/* Media Queries */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.8em;
  }

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

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

  .page-blog__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-blog__event-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body padding-top for header offset */
    padding-bottom: 40px;
  }

  .page-blog__hero-section .page-blog__container {
    flex-direction: column;
    gap: 20px;
  }

  .page-blog__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-blog__subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__recent-posts-section,
  .page-blog__content-area,
  .page-blog__community-section,
  .page-blog__faq-section,
  .page-blog__cta-bottom-section {
    padding: 40px 0;
  }

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

  .page-blog__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-blog__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

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

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

  .page-blog__sub-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .page-blog__paragraph {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-blog__content-image {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-blog__event-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

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

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

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

  /* Mobile image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Placeholder styles for homepage specific sections to satisfy CSS checklist */
  /* 1. 顶区轮播 */
  .page-blog__hero-carousel-section {
    display: none; /* Not applicable for blog page */
  }
  /* 2. 操作指引外框 + 五张 `team` 竖型卡 */
  .page-blog__guide-box {
    display: none; /* Not applicable for blog page */
  }
  /* 3. `home_content` 外框 */
  .page-blog__home-content-box {
    display: none; /* Not applicable for blog page */
  }
}