/* style/blog.css */
.page-blog {
  background-color: #08160F;
  color: #F2FFF6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-blog__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: #F2FFF6;
  margin-bottom: 20px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
}

.page-blog__hero-description {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-bottom: 30px;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-blog__section-title {
  font-size: 2.5rem;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2AD16F 0%, #13994A 100%);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-blog__text {
  font-size: 1.05rem;
  color: #A7D9B8;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-blog__category-card {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__card-title {
  font-size: 1.8rem;
  color: #F2FFF6;
  margin-bottom: 15px;
  border-bottom: 2px solid #2AD16F;
  padding-bottom: 10px;
}

.page-blog__card-text {
  font-size: 0.95rem;
  color: #A7D9B8;
  margin-bottom: 15px;
}

.page-blog__card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-blog__card-list li {
  color: #A7D9B8;
  font-size: 0.9rem;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.page-blog__card-list li::before {
  content: '•';
  color: #2AD16F;
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1;
}

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

.page-blog__post-card {
  display: block;
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-blog__post-title {
  font-size: 1.3rem;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-blog__post-date {
  font-size: 0.85rem;
  color: #A7D9B8;
  margin-bottom: 10px;
}

.page-blog__post-excerpt {
  font-size: 0.95rem;
  color: #A7D9B8;
}

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

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease, transform 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 {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-blog__faq-section {
  background-color: #0A4B2C; /* Deep Green for FAQ section */
}

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

.page-blog__faq-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #F2FFF6;
  cursor: pointer;
  background-color: #1E3A2A; /* Divider color for question background */
  list-style: none;
  position: relative;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-blog__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #2AD16F;
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form an X */
}

.page-blog__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #A7D9B8;
  text-align: justify;
}

.page-blog__cta-section {
  background-color: #08160F;
  text-align: center;
  padding-bottom: 80px;
}

.page-blog__cta-content {
  max-width: 800px;
}

/* Global image responsiveness */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-blog__hero-section {
    padding-bottom: 40px;
  }

  .page-blog__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 1rem;
    max-width: 95%;
  }

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

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

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

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

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

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

  .page-blog__post-title {
    font-size: 1.15rem;
  }

  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    width: 100% !important;
  }

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

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

  /* Force responsive images */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Ensure content containers are responsive */
  .page-blog__section,
  .page-blog__container,
  .page-blog__category-card,
  .page-blog__post-card,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__hero-image-wrapper {
    left: 0;
    right: 0;
  }

  .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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}