/* style/blog.css */

/* Body background is dark via shared.css, so text should be light */
.page-blog {
  color: #F2FFF6; /* Text Main */
  background-color: transparent; /* Rely on body background from shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px; /* Space between image and content */
}

.page-blog__hero-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  z-index: 1; /* Ensure content is above any potential background elements */
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-blog__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-blog__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-button--secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-blog__cta-button--secondary:hover {
  background: #2E7A4E; /* Border color */
  color: #F2FFF6;
}

.page-blog__section-title {
  font-size: 2.5rem;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #2AD16F;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-blog__sub-title {
  font-size: 1.8rem;
  color: #F2FFF6;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-blog__intro-section,
.page-blog__tips-strategy-section,
.page-blog__promotions-section,
.page-blog__safety-section,
.page-blog__cta-final {
  padding: 60px 0;
  text-align: center;
}

.page-blog__text-block {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  line-height: 1.8;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

.page-blog__post-card {
  background: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-blog__post-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.page-blog__post-title a:hover {
  color: #2AD16F;
}

.page-blog__post-meta {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-link {
  display: inline-block;
  color: #2AD16F;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more-link:hover {
  color: #57E38D; /* Glow */
}

.page-blog__categories-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 1000px;
}

.page-blog__category-item {
  background: #11271B; /* Card BG */
  border-radius: 8px;
  padding: 12px 25px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__category-item:hover {
  background-color: #2E7A4E; /* Border */
  transform: translateY(-3px);
}

.page-blog__category-item a {
  color: #F2FFF6;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.page-blog__post-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-top: 40px;
}

.page-blog__list-item {
  background: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  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-image {
  width: 200px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 25px;
  flex-shrink: 0;
}

.page-blog__list-content {
  flex-grow: 1;
  text-align: left;
}

.page-blog__list-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

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

.page-blog__list-title a:hover {
  color: #2AD16F;
}

.page-blog__list-meta {
  font-size: 0.9rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 10px;
}

.page-blog__list-excerpt {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
}

.page-blog__button-container {
  margin-top: 50px;
  text-align: center;
}

.page-blog__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-blog__faq-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

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

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: #F2FFF6;
  font-size: 1.2rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-blog__faq-item[open] .page-blog__faq-question {
  background-color: #2E7A4E; /* Border */
}

.page-blog__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-blog__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

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

  .page-blog__list-item {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__list-image {
    margin-right: 0;
    margin-bottom: 20px;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  /* General content padding */
  .page-blog__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Hero Section */
  .page-blog__hero-section {
    padding: 40px 15px !important;
    padding-top: 10px !important; /* Ensure small top padding */
  }

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

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

  /* Section Titles */
  .page-blog__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  /* Text Blocks */
  .page-blog__text-block {
    font-size: 1rem;
    text-align: left;
  }

  /* Post Grid/Cards */
  .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__post-card {
    padding: 0;
  }

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

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

  .page-blog__post-title {
    font-size: 1.3rem;
  }

  .page-blog__post-excerpt {
    font-size: 0.9rem;
  }

  /* Category List */
  .page-blog__category-list {
    gap: 10px;
  }

  .page-blog__category-item {
    padding: 10px 15px;
  }

  .page-blog__category-item a {
    font-size: 0.95rem;
  }

  /* Latest Posts List */
  .page-blog__list-item {
    padding: 15px;
  }

  .page-blog__list-image {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
    margin-right: 0;
  }

  .page-blog__list-title {
    font-size: 1.15rem;
  }

  .page-blog__list-excerpt {
    font-size: 0.85rem;
  }

  /* Buttons */
  .page-blog__cta-button,
  .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-left: 15px;
    padding-right: 15px;
  }
  
  .page-blog__button-group {
    flex-direction: column !important;
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ */
  .page-blog__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-blog__faq-answer {
    font-size: 0.95rem;
    padding: 0 20px 15px;
  }

  /* All images must be responsive on mobile */
  .page-blog img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All image containers must be responsive on mobile */
  .page-blog__post-card,
  .page-blog__list-item,
  .page-blog__hero-section,
  .page-blog__intro-section,
  .page-blog__tips-strategy-section,
  .page-blog__promotions-section,
  .page-blog__safety-section,
  .page-blog__cta-final,
  .page-blog__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog__list-content {
    text-align: center;
  }
}