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

.page-blog__section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

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

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

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

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

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

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

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive H1 font size */
  font-weight: 800;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Buttons */
.page-blog__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: #2AD16F; /* Button green */
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #2E7A4E; /* Border */
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  color: #F2FFF6;
  border-color: #57E38D; /* Glow */
}

/* Featured Topics Section */
.page-blog__featured-topics {
  background-color: #08160F; /* Background */
}

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

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

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

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

.page-blog__topic-title {
  font-size: 22px;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  padding: 20px 20px 10px;
  line-height: 1.4;
}

.page-blog__topic-title a {
  color: #F2FFF6;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-blog__topic-text {
  font-size: 15px;
  color: #A7D9B8; /* Text Secondary */
  padding: 0 20px 20px;
}

/* Why Follow Section */
.page-blog__why-follow {
  background-color: #0A4B2C; /* Deep Green */
}

.page-blog__section-title--light,
.page-blog__section-description--light {
  color: #F2FFF6; /* Text Main */
}

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

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

.page-blog__reason-title {
  font-size: 20px;
  font-weight: 700;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
}

.page-blog__reason-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

/* Latest Articles Section */
.page-blog__latest-articles {
  background-color: #08160F; /* Background */
}

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

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

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

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

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

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

.page-blog__article-title a {
  color: #F2FFF6;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

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

.page-blog__read-more {
  display: inline-block;
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  text-decoration: underline;
  color: #2AD16F;
}

.page-blog__button-group {
  text-align: center;
}

/* FAQ Section */
.page-blog__faq-section {
  background-color: #08160F; /* Background */
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  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;
  color: #F2FFF6; /* Text Main */
}

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: #0A4B2C; /* Deep Green */
}

.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 20px;
  background: #0A4B2C; /* Deep Green */
  border-radius: 0 0 12px 12px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 16px;
}

.page-blog__faq-answer p {
  margin: 0;
  padding-top: 10px;
}

/* CTA Section */
.page-blog__cta-section {
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

.page-blog__btn-cta {
  margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: 34px;
  }
  .page-blog__section-description {
    font-size: 17px;
  }
  .page-blog__main-title {
    font-size: clamp(2rem, 4.5vw, 4rem);
  }
  .page-blog__hero-description {
    font-size: 18px;
  }
  .page-blog__topic-title {
    font-size: 20px;
  }
  .page-blog__article-title {
    font-size: 20px;
  }
  .page-blog__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 849px) {
  .page-blog__hero-image {
    object-fit: contain !important; /* Prevent cropping on smaller screens for hero image */
    aspect-ratio: unset !important;
    position: relative; /* Allow content to flow below */
    height: auto; /* Adjust height based on aspect ratio */
    width: 100%;
    filter: brightness(0.6); /* Less dim for better visibility of image content */
  }
  .page-blog__hero-image-wrapper {
    position: relative;
    height: auto;
    margin-bottom: 20px;
  }
  .page-blog__hero-section {
    padding-bottom: 40px;
    min-height: auto;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
  }
  .page-blog__hero-content {
    padding: 15px;
    margin-top: -80px; /* Pull content up slightly over the image */
    background: linear-gradient(to top, rgba(8, 22, 15, 0.95), rgba(8, 22, 15, 0)); /* Gradient overlay for text readability */
    padding-top: 80px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
}

@media (max-width: 768px) {
  .page-blog__section {
    padding: 40px 0;
  }

  .page-blog__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-blog__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* Hero Section Mobile */
  .page-blog__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }

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

  .page-blog__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* Buttons Mobile */
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__button-group,
  .page-blog__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Featured Topics Mobile */
  .page-blog__topic-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-blog__topic-title {
    font-size: 18px;
    padding: 15px 15px 8px;
  }

  .page-blog__topic-text {
    font-size: 14px;
    padding: 0 15px 15px;
  }

  /* Why Follow Mobile */
  .page-blog__reasons-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__reason-item {
    padding: 25px;
  }

  .page-blog__reason-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .page-blog__reason-text {
    font-size: 15px;
  }

  /* Latest Articles Mobile */
  .page-blog__article-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

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

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

  .page-blog__article-meta,
  .page-blog__article-excerpt {
    font-size: 14px;
  }

  /* FAQ Mobile */
  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 15px;
    font-size: 15px;
  }

  /* All images mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}