.page-blog {
  color: #333333; /* Dark text for light 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__hero-section {
  background-color: #8B0000; /* Deep red for hero background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-blog__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  line-height: 1.2;
}

.page-blog__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-blog__button--primary {
  background-color: #FFD700; /* Gold button */
  color: #8B0000; /* Deep red text */
  border: 2px solid #FFD700;
}

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

.page-blog__button--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-blog__button--secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
  transform: translateY(-2px);
}

.page-blog__hero-image {
  margin-top: 40px;
  max-width: 100%;
}

.page-blog__hero-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-blog__latest-posts,
.page-blog__categories,
.page-blog__newsletter {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Deep red for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Gold underline */
  margin: 15px auto 0;
}

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

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

.page-blog__post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.page-blog__post-image-wrapper {
  width: 100%;
  height: 225px; /* Fixed height for consistent card images */
  overflow: hidden;
}

.page-blog__post-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-blog__post-title a {
  color: #8B0000; /* Deep red for post titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #FFD700; /* Gold on hover */
}

.page-blog__post-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 6; /* Limit to 6 lines */
  -webkit-box-orient: vertical;
}

.page-blog__read-more {
  display: inline-block;
  color: #FFD700; /* Gold for read more link */
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #FFD700;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__read-more:hover {
  background-color: #FFD700;
  color: #8B0000;
}

.page-blog__cta-section {
  background-color: #FFD700; /* Gold background for CTA */
  color: #8B0000; /* Deep red text */
  text-align: center;
  padding: 60px 20px;
  margin-top: 60px;
  border-radius: 10px;
}

.page-blog__cta-title {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #8B0000;
}

.page-blog__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-blog__categories {
  margin-top: 60px;
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item a {
  display: block;
  background-color: #8B0000; /* Deep red category buttons */
  color: #FFD700; /* Gold text */
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__category-item a:hover {
  background-color: #FFD700;
  color: #8B0000;
}

.page-blog__newsletter {
  text-align: center;
  background-color: #f0f0f0;
  padding: 50px 20px;
  border-radius: 10px;
  margin-top: 60px;
}

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

.page-blog__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-blog__newsletter-input {
  padding: 12px 20px;
  border: 2px solid #FFD700; /* Gold border */
  border-radius: 8px;
  font-size: 1em;
  width: 300px;
  max-width: 100%;
}

.page-blog__newsletter-input::placeholder {
  color: #aaaaaa;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.8em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
  }
  .page-blog__hero-section {
    padding: 60px 15px;
  }
  .page-blog__main-title {
    font-size: 2.2em;
  }
  .page-blog__intro-text {
    font-size: 1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 100%;
    max-width: 300px; /* Limit button width on small screens */
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-image-wrapper img, .page-blog__hero-image img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__newsletter-form {
    flex-direction: column;
    align-items: center;
  }
  .page-blog__newsletter-input {
    width: 100%;
    max-width: 300px;
  }
  .page-blog__category-list {
    gap: 10px;
  }
  .page-blog__category-item a {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__cta-title {
    font-size: 1.6em;
  }
  .page-blog__post-title {
    font-size: 1.3em;
  }
  .page-blog__post-excerpt {
    -webkit-line-clamp: 5; /* Adjust lines for smaller screens */
  }
}