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

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

.page-blog__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  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;
  filter: brightness(0.6); /* Darken image for text readability */
}

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

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

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

.page-blog__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #8B0000; /* Deep red text for contrast */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__hero-button:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  color: #6a0000;
}

.page-blog__articles-section,
.page-blog__categories-section,
.page-blog__guides-section,
.page-blog__cta-section,
.page-blog__newsletter-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.page-blog__articles-section {
  background-color: #ffffff;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #8B0000; /* Deep red for section titles */
  text-align: center;
  margin-bottom: 20px;
}

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

.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;
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency, min 200px */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

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

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

.page-blog__article-title a {
  color: #8B0000; /* Deep red for article title links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #FFD700; /* Gold on hover */
}

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #FFD700; /* Gold for read more links */
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

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

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

.page-blog__category-card {
  display: block;
  background-color: #FFD700; /* Gold category cards */
  color: #8B0000; /* Deep red text for contrast */
  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;
}

.page-blog__category-card:hover {
  background-color: #8B0000; /* Deep red on hover */
  color: #FFD700; /* Gold text on hover */
}

.page-blog__guide-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.page-blog__guide-title {
  font-size: 1.8em;
  color: #8B0000; /* Deep red for guide titles */
  margin-bottom: 15px;
}

.page-blog__guide-text {
  color: #444444;
  margin-bottom: 20px;
}

.page-blog__guide-link {
  display: inline-block;
  color: #FFD700; /* Gold for guide links */
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.page-blog__guide-link:hover {
  border-color: #FFD700;
}

.page-blog__cta-section {
  background: linear-gradient(135deg, #FFD700, #8B0000); /* Gradient background for CTA */
  color: #ffffff;
  text-align: center;
}

.page-blog__cta-content {
  padding: 80px 20px;
}

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

.page-blog__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

.page-blog__cta-button--primary {
  background-color: #ffffff;
  color: #8B0000; /* Deep red text for primary CTA */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-button--secondary {
  background-color: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
}

.page-blog__cta-button--secondary:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__newsletter-section {
  background-color: #f0f0f0;
  text-align: center;
}

.page-blog__newsletter-content {
  padding: 60px 20px;
}

.page-blog__newsletter-title {
  font-size: 2.2em;
  color: #8B0000; /* Deep red for newsletter title */
  margin-bottom: 15px;
}

.page-blog__newsletter-description {
  font-size: 1.1em;
  color: #666666;
  margin-bottom: 30px;
}

.page-blog__newsletter-form {
  display: flex;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

.page-blog__newsletter-input {
  flex-grow: 1;
  padding: 15px 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

.page-blog__newsletter-input::placeholder {
  color: #999;
}

.page-blog__newsletter-button {
  background-color: #FFD700; /* Gold subscribe button */
  color: #8B0000; /* Deep red text */
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__newsletter-button:hover {
  background-color: #e6c200;
  color: #6a0000;
}

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

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

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

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

  .page-blog__hero-description {
    font-size: 1em;
  }

  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 0.9em;
  }

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

  .page-blog__article-image {
    height: 200px; /* Ensure min 200px height on mobile */
  }

  .page-blog__article-card img,
  .page-blog__guides-section img,
  .page-blog__newsletter-section img,
  .page-blog__articles-section img {
    max-width: 100%;
    height: auto;
  }

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

  .page-blog__section-intro {
    font-size: 0.95em;
  }

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

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

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

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

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

  .page-blog__newsletter-form {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__newsletter-input,
  .page-blog__newsletter-button {
    width: 100%;
  }
}

@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__article-title {
    font-size: 1.2em;
  }

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

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

  .page-blog__newsletter-title {
    font-size: 1.6em;
  }
}