.page-blog {
  font-family: Arial, sans-serif;
  color: var(--text-main, #333333); /* Default text color */
  line-height: 1.6;
  background-color: var(--site-bg, #F5F7FA); /* Assuming shared.css defines --site-bg */
}

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

/* Top Section */
.page-blog__top-section {
  padding-top: 10px; /* Assuming shared.css handles body padding for header offset */
  padding-bottom: 40px;
  text-align: center;
  background-color: var(--card-bg, #FFFFFF); /* Using white for top section background */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.page-blog__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
  color: var(--primary-color, #E53935);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-blog__description {
  font-size: clamp(16px, 2vw, 20px);
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-main, #333333);
}

.page-blog__top-cta {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-blog__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons fit container */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

.page-blog__btn-secondary {
  background: #ffffff;
  color: var(--primary-color, #E53935);
  border: 2px solid var(--primary-color, #E53935);
}

.page-blog__btn-secondary:hover {
  background: var(--primary-color, #E53935);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

/* Article Section */
.page-blog__articles-section {
  padding: 40px 0;
  background-color: var(--site-bg, #F5F7FA);
}

.page-blog__section-title {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--primary-color, #E53935);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

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

.page-blog__article-card {
  background-color: var(--card-bg, #FFFFFF);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-blog__article-figure {
  margin: 0;
  width: 100%;
  height: 200px; /* Fixed height for image container */
  overflow: hidden;
}

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

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

.page-blog__article-caption {
  display: none; /* Hide image caption for cleaner design */
}

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

.page-blog__article-title {
  font-size: 22px;
  color: var(--text-main, #333333);
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.3;
}

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

.page-blog__article-excerpt {
  font-size: 16px;
  color: var(--text-main, #333333);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: var(--primary-color, #E53935);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-blog__view-all-btn {
  margin-top: 20px;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 60px 0;
  text-align: center;
  background: var(--primary-color, #E53935); /* Using primary color as background */
  color: #ffffff; /* White text for contrast */
}

.page-blog__cta-title {
  font-size: clamp(26px, 3.5vw, 42px);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-blog__cta-text {
  font-size: clamp(17px, 2vw, 22px);
  max-width: 900px;
  margin: 0 auto 30px;
}

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

/* Info Section (About 23vin) */
.page-blog__info-section {
  padding: 40px 0;
  background-color: var(--card-bg, #FFFFFF);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.page-blog__content-text p {
  margin-bottom: 15px;
  font-size: 17px;
  color: var(--text-main, #333333);
}

.page-blog__content-text strong {
  color: var(--primary-color, #E53935);
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 40px 0 60px;
  background-color: var(--site-bg, #F5F7FA);
}

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

.page-blog__faq-question-text {
  font-size: 20px;
  color: var(--primary-color, #E53935);
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-blog__faq-answer-text {
  font-size: 17px;
  color: var(--text-main, #333333);
  margin-bottom: 15px;
}

/* Image styles - ensuring no small icons and no filters */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  /* NO CSS FILTERS */
  /* filter: none; */
}

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

  /* 1. Top Section (title + CTA) padding/spacing/stacking, top padding ~10px */
  .page-blog__top-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
    padding-bottom: 30px;
  }

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

  .page-blog__description {
    font-size: 16px;
    margin-bottom: 25px;
    padding: 0 15px; /* Add horizontal padding for text */
  }

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

  .page-blog__btn {
    width: 100% !important; /* Full width for buttons */
    max-width: 100% !important;
    padding: 10px 15px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. Single column long text container (article-wrap, section, info-card, promo-box) */
  .page-blog__container {
    padding: 0 15px; /* Adjust container padding for mobile */
  }

  .page-blog__articles-section,
  .page-blog__cta-section,
  .page-blog__info-section,
  .page-blog__faq-section {
    padding: 30px 0;
  }

  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 25px;
    padding: 0 15px; /* Ensure title has padding */
  }

  .page-blog__article-grid {
    grid-template-columns: 1fr; /* Single column layout for articles */
    gap: 25px;
  }

  .page-blog__article-card {
    margin: 0 15px; /* Add horizontal margin to cards */
  }

  .page-blog__article-title {
    font-size: 20px;
  }

  .page-blog__article-excerpt {
    font-size: 15px;
  }

  .page-blog__cta-title {
    font-size: 28px;
    padding: 0 15px;
  }

  .page-blog__cta-text {
    font-size: 16px;
    margin-bottom: 25px;
    padding: 0 15px;
  }

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

  .page-blog__content-text p {
    font-size: 16px;
    padding: 0 15px;
  }

  /* 3. Generic images and figure */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__article-figure {
    height: auto; /* Allow image figure to adapt height */
  }

  /* 4. Buttons and button containers (already covered in top-cta and cta-buttons) */
  .page-blog__view-all-btn {
    width: calc(100% - 30px) !important; /* Full width minus padding */
    margin-left: 15px;
    margin-right: 15px;
  }

  /* 5. Registration tutorial and FAQ blocks (h3/figure, FAQ paragraphs) */
  .page-blog__faq-list {
    padding: 0 15px;
  }

  .page-blog__faq-question-text {
    font-size: 18px;
    margin-top: 20px;
  }

  .page-blog__faq-answer-text {
    font-size: 16px;
  }
}

/* Custom properties for colors (assuming shared.css defines these or they are fallback) */
:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --card-bg: #FFFFFF;
  --site-bg: #F5F7FA;
  --text-main: #333333;
  --border-color: #E0E0E0;
}

/* Ensure contrast for dark background sections */
.page-blog__dark-section {
  color: #ffffff; /* Forced white text */
}

/* Ensure contrast for card backgrounds */
.page-blog__article-card {
  background-color: var(--card-bg, #FFFFFF);
  color: var(--text-main, #333333);
}

/* Text elements */
.page-blog p,
.page-blog li {
  color: var(--text-main, #333333);
}

/* Links */
.page-blog a {
  color: var(--primary-color, #E53935);
}

.page-blog a:hover {
  color: var(--secondary-color, #FF5A4F);
}