.page-blog {
  color: #ffffff; /* Text color for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
  background-color: #000000; /* Ensure main content background matches body */
}

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

.page-blog__hero-section {
  text-align: center;
  padding: 80px 20px 40px;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-container {
  position: relative;
  z-index: 1;
}

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

.page-blog__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-blog__hero-actions {
  margin-top: 30px;
  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;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-blog__button--register {
  background-color: #FFFFFF;
  color: #000000;
}

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

.page-blog__button--login {
  background-color: #FCBC45;
  color: #000000;
}

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

.page-blog__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  font-weight: bold;
}

.page-blog__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

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

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

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

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

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

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

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

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

.page-blog__article-excerpt {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  align-self: flex-start;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-blog__read-more-button:hover {
  background-color: #FFFFFF;
  transform: translateY(-2px);
}

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

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

.page-blog__category-item a {
  display: block;
  background-color: #1a1a1a;
  color: #FFFFFF;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__category-item a:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__newsletter-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  text-align: center;
}

.page-blog__newsletter-description {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.page-blog__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.page-blog__newsletter-input {
  padding: 15px 20px;
  border: 1px solid #333333;
  border-radius: 8px;
  background-color: #0d0d0d;
  color: #FFFFFF;
  font-size: 1em;
  flex-grow: 1;
  outline: none;
}

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

.page-blog__button--subscribe {
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
}

.page-blog__button--subscribe:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.page-blog__about-section {
  padding: 80px 0;
  background-color: #000000;
  text-align: center;
}

.page-blog__about-description {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-blog__button--learn-more {
  background-color: #FFFFFF;
  color: #000000;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
}

.page-blog__button--learn-more:hover {
  background-color: #FCBC45;
  color: #000000;
}

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

  .page-blog__section-title {
    font-size: 2em;
  }

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

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }

  .page-blog__hero-section {
    padding: 60px 15px 30px;
  }

  .page-blog__hero-title {
    font-size: 2.2em;
  }

  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }

  .page-blog__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-blog__articles-section, .page-blog__categories-section, .page-blog__newsletter-section, .page-blog__about-section {
    padding: 40px 0;
  }

  .page-blog__article-image {
    height: 200px;
  }

  .page-blog__article-title {
    font-size: 1.3em;
  }

  .page-blog__article-excerpt {
    font-size: 0.9em;
  }

  .page-blog__category-list {
    gap: 10px;
  }

  .page-blog__category-item a {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .page-blog__newsletter-form {
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
  }

  .page-blog__newsletter-input, .page-blog__button--subscribe {
    width: 100%;
  }

  /* Ensure all images within .page-blog are responsive and don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    min-width: 200px; /* Minimum width for content images */
    min-height: 200px; /* Minimum height for content images */
  }

  .page-blog__article-image {
    min-width: unset; /* Override min-width for article images if needed, but ensure they are still large enough */
    min-height: unset;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }

  .page-blog__section-title {
    font-size: 1.5em;
  }

  .page-blog__hero-actions {
    flex-direction: column;
  }

  .page-blog__newsletter-form {
    flex-direction: column;
  }
}