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

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #1A1A2E; /* Dark background for hero content */
  color: #ffffff;
  padding: 80px 20px;
  overflow: hidden;
  min-height: 500px;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Overlay with dark background for text readability */
}

.page-blog__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

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

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

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

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

.page-blog__hero-button--primary {
  background-color: #FFD700;
  color: #1A1A2E;
}

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

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

.page-blog__hero-button--secondary:hover {
  background-color: #FFD700;
  color: #1A1A2E;
  transform: translateY(-2px);
}

.page-blog__articles-section,
.page-blog__cta-section,
.page-blog__newsletter-section,
.page-blog__faq-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.page-blog__section-title,
.page-blog__newsletter-title,
.page-blog__cta-title {
  font-size: 2.5em;
  color: #1A1A2E;
  text-align: center;
  margin-bottom: 20px;
}

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

.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;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

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

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

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

.page-blog__article-readmore {
  display: inline-block;
  background-color: #1A1A2E;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-blog__article-readmore:hover {
  background-color: #FFD700;
  color: #1A1A2E;
}

.page-blog__cta-section {
  background-color: #1A1A2E;
  color: #ffffff;
  padding: 80px 40px;
  border-radius: 15px;
  text-align: center;
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
}

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

.page-blog__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-blog__cta-title {
  color: #FFD700;
  font-size: 2.8em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A1A2E;
  padding: 18px 35px;
  border-radius: 10px;
  font-size: 1.3em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-blog__newsletter-section {
  background-color: #f8f8f8;
  padding: 60px 40px;
  border-radius: 10px;
  text-align: center;
  margin-top: 60px;
}

.page-blog__newsletter-title {
  font-size: 2em;
  color: #1A1A2E;
  margin-bottom: 15px;
}

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

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

.page-blog__newsletter-input {
  flex-grow: 1;
  padding: 15px 20px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 1em;
  outline: none;
}

.page-blog__newsletter-input:focus {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.page-blog__newsletter-button {
  padding: 15px 25px;
  background-color: #1A1A2E;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-blog__newsletter-button:hover {
  background-color: #FFD700;
  color: #1A1A2E;
  transform: translateY(-2px);
}

.page-blog__faq-section {
  margin-top: 80px;
}

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

.page-blog__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
}

.page-blog__faq-question {
  font-size: 1.2em;
  color: #1A1A2E;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-blog__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

/* .page-blog__faq-question.active::after { transform: rotate(45deg); } */

.page-blog__faq-answer {
  font-size: 1em;
  color: #666666;
  /* display: none; */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

/* .page-blog__faq-answer.active { max-height: 200px; } */

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.8em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__section-title,
  .page-blog__cta-title {
    font-size: 2.2em;
  }
  .page-blog__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__cta-button {
    font-size: 1.2em;
    padding: 15px 30px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 15px;
  }
  .page-blog__hero-title {
    font-size: 2.4em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__hero-button {
    width: 100%;
    max-width: 300px;
  }
  .page-blog__articles-section,
  .page-blog__cta-section,
  .page-blog__newsletter-section,
  .page-blog__faq-section {
    margin: 40px auto;
    padding: 0 15px;
  }
  .page-blog__section-title,
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and not smaller than 200px */
    min-height: 200px;
  }
  .page-blog__cta-section {
    padding: 60px 20px;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
  .page-blog__cta-button {
    font-size: 1.1em;
    padding: 12px 25px;
  }
  .page-blog__newsletter-form {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__newsletter-button {
    width: 100%;
  }
  /* Ensure all content images are responsive and not too small */
  .page-blog img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__section-title,
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__faq-question {
    font-size: 1.1em;
  }
}