.page-blog {
  font-family: 'Arial', sans-serif;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
}

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

.page-blog__section {
  padding: 60px 0;
  text-align: center;
}

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #F3C54D; /* Gold */
  line-height: 1.2;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 500px; /* Adjust as needed */
}

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

.page-blog__hero-content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability */
}

.page-blog__main-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 900;
  color: #FFF1E8; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__subtitle {
  font-size: clamp(16px, 1.5vw, 20px);
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button custom color */
  color: #FFF1E8; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #FFC77A 0%, #F08E3A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-blog__btn-secondary {
  background: #2A1212; /* Card BG */
  color: #F3C54D; /* Gold */
  border: 2px solid #F3C54D;
}

.page-blog__btn-secondary:hover {
  background: #F3C54D;
  color: #140C0C; /* Background */
  transform: translateY(-2px);
}

/* Latest Posts Section */
.page-blog__latest-posts {
  background-color: #140C0C; /* Background */
}

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

.page-blog__post-card {
  background-color: #2A1212; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #6A1E1E; /* Border */
}

.page-blog__post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

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

.page-blog__post-content {
  padding: 25px;
  text-align: left;
}

.page-blog__post-title {
  font-size: 22px;
  font-weight: 700;
  color: #F3C54D; /* Gold */
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__post-title:hover {
  color: #FFB04A;
}

.page-blog__post-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 16px;
  color: #FFF1E8; /* Text Main */
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #FFB04A;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.page-blog__read-more::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #FFB04A;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.page-blog__read-more:hover::after {
  transform: scaleX(1);
}

.page-blog__view-all-button-wrapper {
  margin-top: 40px;
}

/* Categories Section */
.page-blog__dark-section {
  background-color: #0d0d0d; /* Slightly darker for contrast */
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
}

.page-blog__category-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: #FFF1E8; /* Text Main */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  aspect-ratio: 1 / 1;
}

.page-blog__category-item:hover {
  transform: translateY(-5px);
  background-color: #C61F1F; /* Main Color */
  color: #FFF1E8;
}

.page-blog__category-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  display: block;
}

.page-blog__category-name {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

/* FAQ Section */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
  color: #FFF1E8;
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
  display: none;
}
details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: #3a1a1a;
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D; /* Gold */
}
.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F3C54D;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: #1f0f0f; /* Slightly lighter than Card BG */
  border-radius: 0 0 10px 10px;
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
}
.page-blog__faq-answer p {
    margin-bottom: 0;
}

/* CTA Bottom Section */
.page-blog__cta-bottom {
  background-color: #C61F1F; /* Main Color */
  padding: 80px 0;
}

.page-blog__cta-description {
  font-size: 20px;
  color: #FFF1E8; /* Text Main */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-image-wrapper {
    height: 400px;
  }
  .page-blog__main-title {
    font-size: clamp(28px, 4vw, 48px);
  }
  .page-blog__subtitle {
    font-size: clamp(15px, 1.5vw, 18px);
  }
  .page-blog__section-title {
    font-size: 30px;
  }
  .page-blog__posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__post-title {
    font-size: 20px;
  }
  .page-blog__category-item {
    padding: 15px;
  }
  .page-blog__category-image {
    width: 80px;
    height: 80px;
  }
  .page-blog__category-name {
    font-size: 16px;
  }
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
  }
  .page-blog__faq-qtext {
    font-size: 17px;
  }
  .page-blog__faq-toggle {
    font-size: 24px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 15px;
  }
  .page-blog__cta-description {
    font-size: 18px;
  }
}

@media (max-width: 849px) {
  .page-blog__hero-image {
    object-fit: contain;
  }
}

@media (max-width: 768px) {
  .page-blog__section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-blog__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    margin-bottom: 30px;
  }
  .page-blog__hero-image-wrapper {
    height: 300px;
  }
  .page-blog__main-title {
    font-size: clamp(24px, 6vw, 40px);
    margin-bottom: 15px;
  }
  .page-blog__subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }
  .page-blog__post-card {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  }
  .page-blog__post-image {
    height: 180px;
  }
  .page-blog__post-content {
    padding: 20px;
  }
  .page-blog__post-title {
    font-size: 18px;
  }
  .page-blog__post-excerpt {
    font-size: 14px;
  }
  .page-blog__view-all-button-wrapper {
    margin-top: 30px;
    padding: 0 15px;
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }
  .page-blog__category-item {
    padding: 15px;
    aspect-ratio: 1 / 1;
  }
  .page-blog__category-image {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }
  .page-blog__category-name {
    font-size: 14px;
  }
  details.page-blog__faq-item {
    margin-bottom: 10px;
    border-radius: 8px;
    padding: 0 15px;
  }
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
  }
  .page-blog__faq-qtext {
    font-size: 16px;
  }
  .page-blog__faq-toggle {
    font-size: 22px;
    width: 25px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
    font-size: 14px;
  }
  .page-blog__cta-bottom {
    padding: 50px 0;
  }
  .page-blog__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  /* General image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by specific sections/elements */
  }
}