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

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

.page-blog__light-bg {
  background: #F4F7FB; /* Background */
  color: #1F2D3D;
}

.page-blog__dark-bg {
  background: #2F6BFF; /* Primary color */
  color: #ffffff;
}

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #1F2D3D;
}

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

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
  margin-bottom: 40px;
}

.page-blog__hero-slider {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for desktop */
}

.page-blog__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.page-blog__hero-slide.is-active {
  opacity: 1;
}

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

.page-blog__hero-slider-prev,
.page-blog__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5em;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-slider-prev {
  left: 20px;
}

.page-blog__hero-slider-next {
  right: 20px;
}

.page-blog__hero-slider-prev::before {
  content: '‹';
}

.page-blog__hero-slider-next::before {
  content: '›';
}

.page-blog__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: #fff;
  text-align: center;
}

.page-blog__main-title {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.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;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  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: #f0f0f0;
  transform: translateY(-2px);
}

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-blog__category-card {
  background: #ffffff; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: #1F2D3D;
}

.page-blog__category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-blog__category-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 15px;
  color: #1F2D3D;
}

.page-blog__category-description {
  font-size: 0.95em;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Benefits Section */
.page-blog__benefits-section {
  padding: 60px 0;
}

.page-blog__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-blog__benefits-item {
  background: #ffffff; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.1em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #1F2D3D;
}

.page-blog__benefits-item strong {
  color: #2F6BFF; /* Primary color */
}

/* Featured Articles Section */
.page-blog__featured-articles {
  padding: 60px 0;
}

.page-blog__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-blog__blog-card {
  background: #ffffff; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #1F2D3D;
}

.page-blog__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-blog__blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.page-blog__blog-card-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1F2D3D;
}

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

.page-blog__blog-card-excerpt {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__read-more {
  color: #2F6BFF;
  font-weight: bold;
  text-decoration: none;
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

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

/* Access Guide Section */
.page-blog__access-guide-section {
  padding: 60px 0;
}

.page-blog__access-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-blog__method-item {
  background: #ffffff; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #1F2D3D;
}

.page-blog__method-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #2F6BFF; /* Primary color */
}

.page-blog__method-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__cta-bottom {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.page-blog__cta-text {
  font-size: 1.5em;
  margin-bottom: 25px;
  font-weight: bold;
  color: #ffffff;
}

/* Conclusion Section */
.page-blog__conclusion-section {
  padding: 60px 0;
}

.page-blog__conclusion-section a {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: bold;
}

.page-blog__conclusion-section a:hover {
  text-decoration: underline;
}

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

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

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

  .page-blog__container {
    padding: 15px;
  }

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

  .page-blog__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    margin-bottom: 30px;
  }

  .page-blog__hero-slider {
    height: 400px; /* Adjust height for mobile */
  }

  .page-blog__hero-slider-prev,
  .page-blog__hero-slider-next {
    padding: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
  }

  .page-blog__hero-slider-prev {
    left: 10px;
  }

  .page-blog__hero-slider-next {
    right: 10px;
  }

  .page-blog__hero-content {
    padding: 20px 15px;
  }

  .page-blog__main-title {
    font-size: 2em;
    margin-bottom: 10px;
  }

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

  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    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;
    margin-bottom: 10px; /* Add margin between stacked buttons */
  }

  .page-blog__categories-section,
  .page-blog__benefits-section,
  .page-blog__featured-articles,
  .page-blog__access-guide-section,
  .page-blog__conclusion-section {
    padding: 40px 0;
  }

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

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

  .page-blog__access-methods {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

  .page-blog__category-card,
  .page-blog__blog-card,
  .page-blog__method-item {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__category-card img,
  .page-blog__blog-card img {
     /* Adjust image height for mobile cards */
  }

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

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

  .page-blog__cta-bottom {
    padding: 20px;
  }

  .page-blog__cta-text {
    font-size: 1.2em;
  }

  /* General image responsive */
  .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;
  }
  
  /* If multiple buttons in a group, ensure they wrap or stack */
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}