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

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

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

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
  background-color: #f5f5f5;
}

.page-blog__hero-container {
  position: relative;
  max-width: 1920px; /* To ensure image doesn't stretch beyond max intended size */
  margin: 0 auto;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #FFFFFF; /* Light text on potentially dark image */
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for readability */
  padding: 30px 40px;
  border-radius: 10px;
  max-width: 80%;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFFFFF;
}

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

.page-blog__hero-cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color for CTA */
  color: #000000; /* Dark text on bright button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__hero-cta-button:hover {
  background-color: #e0a030;
}

.page-blog__latest-articles {
  margin-bottom: 60px;
}

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

.page-blog__blog-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__card-thumbnail {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-blog__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #000000;
}

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

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

.page-blog__card-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Limit excerpt to 4 lines */
  -webkit-box-orient: vertical;
}

.page-blog__read-more-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__read-more-button:hover {
  background-color: #333333;
}

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

.page-blog__pagination-link {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  text-decoration: none;
  color: #000000;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

.page-blog__categories-section {
  background-color: #f9f9f9;
  padding: 60px 0;
  margin-bottom: 60px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item {
  background-color: #FFFFFF;
  border: 1px solid #ddd;
  border-radius: 25px;
  padding: 10px 25px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-item:hover {
  background-color: #FCBC45;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__category-link {
  text-decoration: none;
  color: #000000;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.page-blog__category-item:hover .page-blog__category-link {
  color: #000000;
}

.page-blog__cta-section {
  background-color: #000000; /* Dark background for CTA */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 60px;
  border-radius: 10px;
}

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

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

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

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-blog__cta-button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-blog__cta-button--register:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-blog__cta-button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-blog__cta-button--login:hover {
  background-color: #e0a030;
  border-color: #e0a030;
}

/* 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__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-blog__hero-content {
    padding: 20px 25px;
    max-width: 90%;
  }
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-blog__hero-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__card-thumbnail {
    height: 200px;
  }
  .page-blog__card-title {
    font-size: 1.3em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-text {
    font-size: 1em;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__cta-button {
    width: 100%;
    padding: 12px 0;
  }
  .page-blog__category-list {
    flex-direction: column;
    align-items: center;
  }
  /* Ensure content images do not overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__blog-card .page-blog__card-thumbnail {
    max-width: 100%;
    height: auto;
    min-height: 200px; /* Ensure minimum height */
  }
  .page-blog__card-excerpt {
    -webkit-line-clamp: 5; /* Allow slightly more lines on mobile */
  }
}

@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.8em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__hero-image {
    min-height: 300px;
  }
}

/* General image rules for content area to prevent small icons */
.page-blog img {
  min-width: 200px; /* Enforce minimum width for all images in content area */
  min-height: 200px; /* Enforce minimum height for all images in content area */
  object-fit: cover;
}

/* Specific overrides for blog cards to ensure proper scaling while maintaining min size */
.page-blog__blog-card .page-blog__card-thumbnail {
  width: 100%;
  height: 225px; /* Maintain fixed aspect ratio for consistency */
  min-width: 200px; /* Ensures compliance with minimum size */
  min-height: 200px; /* Ensures compliance with minimum size */
}

@media (max-width: 768px) {
  .page-blog__blog-card .page-blog__card-thumbnail {
    height: auto; /* Allow height to adjust on mobile */
    max-width: 100%;
    min-height: 200px;
  }
  .page-blog__hero-image {
    min-width: 200px;
    min-height: 200px;
  }
}