.page-blog {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #0d0d0d; /* Dark background for hero text contrast */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

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

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

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

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

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

/* General Section Styling */
.page-blog__section-title {
  font-size: 2.5em;
  color: #007BFF; /* Primary blue for main titles */
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
}

/* Buttons */
.page-blog__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, color 0.3s ease, transform 0.3s ease;
}

.page-blog__button--primary {
  background-color: #007BFF; /* Primary blue */
  color: #ffffff;
  border: 2px solid #007BFF;
}

.page-blog__button--primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-3px);
}

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

.page-blog__button--secondary:hover {
  background-color: #FFC107;
  color: #000000;
  transform: translateY(-3px);
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.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: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  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.6em;
  margin-bottom: 15px;
  color: #007BFF;
  line-height: 1.3;
}

.page-blog__article-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

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

.page-blog__read-more {
  display: inline-block;
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-blog__read-more:hover {
  color: #FFC107;
  text-decoration: underline;
}

/* Categories Section */
.page-blog__categories-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-blog__category-card {
  background-color: #f0f8ff; /* Lighter blue background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  background-color: #e6f2ff; /* Even lighter blue on hover */
}

.page-blog__category-title {
  font-size: 1.8em;
  color: #007BFF;
  margin-bottom: 10px;
}

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

/* Featured Posts Section */
.page-blog__featured-posts-section {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.page-blog__featured-post {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  margin-bottom: 40px;
  overflow: hidden;
}

.page-blog__featured-post:last-child {
  margin-bottom: 0;
}

.page-blog__featured-image {
  width: 40%; /* Adjust as needed for layout */
  height: auto;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-blog__featured-content {
  padding: 30px;
  width: 60%; /* Adjust as needed for layout */
}

.page-blog__featured-title {
  font-size: 2em;
  color: #007BFF;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog__featured-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-blog__featured-title a:hover {
  color: #FFC107;
}

.page-blog__featured-excerpt {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 25px;
}

/* Newsletter CTA Section */
.page-blog__newsletter-cta-section {
  padding: 80px 0;
  background-color: #007BFF; /* Primary blue background */
  color: #ffffff;
  text-align: center;
}

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

.page-blog__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.page-blog__newsletter-input {
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  flex-grow: 1;
  max-width: 400px;
}

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

.page-blog__newsletter-form .page-blog__button--primary {
  background-color: #FFC107; /* Gold button on blue background */
  color: #000000;
  border: 2px solid #FFC107;
}

.page-blog__newsletter-form .page-blog__button--primary:hover {
  background-color: #e6a800;
  border-color: #e6a800;
  color: #000000;
}

/* Final Call to Action Section */
.page-blog__call-to-action-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: center;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__featured-post {
    flex-direction: column;
  }
  .page-blog__featured-image,
  .page-blog__featured-content {
    width: 100%;
  }
  .page-blog__featured-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 120px);
  }
  .page-blog__hero-section {
    padding: 60px 20px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__featured-post {
    margin-bottom: 30px;
  }
  .page-blog__featured-image {
    height: 250px;
  }
  .page-blog__featured-content {
    padding: 20px;
  }
  .page-blog__featured-title {
    font-size: 1.6em;
  }
  .page-blog__featured-excerpt {
    font-size: 0.95em;
  }
  .page-blog__newsletter-form {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__newsletter-input {
    max-width: 90%;
    width: 90%;
  }
  .page-blog__newsletter-form .page-blog__button--primary {
    width: 90%;
    margin: 0 auto;
  }
  .page-blog__cta-text {
    font-size: 1.1em;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Critical: Prevent content overflow on mobile */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__hero-image {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-image {
    max-width: 100%;
    height: auto;
  }
  .page-blog__featured-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__article-title {
    font-size: 1.4em;
  }
  .page-blog__category-title {
    font-size: 1.5em;
  }
  .page-blog__featured-title {
    font-size: 1.4em;
  }
  .page-blog__button {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-blog__newsletter-input {
    font-size: 1em;
    padding: 12px 15px;
  }
}