.page-blog {
  color: #333333; /* Dark text for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
  text-align: center;
  background-color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-content {
  z-index: 1;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-blog__hero-title {
  font-size: 3.2em;
  color: #000000;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__hero-description {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-blog__button--primary:hover {
  background-color: #e0a73b;
  transform: translateY(-2px);
}

.page-blog__button--secondary {
  background-color: #000000; /* Main color for secondary action */
  color: #FFFFFF; /* Register color for secondary action */
  border: 2px solid #000000;
}

.page-blog__button--secondary:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-blog__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-top: 40px;
}

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

.page-blog__latest-articles-section,
.page-blog__categories-section,
.page-blog__featured-posts-section,
.page-blog__security-tips-section,
.page-blog__cta-section,
.page-blog__popular-posts-section,
.page-blog__faq-section,
.page-blog__final-cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #FFFFFF;
}

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

.page-blog__article-card,
.page-blog__popular-post-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover,
.page-blog__popular-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__article-image,
.page-blog__popular-post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance on desktop */
  object-fit: cover;
  display: block;
}

.page-blog__article-content,
.page-blog__popular-post-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__article-title,
.page-blog__popular-post-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

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

.page-blog__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 6px;
  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: #FCBC45;
  color: #000000;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}

.page-blog__category-card {
  display: block;
  padding: 25px 20px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__category-card:hover {
  background-color: #FCBC45;
  color: #000000;
  transform: translateY(-5px);
}

.page-blog__featured-posts-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-blog__featured-post-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.page-blog__featured-post-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.page-blog__featured-post-content {
  padding: 30px;
}

.page-blog__featured-post-title {
  font-size: 2em;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-blog__featured-post-excerpt {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-blog__cta-section {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
  border-radius: 15px;
  margin-top: 60px;
  margin-bottom: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-blog__cta-content {
  max-width: 900px;
  margin-bottom: 40px;
}

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

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

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

.page-blog__cta-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 10px;
  margin-top: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.page-blog__faq-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-blog__faq-question {
  font-size: 1.4em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__faq-answer {
  font-size: 1.1em;
  color: #555555;
}

.page-blog__faq-answer a {
  color: #000000;
  text-decoration: underline;
}

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

.page-blog__final-cta-section {
  background-color: #FCBC45;
  color: #000000;
  text-align: center;
  padding: 70px 20px;
  border-radius: 15px;
  margin-top: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-blog__final-cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #000000;
}

.page-blog__final-cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__cta-title {
    font-size: 2.5em;
  }
  .page-blog__final-cta-title {
    font-size: 2.4em;
  }
  .page-blog__featured-post-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-blog__hero-section {
    padding: 60px 15px 30px;
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__button {
    width: 100%;
    max-width: 300px;
  }

  .page-blog__latest-articles-section,
  .page-blog__categories-section,
  .page-blog__featured-posts-section,
  .page-blog__security-tips-section,
  .page-blog__cta-section,
  .page-blog__popular-posts-section,
  .page-blog__faq-section,
  .page-blog__final-cta-section {
    padding: 40px 15px;
  }

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

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

  .page-blog__article-image, .page-blog__popular-post-image, .page-blog__featured-post-image, .page-blog__hero-image, .page-blog__cta-image {
    max-width: 100%;
    height: auto;
  }

  .page-blog__category-card {
    font-size: 1em;
    padding: 20px 15px;
  }

  .page-blog__featured-post-card {
    flex-direction: column;
  }

  .page-blog__featured-post-title {
    font-size: 1.6em;
  }
  .page-blog__featured-post-excerpt {
    font-size: 1em;
  }

  .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__faq-question {
    font-size: 1.2em;
  }
  .page-blog__faq-answer {
    font-size: 1em;
  }

  .page-blog__final-cta-title {
    font-size: 2em;
  }
  .page-blog__final-cta-description {
    font-size: 1.1em;
  }
  .page-blog__final-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__featured-post-title {
    font-size: 1.4em;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__final-cta-title {
    font-size: 1.6em;
  }
  .page-blog__article-image, .page-blog__popular-post-image {
    height: 180px; /* Further reduce height for very small screens */
  }
}

/* Ensure all content images are at least 200px wide/tall if not explicitly set larger */
.page-blog img:not(.page-blog__hero-image):not(.page-blog__cta-image) {
    min-width: 200px;
    min-height: 200px;
}

/* Mobile specific image sizing for content images */
@media (max-width: 768px) {
    .page-blog img {
        max-width: 100%;
        height: auto;
    }
    /* Ensure content images don't go below 200px even with max-width: 100% if they are used as small elements */
    .page-blog__article-image, .page-blog__popular-post-image {
        min-width: 200px;
        min-height: 200px;
        width: 100%; /* Override fixed height to allow auto height */
        height: auto;
    }
}