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

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

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

.page-blog__hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-blog__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-blog__btn--register {
  background-color: #FCBC45; /* Login color */
  color: #000000; /* Main color */
}

.page-blog__btn--register:hover {
  background-color: #e0a53a;
}

.page-blog__btn--login {
  background-color: #000000; /* Main color */
  color: #FCBC45; /* Login color */
  border: 2px solid #FCBC45;
}

.page-blog__btn--login:hover {
  background-color: #333333;
  color: #ffffff;
}

.page-blog__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #000000; /* Main color */
  position: relative;
  padding-bottom: 10px;
}

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

.page-blog__featured-articles,
.page-blog__recent-posts,
.page-blog__call-to-action,
.page-blog__categories {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

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

.page-blog__article-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-blog__article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

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

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

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

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

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

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

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

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

.page-blog__post-item {
  display: flex;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-blog__post-thumbnail {
  width: 250px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-blog__post-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-blog__post-title {
  font-size: 1.3em;
  margin-bottom: 5px;
}

.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-date {
  font-size: 0.85em;
  color: #999;
  margin-bottom: 10px;
}

.page-blog__post-summary {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 10px;
}

.page-blog__call-to-action {
  background-color: #000000; /* Main color */
  color: #ffffff;
  padding: 80px 20px;
  border-radius: 10px;
  text-align: center;
}

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

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

.page-blog__btn--cta {
  background-color: #FCBC45;
  color: #000000;
  font-size: 1.1em;
  padding: 15px 35px;
}

.page-blog__btn--cta:hover {
  background-color: #e0a53a;
}

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

.page-blog__category-link {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__category-link:hover {
  background-color: #e0a53a;
  color: #ffffff;
}

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

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

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

  .page-blog__post-thumbnail {
    width: 200px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    min-height: 400px;
  }

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

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

  .page-blog__intro-text {
    font-size: 1em;
  }

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

  .page-blog__btn {
    width: 100%;
  }

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

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

  .page-blog__post-item {
    flex-direction: column;
  }

  .page-blog__post-thumbnail {
    width: 100%;
    height: 200px; /* Ensure images are not too small */
  }

  .page-blog__post-details {
    padding: 15px;
  }

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

  .page-blog__cta-description {
    font-size: 0.95em;
  }

  .page-blog__btn--cta {
    font-size: 1em;
    padding: 12px 25px;
  }

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

  /* Critical: Prevent content overflow on mobile */
  .page-blog img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Ensure content area images are not less than 200px display size */
  .page-blog__article-image, .page-blog__post-thumbnail {
    min-width: 200px;
    min-height: 200px;
  }
}

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

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

  .page-blog__cta-title {
    font-size: 1.8em;
  }

  .page-blog__hero-section {
    padding: 20px 10px;
  }
}