/* style/blog.css */
.page-blog {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  background-color: #FFFFFF;
}

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

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  overflow: hidden;
}

.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.7); /* Darken image slightly for text readability */
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFFFFF;
  max-width: 800px;
  width: 90%;
  z-index: 10;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent black background for text */
  border-radius: 8px;
}

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

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

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

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

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

.page-blog__button--primary:hover {
  background-color: #e0a53b;
  border-color: #e0a53b;
}

.page-blog__button--secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

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

/* Featured Articles */
.page-blog__featured-articles {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.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: 8px;
  box-shadow: 0 4px 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 25px 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.5em;
  margin-bottom: 10px;
  color: #000000;
  font-weight: bold;
}

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

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

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

.page-blog__read-more-link {
  display: inline-block;
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  align-self: flex-start;
}

.page-blog__read-more-link:hover {
  text-decoration: underline;
}

/* Latest Posts */
.page-blog__latest-posts {
  padding: 60px 0;
}

.page-blog__post-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-blog__post-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__post-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.page-blog__post-details {
  padding: 25px;
  flex-grow: 1;
}

.page-blog__post-title {
  font-size: 1.3em;
  margin-bottom: 8px;
  color: #000000;
  font-weight: bold;
}

.page-blog__post-meta {
  font-size: 0.85em;
  color: #777777;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 0.9em;
  color: #555555;
  margin-bottom: 15px;
}

.page-blog__pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.page-blog__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #000000;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
}

.page-blog__pagination-link--active {
  background-color: #FCBC45;
  color: #000000;
  border-color: #FCBC45;
  font-weight: bold;
}

/* Categories */
.page-blog__categories {
  padding: 60px 0;
  background-color: #f2f2f2;
}

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

.page-blog__category-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #000000;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__category-card:hover .page-blog__category-title,
.page-blog__category-card:hover .page-blog__category-count {
  color: #000000;
}

.page-blog__category-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
  color: #000000;
}

.page-blog__category-count {
  font-size: 0.9em;
  color: #777777;
}

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

.page-blog__cta-title {
  font-size: 2.8em;
  margin-bottom: 25px;
  color: #FFFFFF;
  font-weight: bold;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__article-image,
  .page-blog__post-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-content {
    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-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 100%;
    padding: 12px 20px;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__post-item {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__post-image {
    width: 100%;
    height: 250px;
  }
  .page-blog__post-details {
    padding: 20px;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }

  .page-blog__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .page-blog__category-card {
    padding: 20px;
  }
  .page-blog__category-title {
    font-size: 1.2em;
  }

  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }

  /* Ensure content images do not overflow on mobile */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.6em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 0.9em;
  }
}