.page-blog {
  color: #ffffff; /* Light text for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-blog__hero-section {
  position: relative;
  text-align: center;
  padding: 80px 20px 40px;
  overflow: hidden;
  background-color: #1A1A1A;
}

.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;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-blog__hero-description {
  font-size: 1.2em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
}

.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%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

.page-blog__articles-section,
.page-blog__long-form-article,
.page-blog__download-cta-section {
  padding: 60px 20px;
  background-color: #0d0d0d;
}

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

.page-blog__section-title,
.page-blog__long-form-title,
.page-blog__download-title {
  font-size: 2.8em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.page-blog__section-subtitle {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 50px;
}

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

.page-blog__article-card {
  background-color: #1A1A1A;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  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 12px 25px rgba(0, 0, 0, 0.6);
}

.page-blog__article-image {
  width: 100%;
  height: 250px; /* 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.5em;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

.page-blog__article-description {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__article-link {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #FFD700;
  padding: 10px 20px;
  border-radius: 25px;
  align-self: flex-start;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__article-link:hover {
  background-color: #FFD700;
  color: #1A1A1A;
}

.page-blog__long-form-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.2;
}

.page-blog__long-form-intro {
  font-size: 1.15em;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 40px;
  text-align: justify;
}

.page-blog__long-form-intro strong {
  color: #FFD700;
}

.page-blog__long-form-subtitle {
  font-size: 2em;
  color: #FFD700;
  margin-top: 40px;
  margin-bottom: 25px;
  border-left: 5px solid #FFD700;
  padding-left: 15px;
  line-height: 1.3;
}

.page-blog__long-form-sub-heading {
  font-size: 1.6em;
  color: #e6c200;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-blog__long-form-article p {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__long-form-article p strong {
  color: #FFD700;
}

.page-blog__image-with-text {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 50px 0;
}

.page-blog__image-with-text--reverse {
  flex-direction: row-reverse;
}

.page-blog__long-form-image-left,
.page-blog__long-form-image-right {
  width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Ensure images are not too small */
}

.page-blog__text-content {
  width: 50%;
}

.page-blog__cta-text {
  text-align: center;
  font-size: 1.3em;
  color: #FFD700;
  margin-top: 50px;
  margin-bottom: 30px;
}

.page-blog__cta-button {
  display: block;
  width: fit-content;
  margin: 0 auto 50px;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 18px 50px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
}

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

.page-blog__download-cta-section {
  background-color: #1A1A1A;
  text-align: center;
  padding: 80px 20px;
}

.page-blog__download-description {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__download-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A1A;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
  margin-bottom: 30px;
}

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

.page-blog__download-image {
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Ensure image is not too small */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }
  .page-blog__section-title,
  .page-blog__long-form-title,
  .page-blog__download-title {
    font-size: 2.2em;
  }
  .page-blog__long-form-subtitle {
    font-size: 1.8em;
  }
  .page-blog__long-form-sub-heading {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 15px 30px;
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-blog__articles-section,
  .page-blog__long-form-article,
  .page-blog__download-cta-section {
    padding: 40px 15px;
  }

  .page-blog__section-title,
  .page-blog__long-form-title,
  .page-blog__download-title {
    font-size: 1.8em;
  }
  .page-blog__section-subtitle {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 200px;
  }

  .page-blog__long-form-intro,
  .page-blog__long-form-article p {
    font-size: 0.95em;
  }

  .page-blog__long-form-subtitle {
    font-size: 1.5em;
  }
  .page-blog__long-form-sub-heading {
    font-size: 1.2em;
  }

  .page-blog__image-with-text {
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
  }
  .page-blog__image-with-text--reverse {
    flex-direction: column;
  }
  .page-blog__long-form-image-left,
  .page-blog__long-form-image-right,
  .page-blog__text-content {
    width: 100%;
  }
  
  .page-blog__long-form-article img, /* Applies to all images in long-form article */
  .page-blog__article-card img, /* Applies to images in article cards */
  .page-blog__download-image, /* Applies to the download image */
  .page-blog__hero-image { /* Applies to hero image */
    max-width: 100%;
    height: auto;
  }

  .page-blog__cta-text {
    font-size: 1.1em;
    margin-top: 30px;
  }
  .page-blog__cta-button {
    padding: 15px 35px;
    font-size: 1.1em;
  }

  .page-blog__download-description {
    font-size: 1em;
  }
  .page-blog__download-button {
    padding: 12px 30px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__section-title,
  .page-blog__long-form-title,
  .page-blog__download-title {
    font-size: 1.5em;
  }
  .page-blog__hero-button,
  .page-blog__cta-button,
  .page-blog__download-button {
    width: 90%;
    max-width: 300px;
  }
}