.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 below fixed header */
}

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #1E90FF; /* Auxiliary color as background for hero text */
  color: #ffffff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px; /* Minimum height for hero section */
}

.page-blog__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px; /* Max width for content within hero */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.3; /* Make image subtle background for text */
  z-index: 1;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
  max-width: 900px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-blog__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #1E90FF; /* Royal Blue text */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #FFD700;
}

.page-blog__cta-button:hover {
  background-color: #1E90FF; /* Hover to royal blue */
  color: #FFD700; /* Hover text to gold */
  border-color: #FFD700;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #1E90FF; /* Royal Blue for section titles */
  text-align: center;
  margin: 60px 0 40px;
  font-weight: bold;
}

.page-blog__featured-articles {
  background-color: #f8f8f8;
  padding: 60px 0;
}

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

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

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

.page-blog__article-image {
  width: 100%;
  height: 220px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

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

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

.page-blog__article-title a {
  color: #1E90FF; /* Royal Blue for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #1E90FF; /* Royal Blue text */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more-button:hover {
  background-color: #1E90FF; /* Hover to royal blue */
  color: #FFD700; /* Hover text to gold */
}

.page-blog__latest-articles {
  padding: 60px 0;
}

.page-blog__article-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-blog__list-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.page-blog__list-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85em;
  color: #777777;
}

.page-blog__list-item-category {
  background-color: #FFD700;
  color: #1E90FF;
  padding: 5px 10px;
  border-radius: 3px;
  font-weight: bold;
}

.page-blog__list-item-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__list-item-title a {
  color: #1E90FF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__list-item-title a:hover {
  color: #FFD700;
}

.page-blog__list-item-excerpt {
  color: #555555;
  font-size: 1em;
  margin-bottom: 15px;
}

.page-blog__read-more-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more-link:hover {
  color: #1E90FF;
}

.page-blog__newsletter-cta {
  background-color: #1E90FF; /* Auxiliary color background */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-blog__newsletter-cta .page-blog__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

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

.page-blog__cta-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for CTA title */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-blog__subscribe-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #1E90FF; /* Royal Blue text */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #FFD700;
}

.page-blog__subscribe-button:hover {
  background-color: #ffffff; /* White hover */
  color: #1E90FF; /* Royal Blue text */
  border-color: #ffffff;
}

.page-blog__cta-image {
  flex: 0 0 400px; /* Fixed width for CTA image on desktop */
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.5em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
  .page-blog__cta-image {
    flex: 0 0 300px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-content {
    padding: 60px 20px;
  }
  .page-blog__main-title {
    font-size: 2em;
  }
  .page-blog__intro-text {
    font-size: 1em;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin: 40px 0 30px;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__list-item-title {
    font-size: 1.5em;
  }
  .page-blog__newsletter-cta .page-blog__container {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__cta-content {
    text-align: center;
  }
  .page-blog__cta-image {
    flex: none;
    width: 100%;
    max-width: 400px; /* Constrain image width on mobile */
    margin-top: 30px;
  }
  /* Mobile content image constraint */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-card img,
  .page-blog__hero-section img,
  .page-blog__cta-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 1.8em;
  }
  .page-blog__intro-text {
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__list-item-title {
    font-size: 1.3em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__list-item-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}