.page-blog {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
}

.page-blog__text-main {
  color: #F2FFF6; /* Text Main */
}

.page-blog__text-secondary {
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__btn-primary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.4);
}

.page-blog__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  background-color: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-blog__btn-secondary:hover {
  background-color: #2AD16F;
  color: #ffffff;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 80px 0;
  overflow: hidden;
}

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

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

.page-blog__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-blog__hero-description {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  line-height: 1.6;
}

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

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

.page-blog__post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(42, 209, 111, 0.3);
}

.page-blog__post-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

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

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

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

.page-blog__post-excerpt {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

/* Why Read Section */
.page-blog__why-read {
  padding: 80px 0;
  background-color: #11271B; /* Card BG, as a lighter background variant */
}

.page-blog__why-read-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-blog__why-read-text {
  flex: 1;
}

.page-blog__why-read-text p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.7;
}

.page-blog__why-read-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-blog__why-read-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

.page-blog__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-blog__faq-item {
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-blog__faq-item:hover {
  background-color: rgba(42, 209, 111, 0.1);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  padding: 15px 0;
  list-style: none;
}

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

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: #2AD16F;
  margin-left: 15px;
}

.page-blog__faq-answer {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
  padding: 0 15px 15px 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-blog__faq-item[open] .page-blog__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 0 15px 25px 0;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

/* CTA Banner Section */
.page-blog__cta-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  background-color: #13994A; /* Deep Green from button gradient */
  position: relative;
  overflow: hidden;
}

.page-blog__cta-content {
  text-align: center;
  z-index: 1;
  max-width: 800px;
}

.page-blog__cta-description {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-blog__cta-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-blog__cta-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: brightness(0.7);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__why-read-content {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__why-read-image-wrapper {
    order: -1; /* Image first on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px !important;
  }

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

  .page-blog__main-title {
    font-size: clamp(30px, 8vw, 48px);
  }

  .page-blog__hero-description {
    font-size: 16px;
  }

  .page-blog__section-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 30px;
  }

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

  .page-blog__why-read, .page-blog__latest-posts, .page-blog__faq-section, .page-blog__cta-banner {
    padding: 60px 0;
  }

  .page-blog__faq-question {
    font-size: 18px;
  }

  .page-blog__faq-answer {
    font-size: 15px;
  }

  /* Image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog__hero-image-wrapper,
  .page-blog__why-read-image-wrapper,
  .page-blog__cta-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsiveness */
  .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 !important;
    padding-right: 15px !important;
  }

  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    display: flex;
    flex-direction: column;
  }

  .page-blog__hero-content,
  .page-blog__cta-content {
    padding: 0 15px !important;
  }

  .page-blog__post-card .page-blog__btn-secondary {
    width: auto !important;
    align-self: flex-start;
  }
  .page-blog__view-all .page-blog__btn-primary {
    width: auto !important;
    max-width: 250px !important; /* Limit width for single button */
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .page-blog__btn-primary {
    font-size: 16px;
    padding: 12px 25px;
  }

  .page-blog__btn-secondary {
    font-size: 14px;
    padding: 8px 15px;
  }
}