/* style/blog.css */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
}

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

.page-blog__hero {
  background: linear-gradient(135deg, #007bff, #ffc107);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

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

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

.page-blog__hero-btn {
  display: inline-block;
  background-color: #fff;
  color: #007bff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__hero-btn:hover {
  background-color: #f0f0f0;
  color: #0056b3;
}

.page-blog__articles-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

@media (max-width: 992px) {
  .page-blog__grid {
    grid-template-columns: 1fr;
  }
  .page-blog__sidebar {
    order: -1; /* Sidebar above main content on smaller screens */
  }
}

.page-blog__section-title {
  font-size: 2em;
  color: #007bff;
  margin-bottom: 30px;
  border-bottom: 2px solid #ffc107;
  padding-bottom: 10px;
}

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

.page-blog__article-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

.page-blog__article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

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

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

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

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

.page-blog__article-meta {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
}

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

.page-blog__read-more-btn {
  display: inline-block;
  background-color: #ffc107;
  color: #333;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more-btn:hover {
  background-color: #e0a800;
  color: #000;
}

.page-blog__pagination {
  margin-top: 40px;
  text-align: center;
}

.page-blog__pagination-link {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  border: 1px solid #007bff;
  border-radius: 5px;
  color: #007bff;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover,
.page-blog__pagination-link--active {
  background-color: #007bff;
  color: #fff;
}

.page-blog__sidebar {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-blog__sidebar-widget {
  margin-bottom: 40px;
}

.page-blog__widget-title {
  font-size: 1.6em;
  color: #007bff;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.page-blog__search-form {
  display: flex;
}

.page-blog__search-input {
  flex-grow: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  font-size: 1em;
}

.page-blog__search-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-blog__search-btn:hover {
  background-color: #0056b3;
}

.page-blog__category-list,
.page-blog__recent-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-blog__category-list li,
.page-blog__recent-posts-list li {
  margin-bottom: 10px;
}

.page-blog__category-list a,
.page-blog__recent-posts-list a {
  color: #444;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  padding: 5px 0;
}

.page-blog__category-list a:hover,
.page-blog__recent-posts-list a:hover {
  color: #007bff;
}

.page-blog__cta-banner {
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: #fff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.page-blog__cta-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #fff;
}

.page-blog__cta-text {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #eee;
}

.page-blog__cta-btn {
  display: block;
  width: 100%;
  background-color: #ffc107;
  color: #333;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__cta-btn:hover {
  background-color: #e0a800;
  color: #000;
}

.page-blog__cta-btn--secondary {
  background-color: #fff;
  color: #007bff;
}

.page-blog__cta-btn--secondary:hover {
  background-color: #f0f0f0;
  color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__article-info {
    padding: 15px;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__read-more-btn {
    padding: 8px 15px;
  }
  .page-blog__sidebar {
    padding: 20px;
  }
  .page-blog__widget-title {
    font-size: 1.4em;
  }
}

@media (max-width: 480px) {
  .page-blog__hero {
    padding: 60px 0;
  }
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__article-image {
    height: 200px;
  }
  .page-blog__article-card {
    flex-direction: column;
  }
  .page-blog__search-form {
    flex-direction: column;
  }
  .page-blog__search-input {
    border-radius: 5px;
    margin-bottom: 10px;
  }
  .page-blog__search-btn {
    border-radius: 5px;
    width: 100%;
  }
}

/* Ensure contrast for all text elements */
.page-blog h1, .page-blog h2, .page-blog h3, .page-blog p, .page-blog a, .page-blog li, .page-blog input, .page-blog button {
  /* Default text color for general content. Ensure it contrasts with #f9f9f9 or #fff */
  color: #333;
}

.page-blog__hero h1, .page-blog__hero p {
  /* Text on hero section background linear-gradient(#007bff, #ffc107) */
  color: #fff; /* White text on blue/yellow gradient is good contrast */
}

.page-blog__hero-btn {
  background-color: #fff; /* White background */
  color: #007bff; /* Blue text on white background is good contrast */
}

.page-blog__hero-btn:hover {
  background-color: #f0f0f0;
  color: #0056b3;
}

.page-blog__section-title, .page-blog__widget-title {
  color: #007bff; /* Blue on light background is good */
}

.page-blog__article-title a {
  color: #007bff; /* Blue on white background is good */
}

.page-blog__article-meta, .page-blog__article-summary {
  color: #666; /* Dark grey on white background is good */
}

.page-blog__read-more-btn {
  background-color: #ffc107; /* Yellow background */
  color: #333; /* Dark grey text on yellow is good contrast */
}

.page-blog__read-more-btn:hover {
  background-color: #e0a800;
  color: #000;
}

.page-blog__pagination-link {
  color: #007bff; /* Blue on light background is good */
  background-color: #fff;
}

.page-blog__pagination-link:hover,
.page-blog__pagination-link--active {
  background-color: #007bff; /* Blue background */
  color: #fff; /* White text on blue background is good */
}

.page-blog__search-input {
  color: #333; /* Dark text on light input field */
  background-color: #fff;
}

.page-blog__search-btn {
  background-color: #007bff; /* Blue background */
  color: #fff; /* White text on blue background is good */
}

.page-blog__category-list a, .page-blog__recent-posts-list a {
  color: #444; /* Dark grey on white background is good */
}

.page-blog__cta-banner h3, .page-blog__cta-banner p {
  color: #fff; /* White text on blue gradient is good */
}

.page-blog__cta-btn {
  background-color: #ffc107; /* Yellow background */
  color: #333; /* Dark grey text on yellow is good contrast */
}

.page-blog__cta-btn--secondary {
  background-color: #fff; /* White background */
  color: #007bff;
}

.page-blog__cta-btn--secondary:hover {
  background-color: #f0f0f0;
  color: #0056b3;
}