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

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

.page-blog__hero {
  background: linear-gradient(135deg, #CC0000 0%, #FFD700 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-blog__title {
  font-size: 3.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-blog__subtitle {
  font-size: 1.5em;
  margin-bottom: 30px;
  color: #eee;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold */
  color: #CC0000; /* Dark Red */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

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

.page-blog__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-blog__search-category {
  background-color: #fff;
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}

.page-blog__search-category .page-blog__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.page-blog__search-bar {
  display: flex;
  flex-grow: 1;
  max-width: 500px;
}

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

.page-blog__search-button {
  background-color: #CC0000;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

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

.page-blog__categories {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.page-blog__categories-title {
  font-size: 1.2em;
  margin: 0;
  color: #CC0000;
  font-weight: bold;
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-blog__category-list li a {
  text-decoration: none;
  color: #333;
  background-color: #f0f0f0;
  padding: 8px 15px;
  border-radius: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 0.95em;
}

.page-blog__category-list li a:hover,
.page-blog__category-list li a.page-blog__category-active {
  background-color: #FFD700;
  color: #CC0000;
}

.page-blog__articles {
  padding: 60px 0;
}

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

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

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

.page-blog__article-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

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

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

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

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

.page-blog__read-more-btn {
  display: inline-block;
  background-color: #FFD700;
  color: #CC0000;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

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

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

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

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

.page-blog__promotion-banner {
  background: linear-gradient(90deg, #CC0000 0%, #a30000 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.page-blog__promotion-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-blog__promotion-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #FFD700;
  font-weight: bold;
}

.page-blog__promotion-text {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #eee;
}

.page-blog__cta-button--large {
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 60px;
}

.page-blog__promotion-image {
  position: absolute;
  bottom: -20px;
  right: -50px;
  width: 300px;
  height: auto;
  opacity: 0.3;
  transform: rotate(15deg);
  z-index: 1;
  display: none; /* Hide by default for smaller screens */
}

/* Responsive Design */
@media (min-width: 768px) {
  .page-blog__promotion-image {
    display: block;
  }
}

@media (max-width: 1024px) {
  .page-blog__title {
    font-size: 3em;
  }
  .page-blog__subtitle {
    font-size: 1.3em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__promotion-title {
    font-size: 2.2em;
  }
  .page-blog__promotion-text {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-blog__hero {
    padding: 60px 0;
    min-height: 300px;
  }
  .page-blog__title {
    font-size: 2.5em;
  }
  .page-blog__subtitle {
    font-size: 1.1em;
  }
  .page-blog__search-category .page-blog__container {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-blog__search-bar {
    width: 100%;
    max-width: none;
  }
  .page-blog__categories {
    width: 100%;
    justify-content: flex-start;
  }
  .page-blog__category-list {
    justify-content: flex-start;
  }
  .page-blog__article-list {
    grid-template-columns: 1fr;
  }
  .page-blog__promotion-banner {
    padding: 40px 0;
  }
  .page-blog__promotion-title {
    font-size: 1.8em;
  }
  .page-blog__promotion-text {
    font-size: 1em;
  }
  .page-blog__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-blog__title {
    font-size: 2em;
  }
  .page-blog__subtitle {
    font-size: 0.9em;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__search-input, .page-blog__search-button {
    padding: 10px 15px;
    font-size: 0.9em;
  }
  .page-blog__category-list li a {
    padding: 6px 12px;
    font-size: 0.85em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__promotion-title {
    font-size: 1.5em;
  }
  .page-blog__promotion-text {
    font-size: 0.9em;
  }
  .page-blog__cta-button--large {
    padding: 12px 25px;
    font-size: 1em;
  }
}