:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;

  /* Custom Palette */
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --bg-main: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* style/blog.css */
/* 
 * Body background is var(--bg-main) which is dark (#08160F).
 * Therefore, default text color for .page-blog should be light.
 */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* #F2FFF6 */
  background-color: var(--bg-main); /* #08160F */
}

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

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

.page-blog__section-intro {
  font-size: 1.1em;
  color: var(--text-secondary); /* #A7D9B8 */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small padding-top, rest is handled by body */
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-main); /* Ensure background for hero */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  max-height: 500px; /* Limit height on desktop */
  object-fit: cover;
  display: block;
  margin-bottom: 40px; /* Space between image and text */
}

.page-blog__hero-content {
  position: relative; /* Ensure content is above any potential background */
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

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

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

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-blog__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff; /* White text for primary button */
  border: none;
}

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

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

.page-blog__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

/* Featured Topics Section */
.page-blog__featured-topics {
  padding: 60px 0;
  background-color: var(--bg-main); /* #08160F */
}

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

.page-blog__article-card {
  background-color: var(--card-bg); /* #11271B */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-blog__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

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

.page-blog__card-title a:hover {
  color: var(--glow); /* #57E38D */
}

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

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

.page-blog__card-readmore {
  display: inline-block;
  color: var(--glow); /* #57E38D */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__card-readmore:hover {
  text-decoration: underline;
}

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

/* Importance Section */
.page-blog__importance-section {
  padding: 80px 0;
  background-color: var(--deep-green); /* #0A4B2C - Dark section */
  color: var(--text-main); /* #F2FFF6 */
}

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

.page-blog__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-blog__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-blog__image-wrapper {
  text-align: center;
}

.page-blog__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Ensure content images are not too small */
  min-height: 200px;
}

/* How to Use Section */
.page-blog__how-to-use-section {
  padding: 60px 0;
  background-color: var(--bg-main); /* #08160F */
}

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

.page-blog__feature-item {
  background-color: var(--card-bg); /* #11271B */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__feature-title {
  font-size: 1.5em;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 15px;
}

.page-blog__feature-description {
  color: var(--text-secondary); /* #A7D9B8 */
  font-size: 1em;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: var(--bg-main); /* #08160F */
}

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

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

.page-blog__faq-item summary {
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main); /* #F2FFF6 */
  background-color: rgba(17, 39, 27, 0.5); /* Slightly lighter card bg for summary */
  transition: background-color 0.3s ease;
}

.page-blog__faq-item summary:hover {
  background-color: rgba(17, 39, 27, 0.7);
}

/* Hide default marker for Webkit browsers */
.page-blog__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--glow); /* #57E38D */
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: "−"; /* Change to minus when open */
}

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

.page-blog__faq-answer p {
  margin-top: 15px;
}

/* Conclusion Section */
.page-blog__conclusion-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-green); /* #0A4B2C */
}

.page-blog__conclusion-section .page-blog__section-title {
  font-size: 2.8em;
  color: var(--text-main); /* #F2FFF6 */
}

.page-blog__conclusion-section .page-blog__description {
  max-width: 900px;
  margin: 20px auto 40px auto;
  font-size: 1.2em;
  color: var(--text-secondary); /* #A7D9B8 */
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-blog__content-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__image-wrapper {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__main-title {
    font-size: clamp(2em, 8vw, 2.8em);
  }
  .page-blog__description,
  .page-blog__section-intro,
  .page-blog__text-block p,
  .page-blog__feature-description {
    font-size: 1em;
  }

  .page-blog__hero-section {
    padding-bottom: 40px;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .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__container,
  .page-blog__section,
  .page-blog__card,
  .page-blog__content-area,
  .page-blog__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-blog__hero-image {
    max-height: 300px;
  }

  .page-blog__article-image {
    height: 180px; /* Adjust card image height for mobile */
  }

  /* Ensure content area images are not too small */
  .page-blog__content-image {
    min-width: 200px;
    min-height: 200px;
  }
}