.page-blog {
  color: #ffffff; /* Light text for dark body background */
}

.page-blog__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
  padding-bottom: 40px;
}

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

.page-blog__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(10, 25, 49, 0.7); /* Primary color with transparency */
  border-radius: 10px;
  margin: 20px;
}

.page-blog__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Secondary color for emphasis */
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-blog__hero-cta-button {
  display: inline-block;
  background-color: #FFD700; /* Secondary color for button */
  color: #0A1931; /* Primary color for text */
  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__hero-cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

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

.page-blog__featured-articles,
.page-blog__latest-updates {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-blog__article-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-blog__article-title a {
  color: #FFD700; /* Secondary color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-blog__read-more-button {
  display: inline-block;
  background-color: #0A1931; /* Primary color for button */
  color: #FFD700; /* Secondary color for text */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-blog__read-more-button:hover {
  background-color: #1e3a66;
}

.page-blog__update-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-blog__update-item {
  background: rgba(255, 255, 255, 0.05); /* Lighter transparent white */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__update-image {
  width: 100%;
  height: 200px; /* Minimum height for blog images */
  object-fit: cover;
}

.page-blog__update-content {
  padding: 25px;
  flex-grow: 1;
}

.page-blog__update-meta {
  font-size: 0.9em;
  color: #FFD700;
  margin-bottom: 10px;
  display: block;
}

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

.page-blog__update-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-blog__update-excerpt {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-blog__read-article-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A1931;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-blog__read-article-button:hover {
  background-color: #e6c200;
}

.page-blog__cta-section {
  background: linear-gradient(135deg, #0A1931, #1a2a44);
  padding: 80px 20px;
  text-align: center;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

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

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

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

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

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

.page-blog__cta-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;
}

.page-blog__cta-button--primary {
  background-color: #FFD700;
  color: #0A1931;
}

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

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

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

/* 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 {
    font-size: 2.2em;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__update-title {
    font-size: 1.6em;
  }
  .page-blog__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    max-width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }
  .page-blog img {
    max-width: 100%;
    height: auto; /* Ensure images scale down */
  }
  .page-blog__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px);
  }
  .page-blog__hero-title {
    font-size: 2.2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 2em;
    margin-bottom: 30px;
    padding-top: 40px;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image {
    height: 200px; /* Ensure minimum height for article images */
  }
  .page-blog__article-content {
    padding: 20px;
  }
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__update-item {
    flex-direction: column;
  }
  .page-blog__update-image {
    height: 200px;
  }
  .page-blog__update-content {
    padding: 20px;
  }
  .page-blog__update-title {
    font-size: 1.4em;
  }
  .page-blog__cta-title {
    font-size: 2em;
  }
  .page-blog__cta-description {
    font-size: 1em;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__cta-button {
    width: 100%;
    max-width: 300px;
  }
}