.page-blog {
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity */
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
}

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

.page-blog__hero-section {
  background-color: #000000; /* Main 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;
  min-height: 500px;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background effect */
  z-index: 0;
}

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

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.9;
}

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

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

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

.page-blog__hero-button--primary:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-blog__hero-button--secondary {
  background-color: transparent;
  color: #FFFFFF; /* Register color for secondary action, on dark background */
  border: 2px solid #FFFFFF;
}

.page-blog__hero-button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

.page-blog__latest-articles-section,
.page-blog__categories-section,
.page-blog__cta-section {
  padding: 60px 0;
}

.page-blog__latest-articles-section {
  background-color: #f8f8f8;
}

.page-blog__article-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;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.4;
}

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

.page-blog__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000000; /* Main dark color for button */
  color: #FFFFFF;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Pushes button to the bottom */
}

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

.page-blog__categories-section {
  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: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #000000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

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

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

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 25px;
  line-height: 1.3;
  color: #FFFFFF;
}

.page-blog__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.9;
}

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

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

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

.page-blog__cta-button--register:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-blog__cta-button--login {
  background-color: transparent;
  color: #FFFFFF; /* Register color for login, on dark background */
  border: 2px solid #FFFFFF;
}

.page-blog__cta-button--login:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__hero-button {
    width: 100%;
    max-width: 280px;
  }
  .page-blog__latest-articles-section,
  .page-blog__categories-section,
  .page-blog__cta-section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__category-image {
    height: 150px;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 0.95em;
  }
  .page-blog__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__cta-button {
    width: 100%;
    max-width: 280px;
  }
  /* Ensure content area images do not overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__cta-title {
    font-size: 1.6em;
  }
  .page-blog__hero-button,
  .page-blog__cta-button {
    font-size: 1em;
    padding: 12px 25px;
  }
}