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

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

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

.page-blog__hero-image-wrapper {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 800px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(17, 40, 27, 0.7); /* Deep Green with transparency */
  border-radius: 10px;
}

.page-blog__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-blog__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: #2AD16F; /* Brighter green for contrast */
  border: 2px solid #2AD16F;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.page-blog__btn-secondary:hover {
  background-color: #2AD16F;
  color: #F2FFF6; /* Text Main */
  transform: translateY(-2px);
}

.page-blog__btn-text {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__btn-text:hover {
  color: #F2C14E; /* Gold */
}

.page-blog__intro-section,
.page-blog__categories-section,
.page-blog__featured-posts,
.page-blog__cta-section,
.page-blog__faq-section,
.page-blog__contact-section {
  padding: 80px 0;
}

.page-blog__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-blog__section-description {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__image-with-text {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-blog__content-image {
  flex: 1;
  border-radius: 10px;
  object-fit: cover;
  max-width: 100%;
  height: auto;
}

.page-blog__text-content {
  flex: 1;
  color: #F2FFF6; /* Text Main */
}

.page-blog__text-content p {
  margin-bottom: 15px;
}

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

.page-blog__category-card,
.page-blog__post-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-blog__category-card .page-blog__category-title,
.page-blog__post-card .page-blog__post-title {
  margin: 15px 20px 10px;
  font-size: 1.3em;
  font-weight: bold;
  line-height: 1.4;
}

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

.page-blog__category-card .page-blog__category-title a:hover,
.page-blog__post-card .page-blog__post-title a:hover {
  color: #57E38D; /* Glow */
}

.page-blog__category-excerpt,
.page-blog__post-excerpt {
  color: #A7D9B8; /* Text Secondary */
  margin: 0 20px 15px;
  flex-grow: 1;
}

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

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

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

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

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

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

.page-blog__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  list-style: none;
  font-weight: bold;
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
  transition: background-color 0.3s ease;
}

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

.page-blog__faq-item summary:hover {
  background-color: #1E3A2A; /* Divider */
}

.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);
}

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

.page-blog__contact-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    max-width: 600px;
  }
  .page-blog__image-with-text {
    flex-direction: column;
  }
  .page-blog__content-image {
    width: 100%;
  }
}

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

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

  .page-blog__hero-content {
    width: calc(100% - 30px);
    padding: 15px;
  }

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

  .page-blog__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .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,
  .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;
    flex-direction: column;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-blog__intro-section,
  .page-blog__categories-section,
  .page-blog__featured-posts,
  .page-blog__cta-section,
  .page-blog__faq-section,
  .page-blog__contact-section {
    padding: 40px 0;
  }

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

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

@media (max-width: 480px) {
  .page-blog__hero-content {
    padding: 10px;
  }
  .page-blog__main-title {
    font-size: clamp(1.5rem, 9vw, 2rem);
  }
  .page-blog__btn-primary {
    padding: 12px 20px;
  }
}