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

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

.page-blog__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-blog__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-blog__hero-content {
  padding: 40px 15px;
  max-width: 800px;
  z-index: 1;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-blog__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-blog__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-blog__latest-posts {
  padding: 60px 0;
}

.page-blog__latest-posts .page-blog__section-title {
  color: #333333;
}

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

.page-blog__post-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__post-image-wrapper {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-blog__post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-blog__post-title a {
  color: #11A84E;
  text-decoration: none;
}

.page-blog__post-title a:hover {
  text-decoration: underline;
}

.page-blog__post-meta {
  font-size: 0.9rem;
  color: #A7D9B8;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1rem;
  color: #333333;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  color: #11A84E;
  text-decoration: none;
  font-weight: 600;
  align-self: flex-start;
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

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

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

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

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

.page-blog__category-card {
  background-color: #11271B;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: #F2FFF6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-blog__category-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #11A84E;
  min-width: 200px;
  min-height: 200px;
}

.page-blog__category-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.page-blog__faq-section {
  padding: 60px 0;
}

.page-blog__faq-section .page-blog__section-title {
  color: #333333;
}

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

.page-blog__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  list-style: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

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

.page-blog__faq-item summary:hover {
  background-color: #f9f9f9;
}

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

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

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: '−';
}

.page-blog__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
}

.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-blog__cta-section .page-blog__section-title {
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-blog__cta-section .page-blog__description {
  font-size: 1.2rem;
  color: #A7D9B8;
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-blog__post-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .page-blog__category-card {
    padding: 15px;
  }
  .page-blog__category-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-blog__main-title {
    font-size: 2.2rem;
  }
  .page-blog__description {
    font-size: 1rem;
  }
  .page-blog__section-title {
    font-size: 2rem;
  }
  .page-blog__latest-posts, .page-blog__categories, .page-blog__faq-section, .page-blog__cta-section {
    padding: 40px 0;
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-card {
    margin: 0 15px;
  }
  .page-blog__category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-blog__category-card {
    margin: 0 10px;
  }
  .page-blog__post-image,
  .page-blog__hero-image,
  .page-blog__category-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__latest-posts,
  .page-blog__categories,
  .page-blog__faq-section,
  .page-blog__cta-section,
  .page-blog__container,
  .page-blog__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-blog__cta-button {
    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;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 1.8rem;
  }
  .page-blog__section-title {
    font-size: 1.8rem;
  }
  .page-blog__post-title {
    font-size: 1.2rem;
  }
  .page-blog__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-blog__category-grid {
    grid-template-columns: 1fr;
  }
}