.page-blog {
  font-family: Arial, sans-serif;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
}

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding to avoid double header offset */
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.page-blog__hero-image {
  width: 100%;
  height: 600px;
  overflow: hidden;
}

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

.page-blog__hero-content {
  max-width: 900px;
  margin: -200px auto 0; /* Adjust to layer content over image if needed, or place below */
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 20px;
  background: rgba(49, 13, 13, 0.7); /* Deep Red with opacity */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-title {
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  color: #F4D34D; /* Gold */
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.1rem;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 25px;
  line-height: 1.6;
}

.page-blog__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button */
  color: #7A0E0E; /* Deep Red for contrast */
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.page-blog__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__latest-posts,
.page-blog__featured-categories,
.page-blog__about-blog {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 15px;
}

.page-blog__section-title {
  font-size: 2.5rem;
  color: #F4D34D; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #F2B544; /* Border */
  border-radius: 2px;
}

.page-blog__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-blog__blog-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-blog__blog-card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.page-blog__blog-card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.page-blog__blog-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-blog__blog-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #7A0E0E; /* Deep Red */
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-blog__blog-card-body {
  padding: 20px;
  text-align: center;
}

.page-blog__blog-card-title {
  font-size: 1.4rem;
  color: #F4D34D; /* Gold */
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.page-blog__blog-excerpt {
  font-size: 0.95rem;
  color: #FFF5E1; /* Text Main */
  line-height: 1.5;
}

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

.page-blog__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #D32F2F; /* Card BG */
  color: #F4D34D; /* Gold */
  border: 1px solid #F2B544; /* Border */
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__pagination-link:hover,
.page-blog__pagination-link--active {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button */
  color: #7A0E0E; /* Deep Red */
  border-color: #E6B800;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.page-blog__category-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  text-decoration: none;
  color: #FFF5E1; /* Text Main */
  transition: transform 0.3s ease;
}

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

.page-blog__category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-blog__category-card h3 {
  font-size: 1.3rem;
  color: #F4D34D; /* Gold */
  padding-bottom: 15px;
}

.page-blog__about-content {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__text-block {
  font-size: 1.1rem;
  color: #FFF5E1; /* Text Main */
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-blog__hero-content {
    margin-top: -150px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-blog__hero-image {
    height: 400px;
  }

  .page-blog__hero-content {
    margin-top: -100px; /* Adjust for smaller screens */
    padding: 15px;
  }

  .page-blog__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-blog__hero-description {
    font-size: 1rem;
  }

  .page-blog__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-blog__latest-posts,
  .page-blog__featured-categories,
  .page-blog__about-blog {
    margin-bottom: 40px;
    padding: 0 15px;
  }

  .page-blog__blog-grid {
    grid-template-columns: 1fr !important; /* Blog grid to 1 column */
    gap: 25px;
  }

  .page-blog__blog-card-title {
    font-size: 1.2rem;
  }

  .page-blog__category-card img {
    
  }

  .page-blog__categories-grid {
    grid-template-columns: 1fr !important;
    gap: 25px;
  }

  .page-blog__about-content {
    padding: 30px;
  }

  .page-blog__text-block {
    font-size: 1rem;
  }

  /* General image and container responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button container mobile adaptation */
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-blog__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}