.page-blog {
  color: #333333; /* Default text color for light background */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-blog__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  padding: 30px 40px;
  border-radius: 12px;
  max-width: 90%;
}

.page-blog__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Accent color for title */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.6;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Accent color for CTA */
  color: #0A2463; /* Main color for text on accent background */
  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;
}

.page-blog__cta-button:hover {
  background-color: #e6c200; /* Slightly darker accent on hover */
  transform: translateY(-3px);
}

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

.page-blog__section-title,
.page-blog__deep-content-title {
  font-size: 2.8em;
  color: #0A2463; /* Main color for section titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-blog__section-subtitle {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
}

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

.page-blog__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px 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(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__article-image {
  width: 100%;
  height: 250px;
  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.6em;
  color: #0A2463; /* Main color for article titles */
  margin-bottom: 15px;
  line-height: 1.4;
}

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

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

.page-blog__article-description {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: #0A2463; /* Main color for read more link */
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #FFD700; /* Accent underline */
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #FFD700; /* Accent color on hover */
  border-color: #0A2463; /* Main color for underline on hover */
}

.page-blog__pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 15px;
}

.page-blog__pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #0A2463;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover {
  background-color: #FFD700;
  color: #0A2463;
}

.page-blog__pagination-link--active {
  background-color: #0A2463;
  color: #FFD700;
}

.page-blog__cta-section {
  background-color: #0A2463; /* Main color for CTA background */
  padding: 80px 20px;
  text-align: center;
}

.page-blog__cta-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__cta-title {
  font-size: 2.5em;
  color: #FFD700; /* Accent color for CTA title */
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-blog__cta-description {
  font-size: 1.15em;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-blog__deep-content-section {
  background-color: #f9f9f9;
  padding: 80px 20px;
}

.page-blog__deep-content-container {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.05em;
  color: #333333;
}

.page-blog__deep-content-subtitle {
  font-size: 2em;
  color: #0A2463;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-blog__deep-content-container p {
  margin-bottom: 20px;
}

.page-blog__deep-content-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-blog__deep-content-list li {
  margin-bottom: 10px;
  color: #444444;
}

.page-blog__image-figure {
  margin: 40px 0;
  text-align: center;
}

.page-blog__deep-content-image {
  width: 100%;
  max-width: 800px; /* Ensure images don't overflow */
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px;
}

.page-blog__image-caption {
  font-style: italic;
  color: #777777;
  font-size: 0.95em;
}

.page-blog__cta-button--bottom {
  margin-top: 40px;
}

/* 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__deep-content-title {
    font-size: 2.4em;
  }
  .page-blog__cta-title {
    font-size: 2.2em;
  }
  .page-blog__deep-content-subtitle {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-content {
    padding: 20px 25px;
    max-width: 95%;
  }
  .page-blog__hero-title {
    font-size: 2em;
    margin-bottom: 10px;
  }
  .page-blog__hero-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__articles-section,
  .page-blog__deep-content-section {
    padding: 40px 15px;
  }
  .page-blog__section-title,
  .page-blog__deep-content-title {
    font-size: 2em;
  }
  .page-blog__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-blog__article-list {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__article-title {
    font-size: 1.4em;
  }
  .page-blog__cta-section {
    padding: 60px 15px;
  }
  .page-blog__cta-title {
    font-size: 1.8em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__deep-content-subtitle {
    font-size: 1.6em;
  }
  .page-blog__deep-content-container p, .page-blog__deep-content-list li {
    font-size: 0.95em;
  }
  /* Ensure content area images are responsive and do not overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__deep-content-image {
    min-width: 200px; /* Still enforce minimum size, but allow scaling down */
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.6em;
  }
  .page-blog__hero-description {
    font-size: 0.85em;
  }
  .page-blog__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-blog__section-title,
  .page-blog__deep-content-title {
    font-size: 1.6em;
  }
  .page-blog__cta-title {
    font-size: 1.6em;
  }
  .page-blog__deep-content-subtitle {
    font-size: 1.4em;
  }
}