.page-blog {
  color: #333333; /* Deep text color for contrast against default light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-blog__hero-section {
  background: linear-gradient(135deg, #FFD700, #8B0000); /* Gradient for hero background */
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 900px;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Gold main color */
  color: #8B0000; /* Deep red text for contrast */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-blog__section-title {
  font-size: 2.8em;
  color: #8B0000; /* Deep red auxiliary color */
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
}

.page-blog__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__latest-articles, .page-blog__featured-content, .page-blog__categories, .page-blog__call-to-action, .page-blog__recent-updates, .page-blog__newsletter {
  padding: 60px 0;
}

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

.page-blog__article-card, .page-blog__category-card, .page-blog__update-item {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.page-blog__article-card:hover, .page-blog__category-card:hover, .page-blog__update-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.page-blog__article-thumbnail, .page-blog__category-card img, .page-blog__update-item img {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__update-item img {
  height: 200px;
}

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

.page-blog__article-title, .page-blog__category-title, .page-blog__update-title {
  font-size: 1.6em;
  color: #8B0000; /* Deep red for titles */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-title a, .page-blog__category-title a {
  color: #8B0000;
  text-decoration: none;
}

.page-blog__article-title a:hover, .page-blog__category-title a:hover {
  text-decoration: underline;
}

.page-blog__article-excerpt, .page-blog__category-description, .page-blog__update-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__read-more-button {
  display: inline-block;
  background-color: #FFD700; /* Gold main color */
  color: #8B0000; /* Deep red text for contrast */
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

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

.page-blog__featured-content {
  background-color: #f9f9f9;
}

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

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

.page-blog__text-content h3 {
  font-size: 1.8em;
  color: #8B0000;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog__text-content h3 a {
  color: #8B0000;
  text-decoration: none;
}

.page-blog__text-content h3 a:hover {
  text-decoration: underline;
}

.page-blog__text-content p {
  margin-bottom: 15px;
  color: #444444;
}

.page-blog__image-aside {
  flex: 1;
  min-width: 250px;
}

.page-blog__image-aside img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-blog__category-card {
  background-color: #ffffff;
  padding: 20px;
  text-align: center;
}

.page-blog__category-card img {
  border-radius: 10px;
  margin-bottom: 15px;
  width: 100%;
  height: 225px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-blog__category-description {
  font-size: 0.95em;
  color: #666666;
}

.page-blog__call-to-action {
  background-color: #8B0000; /* Deep red auxiliary color */
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

.page-blog__call-to-action .page-blog__section-title {
  color: #FFD700; /* Gold main color for title */
}

.page-blog__call-to-action .page-blog__section-subtitle {
  color: #f0f0f0;
  margin-bottom: 50px;
}

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

.page-blog__cta-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-button--primary {
  background-color: #FFD700;
  color: #8B0000;
}

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

.page-blog__cta-button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

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

.page-blog__update-date {
  font-size: 0.85em;
  color: #999999;
  margin-bottom: 10px;
}

.page-blog__newsletter {
  background-color: #f0f0f0;
  padding: 80px 20px;
  text-align: center;
}

.page-blog__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-blog__newsletter-input {
  padding: 15px 25px;
  border: 2px solid #ccc;
  border-radius: 50px;
  font-size: 1.1em;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

.page-blog__newsletter-input:focus {
  border-color: #FFD700;
  outline: none;
}

.page-blog__newsletter-button {
  background-color: #8B0000;
  color: #ffffff;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__newsletter-button:hover {
  background-color: #a00000;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__section-title {
    font-size: 2.2em;
  }
  .page-blog__content-wrapper {
    flex-direction: column;
  }
  .page-blog__image-aside {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
  .page-blog__image-aside img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-card, .page-blog__category-card, .page-blog__update-item {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-section {
    padding: 60px 15px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__section-subtitle {
    font-size: 1em;
  }
  .page-blog__articles-grid, .page-blog__category-grid, .page-blog__updates-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-thumbnail, .page-blog__category-card img, .page-blog__update-item img {
    height: 200px; /* Adjust height for smaller screens */
    min-width: 200px;
    min-height: 200px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__newsletter-form {
    flex-direction: column;
  }
  .page-blog__newsletter-input, .page-blog__newsletter-button {
    max-width: 100%;
  }
  /* Ensure all images within .page-blog are responsive and don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__article-title, .page-blog__category-title, .page-blog__update-title {
    font-size: 1.4em;
  }
  .page-blog__cta-button {
    font-size: 1em;
    padding: 15px 25px;
  }
  .page-blog__newsletter-input, .page-blog__newsletter-button {
    font-size: 1em;
  }
}