.page-blog {
  color: #333333; /* Dark text for light background */
  background-color: var(--secondary-color, #FFFFFF); /* Ensures light background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0; /* Remove default padding to allow image to cover */
}

.page-blog__hero-container {
  position: relative;
  width: 100%;
  max-width: 1920px; /* Max width for hero content */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background for readability */
  padding: 30px;
  border-radius: 10px;
  color: #FFFFFF;
}

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

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

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

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

.page-blog__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for login button */
}

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

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

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

.page-blog__content-area,
.page-blog__categories-section,
.page-blog__latest-posts-section,
.page-blog__newsletter-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

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

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

.page-blog__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

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

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px 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;
}

.page-blog__article-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog__article-title a {
  color: #000000;
  text-decoration: none;
}

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

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

.page-blog__read-more {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto;
}

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

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

.page-blog__category-card {
  display: block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 25px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.page-blog__latest-posts-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-blog__list-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__list-item-title {
  font-size: 1.6em;
  color: #000000;
  margin-bottom: 10px;
}

.page-blog__list-item-title a {
  color: #000000;
  text-decoration: none;
}

.page-blog__list-item-title a:hover {
  color: #FCBC45;
}

.page-blog__list-item-meta {
  font-size: 0.9em;
  color: #999999;
  margin-bottom: 15px;
}

.page-blog__list-item-excerpt {
  font-size: 1em;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-blog__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

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

.page-blog__cta-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-blog__cta-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

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

.page-blog__cta-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 700px;
}

.page-blog__newsletter-section {
  background-color: #F8F8F8;
  padding: 80px 20px;
  text-align: center;
}

.page-blog__newsletter-container {
  max-width: 700px;
  margin: 0 auto;
}

.page-blog__newsletter-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 15px;
}

.page-blog__newsletter-description {
  font-size: 1.1em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 30px;
}

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

.page-blog__newsletter-input {
  padding: 15px 20px;
  border: 1px solid #CCCCCC;
  border-radius: 5px;
  font-size: 1em;
  width: 100%;
  max-width: 350px;
  box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__section-title {
    font-size: 2.2em;
  }
  .page-blog__article-title {
    font-size: 1.6em;
  }
  .page-blog__list-item-title {
    font-size: 1.4em;
  }
  .page-blog__cta-title {
    font-size: 2.5em;
  }
  .page-blog__newsletter-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-content {
    width: 95%;
    padding: 20px;
  }
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 100%;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__content-area,
  .page-blog__categories-section,
  .page-blog__latest-posts-section,
  .page-blog__newsletter-section {
    padding: 40px 15px;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__article-title {
    font-size: 1.4em;
  }
  .page-blog__list-item-title {
    font-size: 1.2em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__newsletter-form {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__newsletter-input {
    max-width: 100%;
  }
  /* Ensure images in content area don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__button {
    padding: 12px 20px;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__list-item-title {
    font-size: 1.1em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__newsletter-title {
    font-size: 1.8em;
  }
  .page-blog__category-card {
    font-size: 1em;
    padding: 20px 10px;
  }
}