:root {
  --main-color: #11A84E;
  --auxiliary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --bg-color: #08160F; /* This will be overridden by shared.css body background but used for other elements */
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* style/blog.css */

/* --- General Styles --- */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Light text for dark body background */
  background-color: var(--bg-color); /* Inherited from shared.css, which is #08160F */
}

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

.page-blog__section {
  padding: 60px 0;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__section-description {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* --- Color Contrast Classes --- */
/* Body background is #08160F (dark), so text is light by default */
.page-blog__dark-bg {
  background-color: var(--bg-color); /* #08160F */
  color: var(--text-main-color); /* #F2FFF6 */
}

.page-blog__light-bg {
  background-color: #ffffff; /* Explicitly light for contrast sections */
  color: #333333; /* Dark text for light background */
}

/* Specific fix for text contrast in light sections */
.page-blog__text-contrast-fix p,
.page-blog__text-contrast-fix li {
  color: #333333;
}
.page-blog__text-contrast-fix h2,
.page-blog__text-contrast-fix h3 {
  color: #000000;
}


/* --- Hero Section --- */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-blog__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above any potential background elements */
}

.page-blog__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  color: var(--gold-color); /* Using gold for main title for luxury */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-blog__intro-text {
  font-size: 1.2em;
  color: var(--text-main-color);
  margin-bottom: 30px;
}

/* --- Buttons --- */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-blog__btn-primary {
  background: var(--button-gradient); /* linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
  color: #ffffff;
  border: none;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: var(--text-main-color);
  border: 2px solid var(--border-color); /* #2E7A4E */
}

.page-blog__btn-secondary:hover {
  background-color: var(--border-color);
  color: #ffffff;
}

.page-blog__btn-large {
  padding: 15px 40px;
  font-size: 1.1em;
}

/* --- Grid Layout for Cards --- */
.page-blog__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__card {
  background-color: var(--card-bg-color); /* #11271B */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main-color); /* Light text for dark card background */
}

.page-blog__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-blog__card-title {
  font-size: 1.5em;
  color: var(--text-main-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__card-text {
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- Steps Grid --- */
.page-blog__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__step-item {
  background-color: #ffffff; /* Light background for contrast */
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333; /* Dark text for light background */
}

.page-blog__step-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-blog__step-title {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__step-text {
  color: #555555;
}

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

/* --- Feature Grid --- */
.page-blog__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__feature-item {
  background-color: var(--card-bg-color); /* #11271B */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color);
  text-align: center;
}

.page-blog__feature-title {
  font-size: 1.5em;
  color: var(--gold-color); /* Gold for emphasis */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__feature-text {
  color: var(--text-secondary-color);
}

/* --- Checklist --- */
.page-blog__checklist {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-blog__checklist-item {
  background-color: #ffffff; /* Light background for contrast */
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #333333; /* Dark text for light background */
}

.page-blog__checklist-item::before {
  content: '✔';
  color: var(--main-color); /* #11A84E */
  font-weight: bold;
  margin-right: 15px;
  font-size: 1.2em;
  min-width: 20px; /* Ensure checkmark doesn't wrap */
}
.page-blog__checklist-title {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__checklist-text {
  color: #555555;
}

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

.page-blog__faq-item {
  background-color: var(--card-bg-color); /* #11271B */
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-main-color);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.3em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main-color);
  user-select: none;
}

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

.page-blog__faq-question::marker {
  display: none;
}

.page-blog__faq-qtext {
  flex-grow: 1;
  color: var(--text-main-color);
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  color: var(--text-secondary-color);
  line-height: 1.6;
}

.page-blog__faq-answer p {
  margin-bottom: 0;
  color: var(--text-secondary-color);
}

/* --- CTA Section --- */
.page-blog__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--deep-green-color); /* #0A4B2C */
  color: #ffffff;
}

.page-blog__cta-title {
  font-size: 2.8em;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-blog__cta-description {
  font-size: 1.3em;
  color: var(--text-main-color);
  max-width: 900px;
  margin: 0 auto 40px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-blog__section-title {
    font-size: 2em;
  }

  .page-blog__cta-title {
    font-size: 2.2em;
  }
}

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

  .page-blog__hero-section {
    padding-bottom: 40px;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-blog__intro-text {
    font-size: 1em;
  }

  .page-blog__section-title {
    font-size: 1.8em;
  }

  .page-blog__section-description {
    font-size: 1em;
  }

  .page-blog__card,
  .page-blog__step-item,
  .page-blog__feature-item,
  .page-blog__checklist-item,
  .page-blog__faq-item {
    padding: 20px;
  }

  .page-blog__card-title,
  .page-blog__step-title,
  .page-blog__feature-title,
  .page-blog__checklist-title {
    font-size: 1.3em;
  }

  .page-blog__faq-question {
    font-size: 1.1em;
  }

  .page-blog__cta-section {
    padding: 60px 20px;
  }

  .page-blog__cta-title {
    font-size: 1.8em;
  }

  .page-blog__cta-description {
    font-size: 1.1em;
  }

  /* Mobile responsive for images, videos, buttons (CRITICAL) */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size for images */
    min-height: 200px !important; /* Adjust min height for images */
  }

  .page-blog__hero-image {
    min-height: 250px !important; /* Larger min height for hero on mobile */
  }

  .page-blog__card-image,
  .page-blog__step-icon {
    min-width: 200px !important; /* Adjust min width for card/step images */
    min-height: 200px !important; /* Adjust min height for card/step images */
    width: auto !important; /* Allow auto width to maintain aspect ratio if needed, but max-width: 100% takes precedence */
  }

  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__cta-section,
  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper,
  .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 !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-blog__video-section {
    padding-top: 10px !important; /* Small top padding for video section */
  }
  
  .page-blog__cta-button,
  .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;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }
  
  .page-blog__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}

/* Ensure body background is dark and text is light, overriding any default */
body {
  background-color: var(--bg-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
}

/* Ensure proper contrast for text in general paragraphs and lists */
.page-blog p,
.page-blog li {
  color: var(--text-secondary-color);
}

/* Ensure headings in dark sections use light colors */
.page-blog__dark-bg h2,
.page-blog__dark-bg h3,
.page-blog__dark-bg h4 {
  color: var(--text-main-color);
}

/* Ensure headings in light sections use dark colors */
.page-blog__light-bg h2,
.page-blog__light-bg h3,
.page-blog__light-bg h4 {
  color: #000000;
}

/* Ensure links in general content are visible */
.page-blog a {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-blog a:hover {
  color: var(--glow-color);
}

/* General image styling to prevent small icons */
.page-blog img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}
.page-blog__step-icon {
  object-fit: contain; /* For icons, contain is better than cover */
}