.page-blog {
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #FFFFFF; /* Page specific background as per request */
}

.page-blog__hero-section {
  background-color: #000000; /* Main color as background */
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

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

.page-blog__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FCBC45; /* Login color for emphasis */
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 700px;
}

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

.page-blog__hero-cta-button:hover {
  background-color: #FFD700;
  transform: translateY(-3px);
}

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

.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__featured-article {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-blog__article-card {
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 30px;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

.page-blog__article-card--featured {
  flex-direction: row;
  align-items: flex-start;
}

.page-blog__article-card--featured .page-blog__article-image {
  width: 50%;
  height: auto;
  object-fit: cover;
}

.page-blog__article-card--featured .page-blog__article-content {
  width: 50%;
  padding: 30px;
}

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

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

.page-blog__article-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.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-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

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

.page-blog__latest-articles {
  padding: 60px 0;
}

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

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

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

.page-blog__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  padding: 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-blog__call-to-action {
  padding: 80px 20px;
  text-align: center;
  background-color: #f8f8f8;
}

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

.page-blog__cta-description {
  font-size: 1.2em;
  color: #444444;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  margin: 0 10px;
}

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

.page-blog__cta-button--register:hover {
  background-color: #FCBC45;
  border-color: #FCBC45;
  transform: translateY(-3px);
}

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

.page-blog__cta-button--login:hover {
  background-color: #FFD700;
  border-color: #FFD700;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__article-card--featured {
    flex-direction: column;
  }
  .page-blog__article-card--featured .page-blog__article-image,
  .page-blog__article-card--featured .page-blog__article-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 120px); /* Ensure mobile content also starts below header */
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description,
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__hero-cta-button,
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__article-title {
    font-size: 1.5em;
  }
  .page-blog__article-image {
    height: 200px; /* Adjusted for smaller screens */
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  /* Ensure all images within content area are responsive and not too small */
  .page-blog img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px; /* Enforce minimum size for content images */
    object-fit: cover; /* Maintain aspect ratio */
  }
  .page-blog__article-card--featured .page-blog__article-image {
    min-width: unset;
    min-height: unset;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-cta-button,
  .page-blog__cta-button {
    margin: 5px;
    display: block;
    width: calc(100% - 20px);
  }
  .page-blog__cta-button--register, .page-blog__cta-button--login {
    margin-bottom: 10px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__content-wrapper {
    padding: 20px 15px;
  }
}