/* 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;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-top: 10px; /* Small top padding */
  overflow: hidden;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-blog__hero-content {
  position: relative; /* Ensure content is above image if z-index is used, but it's below in DOM */
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px; /* Spacing between image and text */
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 */
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(19, 153, 74, 0.4);
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Latest Articles Section */
.page-blog__latest-articles {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #22C768; /* Auxiliary Color */
  margin: 15px auto 0;
  border-radius: 2px;
}

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

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

.page-blog__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

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

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

.page-blog__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__article-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #22C768; /* Auxiliary Color */
}

.page-blog__article-meta {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-blog__read-more {
  color: #22C768; /* Auxiliary Color */
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

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

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

.page-blog__btn-secondary {
  background: none;
  border: 2px solid #22C768; /* Auxiliary Color */
  color: #22C768; /* Auxiliary Color */
  padding: 10px 20px;
}

.page-blog__btn-secondary:hover {
  background: #22C768; /* Auxiliary Color */
  color: #11271B; /* Card BG */
  transform: translateY(-2px);
}

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

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

.page-blog__category-item a {
  display: block;
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__category-item a:hover {
  background-color: #22C768; /* Auxiliary Color */
  color: #08160F; /* Background */
}

/* Article Detail Sections */
.page-blog__article-detail {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.page-blog__article-detail-title {
  font-size: 2.2em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3;
}

.page-blog__article-detail .page-blog__article-meta {
  text-align: center;
  margin-bottom: 30px;
}

.page-blog__article-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 40px;
  display: block;
}

.page-blog__article-detail p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__article-subtitle {
  font-size: 1.7em;
  color: #22C768; /* Auxiliary Color */
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 5px solid #F2C14E; /* Gold */
  padding-left: 15px;
}

.page-blog__article-detail ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-blog__article-detail ul li {
  margin-bottom: 10px;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__article-detail ul li strong {
  color: #F2FFF6; /* Text Main */
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  background: linear-gradient(90deg, #11A84E 0%, #22C768 100%); /* Main/Auxiliary gradient */
  text-align: center;
  color: #F2FFF6; /* Text Main */
}

.page-blog__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 20px auto 40px;
  color: #F2FFF6;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

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

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

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

.page-blog__faq-item summary:hover {
  background-color: #1E3A2A; /* Divider */
}

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

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #22C768; /* Auxiliary Color */
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__article-detail-title {
    font-size: 1.8em;
  }
  .page-blog__article-subtitle {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-blog__hero-content {
    padding: 20px 15px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    margin-bottom: 10px; /* Space between stacked buttons */
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-blog__latest-articles,
  .page-blog__categories-section,
  .page-blog__article-detail,
  .page-blog__cta-section,
  .page-blog__faq-section {
    padding: 40px 0;
  }
  .page-blog__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__article-card {
    margin-bottom: 15px;
  }
  .page-blog__article-thumbnail {
    height: 180px;
  }
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__category-list {
    gap: 10px;
  }
  .page-blog__category-item a {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  .page-blog__article-detail-title {
    font-size: 1.5em;
  }
  .page-blog__article-subtitle {
    font-size: 1.3em;
  }
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-blog__article-image {
    max-height: 300px;
  }
  .page-blog__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__article-detail-title {
    font-size: 1.3em;
  }
  .page-blog__article-subtitle {
    font-size: 1.1em;
  }
}