.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

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

.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding */
  margin-bottom: 40px;
  text-align: center;
}

.page-blog__hero-image-container {
  width: 100%;
  overflow: hidden;
}

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

.page-blog__hero-content {
  padding: 40px 20px;
  border-radius: 8px;
  margin-top: -80px; /* Overlap with image slightly for visual effect */
  position: relative;
  z-index: 1;
  background: #0D0E12; /* Background */
  color: #FFF3E6; /* Text Main */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border */
}

.page-blog__main-title {
  font-size: 2.8em;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFB04D; /* Glow */
  text-shadow: 0 0 8px rgba(255, 176, 77, 0.7);
}

.page-blog__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF3E6; /* Text Main */
}

.page-blog__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-blog__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFB04D; /* Glow */
}

.page-blog__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF3E6; /* Text Main */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__featured-posts,
.page-blog__latest-posts,
.page-blog__categories,
.page-blog__cta-bottom {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-blog__light-bg {
  background-color: #17191F; /* Card BG */
}

.page-blog__dark-section {
  background-color: #0D0E12; /* Background */
}

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

.page-blog__post-card {
  background-color: #17191F; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border */
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__post-content {
  padding: 20px;
}

.page-blog__post-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-title a {
  color: #FFB04D; /* Glow */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #FFA53A; /* Auxiliary color */
}

.page-blog__post-meta {
  font-size: 0.9em;
  color: #A84F0C; /* Border */
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
}

.page-blog__read-more-btn {
  display: inline-block;
  padding: 8px 15px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.page-blog__read-more-btn:hover {
  opacity: 0.9;
}

.page-blog__view-all-button {
  text-align: center;
  margin-top: 40px;
}

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

.page-blog__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #17191F; /* Card BG */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border */
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__category-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 5px;
}

.page-blog__category-name {
  font-size: 1.3em;
  font-weight: bold;
  color: #FFB04D; /* Glow */
}

.page-blog__cta-bottom .page-blog__cta-buttons {
  margin-top: 40px;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 10px #FFA53A;
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #FFA53A;
}

.page-blog__btn-secondary:hover {
  background-color: #FFA53A;
  color: #0D0E12; /* Background color for contrast */
}

/* General image responsive styles */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* General button responsive styles */
.page-blog__cta-button,
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog a[class*="button"],
.page-blog a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-buttons,
.page-blog__button-group,
.page-blog__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: -60px;
  }

  .page-blog__main-title {
    font-size: 2.5em;
  }

  .page-blog__post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-blog__category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding, not header offset */
  }

  .page-blog__hero-content {
    padding: 20px;
    margin-top: -40px;
    max-width: 95%;
  }

  .page-blog__main-title {
    font-size: 1.8em;
  }

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

  .page-blog__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-blog__section-title {
    font-size: 1.8em;
  }

  .page-blog__section-description {
    font-size: 1em;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__featured-posts,
  .page-blog__latest-posts,
  .page-blog__categories,
  .page-blog__cta-bottom {
    padding: 40px 0;
  }

  .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__post-card {
    padding: 0;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-blog__post-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-blog__category-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-blog__category-card {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__category-icon {
    width: 150px;
    height: 112px;
  }

  /* Mobile image adaptation */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-blog__container,
  .page-blog__hero-image-container,
  .page-blog__post-card,
  .page-blog__category-card,
  .page-blog__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure flex containers wrap for buttons */
  .page-blog__hero-cta-buttons,
  .page-blog__cta-bottom .page-blog__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }
}