.page-blog {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  line-height: 1.6;
  background-color: #f8f8f8;
}

.page-blog__section-spacing {
  padding: 40px 0;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #C61F1F;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__text-block {
  font-size: 1.1em;
  margin-bottom: 1em;
  text-align: justify;
}

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

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

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

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

.page-blog__btn-secondary:hover {
  background: #C61F1F;
  color: #ffffff;
}

/* Hero Section */
.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Assuming body handles var(--header-offset) */
  margin-bottom: 40px;
  background-color: #140C0C;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for desktop hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensures image covers area, might crop sides */
}

.page-blog__hero-content {
  position: relative; /* Changed from absolute to relative to be in normal flow */
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  color: #FFF1E8;
  z-index: 2;
}

.page-blog__main-title {
  font-size: 3.5em;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #F3C54D;
}

.page-blog__description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-blog__intro-section {
  background-color: #ffffff;
}

/* Categories Section */
.page-blog__categories-section {
  background-color: #2A1212;
  color: #FFF1E8;
}

.page-blog__categories-section .page-blog__section-title {
  color: #F3C54D;
}

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

.page-blog__category-card {
  background-color: #140C0C;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-blog__category-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  line-height: 1.3;
  flex-grow: 1;
}

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

.page-blog__category-title a:hover {
  color: #FFB04A;
}

.page-blog__category-description {
  font-size: 0.95em;
  color: #FFF1E8;
  padding: 0 15px 20px;
}

/* Why Read Section */
.page-blog__why-read-section {
  background-color: #f8f8f8;
}

.page-blog__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-blog__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-blog__text-content {
  flex: 1;
}

.page-blog__image-content {
  flex: 1;
  min-width: 300px;
}

.page-blog__image-full {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__benefits-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-blog__benefits-list li {
  background-color: #E53030;
  color: #FFF1E8;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-blog__benefits-list li:before {
  content: '✓';
  color: #F3C54D;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

/* Featured Posts Section */
.page-blog__featured-posts {
  background-color: #FFF1E8;
  color: #333333;
}

.page-blog__featured-posts .page-blog__section-title {
  color: #C61F1F;
}

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

.page-blog__post-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-blog__post-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__post-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
}

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

.page-blog__post-title a:hover {
  color: #E53030;
}

.page-blog__post-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
}

.page-blog__post-meta {
  font-size: 0.85em;
  color: #777777;
}

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

/* Interact Section */
.page-blog__interact-section {
  background-color: #f8f8f8;
}

/* FAQ Section */
.page-blog__faq-section {
  background-color: #140C0C;
  color: #FFF1E8;
}

.page-blog__faq-section .page-blog__section-title {
  color: #F3C54D;
}

.page-blog__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__faq-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-blog__faq-item:hover {
  background-color: #2A1212;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFF1E8;
  cursor: pointer;
  position: relative;
  list-style: none; /* For details/summary */
}

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

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #F3C54D;
}

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

.page-blog__faq-answer {
  padding: 0 20px 15px;
  font-size: 1.05em;
  color: #FFF1E8;
  border-top: 1px solid #6A1E1E;
  margin-top: -1px;
}

/* Conclusion Section */
.page-blog__conclusion-section {
  background-color: #ffffff;
  text-align: center;
}

.page-blog__conclusion-section .page-blog__btn-primary {
  margin-top: 20px;
}

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

  .page-blog__section-spacing {
    padding: 30px 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: 2em;
    margin-bottom: 30px;
  }

  /* Hero Section */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
    margin-bottom: 20px;
  }

  .page-blog__hero-image-wrapper {
    max-height: 300px;
  }

  .page-blog__hero-image {
    object-fit: contain; /* Prevent cropping on mobile, show full image */
    height: auto !important;
    max-height: 300px !important;
    width: 100% !important;
  }

  .page-blog__hero-content {
    padding: 20px 15px;
  }

  .page-blog__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-blog__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* Buttons - General mobile rules */
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__button-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Categories Section */
  .page-blog__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  /* Why Read Section & Interact Section */
  .page-blog__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-blog__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-blog__image-content {
    min-width: unset;
    width: 100%;
  }

  .page-blog__image-full {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Featured Posts Section */
  .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-blog__post-content {
    padding: 15px;
  }

  .page-blog__post-title {
    font-size: 1.2em;
  }

  .page-blog__post-excerpt {
    font-size: 0.9em;
  }

  /* FAQ Section */
  .page-blog__faq-question {
    font-size: 1.1em;
    padding: 12px 15px;
  }

  .page-blog__faq-answer {
    font-size: 1em;
    padding: 0 15px 12px;
  }

  /* General image rules for content area */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__content-wrapper,
  .page-blog__category-card,
  .page-blog__post-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* --- Mobile Responsiveness (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__main-title {
    font-size: 3em;
  }

  .page-blog__description {
    font-size: 1.2em;
  }

  .page-blog__category-grid,
  .page-blog__post-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-blog__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-blog__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-blog__image-content {
    min-width: unset;
    width: 100%;
  }

  .page-blog__image-full {
    max-width: 100%;
    height: auto;
  }

  .page-blog__hero-image {
    object-fit: cover;
    height: auto;
  }
}