.page-blog {
  background-color: var(--background-color); /* Inherit from shared.css */
  color: #F2FFF6; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  padding: 0;
  background-color: #08160F; /* Background */
}

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

.page-blog__hero-content {
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-blog__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: bold;
  line-height: 1.2;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.page-blog__description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-blog__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

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

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

.page-blog__btn-secondary {
  background-color: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border color */
}

.page-blog__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Slight background on hover */
  transform: translateY(-2px);
}

.page-blog__section {
  padding: 60px 0;
}

.page-blog__section-title {
  font-size: 2.5rem;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-blog__section-title--white {
  color: #F2FFF6;
}

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

.page-blog__text-block {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__text-block--white {
  color: #F2FFF6;
}

/* About Blog Section */
.page-blog__about-blog {
  background-color: #08160F; /* Background */
}

/* Why Best Section */
.page-blog__why-best {
  background-color: #08160F; /* Background */
}

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

.page-blog__feature-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

.page-blog__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-blog__feature-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F2FFF6; /* Text Main */
  padding: 0 15px;
}

.page-blog__feature-description {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  padding: 0 15px;
}

/* Categories Section */
.page-blog__categories {
  background-color: #08160F; /* Background */
}

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

.page-blog__category-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

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

.page-blog__category-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-blog__category-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
}

.page-blog__category-title a:hover {
  color: #2AD16F; /* Button hover color */
}

.page-blog__category-description {
  font-size: 0.9rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-blog__read-more {
  display: inline-block;
  color: #2AD16F; /* Green color for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #13994A; /* Darker green on hover */
  text-decoration: underline;
}

/* Guides Section */
.page-blog__guides {
  background-color: #08160F; /* Background */
}

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

.page-blog__guide-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

.page-blog__guide-item:hover {
  transform: translateY(-5px);
}

.page-blog__guide-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-blog__guide-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
}

.page-blog__guide-title a:hover {
  color: #2AD16F; /* Button hover color */
}

.page-blog__guide-description {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

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

/* Latest Posts Section */
.page-blog__latest-posts {
  background-color: #08160F; /* Background */
}

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

.page-blog__post-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

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

.page-blog__post-image {
  width: 100%;
  height: 200px; /* Consistent image height for cards */
  object-fit: cover;
}

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

.page-blog__post-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
}

.page-blog__post-title a:hover {
  color: #2AD16F; /* Button hover color */
}

.page-blog__post-meta {
  font-size: 0.85rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 10px;
}

.page-blog__post-excerpt {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
  flex-grow: 1;
}

/* Analysis and Strategy Section */
.page-blog__analysis-strategy {
  background-color: #08160F; /* Background */
}

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

.page-blog__strategy-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

.page-blog__strategy-item:hover {
  transform: translateY(-5px);
}

.page-blog__strategy-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-blog__strategy-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
}

.page-blog__strategy-title a:hover {
  color: #2AD16F; /* Button hover color */
}

.page-blog__strategy-description {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}


/* FAQ Section */
.page-blog__faq {
  background-color: #08160F; /* Background */
}

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

.page-blog__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #F2FFF6; /* Text Main */
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  color: #F2FFF6; /* Text Main */
  border-bottom: 1px solid #2E7A4E; /* Divider */
  list-style: none; /* For details/summary */
}

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

.page-blog__faq-item[open] .page-blog__faq-question {
  border-bottom: 1px solid #2E7A4E;
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F;
}

.page-blog__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

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

/* Conclusion Section */
.page-blog__conclusion {
  background-color: #0A4B2C; /* Deep Green */
  padding: 80px 0;
  text-align: center;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
  }

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

@media (max-width: 768px) {
  .page-blog__hero-content {
    padding: 30px 15px;
  }

  .page-blog__main-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

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

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain button width on mobile */
    margin: 0 auto;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    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__section {
    padding: 40px 0;
  }

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

  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__feature-grid,
  .page-blog__category-grid,
  .page-blog__guide-list,
  .page-blog__post-grid,
  .page-blog__strategy-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__feature-image,
  .page-blog__post-image {
    height: 180px; /* Adjust height for mobile cards */
  }

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

  .page-blog__faq-answer {
    padding: 10px 20px 15px 20px;
    font-size: 0.95rem;
  }

  .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 { /* Added hero-section to ensure it also adapts */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Specific padding for sections if needed, but container already handles it */
  .page-blog__about-blog .page-blog__container,
  .page-blog__why-best .page-blog__container,
  .page-blog__categories .page-blog__container,
  .page-blog__guides .page-blog__container,
  .page-blog__latest-posts .page-blog__container,
  .page-blog__analysis-strategy .page-blog__container,
  .page-blog__faq .page-blog__container,
  .page-blog__conclusion .page-blog__container {
      padding-left: 15px !important;
      padding-right: 15px !important;
  }
}