.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--Text-Main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--Background, #08160F); /* Default background color */
}

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

.page-blog__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--Text-Main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-blog__section-description {
  font-size: 18px;
  color: var(--Text-Secondary, #A7D9B8);
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-blog__hero-image-container {
  width: 100%;
  max-height: 810px; /* Matches placeholder height */
  overflow: hidden;
  position: relative;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -120px; /* Overlap slightly for visual effect, but not over image */
  background: rgba(8, 22, 15, 0.85); /* Card BG with opacity */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--Border, #2E7A4E);
}

.page-blog__main-title {
  font-size: 52px;
  color: var(--Text-Main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.page-blog__description {
  font-size: 20px;
  color: var(--Text-Secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

.page-blog__posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-blog__post-card {
  background: var(--Card-B-G, #11271B);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--Border, #2E7A4E);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__post-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.page-blog__post-thumbnail {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-blog__post-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--Text-Main, #F2FFF6);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-excerpt {
  font-size: 16px;
  color: var(--Text-Secondary, #A7D9B8);
  margin-bottom: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-blog__post-date {
  font-size: 14px;
  color: var(--Text-Secondary, #A7D9B8);
  opacity: 0.8;
}

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

.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  background: var(--Deep-Green, #0A4B2C);
  color: var(--Text-Main, #F2FFF6);
  border: 1px solid var(--Border, #2E7A4E);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__view-all-button:hover {
  background-color: var(--Deep-Green, #0A4B2C);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Category Section */
.page-blog__category-section {
  padding: 60px 0;
  background-color: var(--Background, #08160F);
  margin-bottom: 40px;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.page-blog__category-card {
  background: var(--Card-B-G, #11271B);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--Border, #2E7A4E);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__category-thumbnail {
  width: 100%;
  height: 150px; /* Fixed height for category thumbnails */
  object-fit: cover;
  border-bottom: 1px solid var(--Divider, #1E3A2A);
}

.page-blog__category-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--Text-Main, #F2FFF6);
  padding: 15px 10px;
}

/* Featured Article Section */
.page-blog__featured-article-section {
  padding: 80px 0;
  margin-bottom: 60px;
}

.page-blog__dark-section {
  background-color: var(--Deep-Green, #0A4B2C);
  color: #ffffff;
}

.page-blog__dark-section .page-blog__section-title,
.page-blog__dark-section .page-blog__description,
.page-blog__dark-section p {
  color: #ffffff;
}

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

.page-blog__featured-text {
  flex: 1;
  text-align: left;
}

.page-blog__featured-text .page-blog__section-title {
  text-align: left;
  font-size: 40px;
}

.page-blog__featured-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--Text-Secondary, #A7D9B8);
}

.page-blog__featured-image-wrapper {
  flex: 0 0 500px;
  max-width: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--Border, #2E7A4E);
}

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

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--Border, #2E7A4E);
  overflow: hidden;
  background: var(--Card-B-G, #11271B);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: rgba(46, 122, 78, 0.2); /* Lighter green hover */
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--Text-Main, #F2FFF6);
}

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--Glow, #57E38D);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: rgba(17, 39, 27, 0.8); /* Slightly transparent Card BG */
  border-radius: 0 0 12px 12px;
}

details.page-blog__faq-item .page-blog__faq-answer p {
  font-size: 16px;
  color: var(--Text-Secondary, #A7D9B8);
  line-height: 1.6;
}

/* CTA Bottom Section */
.page-blog__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

.page-blog__cta-bottom-section .page-blog__section-title {
  font-size: 44px;
  margin-bottom: 25px;
}

.page-blog__cta-bottom-section p {
  font-size: 20px;
  color: var(--Text-Secondary, #A7D9B8);
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-blog__btn-secondary {
  background: var(--Card-B-G, #11271B);
  color: var(--Glow, #57E38D);
  border: 2px solid var(--Glow, #57E38D);
}

.page-blog__btn-secondary:hover {
  background: var(--Glow, #57E38D);
  color: var(--Card-B-G, #11271B);
}

/* General Image and Button Responsiveness */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-buttons,
.page-blog__button-group,
.page-blog__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive styles for tablets and smaller desktops */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 20px 30px;
  }

  .page-blog__main-title {
    font-size: 44px;
  }

  .page-blog__description {
    font-size: 18px;
  }

  .page-blog__posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-blog__category-thumbnail {
    height: 120px;
  }

  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-blog__featured-content {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__featured-text {
    order: 2; /* Text below image */
  }

  .page-blog__featured-text .page-blog__section-title {
    text-align: center;
    font-size: 36px;
  }

  .page-blog__featured-image-wrapper {
    order: 1;
    max-width: 100%;
    flex: 0 0 auto;
    margin-bottom: 30px;
  }

  .page-blog__cta-bottom-section .page-blog__section-title {
    font-size: 38px;
  }

  .page-blog__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__container {
    padding: 15px;
  }

  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-blog__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Hero Section */
  .page-blog__hero-section {
    padding-top: 10px;
    margin-bottom: 40px;
  }

  .page-blog__hero-image {
    object-fit: contain !important;
    height: auto !important;
  }

  .page-blog__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }

  .page-blog__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-blog__description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-blog__cta-button {
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Latest Posts Section */
  .page-blog__latest-posts-section {
    padding: 40px 0;
    margin-bottom: 20px;
  }

  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__post-title {
    font-size: 18px;
  }

  .page-blog__post-excerpt {
    font-size: 14px;
  }

  .page-blog__view-all-container {
    margin-top: 30px;
  }

  /* Category Section */
  .page-blog__category-section {
    padding: 40px 0;
    margin-bottom: 20px;
  }

  .page-blog__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__category-thumbnail {
    height: 100px;
  }

  .page-blog__category-title {
    font-size: 18px;
  }

  /* Featured Article Section */
  .page-blog__featured-article-section {
    padding: 50px 0;
    margin-bottom: 40px;
  }

  .page-blog__featured-text .page-blog__section-title {
    font-size: 28px;
  }

  .page-blog__featured-text p {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* FAQ Section */
  .page-blog__faq-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }

  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
  }

  .page-blog__faq-qtext {
    font-size: 16px;
  }

  .page-blog__faq-toggle {
    font-size: 24px;
    width: 24px;
  }

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

  details.page-blog__faq-item .page-blog__faq-answer p {
    font-size: 15px;
  }

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

  .page-blog__cta-bottom-section .page-blog__section-title {
    font-size: 32px;
  }

  .page-blog__cta-bottom-section p {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

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

  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}