/* Base Styles for Blog Page */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__section-description {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__main-title {
  font-weight: 700;
  line-height: 1.2;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px;
}

.page-blog__subtitle {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 810px; /* Max height for 1920x810 aspect ratio */
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers the area */
  object-position: center;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

/* CTA Button */
.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 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 {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
  padding: 60px 0;
}

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

.page-blog__post-card {
  background: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

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

.page-blog__post-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-blog__post-image-wrapper {
  width: 100%;
  height: 225px; /* Fixed height for consistent image size (800x450 ratio) */
  overflow: hidden;
}

.page-blog__post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-blog__post-card:hover .page-blog__post-image {
  transform: scale(1.05);
}

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

.page-blog__post-title {
  font-size: 22px;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  line-height: 1.3;
}

.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 */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-link {
  display: inline-flex;
  align-items: center;
  color: #2AD16F;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
}

.page-blog__read-more-link .page-blog__arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.page-blog__post-card:hover .page-blog__read-more-link .page-blog__arrow {
  transform: translateX(5px);
}

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

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-blog__category-card {
  background: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

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

.page-blog__category-image {
  width: 100%;
  height: 200px; /* Fixed height for category images */
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  transition: transform 0.3s ease;
}

.page-blog__category-card:hover .page-blog__category-image {
  transform: scale(1.05);
}

.page-blog__category-title {
  font-size: 20px;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  padding: 15px 10px;
  margin: 0;
}

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

.page-blog__cta-banner-content {
  background: #11271B; /* Card BG */
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-banner-image {
  width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-blog__cta-text-wrapper {
  width: 50%;
  text-align: left;
}

.page-blog__cta-title {
  font-size: 38px;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

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

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0 80px;
}

.page-blog__faq-list {
  margin-top: 40px;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: rgba(46, 122, 78, 0.2); /* Lighter border color */
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6; /* Text Main */
}

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #57E38D; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: rgba(17, 39, 27, 0.8); /* Slightly darker Card BG */
  border-radius: 0 0 10px 10px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 16px;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 15px;
  }

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

  .page-blog__main-title {
    font-size: 32px;
  }

  .page-blog__subtitle {
    font-size: 16px;
  }

  .page-blog__section-title {
    font-size: 30px;
  }

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

  .page-blog__cta-banner-content {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .page-blog__cta-banner-image {
    width: 80%;
    margin-bottom: 30px;
  }

  .page-blog__cta-text-wrapper {
    width: 100%;
    text-align: center;
  }

  .page-blog__cta-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  /* All images */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* All containers with images/buttons */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__latest-posts-section,
  .page-blog__categories-section,
  .page-blog__cta-banner-section,
  .page-blog__faq-section,
  .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;
  }

  /* Banner __hero-section */
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
  }

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

  .page-blog__hero-image {
    object-fit: contain; /* Ensure image is fully visible */
  }

  .page-blog__main-title {
    font-size: 28px;
  }

  .page-blog__subtitle {
    font-size: 15px;
  }

  /* All buttons */
  .page-blog__cta-button,
  .page-blog__read-more-link,
  .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: 12px 20px;
    font-size: 16px;
  }

  /* Blog Posts Grid */
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__post-image-wrapper {
    height: 180px;
  }

  .page-blog__post-title {
    font-size: 18px;
  }

  .page-blog__post-excerpt {
    font-size: 15px;
  }

  /* Categories Grid */
  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-blog__category-image {
    height: 150px;
  }

  .page-blog__category-title {
    font-size: 16px;
  }

  /* CTA Banner */
  .page-blog__cta-banner-content {
    padding: 25px;
    gap: 25px;
  }

  .page-blog__cta-banner-image {
    width: 95%;
  }

  .page-blog__cta-title {
    font-size: 28px;
  }

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

  /* FAQ Section */
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
  }

  .page-blog__faq-qtext {
    font-size: 16px;
  }

  .page-blog__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 20px;
  }
}