/* --- Base Styles --- */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF5E1); /* Default text color for dark backgrounds */
  background-color: var(--background, #B71C1C); /* Default background color */
}

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

.page-blog__dark-section {
  background-color: var(--deep-red, #7A0E0E);
  color: var(--text-main, #FFF5E1);
}

.page-blog__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold, #F4D34D); /* Gold color for titles */
  line-height: 1.2;
}

.page-blog__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.1em;
  color: rgba(255, 245, 225, 0.8);
}

.page-blog__cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red text on gold button for contrast */
  border: none;
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 216, 106, 0.4);
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: var(--gold, #F4D34D);
  border: 2px solid var(--gold, #F4D34D);
}

.page-blog__btn-secondary:hover {
  background-color: var(--gold, #F4D34D);
  color: var(--deep-red, #7A0E0E);
  transform: translateY(-2px);
}

.page-blog a {
  color: var(--gold, #F4D34D);
  text-decoration: none;
}

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

.page-blog__card {
  background-color: var(--card-bg, #D32F2F);
  border: 1px solid var(--border, #F2B544);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #FFF5E1);
}

.page-blog__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- Hero Section --- */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-blog__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  color: var(--text-main, #FFF5E1);
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  margin-bottom: 20px;
  color: var(--gold, #F4D34D);
  font-weight: 700;
  line-height: 1.2;
}

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

/* --- Latest Posts Section --- */
.page-blog__latest-posts {
  padding: 80px 0;
}

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

.page-blog__post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--card-bg, #D32F2F);
  color: var(--text-main, #FFF5E1);
}

.page-blog__card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.page-blog__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-blog__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__card-title a {
  color: var(--gold, #F4D34D);
  text-decoration: none;
}

.page-blog__card-title a:hover {
  text-decoration: underline;
}

.page-blog__card-meta {
  font-size: 0.9em;
  color: rgba(255, 245, 225, 0.7);
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-button {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--gold, #F4D34D);
  color: var(--deep-red, #7A0E0E);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-blog__read-more-button:hover {
  background-color: var(--glow, #FFCC66);
}

.page-blog__view-all-button-container {
  text-align: center;
  margin-top: 40px;
}

/* --- Featured Guides Section --- */
.page-blog__featured-guides {
  padding: 80px 0;
  background-color: var(--deep-red, #7A0E0E);
  color: var(--text-main, #FFF5E1);
}

.page-blog__featured-guides .page-blog__section-title {
  color: var(--gold, #F4D34D);
}

.page-blog__featured-guides .page-blog__section-description {
  color: rgba(255, 245, 225, 0.8);
}

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

.page-blog__guide-card {
  background-color: var(--card-bg, #D32F2F);
  color: var(--text-main, #FFF5E1);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-blog__guide-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog__guide-title a {
  color: var(--gold, #F4D34D);
  text-decoration: none;
}

.page-blog__guide-title a:hover {
  text-decoration: underline;
}

.page-blog__guide-excerpt {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- Why Choose Section --- */
.page-blog__why-choose {
  padding: 80px 0;
}

.page-blog__why-choose .page-blog__section-title {
  color: var(--deep-red, #7A0E0E);
}

.page-blog__why-choose .page-blog__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-blog__why-choose .page-blog__card {
  background-color: #ffffff;
  color: #333333;
}

.page-blog__feature-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--deep-red, #7A0E0E);
}

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

/* --- CTA Section --- */
.page-blog__cta-section {
  padding: 80px 0;
  background-color: var(--background, #B71C1C);
  color: var(--text-main, #FFF5E1);
}

.page-blog__cta-section .page-blog__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-blog__cta-content {
  flex: 1;
  text-align: left;
}

.page-blog__cta-content .page-blog__section-title {
  text-align: left;
  color: var(--gold, #F4D34D);
}

.page-blog__cta-content .page-blog__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 30px;
}

.page-blog__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-blog__cta-image {
  flex: 0 0 500px;
  max-width: 500px;
  border-radius: 10px;
  overflow: hidden;
}

.page-blog__cta-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 20px 30px;
  }

  .page-blog__cta-image {
    flex: 0 0 400px;
    max-width: 400px;
  }
}

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

  .page-blog__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-blog__section-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* HERO Section */
  .page-blog__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
    min-height: 400px;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-blog__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 20px;
    font-size: 0.9em;
  }

  /* Latest Posts Section */
  .page-blog__latest-posts {
    padding: 50px 0;
  }

  .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-blog__card-title {
    font-size: 1.3em;
  }

  .page-blog__read-more-button {
    max-width: 100% !important;
    width: 100% !important;
    text-align: center;
  }

  .page-blog__view-all-button-container {
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-blog__view-all-button {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Featured Guides Section */
  .page-blog__featured-guides {
    padding: 50px 0;
  }

  .page-blog__guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__guide-title {
    font-size: 1.4em;
  }

  /* Why Choose Section */
  .page-blog__why-choose {
    padding: 50px 0;
  }

  .page-blog__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__feature-title {
    font-size: 1.3em;
  }

  /* CTA Section */
  .page-blog__cta-section {
    padding: 50px 0;
  }

  .page-blog__cta-section .page-blog__container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__cta-content {
    text-align: center;
  }

  .page-blog__cta-content .page-blog__section-title,
  .page-blog__cta-content .page-blog__section-description {
    text-align: center;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__cta-buttons .page-blog__cta-button {
    width: 100%;
    max-width: 100%;
  }

  .page-blog__cta-image {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

@media (max-width: 480px) {
  .page-blog__section-title {
    font-size: 1.8em;
  }

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

  .page-blog__hero-description {
    font-size: 0.9em;
  }
}