/* style/blog.css */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #FFFFFF;
  text-align: center;
  padding: 0;
}

.page-blog__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability, not changing color */
}

.page-blog__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
}

.page-blog__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-blog__hero-cta-group {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.page-blog__hero-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-blog__hero-button--register:hover {
  background-color: #F0F0F0;
}

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

.page-blog__hero-button--login:hover {
  background-color: #e0a53b;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  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__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-blog__article-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-blog__card-content {
  padding: 20px;
}

.page-blog__card-category {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.85em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-blog__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
}

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

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

.page-blog__card-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  line-height: 1.5;
}

.page-blog__card-link {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__card-link:hover {
  color: #e0a53b;
}

.page-blog__categories-section {
  margin-bottom: 60px;
}

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

.page-blog__category-item a {
  display: block;
  padding: 10px 20px;
  background-color: #000000;
  color: #FFFFFF;
  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__cta-banner {
  position: relative;
  background-color: #000000; /* Fallback background */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px;
  margin-top: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.page-blog__cta-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  text-align: center;
  flex-grow: 1;
}

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

.page-blog__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 25px auto;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  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__cta-button:hover {
  background-color: #FFFFFF;
  color: #000000;
  transform: translateY(-3px);
}

/* Responsive Design */
@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: 2em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 100px); /* Adjust for mobile header if needed */
  }
  .page-blog__hero-overlay {
    padding: 15px;
  }
  .page-blog__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-blog__hero-cta-group {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__hero-button {
    width: 80%;
    max-width: 250px;
    margin: 0 auto;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__card-image {
    height: 200px;
  }
  .page-blog__card-title {
    font-size: 1.3em;
  }
  .page-blog__card-excerpt {
    font-size: 0.9em;
  }
  .page-blog__category-list {
    gap: 10px;
    padding: 0 10px;
  }
  .page-blog__category-item a {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  .page-blog__cta-banner {
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }
  .page-blog__cta-title {
    font-size: 1.5em;
  }
  .page-blog__cta-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .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__hero-button {
    width: 90%;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__card-title {
    font-size: 1.2em;
  }
  .page-blog__cta-title {
    font-size: 1.3em;
  }
  .page-blog__cta-description {
    font-size: 0.85em;
  }
}