/* style/blog.css */
.page-blog {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #000000; /* Ensure consistency with body background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #0A2342;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

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

.page-blog__hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.page-blog__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-title {
  font-size: 3.5rem;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-blog__hero-description {
  font-size: 1.3rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #DC143C; /* Striking red for CTA */
  color: #ffffff;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-blog__section-title {
  font-size: 2.5rem;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-blog__article-card {
  background-color: rgba(10, 35, 66, 0.8); /* Dark blue with transparency */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

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

.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.5rem;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: bold;
}

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

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

.page-blog__article-excerpt {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-button {
  display: inline-block;
  background-color: #0A2342; /* Main dark blue */
  color: #FFD700;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
  border: 1px solid #FFD700;
}

.page-blog__read-more-button:hover {
  background-color: #FFD700;
  color: #0A2342;
}

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

.page-blog__post-item {
  background-color: rgba(10, 35, 66, 0.8);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-blog__post-thumbnail {
  width: 350px; /* Larger thumbnail for blog list */
  height: 230px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.page-blog__post-details {
  padding: 25px;
  color: #ffffff;
}

.page-blog__post-title {
  font-size: 1.8rem;
  color: #FFD700;
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: bold;
}

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

.page-blog__post-title a:hover {
  color: #ffffff;
}

.page-blog__post-meta {
  font-size: 0.9rem;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-blog__post-summary {
  font-size: 1rem;
  margin-bottom: 20px;
}

.page-blog__read-more-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more-link:hover {
  color: #DC143C;
}

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

.page-blog__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  background-color: #0A2342;
  color: #FFD700;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #0A2342;
}

.page-blog__pagination-link:hover:not(.page-blog__pagination-link--disabled):not(.page-blog__pagination-link--active) {
  background-color: #FFD700;
  color: #0A2342;
}

.page-blog__pagination-link--active {
  background-color: #FFD700;
  color: #0A2342;
  cursor: default;
  border-color: #FFD700;
}

.page-blog__pagination-link--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-blog__cta-banner {
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 60px;
}

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

.page-blog__cta-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
}

.page-blog__cta-content {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-blog__cta-title {
  font-size: 2.8rem;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-blog__cta-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #DC143C;
  color: #ffffff;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3rem;
  }
  .page-blog__hero-description {
    font-size: 1.1rem;
  }
  .page-blog__post-thumbnail {
    width: 280px;
    height: 180px;
  }
  .page-blog__post-title {
    font-size: 1.5rem;
  }
  .page-blog__cta-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-blog__hero-title {
    font-size: 2.5rem;
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__hero-button {
    padding: 12px 30px;
    font-size: 1rem;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-item {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__post-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
  }
  .page-blog__post-details {
    padding: 20px;
  }
  .page-blog__post-title {
    font-size: 1.3rem;
  }
  .page-blog__cta-title {
    font-size: 1.8rem;
  }
  .page-blog__cta-description {
    font-size: 1rem;
  }
  .page-blog__cta-button {
    padding: 12px 30px;
    font-size: 1rem;
  }
  /* Ensure all images within .page-blog are responsive and don't overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-image,
  .page-blog__post-thumbnail,
  .page-blog__cta-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2rem;
  }
  .page-blog__section-title {
    font-size: 2rem;
  }
  .page-blog__article-title {
    font-size: 1.3rem;
  }
  .page-blog__post-title {
    font-size: 1.2rem;
  }
  .page-blog__cta-title {
    font-size: 1.6rem;
  }
  .page-blog__hero-container,
  .page-blog__featured-articles,
  .page-blog__latest-posts,
  .page-blog__cta-banner {
    padding-left: 15px;
    padding-right: 15px;
  }
}