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

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

.page-blog__hero-section {
  background-color: #f8f8f8;
  padding: 80px 20px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-blog__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
}

.page-blog__hero-title {
  font-size: 3.2em;
  color: #000000; /* Main brand color for titles */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

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

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

.page-blog__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 1.1em;
}

.page-blog__button--register {
  background-color: #000000; /* Main brand color */
  color: #FFFFFF; /* White text for contrast */
  border: 2px solid #000000;
}

.page-blog__button--register:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-blog__button--login {
  background-color: #FCBC45; /* Login specific color */
  color: #000000; /* Dark text for contrast */
  border: 2px solid #FCBC45;
}

.page-blog__button--login:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-blog__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.page-blog__articles-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

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

.page-blog__article-card {
  background-color: #fefefe;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-blog__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__article-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.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: #333;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

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

.page-blog__category-card {
  background-color: #ffffff;
  padding: 25px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-decoration: none;
  color: #000000;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.page-blog__category-card:hover {
  background-color: #FCBC45;
  color: #000000;
  transform: translateY(-5px);
}

.page-blog__cta-section {
  background-color: #000000; /* Main brand color for CTA background */
  padding: 80px 20px;
  text-align: center;
  color: #FFFFFF;
}

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

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

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

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

.page-blog__button--cta:hover {
  background-color: #e0a53b;
  color: #000000;
  transform: translateY(-3px);
}

/* 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.2em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 120px);
  }
  .page-blog__hero-section {
    padding: 60px 15px 30px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 100%;
  }
  .page-blog__articles-section, .page-blog__categories-section, .page-blog__cta-section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__button--cta {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  /* Mobile content image overflow prevention */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-card img {
    width: 100%; /* Ensure article images are responsive */
    height: auto; /* Maintain aspect ratio */
    min-height: 200px; /* Min height for content images */
    object-fit: cover;
  }
  .page-blog__cta-image {
    min-height: 200px; /* Min height for CTA image */
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__cta-title {
    font-size: 1.6em;
  }
  .page-blog__hero-section, .page-blog__articles-section, .page-blog__categories-section, .page-blog__cta-section {
    padding-left: 10px;
    padding-right: 10px;
  }
}