/* style/blog.css */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: 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;
  object-fit: cover;
  display: block;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-blog__hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-blog__main-title {
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  /* No fixed font-size, rely on responsive scaling */
}

.page-blog__hero-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-blog__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #ffffff; /* Ensure contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* For responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-blog__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-blog__cta-button--secondary {
  background: transparent;
  border: 2px solid #2AD16F;
  color: #2AD16F;
}

.page-blog__cta-button--secondary:hover {
  background: #2AD16F;
  color: #ffffff;
}

.page-blog__section-title {
  color: #F2FFF6; /* Text Main */
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

.page-blog__text-block {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__intro-section, 
.page-blog__categories-section, 
.page-blog__featured-articles, 
.page-blog__why-read-section, 
.page-blog__faq-section, 
.page-blog__conclusion-section {
  padding: 60px 0;
}

.page-blog__categories-section, .page-blog__why-read-section {
  background-color: #11271B; /* Card BG */
}

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

.page-blog__category-card, .page-blog__article-card, .page-blog__reason-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__category-card:hover, .page-blog__article-card:hover, .page-blog__reason-card:hover {
  transform: translateY(-5px);
}

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

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

.page-blog__category-title, .page-blog__article-title, .page-blog__reason-title {
  color: #F2FFF6; /* Text Main */
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__article-title a {
  color: #F2FFF6;
  text-decoration: none;
}

.page-blog__article-title a:hover {
  color: #2AD16F; /* Button hover color */
}

.page-blog__category-description, .page-blog__article-excerpt, .page-blog__reason-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
  margin-bottom: 15px;
}

.page-blog__article-meta {
  color: #57E38D; /* Glow */
  font-size: 0.85em;
  margin-bottom: 10px;
}

.page-blog__read-more {
  display: inline-block;
  color: #2AD16F; /* Button color */
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

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

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

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  font-size: 1.1em;
  background-color: #11271B; /* Card BG */
  list-style: none; /* For details/summary */
}

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #2AD16F;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg); /* Change + to X or rotate */
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

.page-blog__faq-answer p {
  margin-bottom: 0;
  color: inherit;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.8em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-blog__hero-content {
    padding: 0;
  }
  .page-blog__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 30px;
  }
  .page-blog__intro-section, 
  .page-blog__categories-section, 
  .page-blog__featured-articles, 
  .page-blog__why-read-section, 
.page-blog__faq-section, 
.page-blog__conclusion-section {
    padding: 40px 0;
  }
  .page-blog__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__category-grid, .page-blog__article-grid, .page-blog__reason-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__category-card, .page-blog__article-card, .page-blog__reason-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .page-blog__category-image, .page-blog__article-image {
    height: 180px;
  }
  .page-blog__category-title, .page-blog__article-title, .page-blog__reason-title {
    font-size: 1.2em;
  }
  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .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;
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__category-image, .page-blog__article-image {
    height: 150px;
  }
}