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

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #1A2B4C; /* Dark background for hero section */
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

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

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

.page-blog__hero-cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A2B4C;
  padding: 15px 30px;
  border-radius: 5px;
  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: #e5c100;
  transform: translateY(-3px);
}

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

.page-blog__featured-articles,
.page-blog__latest-news,
.page-blog__promotions-cta,
.page-blog__join-us {
  padding: 60px 0;
}

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

.page-blog__article-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 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: 20px;
}

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #1A2B4C;
}

.page-blog__article-title a {
  text-decoration: none;
  color: inherit;
}

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

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
  height: 120px; /* Fixed height for excerpt */
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-blog__read-more-button {
  display: inline-block;
  background-color: #1A2B4C;
  color: #ffffff;
  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-more-button:hover {
  background-color: #FFD700;
  color: #1A2B4C;
}

.page-blog__latest-news {
  background-color: #f8f8f8;
}

.page-blog__news-list {
  display: grid;
  gap: 30px;
}

.page-blog__news-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-blog__news-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #1A2B4C;
}

.page-blog__news-title a {
  text-decoration: none;
  color: inherit;
}

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

.page-blog__news-date {
  font-size: 0.85em;
  color: #888888;
  margin-bottom: 15px;
}

.page-blog__news-summary {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
}

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

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

.page-blog__promotions-cta {
  background-color: #1A2B4C;
  color: #ffffff;
}

.page-blog__promotions-container {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 20px;
}

.page-blog__promotions-image {
  width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
}

.page-blog__promotions-content {
  width: 50%;
}

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

.page-blog__promotions-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-blog__promotions-cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A2B4C;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__promotions-cta-button:hover {
  background-color: #e5c100;
  transform: translateY(-3px);
}

.page-blog__join-us {
  text-align: center;
  padding: 80px 0;
}

.page-blog__join-us-title {
  font-size: 2.8em;
  color: #1A2B4C;
  margin-bottom: 20px;
}

.page-blog__join-us-text {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: #555555;
}

.page-blog__join-us-cta-button {
  display: inline-block;
  background-color: #1A2B4C;
  color: #ffffff;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-blog__join-us-cta-button:hover {
  background-color: #FFD700;
  color: #1A2B4C;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }
  .page-blog__promotions-title {
    font-size: 2.4em;
  }
  .page-blog__join-us-title {
    font-size: 2.4em;
  }
  .page-blog__promotions-container {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__promotions-image,
  .page-blog__promotions-content {
    width: 100%;
  }
  .page-blog__promotions-image {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 0;
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image,
  .page-blog__promotions-image,
  .page-blog__hero-image img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__article-excerpt {
    height: auto; /* Remove fixed height on mobile for better readability */
  }
  .page-blog__promotions-title {
    font-size: 2em;
  }
  .page-blog__join-us-title {
    font-size: 2em;
  }
  /* Ensure all content area images are responsive and do not cause overflow */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }
  .page-blog__hero-image {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__promotions-title {
    font-size: 1.8em;
  }
  .page-blog__join-us-title {
    font-size: 1.8em;
  }
  .page-blog__promotions-cta-button,
  .page-blog__join-us-cta-button {
    padding: 15px 30px;
    font-size: 1em;
  }
}