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

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Highlight with login button color */
  line-height: 1.1;
}

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

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

.page-blog__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.3s ease;
  white-space: nowrap;
  text-align: center;
}

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

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

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

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

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

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

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

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

.page-blog__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-blog__latest-articles-section,
.page-blog__deep-dive-section,
.page-blog__cta-section,
.page-blog__categories-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

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

.page-blog__article-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  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 20px rgba(0, 0, 0, 0.15);
}

.page-blog__article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

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

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

.page-blog__categories-section {
  margin-top: 80px;
}

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

.page-blog__category-item {
  background-color: #000000; /* Dark background for categories */
  border-radius: 25px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__category-item:hover {
  background-color: #FCBC45;
  transform: translateY(-3px);
}

.page-blog__category-link {
  display: block;
  padding: 10px 25px;
  color: #FFFFFF; /* White text for dark background */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
}

.page-blog__category-item:hover .page-blog__category-link {
  color: #000000; /* Dark text on hover for contrast */
}

.page-blog__deep-dive-section {
  margin-top: 80px;
}

.page-blog__subsection-title {
  font-size: 2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 5px solid #FCBC45;
  padding-left: 15px;
}

.page-blog__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
  text-align: justify;
}

.page-blog__content-image {
  width: 100%;
  height: auto;
  max-width: 800px; /* Constrain image width for readability */
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-blog__cta-section .page-blog__section-title {
  color: #FCBC45;
}

.page-blog__cta-section .page-blog__section-intro {
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-blog__button--primary:hover {
  background-color: #e0a53b;
  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__subsection-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 15px;
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1.2em;
  }
  .page-blog__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 100%;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-blog__latest-articles-section,
  .page-blog__deep-dive-section,
  .page-blog__cta-section,
  .page-blog__categories-section {
    margin: 40px auto;
    padding: 0 15px;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__category-list {
    justify-content: flex-start;
  }
  .page-blog__subsection-title {
    font-size: 1.5em;
  }
  .page-blog__paragraph {
    font-size: 1em;
  }
  /* Mobile content image constraint */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__subsection-title {
    font-size: 1.3em;
  }
}