.page-blog {
  background-color: var(--background-color, #08160F);
  color: var(--text-main, #F2FFF6);
  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__dark-bg {
  background-color: var(--background-color, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-blog__card {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
}

.page-blog__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary, #A7D9B8);
}

/* Buttons */
.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;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
}

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

.page-blog__btn-secondary {
  background: transparent;
  color: #2AD16F; /* A lighter green for contrast */
  border: 2px solid #2AD16F; /* A lighter green for contrast */
}

.page-blog__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  transform: translateY(-2px);
}

/* Hero Section */
.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 */
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 10px;
}

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

.page-blog__hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 1;
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-blog__description {
  font-size: 1.2em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

/* Latest Posts */
.page-blog__latest-posts {
  padding: 80px 0;
}

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

.page-blog__post-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-blog__post-thumbnail {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.page-blog__post-thumbnail img {
  width: 100%;
  height: 100%;
  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.5em;
  font-weight: bold;
  margin-bottom: 10px;
}

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

.page-blog__post-title a:hover {
  color: var(--primary-color, #11A84E);
}

.page-blog__post-meta {
  font-size: 0.9em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-btn {
  display: inline-block;
  color: var(--primary-color, #11A84E);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more-btn:hover {
  color: var(--glow, #57E38D);
}

.page-blog__view-all-wrapper {
  text-align: center;
}

/* Categories */
.page-blog__categories {
  padding: 80px 0;
  background-color: var(--deep-green, #0A4B2C);
}

.page-blog__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-blog__category-card {
  padding: 30px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__category-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main, #F2FFF6);
}

.page-blog__category-count {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

/* Featured Article */
.page-blog__featured-article {
  padding: 80px 0;
}

.page-blog__featured-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-blog__featured-image {
  flex: 1;
  min-width: 400px;
  border-radius: 10px;
  overflow: hidden;
}

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

.page-blog__featured-text {
  flex: 2;
}

.page-blog__featured-title {
  font-size: 2em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
}

.page-blog__featured-excerpt {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: var(--deep-green, #0A4B2C);
}

.page-blog__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-blog__faq-item {
  padding: 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-blog__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  padding-right: 15px; /* Space for toggle icon */
}

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
  color: var(--primary-color, #11A84E);
}

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

.page-blog__faq-answer {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  padding-top: 15px;
  line-height: 1.8;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
}

.page-blog__cta-content {
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__cta-title {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
}

.page-blog__cta-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

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

.page-blog__cta-image {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  overflow: hidden;
}

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__featured-content {
    flex-direction: column;
  }
  .page-blog__featured-image,
  .page-blog__featured-text {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .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;
  }

  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

  .page-blog__description {
    font-size: 1em;
  }

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

  .page-blog__post-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__post-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-blog__featured-article {
    padding: 40px 0;
  }

  .page-blog__featured-title {
    font-size: 1.5em;
  }

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

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

  .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;
  }

  /* Image responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__hero-image-wrapper,
  .page-blog__post-thumbnail,
  .page-blog__featured-image,
  .page-blog__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog__video-section {
    padding-top: 10px !important;
  }

  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}