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

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

.page-blog__hero-section {
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-container {
  max-width: 800px;
  z-index: 1;
  position: relative;
}

.page-blog__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

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

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

.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;
  white-space: nowrap;
}

.page-blog__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-blog__button--primary:hover {
  background-color: #e0a73d;
  border-color: #e0a73d;
}

.page-blog__button--secondary {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-blog__button--secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-blog__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  display: block;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin: 60px 0 40px;
  font-weight: bold;
}

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

.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 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__article-image-wrapper {
  width: 100%;
  height: 225px; /* Fixed height for image consistency */
  overflow: hidden;
}

.page-blog__article-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

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

.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-meta {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

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

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

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

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

.page-blog__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #eee;
  color: #000000;
  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: #ddd;
}

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

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

.page-blog__categories-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-blog__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  text-decoration: none;
  color: #000000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.page-blog__category-card img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-blog__category-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #000000;
}

.page-blog__cta-section {
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

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

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

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

.page-blog__button--cta {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-blog__button--cta:hover {
  background-color: #e0a73d;
  border-color: #e0a73d;
}

.page-blog__cta-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

@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: 100%;
    max-width: 300px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin: 40px 0 30px;
  }
  .page-blog__articles-grid, .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-card img,
  .page-blog__category-card img,
  .page-blog__cta-image img {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and do not overflow */
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1.1em;
  }
  .page-blog__cta-section {
    flex-direction: column;
  }
  .page-blog__pagination-link {
    width: 35px;
    height: 35px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__category-title {
    font-size: 1.5em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__button--cta {
    font-size: 1.1em;
    padding: 15px 30px;
  }
}

/* Ensure all content images in .page-blog are at least 200px wide */
.page-blog img {
  min-width: 200px;
  min-height: 200px;
}

/* Override for specific small images if they were allowed, but generally not for content */
/* The following rules ensure that any img directly or indirectly within .page-blog will not be smaller than 200px */
.page-blog__article-image-wrapper img, 
.page-blog__category-card img, 
.page-blog__cta-image img {
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}