.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: 0 20px;
  box-sizing: border-box;
}

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

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 800px;
  margin-top: -120px; /* Pull content up over image a bit for visual flow */
  background: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-blog__subtitle {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #ffffff;
  border: none;
}

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

.page-blog__btn-secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F; /* Button highlight */
  border: 2px solid #2AD16F;
}

.page-blog__btn-secondary:hover {
  background: #2AD16F;
  color: #11271B;
  transform: translateY(-2px);
}

.page-blog__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-blog__intro-section, .page-blog__topics-section, .page-blog__latest-posts, .page-blog__faq-section, .page-blog__cta-section {
  padding: 60px 0;
}

.page-blog__text-block {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-blog__topic-card, .page-blog__post-card {
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__topic-image, .page-blog__post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-blog__topic-title, .page-blog__post-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin: 20px 20px 10px 20px;
  line-height: 1.3;
}

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

.page-blog__post-title a:hover {
  color: #2AD16F; /* Button highlight */
}

.page-blog__topic-description, .page-blog__post-excerpt {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__topic-card .page-blog__btn-secondary {
  margin: 0 20px 20px;
  align-self: flex-start;
}

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

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

.page-blog__post-meta {
  font-size: 0.85em;
  color: #A7D9B8; /* Text Secondary */
  margin: 0 20px 15px 20px;
}

.page-blog__btn-text {
  color: #2AD16F; /* Button highlight */
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 0 20px;
  align-self: flex-start;
}

.page-blog__btn-text:hover {
  text-decoration: underline;
}

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

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

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

.page-blog__faq-item summary {
  list-style: none;
}

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-blog__faq-question:hover {
  background: #13994A; /* Slightly lighter green */
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #57E38D; /* Glow */
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar visual */
}

.page-blog__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__faq-answer p {
  margin: 0;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__cta-section .page-blog__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: #0A4B2C; /* Deep Green */
  border-radius: 15px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-blog__cta-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-blog__cta-content .page-blog__section-title {
  text-align: left;
  margin-bottom: 25px;
}

.page-blog__cta-content .page-blog__text-block {
  text-align: left;
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-blog__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-blog__cta-image-wrapper {
  flex: 0 0 auto;
  width: 400px;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }

  .page-blog__cta-section .page-blog__container {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }

  .page-blog__cta-content {
    text-align: center;
  }

  .page-blog__cta-content .page-blog__section-title,
  .page-blog__cta-content .page-blog__text-block {
    text-align: center;
  }

  .page-blog__cta-buttons {
    justify-content: center;
  }

  .page-blog__cta-image-wrapper {
    order: -1; /* Move image above content on smaller screens */
    margin-bottom: 30px;
  }
}

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

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

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

  .page-blog__hero-content {
    margin-top: -60px;
    padding: 20px 10px;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-blog__subtitle {
    font-size: 1em;
  }

  .page-blog__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 30px;
  }

  .page-blog__intro-section, .page-blog__topics-section, .page-blog__latest-posts, .page-blog__faq-section, .page-blog__cta-section {
    padding: 40px 0;
  }

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

  .page-blog__topic-card .page-blog__btn-secondary {
    width: calc(100% - 40px);
    text-align: center;
  }

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

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

  .page-blog__cta-section .page-blog__container {
    padding: 30px 20px;
  }

  .page-blog__cta-image-wrapper {
    width: 100%;
  }

  /* Image responsiveness */
  .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__cta-section .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__hero-section {
    padding-top: 10px !important;
  }

  .page-blog__video-section {
    padding-top: 10px !important;
  }

  .page-blog__video-wrapper,
  .page-blog__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}