.page-blog {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Custom main text color */
  font-family: 'Arial', sans-serif; /* Placeholder font */
  line-height: 1.6;
  padding-bottom: 50px; /* Add some padding at the bottom */
}

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

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px; /* body handles top padding, 10px for small decorative top spacing */
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio (height / width * 100) */
  height: 0;
  overflow: hidden;
  margin-bottom: 40px;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-blog__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  color: #F2FFF6; /* Custom main text color */
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 */
  color: #F2C14E; /* Custom gold color */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.15rem;
  color: #A7D9B8; /* Custom secondary text color */
  margin-bottom: 30px;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Custom main text color for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
  margin-right: 15px;
}

.page-blog__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Custom gold color */
  border: 2px solid #F2C14E; /* Custom gold color */
  box-shadow: 0 2px 10px rgba(242, 193, 78, 0.2);
}

.page-blog__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

/* Section Titles */
.page-blog__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #F2C14E; /* Custom gold color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-blog__post-card.page-blog__card {
  background-color: #11271B; /* Custom card background color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Custom border color */
}

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

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

.page-blog__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency, will be object-fit: cover */
  object-fit: cover;
  display: block;
  filter: brightness(0.8); /* Slightly dim images for better text contrast */
  transition: filter 0.3s ease;
}

.page-blog__post-card.page-blog__card:hover .page-blog__card-image {
  filter: brightness(1);
}

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

.page-blog__card-title {
  font-size: 1.4rem;
  color: #F2FFF6; /* Custom main text color */
  margin-bottom: 10px;
  line-height: 1.3;
  min-height: 60px; /* Ensure consistent card title height */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-blog__card-meta {
  font-size: 0.9rem;
  color: #A7D9B8; /* Custom secondary text color */
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1rem;
  color: #A7D9B8; /* Custom secondary text color */
  margin-bottom: 20px;
  min-height: 70px; /* Consistent excerpt height */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.page-blog__read-more {
  display: inline-block;
  color: #57E38D; /* Custom glow color */
  font-weight: bold;
}

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

.page-blog__view-all {
  text-align: center;
}

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

.page-blog__category-card.page-blog__card {
  background-color: #11271B; /* Custom card background color */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #1E3A2A; /* Custom divider color */
  text-decoration: none;
  color: inherit;
}

.page-blog__category-card.page-blog__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: #57E38D; /* Custom glow color */
}

.page-blog__category-title {
  font-size: 1.3rem;
  color: #F2C14E; /* Custom gold color */
  margin-bottom: 10px;
}

.page-blog__category-description {
  font-size: 0.95rem;
  color: #A7D9B8; /* Custom secondary text color */
}

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

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

.page-blog__faq-item summary {
  list-style: none; /* Hide default marker for details tag */
}

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: bold;
  color: #F2FFF6; /* Custom main text color */
  background-color: #0A4B2C; /* Custom deep green color */
  border-bottom: 1px solid #1E3A2A; /* Custom divider color */
  transition: background-color 0.3s ease;
}

.page-blog__faq-item:not([open]) .page-blog__faq-question {
  border-bottom: none; /* No border if closed */
}

.page-blog__faq-question:hover {
  background-color: #0A4B2C; /* Darker green on hover */
}

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

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #F2C14E; /* Custom gold color */
}

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

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

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

.page-blog__cta-content.page-blog__dark-section {
  background-color: #0A4B2C; /* Custom deep green color */
  border-radius: 15px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 2px solid #57E38D; /* Custom glow color */
}

.page-blog__cta-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: #F2C14E; /* Custom gold color */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__cta-description {
  font-size: 1.15rem;
  color: #A7D9B8; /* Custom secondary text color */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .page-blog__post-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
    padding-bottom: 40px;
  }

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

  .page-blog__hero-description {
    font-size: 1rem;
  }

  .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 {
    flex-direction: column !important;
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__btn-primary {
    margin-right: 0; /* Remove margin for stacked buttons */
  }

  .page-blog__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-blog__post-grid {
    grid-template-columns: 1fr;
  }

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

  .page-blog__card-title {
    font-size: 1.2rem;
    min-height: auto;
  }

  .page-blog__card-excerpt {
    min-height: auto;
  }

  .page-blog__category-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-blog__cta-content.page-blog__dark-section {
    padding: 40px 20px;
  }

  .page-blog__cta-title {
    font-size: clamp(1.8rem, 7.5vw, 2.5rem);
  }

  /* Images responsive */
  .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-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Content area images min size check for mobile */
  .page-blog__post-card .page-blog__card-image {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    padding: 12px 20px;
  }
}