/* style/blog.css */
.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;
}

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

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

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

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #F2FFF6; /* Text Main */
}

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

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

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

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

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

.page-blog__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-blog__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background-color: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #2E7A4E; /* Border */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.page-blog__btn-secondary:hover {
  background-color: #2E7A4E; /* Border */
  color: #F2FFF6; /* Text Main */
  border-color: #57E38D; /* Glow */
}

.page-blog__table-of-contents {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green - slightly lighter for contrast */
  color: #F2FFF6; /* Text Main */
}

.page-blog__toc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 30px;
  margin-top: 30px;
}

.page-blog__toc-list a {
  color: #F2C14E; /* Gold */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__toc-list a:hover {
  color: #57E38D; /* Glow */
}

.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-top: 50px;
}

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

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

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

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

.page-blog__post-title {
  font-size: 1.4em;
  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: #F2C14E; /* Gold */
}

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

.page-blog__post-excerpt {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

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

.page-blog__featured-categories {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-blog__category-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

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

.page-blog__category-title {
  font-size: 1.5em;
  margin-bottom: 15px;
}

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

.page-blog__category-title a:hover {
  color: #F2C14E; /* Gold */
}

.page-blog__category-description {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 25px;
}

.page-blog__in-depth-articles {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

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

.page-blog__article-heading {
  font-size: 1.8em;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  border-bottom: 2px solid #1E3A2A; /* Divider */
  padding-bottom: 10px;
}

.page-blog__article-block p {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-blog__article-block strong {
  color: #F2FFF6; /* Text Main */
}

.page-blog__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__list li {
  margin-bottom: 10px;
}

.page-blog__list li strong {
  color: #F2FFF6; /* Text Main */
}

.page-blog__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-blog__faq-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-blog__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  list-style: none;
}

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  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 25px 20px 25px;
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__faq-answer p {
  margin-bottom: 0;
}

.page-blog__conclusion {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 0 15px;
  }
  .page-blog__posts-grid, .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles header offset */
  }
  .page-blog__main-title {
    font-size: clamp(2em, 7vw, 2.8em);
  }
  .page-blog__subtitle {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-blog__posts-grid, .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-content, .page-blog__category-card, .page-blog__article-block {
    padding: 20px;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-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-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__container,
  .page-blog__latest-posts,
  .page-blog__featured-categories,
  .page-blog__in-depth-articles,
  .page-blog__faq-section,
  .page-blog__conclusion {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }
  .page-blog__subtitle {
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__post-card {
    margin-bottom: 20px;
  }
  .page-blog__toc-list {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__toc-list a {
    font-size: 0.95em;
  }
  .page-blog__article-heading {
    font-size: 1.5em;
  }
  .page-blog__faq-item summary {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-blog__faq-answer {
    padding: 0 15px 12px 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    padding: 10px 15px;
  }
}