/* 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; /* Ensures consistency with body background */
}

.page-blog__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  color: #FFFFFF;
  text-align: center;
  padding-bottom: 80px;
}

.page-blog__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-blog__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for highlight */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-blog__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

.page-blog__section-title {
  font-size: 2.2em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

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

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

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

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

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

.page-blog__post-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #000000;
}

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

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

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

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

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

.page-blog__read-more-button:hover {
  background-color: #333333;
}

.page-blog__pagination {
  text-align: center;
  margin-top: 50px;
}

.page-blog__pagination-link {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-decoration: none;
  color: #000000;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

.page-blog__pagination-link--active {
  background-color: #FCBC45;
  color: #FFFFFF;
  border-color: #FCBC45;
}

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

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

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

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

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

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

.page-blog__popular-posts-section {
  padding: 60px 0;
}

.page-blog__popular-posts-list {
  display: grid;
  gap: 20px;
}

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

.page-blog__popular-post-item:hover {
  transform: translateX(5px);
}

.page-blog__popular-post-thumbnail {
  width: 200px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-blog__popular-post-details {
  padding: 20px;
}

.page-blog__popular-post-title {
  font-size: 1.2em;
  margin-bottom: 5px;
}

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

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

.page-blog__popular-post-meta {
  font-size: 0.85em;
  color: #666666;
}

.page-blog__cta-section {
  background: linear-gradient(90deg, #000000 0%, #333333 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
}

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

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

.page-blog__cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  margin: 0 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-blog__cta-button--login {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
}

.page-blog__cta-button--login:hover {
  background-color: #f0f0f0;
}

.page-blog__in-depth-content {
  padding: 60px 0;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-blog__in-depth-content h3 {
  font-size: 1.8em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 20px;
  position: relative;
}

.page-blog__in-depth-content h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 60px;
  height: 3px;
  background-color: #FCBC45;
  border-radius: 1.5px;
}

.page-blog__in-depth-content p {
  margin-bottom: 20px;
  color: #444444;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__category-card {
    padding: 25px;
  }
  .page-blog__popular-post-thumbnail {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__category-card {
    padding: 20px;
  }
  .page-blog__popular-post-item {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__popular-post-thumbnail {
    width: 100%;
    height: 250px;
    max-width: 100%; /* Ensure images don't overflow on mobile */
    height: auto;
  }
  .page-blog__popular-post-details {
    padding: 15px;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__cta-button {
    display: block;
    margin: 15px auto;
  }
  .page-blog__in-depth-content h3 {
    font-size: 1.5em;
  }
  /* Ensure all images within .page-blog are responsive and do not cause overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__hero-container {
    padding: 30px 15px;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__container {
    padding: 30px 15px;
  }
  .page-blog__post-image {
    height: 200px;
  }
  .page-blog__post-title {
    font-size: 1.3em;
  }
  .page-blog__category-card {
    padding: 15px;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 0.9em;
  }
  .page-blog__in-depth-content h3 {
    font-size: 1.3em;
  }
  .page-blog__popular-post-thumbnail {
    min-width: 200px;
    min-height: 200px;
  }
}