/* style/blog.css */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #E2E8F0; /* Light text for dark background */
  background-color: #1A202C; /* Main background color */
}

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

/* Hero Section */
.page-blog__hero {
  background: linear-gradient(135deg, #1A202C 0%, #3a3f4e 100%); /* Dark gradient */
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-blog__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('[IMAGE:blog_hero]');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.page-blog__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold for emphasis */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.page-blog__hero-subtitle {
  font-size: 1.3em;
  color: #CBD5E0;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.page-blog__hero-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #1A202C;
  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;
  position: relative;
  z-index: 1;
  border: none;
  cursor: pointer;
}

.page-blog__hero-button:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-2px);
}

/* Content Section */
.page-blog__content {
  padding: 60px 0;
}

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

@media (min-width: 768px) {
  .page-blog__grid {
    grid-template-columns: 1fr 3fr;
  }
}

/* Sidebar */
.page-blog__sidebar {
  background-color: #2D3748; /* Slightly lighter dark background */
  padding: 30px;
  border-radius: 8px;
}

.page-blog__sidebar-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 25px;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 10px;
}

.page-blog__search-box {
  margin-bottom: 40px;
  text-align: center;
}

.page-blog__search-input-wrapper {
  display: flex;
  margin-bottom: 15px;
}

.page-blog__search-input {
  flex-grow: 1;
  padding: 12px 15px;
  border: 1px solid #4A5568;
  border-radius: 5px 0 0 5px;
  background-color: #4A5568;
  color: #E2E8F0;
  font-size: 1em;
}

.page-blog__search-input::placeholder {
  color: #A0AEC0;
}

.page-blog__search-button {
  background-color: #FFD700;
  color: #1A202C;
  padding: 12px 20px;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-blog__search-illustration {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-top: 10px;
}

.page-blog__categories, .page-blog__latest-posts {
  margin-bottom: 40px;
}

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

.page-blog__category-list li, .page-blog__post-list li {
  margin-bottom: 15px;
}

.page-blog__category-link, .page-blog__post-link {
  color: #CBD5E0;
  text-decoration: none;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.page-blog__category-link:hover, .page-blog__post-link:hover {
  color: #FFD700;
}

.page-blog__category-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  filter: brightness(0) saturate(100%) invert(86%) sepia(10%) saturate(1476%) hue-rotate(189deg) brightness(105%) contrast(89%); /* Adjust to fit color scheme */
}

/* Articles List */
.page-blog__articles {
  background-color: #2D3748;
  padding: 30px;
  border-radius: 8px;
}

.page-blog__section-title {
  font-size: 2.2em;
  color: #FFD700;
  margin-bottom: 30px;
  text-align: center;
}

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

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

@media (min-width: 768px) {
  .page-blog__article-card {
    flex-direction: row;
  }
}

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

@media (min-width: 768px) {
  .page-blog__article-thumbnail {
    width: 250px;
    height: auto;
  }
}

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

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

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

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

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

.page-blog__article-summary {
  font-size: 1em;
  color: #CBD5E0;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-blog__read-more-button {
  display: inline-block;
  background-color: #4A5568;
  color: #FFD700;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__read-more-button:hover {
  background-color: #636b7a;
}

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

.page-blog__pagination-link {
  display: inline-block;
  padding: 12px 18px;
  background-color: #2D3748;
  color: #FFD700;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: bold;
}

.page-blog__pagination-link:hover:not(.page-blog__pagination-active):not(.page-blog__pagination-disabled) {
  background-color: #4A5568;
}

.page-blog__pagination-active {
  background-color: #FFD700;
  color: #1A202C;
  cursor: default;
}

.page-blog__pagination-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  color: #A0AEC0;
  background-color: #2D3748;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3em;
  }
  .page-blog__hero-subtitle {
    font-size: 1.2em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__sidebar-title {
    font-size: 1.6em;
  }
  .page-blog__article-title {
    font-size: 1.4em;
  }
}

@media (max-width: 767px) {
  .page-blog__hero {
    padding: 60px 0;
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-subtitle {
    font-size: 1em;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__grid {
    grid-template-columns: 1fr;
  }
  .page-blog__sidebar {
    padding: 20px;
  }
  .page-blog__articles {
    padding: 20px;
  }
  .page-blog__article-card {
    flex-direction: column;
  }
  .page-blog__article-thumbnail {
    height: 180px;
  }
  .page-blog__article-content {
    padding: 20px;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__pagination-link {
    padding: 10px 15px;
    font-size: 0.9em;
  }
}