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

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

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

.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: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A0A0A;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

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

.page-blog__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #0A0A0A;
}

.page-blog__articles-section {
  padding: 60px 20px;
  background-color: #1a1a1a;
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
}

.page-blog__main-content {
  flex: 3;
}

.page-blog__sidebar {
  flex: 1;
  background-color: #0A0A0A;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 40px;
  text-align: center;
}

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

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

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

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

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

.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-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
  line-height: 1.5;
}

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

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

.page-blog__pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.page-blog__pagination-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #0A0A0A;
  color: #FFD700;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover,
.page-blog__pagination-link--active {
  background-color: #FFD700;
  color: #0A0A0A;
}

.page-blog__sidebar-widget {
  margin-bottom: 40px;
}

.page-blog__widget-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 25px;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 10px;
}

.page-blog__search-bar {
  display: flex;
}

.page-blog__search-input {
  flex-grow: 1;
  padding: 12px 15px;
  border: 1px solid #333;
  border-radius: 5px 0 0 5px;
  background-color: #222;
  color: #ffffff;
  font-size: 1em;
}

.page-blog__search-input::placeholder {
  color: #999;
}

.page-blog__search-button {
  background-color: #FFD700;
  color: #0A0A0A;
  border: none;
  padding: 12px 20px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-blog__category-list,
.page-blog__archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-blog__category-list li,
.page-blog__archive-list li {
  margin-bottom: 15px;
}

.page-blog__category-link,
.page-blog__archive-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s ease;
  display: block;
  padding: 5px 0;
}

.page-blog__category-link:hover,
.page-blog__archive-link:hover {
  color: #FFD700;
}

.page-blog__widget-text {
  color: #cccccc;
  font-size: 0.95em;
  margin-bottom: 20px;
  line-height: 1.5;
}

.page-blog__cta-button.page-blog__cta-button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-blog__cta-section {
  background-color: #0A0A0A;
  padding: 80px 20px;
  text-align: center;
}

.page-blog__cta-title {
  font-size: 3em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-blog__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }

  .page-blog__section-title {
    font-size: 2em;
  }

  .page-blog__article-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    flex-direction: column;
    gap: 30px;
  }

  .page-blog__main-content,
  .page-blog__sidebar {
    flex: none;
    width: 100%;
  }

  .page-blog__hero-section {
    padding: 60px 15px;
  }

  .page-blog__hero-title {
    font-size: 2.5em;
  }

  .page-blog__hero-description,
  .page-blog__cta-description {
    font-size: 1em;
  }

  .page-blog__cta-title {
    font-size: 2.2em;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__cta-button,
  .page-blog__cta-button--secondary {
    width: 100%;
    margin-left: 0;
  }

  .page-blog__articles-section {
    padding: 40px 15px;
  }

  .page-blog__article-list {
    grid-template-columns: 1fr;
  }

  .page-blog__article-image {
    height: 220px;
  }

  .page-blog__article-content {
    padding: 20px;
  }

  .page-blog__article-title {
    font-size: 1.3em;
  }

  .page-blog__sidebar {
    padding: 25px;
  }

  .page-blog__widget-title {
    font-size: 1.5em;
  }

  .page-blog__pagination {
    margin-top: 40px;
  }

  /* Critical: Ensure all images within .page-blog are responsive and don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
    display: block; /* Important for preventing extra space below images */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }

  .page-blog__cta-title {
    font-size: 1.8em;
  }

  .page-blog__hero-description,
  .page-blog__cta-description {
    font-size: 0.9em;
  }

  .page-blog__section-title {
    font-size: 1.8em;
  }

  .page-blog__article-image {
    height: 180px;
  }
}