.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text should be light */
  background-color: transparent; /* Rely on shared.css for body background */
}

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

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #ffffff; /* Ensure text is white on potentially dark image */
  background: rgba(0, 0, 0, 0.4); /* Slightly dark overlay for text readability */
  padding: 20px 30px;
  border-radius: 8px;
  margin-top: -100px; /* Pull content up over image slightly for visual appeal */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
}

.page-blog__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 25px;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #ffffff; /* Default for dark sections */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-blog__introduction-section {
  padding: 60px 0;
  background: #0d0d0d; /* Slightly lighter dark background */
}

.page-blog__introduction-section .page-blog__section-title {
  color: #ffffff;
}

.page-blog__text-block {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__categories-section {
  padding: 60px 0;
  background: #000000; /* Darker background */
}

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

.page-blog__category-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent light background on dark */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

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

.page-blog__card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-blog__card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
}

.page-blog__featured-articles {
  padding: 60px 0;
  background: #0d0d0d;
}

.page-blog__featured-articles .page-blog__section-title {
  color: #ffffff;
}

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

.page-blog__article-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent light background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

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

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

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

.page-blog__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

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

.page-blog__article-excerpt {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-blog__btn-text {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__btn-text:hover {
  color: #ffffff;
}

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

.page-blog__faq-section {
  padding: 60px 0;
  background: #000000;
}

.page-blog__faq-section .page-blog__section-title {
  color: #ffffff;
}

.page-blog__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__faq-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent light background */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-blog__faq-item[open] .page-blog__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-blog__faq-item summary {
  list-style: none;
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-blog__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  padding: 15px 20px;
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-blog__cta-section {
  padding: 60px 0;
  background: #26A9E0;
  text-align: center;
}

.page-blog__cta-section .page-blog__section-title,
.page-blog__cta-section .page-blog__text-block {
  color: #ffffff;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  text-align: center;
}

.page-blog__btn-primary {
  background-color: #EA7C07; /* Custom color for login/primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-blog__btn-primary:hover {
  background-color: #d16b00;
  border-color: #d16b00;
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-blog__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Dark background elements */
.page-blog__dark-section {
  background: #000000;
  color: #ffffff;
}

/* Light background elements (on dark body) */
.page-blog__light-bg {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark body */
  color: #ffffff;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: -80px;
    padding: 20px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__categories-grid,
  .page-blog__articles-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 20px;
  }
  .page-blog__hero-image-wrapper {
    max-height: 400px;
  }
  .page-blog__hero-content {
    margin-top: -60px;
    padding: 15px;
  }
  .page-blog__main-title {
    font-size: clamp(1.5em, 7vw, 2.5em) !important; /* Smaller on mobile */
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px; /* Add padding to container */
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 15px !important;
    font-size: 0.9em;
  }
  
  .page-blog__container {
    padding: 0 15px !important;
  }
  .page-blog__introduction-section,
  .page-blog__categories-section,
  .page-blog__featured-articles,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 40px 0 !important;
  }
  .page-blog__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px !important;
  }
  .page-blog__text-block {
    font-size: 1em;
  }
  .page-blog__categories-grid,
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__article-image {
    height: 180px;
  }
  .page-blog__article-title {
    font-size: 1.3em;
  }
  .page-blog__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-blog__faq-answer {
    font-size: 0.95em;
    padding: 10px 15px;
  }
  /* Universal image responsiveness for content area */
  .page-blog img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Ensure content containers don't overflow */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__introduction-section,
  .page-blog__categories-section,
  .page-blog__featured-articles,
  .page-blog__faq-section,
  .page-blog__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}