.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background: #B71C1C; /* Background color from custom scheme */
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  background-color: #7A0E0E; /* Deep Red for contrast */
}

.page-blog__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-blog__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #FFF5E1; /* Text Main color */
}

.page-blog__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFF5E1; /* Text Main color */
  max-width: 900px;
  margin: 20px auto 15px;
}

.page-blog__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red for contrast on gold button */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid #F4D34D; /* Gold border */
}

.page-blog__cta-button:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Section common styles */
.page-blog__intro-section, .page-blog__all-articles, .page-blog__cta-section {
  background-color: #FFF5E1; /* Text Main as background for light sections */
  color: #333333;
  padding: 60px 0;
}

.page-blog__featured-articles, .page-blog__categories, .page-blog__faq-section {
  background-color: #D32F2F; /* Card BG as background for dark sections */
  color: #FFF5E1; /* Text Main for text on dark background */
  padding: 60px 0;
}

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-blog__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: inherit;
}

.page-blog__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 20px;
  text-align: justify;
}

/* Article Grid (Featured Articles) */
.page-blog__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__article-card {
  background: #7A0E0E; /* Deep Red for cards on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #F2B544; /* Border color */
}

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

.page-blog__article-image-wrapper {
  height: 220px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-blog__article-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover .page-blog__article-image-wrapper img {
  transform: scale(1.05);
}

.page-blog__article-content {
  padding: 25px;
  color: #FFF5E1; /* Text Main color */
}

.page-blog__article-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__article-title a {
  color: #FFCC66; /* Glow color for link titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #F4D34D; /* Gold color on hover */
}

.page-blog__article-meta {
  font-size: 0.9em;
  color: rgba(255, 245, 225, 0.7); /* Lighter Text Main */
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1em;
  margin-bottom: 20px;
  line-height: 1.6;
}

.page-blog__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background: #F4D34D; /* Gold color */
  color: #7A0E0E; /* Deep Red for contrast */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
  transition: background 0.3s ease, transform 0.3s ease;
}

.page-blog__read-more-button:hover {
  background: #FFCC66; /* Glow color on hover */
  transform: translateY(-2px);
}

/* Article List (All Articles) */
.page-blog__article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-top: 40px;
}

.page-blog__list-item {
  display: flex;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-blog__list-image-wrapper {
  flex-shrink: 0;
  width: 250px;
  height: 167px; /* Maintain aspect ratio for 600x400 source */
  overflow: hidden;
}

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

.page-blog__list-content {
  padding: 20px;
  flex-grow: 1;
}

.page-blog__list-title {
  font-size: 1.25em;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.page-blog__list-title a {
  color: #C91F17; /* Primary color for link titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__list-title a:hover {
  color: #E53935; /* Secondary color on hover */
}

.page-blog__list-meta {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 12px;
}

.page-blog__list-excerpt {
  font-size: 0.95em;
  line-height: 1.6;
}

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

/* Categories Section */
.page-blog__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-blog__category-card {
  background: #7A0E0E; /* Deep Red for category cards */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #FFF5E1; /* Text Main color */
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid #F2B544; /* Border color */
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  background-color: #C91F17; /* Primary color on hover */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__category-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFCC66; /* Glow color for category titles */
}

.page-blog__category-count {
  font-size: 0.95em;
  color: rgba(255, 245, 225, 0.8);
}

/* CTA Section */
.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-blog__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red for contrast on gold button */
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 2px solid #F4D34D; /* Gold border */
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #FFF5E1; /* Text Main as background */
  color: #C91F17; /* Primary color for text */
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #C91F17; /* Primary color border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__btn-secondary:hover {
  background: #F4D34D; /* Gold color on hover */
  color: #7A0E0E; /* Deep Red for contrast */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  border-color: #F4D34D;
}

/* FAQ Section */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Border color */
  overflow: hidden;
  background: #7A0E0E; /* Deep Red for FAQ item background */
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF5E1; /* Text Main color */
}
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: #C91F17; /* Primary color on hover */
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFCC66; /* Glow color for FAQ question text */
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFCC66; /* Glow color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #D32F2F; /* Card BG for FAQ answer background */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1; /* Text Main color */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__hero-content h1 {
    font-size: 2.5em;
  }
  .page-blog__article-grid {
    gap: 20px;
  }
  .page-blog__list-item {
    flex-direction: column;
  }
  .page-blog__list-image-wrapper {
    width: 100%;
    height: 200px;
  }
  .page-blog__list-content {
    padding: 15px;
  }
  .page-blog__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__hero-image img {
    border-radius: 4px;
  }
  .page-blog__main-title {
    font-size: 2em;
    margin: 15px auto 10px;
  }
  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-blog__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    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: 1.8em;
  }
  .page-blog__section-description, .page-blog__text-block {
    font-size: 0.95em;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-card {
    margin: 0 15px;
  }
  .page-blog__list-item {
    margin: 0 15px;
  }
  .page-blog__category-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__category-card {
    margin: 0 15px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-blog__btn-primary, .page-blog__btn-secondary {
    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;
  }
  details.page-blog__faq-item {
    margin: 0 15px 15px;
  }
  details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .page-blog__faq-qtext { font-size: 1em; }
  .page-blog__faq-answer {
    padding: 0 15px 15px;
  }

  /* General image and container responsive styles */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__article-card,
  .page-blog__list-item,
  .page-blog__category-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}