.page-blog {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-blog__hero-section {
  background-color: rgba(139, 0, 0, 0.2); /* Semi-transparent auxiliary color */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3; /* Blend with background color */
}

.page-blog__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Main brand color */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-blog__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-blog__hero-button--primary {
  background-color: #FFD700; /* Main brand color */
  color: #333333;
}

.page-blog__hero-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-blog__hero-button--secondary {
  background-color: #8B0000; /* Auxiliary brand color */
  color: #ffffff;
  border: 2px solid #FFD700;
}

.page-blog__hero-button--secondary:hover {
  background-color: #a30000;
  transform: translateY(-2px);
}

.page-blog__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Main brand color */
  text-align: center;
  margin-bottom: 60px;
  padding-top: 60px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-blog__latest-articles-section,
.page-blog__categories-section,
.page-blog__featured-guides-section,
.page-blog__cta-section {
  padding: 40px 0;
}

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

.page-blog__article-card,
.page-blog__category-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent light background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none; /* For category cards which are links */
  color: inherit;
}

.page-blog__article-card:hover,
.page-blog__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.page-blog__article-image,
.page-blog__category-icon {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.page-blog__article-content,
.page-blog__category-card .page-blog__category-title {
  padding: 25px;
  flex-grow: 1;
}

.page-blog__article-title a,
.page-blog__category-title {
  font-size: 1.5em;
  color: #FFD700; /* Main brand color for titles */
  margin-bottom: 15px;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #e6c200;
}

.page-blog__article-excerpt,
.page-blog__category-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-blog__read-more-button {
  display: inline-block;
  background-color: #8B0000; /* Auxiliary brand color */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

.page-blog__read-more-button:hover {
  background-color: #a30000;
}

.page-blog__category-card {
  text-align: center;
}

.page-blog__category-card .page-blog__category-icon {
  height: 180px;
  object-fit: contain; /* Ensure icons are fully visible */
  padding: 20px;
}

.page-blog__category-card .page-blog__category-title {
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-blog__featured-guides-section {
  background-color: rgba(139, 0, 0, 0.1); /* Lighter auxiliary background */
  padding: 80px 0;
}

.page-blog__guides-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-blog__guide-item {
  background-color: rgba(255, 255, 255, 0.06);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__guide-title {
  font-size: 1.8em;
  color: #FFD700; /* Main brand color */
  margin-bottom: 15px;
}

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

.page-blog__guide-title a:hover {
  color: #e6c200;
}

.page-blog__guide-description {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-blog__cta-section {
  background-color: #8B0000; /* Auxiliary brand color */
  padding: 80px 20px;
  text-align: center;
}

.page-blog__cta-title {
  font-size: 3em;
  color: #FFD700; /* Main brand color */
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-blog__cta-description {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-actions {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
  min-width: 220px;
}

.page-blog__cta-button--primary {
  background-color: #FFD700; /* Main brand color */
  color: #333333;
  border: none;
}

.page-blog__cta-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-blog__cta-button--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #FFD700; /* Main brand color border */
}

.page-blog__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #333333;
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }
  .page-blog__section-title {
    font-size: 2.2em;
  }
  .page-blog__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px);
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__hero-button {
    width: 80%;
    max-width: 300px;
  }
  .page-blog__section-title {
    font-size: 2em;
    margin-bottom: 40px;
  }
  .page-blog__articles-grid,
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image, .page-blog__category-icon {
    height: 200px;
  }
  .page-blog__article-title a, .page-blog__category-title {
    font-size: 1.3em;
  }
  .page-blog__guide-title {
    font-size: 1.5em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1.1em;
  }
  .page-blog__cta-button {
    width: 90%;
    max-width: 300px;
  }

  /* Mobile content area image overflow prevention */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-card img,
  .page-blog__category-card img {
    max-width: 100%;
    height: auto; /* Overrides fixed height for responsiveness */
  }
  .page-blog__article-image, .page-blog__category-icon {
    min-width: 200px; /* Ensure minimum size is maintained even with auto height */
    min-height: 200px;
  }
  .page-blog__read-more-button, .page-blog__hero-button, .page-blog__cta-button {
    min-width: 200px; /* Ensure buttons are not too small */
  }
}

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