/* style/blog.css */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
}

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%);
  text-align: center;
  color: var(--text-main);
  gap: 30px;
}

.page-blog__hero-content {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold);
  margin: 0;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-blog__intro-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  max-width: 800px;
  margin-bottom: 20px;
}

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

.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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

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

.page-blog__btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
}

.page-blog__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2);
  color: var(--text-main);
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 30px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-blog__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-blog__section-description {
  font-size: 1em;
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Categories Section */
.page-blog__categories-section,
.page-blog__recent-articles-section,
.page-blog__cta-final-section {
  padding: 60px 20px;
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-blog__benefits-section,
.page-blog__faq-section {
  padding: 60px 20px;
  background-color: var(--background);
  color: var(--text-main);
}

.page-blog__category-grid,
.page-blog__article-grid,
.page-blog__benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-blog__category-card,
.page-blog__article-card {
  background-color: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

.page-blog__category-card:hover,
.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__category-icon,
.page-blog__article-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
}

.page-blog__category-title,
.page-blog__article-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__category-title a,
.page-blog__article-title a {
  color: var(--text-main);
  text-decoration: none;
}

.page-blog__category-title a:hover,
.page-blog__article-title a:hover {
  color: var(--glow);
}

.page-blog__category-text,
.page-blog__article-excerpt {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__btn-text {
  color: var(--glow);
  text-decoration: none;
  font-weight: bold;
  margin-top: auto; /* Push to bottom */
}

.page-blog__btn-text:hover {
  text-decoration: underline;
}

/* Benefits Section */
.page-blog__benefit-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

.page-blog__benefit-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--glow);
  margin-bottom: 10px;
}

.page-blog__benefit-text {
  font-size: 0.95em;
  color: var(--text-secondary);
}

/* Recent Articles Section */
.page-blog__article-content {
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-blog__article-meta {
  font-size: 0.85em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

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

/* FAQ Section */
.page-blog__faq-list {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.page-blog__faq-item {
  background-color: var(--card-bg);
  margin-bottom: 0;
  border-bottom: 1px solid var(--divider);
  color: var(--text-main);
}

.page-blog__faq-item:last-child {
  border-bottom: none;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-blog__faq-question::-webkit-details-marker { /* For details/summary */
  display: none;
}

.page-blog__faq-item[open] > .page-blog__faq-question {
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-blog__faq-question:hover {
  background-color: var(--deep-green);
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 0.95em;
  color: var(--text-secondary);
}

/* Final CTA Section */
.page-blog__cta-final-section {
  text-align: center;
  padding: 80px 20px;
}

.page-blog__cta-final-section .page-blog__section-title {
  color: var(--gold);
}

.page-blog__cta-final-section .page-blog__section-description {
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-section {
    padding: 40px 15px;
  }

  .page-blog__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-blog__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }

  .page-blog__categories-section,
  .page-blog__benefits-section,
  .page-blog__recent-articles-section,
  .page-blog__faq-section,
  .page-blog__cta-final-section {
    padding: 40px 15px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    flex-direction: column-reverse; /* Text above image on mobile */
    padding-top: 10px !important;
  }

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

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__hero-content {
    order: 2; /* Ensure content is below image */
    margin-top: 20px;
  }

  .page-blog__hero-image-wrapper {
    order: 1;
    margin-top: 0;
  }

  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__categories-section,
  .page-blog__benefits-section,
  .page-blog__recent-articles-section,
  .page-blog__faq-section,
  .page-blog__cta-final-section,
  .page-blog__category-card,
  .page-blog__article-card,
  .page-blog__benefit-item,
  .page-blog__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

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

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

  .page-blog__category-grid,
  .page-blog__article-grid,
  .page-blog__benefit-grid {
    grid-template-columns: 1fr;
  }

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

  .page-blog__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }
}