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

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #F4F7FB; /* Background */
  padding-bottom: 40px;
}

.page-blog__hero-image {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-blog__hero-content {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0 15px;
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  font-weight: 700;
  color: #2F6BFF;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.1em;
  color: #1F2D3D;
  margin-bottom: 30px;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-blog__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
}

.page-blog__introduction-section,
.page-blog__latest-posts-section,
.page-blog__featured-topics-section,
.page-blog__expert-tips-section,
.page-blog__cta-section {
  padding: 60px 0;
}

.page-blog__introduction-section,
.page-blog__featured-topics-section,
.page-blog__cta-section {
  background-color: #2F6BFF;
  color: #ffffff;
}

.page-blog__latest-posts-section,
.page-blog__expert-tips-section {
  background-color: #F4F7FB;
  color: #1F2D3D;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__introduction-section .page-blog__section-title,
.page-blog__featured-topics-section .page-blog__section-title,
.page-blog__cta-section .page-blog__section-title {
  color: #ffffff;
}

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

.page-blog__highlight {
  font-weight: bold;
  color: #A5C4FF; /* Glow */
}

.page-blog__introduction-section .page-blog__text-block {
  color: #f0f0f0;
}

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

.page-blog__blog-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__blog-card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-blog__blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.page-blog__blog-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-blog__blog-card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
}

.page-blog__blog-card-title a {
  color: #1F2D3D;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__blog-card-title a:hover {
  color: #2F6BFF;
}

.page-blog__blog-card-meta {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
}

.page-blog__blog-card-excerpt {
  font-size: 1em;
  color: #333;
  margin-bottom: 20px;
}

.page-blog__view-all-button {
  text-align: center;
}

.page-blog__view-all-button .page-blog__btn-primary {
  padding: 15px 35px;
  font-size: 1.1em;
}

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

.page-blog__topic-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 180px;
}

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

.page-blog__topic-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #2F6BFF;
  margin-bottom: 10px;
}

.page-blog__topic-description {
  font-size: 1em;
  color: #1F2D3D;
}

.page-blog__cta-section {
  text-align: center;
}

.page-blog__cta-section .page-blog__text-block {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-blog__section,
.page-blog__card,
.page-blog__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

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

  .page-blog__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    padding-bottom: 30px;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .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;
    text-align: center;
  }

  .page-blog__introduction-section,
  .page-blog__latest-posts-section,
  .page-blog__featured-topics-section,
  .page-blog__expert-tips-section,
  .page-blog__cta-section {
    padding: 40px 0;
  }

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

  .page-blog__container {
    padding: 0 15px;
  }

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

  .page-blog__blog-grid {
    grid-template-columns: 1fr; /* Single column for blog cards */
    gap: 20px;
  }

  .page-blog__blog-card-title {
    font-size: 1.3em;
  }

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

  .page-blog__view-all-button .page-blog__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-blog__topics-grid {
    grid-template-columns: 1fr; /* Single column for topics */
    gap: 15px;
  }

  .page-blog__topic-title {
    font-size: 1.5em;
  }

  .page-blog__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }

  /* Force image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .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;
  }
}