.page-blog {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-blog__hero-section {
  background-color: #f8f8f8;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 60px;
  text-align: center;
}

.page-blog__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: 2.8em;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__button--register {
  background-color: #FFFFFF; /* Custom color for register */
  color: #000000;
  border: 2px solid #000000;
}

.page-blog__button--register:hover {
  background-color: #e0e0e0;
}

.page-blog__button--login {
  background-color: #FCBC45; /* Custom color for login */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-blog__button--login:hover {
  background-color: #e6a73c;
}

.page-blog__latest-articles,
.page-blog__about-swerte99,
.page-blog__cta-section,
.page-blog__more-resources {
  padding: 60px 0;
}

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

.page-blog__section-title {
  font-size: 2.2em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
}

.page-blog__section-intro {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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;
}

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

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

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

.page-blog__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

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

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

.page-blog__article-excerpt {
  color: #666666;
  font-size: 0.95em;
  margin-bottom: 15px;
}

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

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

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

.page-blog__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #333333;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover:not(.page-blog__pagination-link--disabled):not(.page-blog__pagination-link--active) {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__pagination-link--active {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__pagination-link--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.page-blog__about-swerte99 {
  background-color: #000000;
  color: #ffffff;
}

.page-blog__about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-blog__about-image {
  flex-shrink: 0;
  width: 500px;
  height: 375px; /* Maintain aspect ratio for common sizes like 800x600 */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__about-text p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-blog__about-text .page-blog__button {
  margin-top: 20px;
  background-color: #FCBC45;
  color: #000000;
  border: none;
}

.page-blog__about-text .page-blog__button:hover {
  background-color: #e6a73c;
}

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

.page-blog__cta-content {
  max-width: 800px;
}

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

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

.page-blog__more-resources {
  padding-bottom: 60px;
}

.page-blog__resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

.page-blog__resource-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-blog__resource-title a {
  color: #000000;
  text-decoration: none;
}

.page-blog__resource-title a:hover {
  color: #FCBC45;
}

.page-blog__resource-description {
  color: #666666;
  font-size: 0.95em;
  margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-blog__about-content {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__about-image {
    width: 100%;
    max-width: 600px;
    height: auto;
  }
}

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

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

  .page-blog__hero-actions,
  .page-blog__cta-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__button {
    width: 100%;
    max-width: 280px;
  }

  .page-blog__articles-grid,
  .page-blog__resources-grid {
    grid-template-columns: 1fr;
  }

  /* Ensure content images do not overflow on mobile */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }

  .page-blog__article-image {
    height: 200px; /* Adjust height for smaller screens */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-section,
  .page-blog__latest-articles,
  .page-blog__about-swerte99,
  .page-blog__cta-section,
  .page-blog__more-resources {
    padding: 40px 0;
  }

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

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

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

  .page-blog__button {
    padding: 10px 20px;
  }
}