.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text on light body background */
  background-color: #ffffff;
}

.page-blog__top-section {
  background-color: #f5f8fa;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom for content separation */
  text-align: center;
}

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

.page-blog__title {
  font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive font size for H1 */
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 1.1em;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

.page-blog__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-blog__btn--secondary:hover {
  background-color: #f0f0f0;
}

.page-blog__content-area {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-blog__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-blog__text-block {
  font-size: 1.05em;
  margin-bottom: 30px;
  color: #333333;
  line-height: 1.7;
}

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

.page-blog__category-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

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

.page-blog__category-card .page-blog__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-blog__category-card .page-blog__card-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

.page-blog__category-card .page-blog__card-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #26A9E0;
  padding-bottom: 2px;
}

.page-blog__category-card .page-blog__card-link:hover {
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-blog__info-box {
  background-color: #eaf6fc;
  border-left: 5px solid #26A9E0;
  padding: 30px;
  margin-bottom: 60px;
  border-radius: 8px;
  color: #333333;
}

.page-blog__info-box .page-blog__text-block {
  margin-bottom: 0;
}

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

.page-blog__article-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

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

.page-blog__card-link-wrapper {
  text-decoration: none;
  display: block;
  color: inherit;
}

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

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

.page-blog__card-content .page-blog__card-title {
  font-size: 1.2em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.page-blog__card-content .page-blog__card-meta {
  font-size: 0.85em;
  color: #888888;
  margin-bottom: 15px;
}

.page-blog__card-content .page-blog__card-excerpt {
  font-size: 0.95em;
  color: #555555;
}

.page-blog__faq-section {
  margin-bottom: 60px;
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}

.page-blog__faq-item {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  color: #333333;
}

.page-blog__faq-question {
  font-size: 1.1em;
  color: #26A9E0;
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__faq-question:hover {
  color: #1e87c0;
}

.page-blog__faq-answer {
  font-size: 1em;
  color: #555555;
  padding-bottom: 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding-bottom 0.4s ease-out;
}

/* For FAQ, using JS to toggle 'active' class */
.page-blog__faq-item.active .page-blog__faq-answer {
  max-height: 500px; /* Sufficiently large to show content */
  padding-bottom: 25px;
}

.page-blog__faq-item.active .page-blog__faq-question::after {
  content: '−';
}

.page-blog__faq-question::after {
  content: '+';
  font-size: 1.2em;
  font-weight: bold;
  margin-left: 10px;
  color: #26A9E0;
}

.page-blog__promo-box {
  background: linear-gradient(135deg, #26A9E0, #1e87c0);
  color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-blog__promo-title {
  font-size: 2em;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-blog__promo-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-group--bottom .page-blog__btn--primary {
  background-color: #EA7C07; /* Custom color for login/register */
  border-color: #EA7C07;
}

.page-blog__cta-group--bottom .page-blog__btn--primary:hover {
  background-color: #c96800;
  border-color: #c96800;
}

.page-blog__cta-group--bottom .page-blog__btn--secondary {
  background-color: #ffffff;
  color: #EA7C07; /* Custom color for login/register */
  border-color: #EA7C07;
}

.page-blog__cta-group--bottom .page-blog__btn--secondary:hover {
  background-color: #fcece0;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
  .page-blog__top-section {
    padding: 10px 0 40px 0 !important; /* Enforce small top padding */
  }

  .page-blog__container,
  .page-blog__article-wrap {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__title {
    font-size: 2em; /* Smaller H1 for mobile */
  }

  .page-blog__description {
    font-size: 1em;
  }

  .page-blog__cta-group {
    flex-direction: column; /* Buttons stack vertically */
    gap: 10px;
  }

  .page-blog__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__content-area {
    padding: 40px 0;
  }

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

  .page-blog__text-block {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-blog__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .page-blog__category-card {
    padding: 20px;
  }

  .page-blog__category-card .page-blog__card-title {
    font-size: 1.2em;
  }

  .page-blog__info-box {
    padding: 25px;
    margin-bottom: 40px;
  }

  .page-blog__article-list {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
  }

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

  .page-blog__card-content {
    padding: 15px;
  }

  .page-blog__card-content .page-blog__card-title {
    font-size: 1.1em;
  }

  .page-blog__faq-section {
    margin-bottom: 40px;
    padding-top: 15px;
  }

  .page-blog__faq-question {
    font-size: 1em;
    padding: 15px 0;
  }

  .page-blog__faq-answer {
    font-size: 0.95em;
  }

  .page-blog__promo-box {
    padding: 30px;
    margin-bottom: 30px;
  }

  .page-blog__promo-title {
    font-size: 1.6em;
  }

  .page-blog__promo-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* Ensure all images are responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-blog__article-card img {
    max-width: 100% !important;
    height: auto !important;
  }

  .page-blog__cta-group--bottom {
    flex-direction: column;
    gap: 10px;
  }
}