.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--site-bg, #0D0E12); /* Use site-bg from shared */
  color: var(--text-main, #FFF3E6);
}

.page-blog__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 16px;
}

.page-blog__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 font size with clamp */
  font-weight: 700;
  line-height: 1.2;
  color: #FFF3E6; /* Light text for dark background */
}

.page-blog__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #FFF3E6;
}

.page-blog__cta-group {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap; /* For responsiveness */
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  text-align: center;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #FFA53A;
  border: 2px solid #FFA53A;
}

.page-blog__btn-secondary:hover {
  background: #FFA53A;
  color: #FFF3E6;
  transform: translateY(-2px);
}

.page-blog__hero-image {
  flex: 1 1 40%;
  text-align: center;
  min-width: 300px;
}

.page-blog__hero-main-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

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

.page-blog__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #FFF3E6;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-blog__section-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF3E6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Intro Section (Module 1 equivalent) */
.page-blog__intro-section {
  padding: 60px 0;
  background-color: var(--site-bg, #0D0E12);
  color: var(--text-main, #FFF3E6);
}

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

.page-blog__icon-box {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C; /* Border color */
}

.page-blog__icon-box-media {
  width: 180px; /* Smaller for mobile */
  height: 180px;
  aspect-ratio: 1/1;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #FFA53A;
}

.page-blog__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-blog__icon-box-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #FFF3E6;
}

.page-blog__icon-box-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #FFF3E6;
}

/* Blog List Section */
.page-blog__blog-list-section {
  padding: 60px 0;
  background-color: var(--site-bg, #0D0E12);
  color: var(--text-main, #FFF3E6);
}

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

.page-blog__blog-card {
  background-color: #17191F; /* 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 #A84F0C; /* Border color */
}

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

.page-blog__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-blog__blog-card-img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__blog-card-content {
  padding: 25px;
}

.page-blog__blog-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #FFA53A; /* Use accent color for titles */
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__blog-card-title:hover {
  text-decoration: underline;
}

.page-blog__blog-card-meta {
  font-size: 0.9rem;
  color: #FFF3E6;
  opacity: 0.8;
  margin-bottom: 15px;
}

.page-blog__blog-card-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF3E6;
}

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

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  background-color: #17191F; /* Card BG or Deep Orange for contrast */
  color: #FFF3E6;
  text-align: center;
}

.page-blog__dark-section {
  background-color: #17191F; /* Ensure dark background for light text */
}

.page-blog__section-title--light,
.page-blog__section-description--light {
  color: #FFF3E6;
}

.page-blog__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Ensure text contrast for dark body background */
body {
  background-color: #0D0E12; /* Fallback if var not loaded */
}

.page-blog {
  color: #FFF3E6; /* Main text color for dark background */
}

/* Specific elements that might have different backgrounds */
.page-blog__card,
.page-blog__icon-box {
  background-color: #17191F; /* Card BG, darker than body */
  color: #FFF3E6; /* Light text on card background */
}

.page-blog__section-title--light,
.page-blog__section-description--light {
  color: #FFF3E6;
}

.page-blog__blog-card-title {
  color: #FFA53A; /* Accent color for links/titles */
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-blog__hero-container {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__hero-content {
    order: 2; /* Content below image on smaller screens */
    flex: 1 1 100%;
    align-items: center;
  }
  .page-blog__hero-image {
    order: 1; /* Image above content on smaller screens */
    flex: 1 1 100%;
  }
  .page-blog__main-title,
  .page-blog__hero-description {
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
  }
  .page-blog__hero-container {
    padding: 20px 15px;
    gap: 20px;
  }
  .page-blog__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__cta-group {
    flex-direction: column;
    gap: 10px;
    width: 100%; /* Ensure button group takes full width */
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
    margin: 0 auto; /* Center buttons if flex-direction is column */
  }

  /* Intro Section (Module 1) */
  .page-blog__intro-section {
    padding: 40px 0;
  }
  .page-blog__intro-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__icon-box {
    padding: 20px;
  }
  .page-blog__icon-box-media {
    width: 150px; /* Ensure square for mobile */
    height: 150px;
  }
  .page-blog__icon-box-title {
    font-size: 1.2rem;
  }
  .page-blog__icon-box-text {
    font-size: 0.9rem;
  }

  /* Blog List Section */
  .page-blog__blog-list-section {
    padding: 40px 0;
  }
  .page-blog__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__blog-card {
    margin: 0 15px; /* Add horizontal padding to cards */
  }
  .page-blog__blog-card-img {
     /* Adjust height for mobile */
  }
  .page-blog__blog-card-content {
    padding: 20px;
  }
  .page-blog__blog-card-title {
    font-size: 1.1rem;
  }
  .page-blog__blog-card-meta,
  .page-blog__blog-card-excerpt {
    font-size: 0.9rem;
  }

  /* CTA Section */
  .page-blog__cta-section {
    padding: 50px 0;
  }
  .page-blog__cta-container {
    padding: 0 15px;
  }
  .page-blog__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-blog__section-description {
    font-size: 0.95rem;
  }

  /* General image and container responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-blog__container,
  .page-blog__section,
  .page-blog__intro-section,
  .page-blog__blog-list-section,
  .page-blog__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}