/* style/blog.css */
.page-blog {
  color: #FFFFFF; /* Light text for dark body background */
  background-color: var(--primary-color); /* Inherits from shared, should be #000000 */
  padding-top: var(--header-offset, 120px);
}

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

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 0;
  min-height: 500px; /* Ensure hero section has a minimum height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background for text */
  border-radius: 10px;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  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-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

.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: #e0a53a;
}

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

.page-blog__section-intro {
  font-size: 1.1em;
  color: #FFFFFF;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-blog__latest-articles,
.page-blog__categories,
.page-blog__featured-guide,
.page-blog__cta-section,
.page-blog__faq-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-blog__latest-articles .page-blog__container,
.page-blog__categories .page-blog__container,
.page-blog__featured-guide .page-blog__container,
.page-blog__cta-section .page-blog__container,
.page-blog__faq-section .page-blog__container {
  padding: 0 20px;
}

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

.page-blog__article-card {
  background-color: #FFFFFF; /* White background for cards */
  color: #333333; /* Dark text for white background */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  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.3);
}

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

.page-blog__article-content {
  padding: 25px;
}

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-blog__article-title a {
  color: #000000; /* Dark color for link in card title */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-blog__article-excerpt {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.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: #000000;
}

.page-blog__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-blog__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-blog__category-card:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-blog__guide-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-blog__guide-image {
  flex: 0 0 45%;
  max-width: 45%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__guide-text {
  flex: 1;
  color: #FFFFFF;
}

.page-blog__guide-text h3 {
  font-size: 1.8em;
  color: #FCBC45;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog__guide-text p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-blog__guide-text a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__guide-text a:hover {
  color: #FFFFFF;
}

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

.page-blog__guide-button:hover {
  background-color: #e0a53a;
}

.page-blog__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: rgba(252, 188, 69, 0.1); /* Light accent background */
}

.page-blog__cta-actions {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

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

.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-blog__faq-question {
  font-size: 1.4em;
  color: #FCBC45;
  margin-bottom: 10px;
}

.page-blog__faq-answer p {
  font-size: 1.0em;
  line-height: 1.6;
}

.page-blog__faq-answer a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__faq-answer a:hover {
  color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__guide-content {
    flex-direction: column;
    align-items: center;
  }
  .page-blog__guide-image {
    max-width: 80%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 0;
    min-height: 400px;
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__hero-button {
    width: 80%;
    max-width: 300px;
  }
  .page-blog__section-title {
    font-size: 2em;
    padding-top: 40px;
  }
  .page-blog__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-blog__latest-articles,
  .page-blog__categories,
  .page-blog__featured-guide,
  .page-blog__cta-section,
  .page-blog__faq-section {
    padding: 40px 0;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__guide-image {
    max-width: 95%;
  }
  .page-blog__guide-text h3 {
    font-size: 1.5em;
  }
  .page-blog__guide-button {
    width: 90%;
    max-width: 300px;
  }
  .page-blog__cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__cta-button {
    width: 90%;
    max-width: 350px;
  }

  /* Ensure images within content area are responsive and not too small */
  .page-blog img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px; /* Minimum size for content images */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__article-card {
    margin: 0 10px; /* Add some margin for very small screens */
  }
  .page-blog__hero-button,
  .page-blog__guide-button,
  .page-blog__cta-button {
    padding: 12px 20px;
    font-size: 1em;
  }
}