/* style/blog.css */
/* Base styles for .page-blog, ensuring text color is appropriate for dark body background */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main for dark background */
  background-color: transparent; /* Rely on body background */
  line-height: 1.6;
  padding-top: 0; /* Body handles padding-top via --header-offset */
}

/* General container for content sections */
.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-blog__section {
  padding: 60px 0;
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-blog__section:last-of-type {
  border-bottom: none;
}

/* Titles */
.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1, no fixed huge size */
  font-weight: bold;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__section-title {
  font-size: 2.5rem;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-blog__sub-title {
  font-size: 1.8rem;
  color: #F2C14E; /* Gold */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

/* Paragraphs and Lists */
.page-blog p {
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-blog__benefit-list,
.page-blog__step-list,
.page-blog__tip-list,
.page-blog__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-blog__benefit-item,
.page-blog__step-item,
.page-blog__tip-item,
.page-blog__security-item {
  background-color: #11271B; /* Card BG */
  border-left: 5px solid #11A84E; /* Main color for accent */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #F2FFF6;
  position: relative;
}

.page-blog__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: -15px; /* Adjust as needed */
  top: 50%;
  transform: translateY(-50%);
  background-color: #11A84E; /* Main color */
  color: #F2FFF6;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
  box-shadow: 0 0 10px rgba(17, 168, 78, 0.5); /* Glow */
}

.page-blog__ordered-list {
  counter-reset: step-counter;
}

.page-blog__note {
  font-style: italic;
  color: #A7D9B8; /* Text Secondary */
  padding: 10px 15px;
  background-color: rgba(17, 168, 78, 0.1); /* Light background for note */
  border-left: 3px solid #11A84E;
  border-radius: 4px;
}

/* Images */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Minimal padding-top, body handles header offset */
  overflow: hidden; /* Ensure nothing overflows */
  background-color: #08160F; /* Match body background for seamless blend */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1; /* Image below content in DOM, but visually above if needed */
  margin-bottom: 40px; /* Space between image and text */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  min-height: 400px; /* Ensure hero image is large enough */
  max-height: 600px;
  object-fit: cover;
  border-radius: 0; /* No border-radius for hero image */
  box-shadow: none; /* No shadow for hero image */
}

.page-blog__hero-content {
  position: relative;
  z-index: 2; /* Content above image if they were to overlap, but they are stacked */
  padding: 0 20px;
  max-width: 900px;
  margin-top: -80px; /* Pull content up slightly over the image if desired, but not overlapping text */
  background-color: rgba(8, 22, 15, 0.7); /* Deep Green with transparency */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #2E7A4E; /* Border */
  backdrop-filter: blur(5px); /* Subtle blur for background */
}

/* Buttons */
.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__btn-inline {
  display: inline-flex; /* Use inline-flex for consistency */
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 5px 20px rgba(34, 199, 104, 0.4); /* Glow effect */
}

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

.page-blog__btn-secondary {
  background-color: transparent;
  color: #F2C14E; /* Gold */
  border: 2px solid #F2C14E; /* Gold border */
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.3); /* Gold glow */
}

.page-blog__btn-secondary:hover {
  background-color: #F2C14E; /* Gold background on hover */
  color: #08160F; /* Deep Green text on hover */
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(242, 193, 78, 0.5);
}

.page-blog__btn-inline {
  margin-top: 20px;
  display: table; /* To center inline button */
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-buttons--bottom {
  margin-top: 60px;
}

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

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

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #F2C14E; /* Gold */
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: "−";
}

.page-blog__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* For <details> tag, native open/close handles max-height, only adjust padding */
.page-blog__faq-item[open] .page-blog__faq-answer {
  max-height: fit-content; /* Let content define height */
  padding-top: 15px;
}

/* Links within content */
.page-blog a {
  color: #F2C14E; /* Gold */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog a:hover {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-blog__section-title {
    font-size: 2rem;
  }
  .page-blog__sub-title {
    font-size: 1.5rem;
  }
  .page-blog__container {
    padding: 30px 15px;
  }
  .page-blog__section {
    padding: 40px 0;
  }
  .page-blog__hero-content {
    margin-top: -60px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-blog__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-blog__sub-title {
    font-size: 1.3rem;
  }
  .page-blog__container {
    padding: 20px 15px;
  }
  .page-blog__section {
    padding: 30px 0;
  }

  /* Mobile image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .page-blog__hero-image {
    min-height: 250px;
    max-height: 400px;
  }

  /* Mobile button responsiveness */
  .page-blog__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow from screen edge */
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog__btn-inline,
  .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; /* Ensure text inside button has padding */
    padding-right: 15px;
  }
  
  /* Ensure containers with images/buttons/videos are constrained */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__hero-image-wrapper,
  .page-blog__hero-content,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* overflow-x: hidden; /* Only if content inside might overflow */
  }

  .page-blog__hero-content {
    margin-top: -40px; /* Less pull-up on mobile */
  }

  .page-blog__benefit-item,
  .page-blog__step-item,
  .page-blog__tip-item,
  .page-blog__security-item {
    padding: 10px 15px;
  }

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

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