/* style/blog.css */

/* Base styles for the blog page, adapting to the dark body background */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Use Text Main color */
  background-color: var(--bg-color, #08160F); /* Ensure page background matches overall site */
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--bg-color, #08160F); /* Dark background */
  text-align: center;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image wrapper */
  margin-bottom: 30px; /* Space between image and text */
}

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

.page-blog__hero-content {
  max-width: 900px;
  color: var(--text-main, #F2FFF6); /* Light text on dark background */
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
}

.page-blog__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8); /* Secondary text color */
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff; /* White text on button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-blog__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-blog__cta-button--large {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* General Section Styles */
.page-blog__section {
  padding: 60px 0;
  background-color: var(--bg-color, #08160F); /* Dark background for sections */
}

.page-blog__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog__text-block {
  font-size: 1.1em;
  margin-bottom: 1em;
  color: var(--text-secondary, #A7D9B8); /* Secondary text color for paragraphs */
}

.page-blog__text-block strong {
    color: var(--text-main, #F2FFF6); /* Emphasize keywords */
}

.page-blog__image-wrapper {
    margin: 30px auto;
    text-align: center;
    max-width: 800px; /* Constrain content images */
}

.page-blog__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Lists */
.page-blog__list,
.page-blog__ordered-list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  color: var(--text-secondary, #A7D9B8);
}

.page-blog__ordered-list {
  list-style-type: decimal;
}

.page-blog__list-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: var(--text-secondary, #A7D9B8);
}

.page-blog__list-item strong {
    color: var(--text-main, #F2FFF6);
}

.page-blog__list-item a {
    color: var(--glow, #57E38D); /* Link color */
    text-decoration: none;
}

.page-blog__list-item a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 30px;
}

.page-blog__faq-item {
  background-color: var(--card-bg, #11271B); /* Card background color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
  border: 1px solid var(--border, #2E7A4E); /* Border color */
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  background-color: var(--deep-green, #0A4B2C); /* Slightly different dark green for summary */
}

.page-blog__faq-item details > summary {
    list-style: none; /* Hide default marker for details */
}
.page-blog__faq-item details > summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--glow, #57E38D); /* Plus/minus icon color */
}

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

.page-blog__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

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

/* Conclusion Section */
.page-blog__conclusion {
    text-align: center;
}

.page-blog__cta-wrapper {
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-section {
    padding: 40px 15px;
  }
  .page-blog__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-blog__description {
    font-size: 1.1em;
  }
  .page-blog__section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }
  .page-blog__sub-title {
    font-size: clamp(1.3em, 3vw, 1.8em);
  }
}

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

  /* Images */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__hero-image-wrapper,
  .page-blog__image-wrapper,
  .page-blog__container,
  .page-blog__section,
  .page-blog__card,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }
  
  /* Hero Section */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-blog__description {
    font-size: 1em;
  }

  /* Buttons */
  .page-blog__cta-button,
  .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: 15px 20px !important; /* Adjust padding for smaller screens */
    font-size: 1em !important;
  }

  .page-blog__cta-wrapper {
      display: flex;
      flex-direction: column; /* Stack buttons vertically on mobile */
      gap: 15px;
      align-items: center;
  }

  .page-blog__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
  }
  .page-blog__sub-title {
    font-size: clamp(1.2em, 4vw, 1.6em);
  }
  .page-blog__list,
  .page-blog__ordered-list {
    margin-left: 15px;
  }
  .page-blog__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-blog__faq-answer {
    padding: 0 15px 15px;
  }
}