.page-blog {
  color: #333333; /* Dark text for light body background */
}

.page-blog__hero-section {
  background-color: #000000; /* Dark background for hero section */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-blog__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* Slightly dim the background image */
  z-index: 0;
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  color: #FFFFFF; /* Light text on dark hero background */
  max-width: 900px;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-blog__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

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

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

.page-blog__button--primary:hover {
  background-color: transparent;
  color: #FFFFFF;
  transform: translateY(-3px);
}

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

.page-blog__button--secondary:hover {
  background-color: transparent;
  color: #FCBC45;
  transform: translateY(-3px);
}

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

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

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

.page-blog__featured-articles {
  padding: 60px 0;
  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: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-blog__article-title {
  font-size: 1.6em;
  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: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-blog__read-more {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: color 0.3s ease;
}

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

.page-blog__categories {
  padding: 60px 0;
}

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

.page-blog__category-card {
  display: block;
  text-decoration: none;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__category-image {
  width: 100%; /* Ensures image fits within card */
  height: auto;
  max-width: 250px; /* Constrain max width */
  margin: 0 auto 20px auto;
  display: block; /* Ensure it's block for margin auto */
  border-radius: 8px;
}

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

.page-blog__deep-dive {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.page-blog__intro-paragraph {
  font-size: 1.15em;
  line-height: 1.8;
  margin-bottom: 40px;
  color: #444444;
}

.page-blog__sub-section-title {
  font-size: 2.2em;
  color: #000000;
  margin-top: 50px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__deep-dive p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #555555;
}

.page-blog__cta-buttons {
  text-align: center;
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.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: #000000;
  color: #FCBC45;
  border-color: #FCBC45;
  transform: translateY(-5px);
}

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

.page-blog__button--cta-secondary:hover {
  background-color: #000000;
  color: #FCBC45;
  border-color: #FCBC45;
  transform: translateY(-5px);
}

.page-blog__newsletter-signup {
  background-color: #000000;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
}

.page-blog__newsletter-signup .page-blog__section-title {
  color: #FFFFFF;
}

.page-blog__newsletter-signup .page-blog__section-intro {
  color: #CCCCCC;
}

.page-blog__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-blog__newsletter-input {
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.05em;
  width: 100%;
  max-width: 400px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-blog__newsletter-input::placeholder {
  color: #AAAAAA;
}

.page-blog__button--subscribe {
  background-color: #FCBC45;
  color: #000000;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.05em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__button--subscribe:hover {
  background-color: #FFFFFF;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }
  .page-blog__hero-description {
    font-size: 1.2em;
  }
  .page-blog__section-title {
    font-size: 2.5em;
  }
  .page-blog__sub-section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  }
  .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__button {
    width: 100%;
    max-width: 300px;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__sub-section-title {
    font-size: 1.8em;
  }
  .page-blog__article-grid,
  .page-blog__category-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image, .page-blog__category-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and not smaller than 200px */
  }
  .page-blog__deep-dive p {
    font-size: 1em;
  }
  .page-blog__newsletter-form {
    flex-direction: column;
    align-items: center;
  }
  .page-blog__newsletter-input {
    max-width: 100%;
  }
  .page-blog__button--subscribe {
    width: 100%;
    max-width: 300px;
  }
  /* Content area images must not cause horizontal scroll */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  /* Ensure all content area images are at least 200px wide in mobile */
  .page-blog__article-image, .page-blog__category-image {
    min-width: 200px;
    min-height: 150px; /* Adjusted min-height for aspect ratio, still > 200px area */
    width: 100%; /* Occupy full width of container */
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__sub-section-title {
    font-size: 1.6em;
  }
  .page-blog__deep-dive p {
    font-size: 0.95em;
  }
  .page-blog__button--cta, .page-blog__button--cta-secondary {
    font-size: 1.05em;
    padding: 15px 25px;
  }
}