.page-blog {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Dark background, so light text */
  background-color: var(--background); /* #08160F */
  line-height: 1.6;
}

.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;
  text-align: 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%;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  background: var(--card-bg); /* #11271B */
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 1.1rem;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 30px;
}

/* CTA Button - Primary Style */
.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding doesn't push width */
  max-width: 100%; /* For responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

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

/* Secondary CTA Button Style */
.page-blog__cta-button--secondary {
  background: none;
  border: 2px solid var(--border); /* #2E7A4E */
  color: var(--text-main); /* #F2FFF6 */
  margin-left: 20px;
}

.page-blog__cta-button--secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* Slightly lighter border color for hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Title */
.page-blog__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--gold); /* #F2C14E */
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  line-height: 1.3;
}

/* Featured Articles */
.page-blog__featured-articles {
  padding: 80px 0;
}

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

.page-blog__article-card {
  background: var(--card-bg); /* #11271B */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}

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

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

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

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

.page-blog__article-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__article-meta {
  font-size: 0.9rem;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1rem;
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-blog__button-group {
    text-align: center;
    margin-top: 40px;
}

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

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

.page-blog__category-card {
  background: var(--card-bg); /* #11271B */
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

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

.page-blog__category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 15px;
}

.page-blog__category-description {
  font-size: 1rem;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 20px;
}

.page-blog__link-text {
  color: var(--glow); /* #57E38D */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__link-text:hover {
  text-decoration: underline;
  color: #ffffff;
}

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

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

.page-blog__faq-item {
  background: var(--card-bg); /* #11271B */
  border: 1px solid var(--divider); /* #1E3A2A */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-blog__faq-item[open] {
  background: var(--deep-green); /* #0A4B2C */
  border-color: var(--glow); /* #57E38D */
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main); /* #F2FFF6 */
  cursor: pointer;
  transition: color 0.3s ease;
  list-style: none; /* Remove default marker */
}

.page-blog__faq-question::-webkit-details-marker {
  display: none; /* Remove default marker for webkit browsers */
}

.page-blog__faq-item[open] .page-blog__faq-question {
  color: var(--gold); /* #F2C14E */
}

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

.page-blog__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold); /* #F2C14E */
}

.page-blog__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary); /* #A7D9B8 */
  line-height: 1.7;
}

.page-blog__faq-answer p {
  margin-bottom: 10px;
}
.page-blog__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-blog__faq-answer a {
  color: var(--glow);
  text-decoration: underline;
}

.page-blog__faq-answer a:hover {
  color: #ffffff;
}

/* CTA Section at bottom */
.page-blog__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--background); /* #08160F */
}

.page-blog__dark-section .page-blog__section-title {
  color: var(--text-main); /* #F2FFF6 */
}
.page-blog__dark-section .page-blog__description {
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-blog__cta-section .page-blog__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: -60px;
    padding: 30px;
  }
  .page-blog__article-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-blog__hero-content {
    margin-top: -40px;
    padding: 25px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-blog__main-title {
    font-size: 2.2rem;
  }

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

  .page-blog__cta-button {
    width: 100% !important;
    margin: 10px 0 !important; /* Stack buttons */
    max-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-button--secondary {
      margin-left: 0 !important;
  }
  .page-blog__cta-section .page-blog__button-group {
      flex-direction: column !important;
      gap: 10px !important;
  }

  .page-blog__section-title {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .page-blog__featured-articles,
  .page-blog__other-categories,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 40px 0;
  }

  .page-blog__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-blog__article-image {
    height: 180px;
  }

  .page-blog__article-title {
    font-size: 1.2rem;
  }

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

  .page-blog__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

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

  /* Mobile image adaptation */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 1.8rem;
  }
  .page-blog__section-title {
    font-size: 1.6rem;
  }
  .page-blog__hero-content {
      padding: 20px;
  }
  .page-blog__article-content {
      padding: 20px;
  }
  .page-blog__category-card {
      padding: 20px;
  }
}