/* style/blog.css */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
}

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

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.page-blog__hero-image-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__main-title {
  font-size: 2.8em;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

.page-blog__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 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: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

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

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

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

.page-blog__section-title {
  font-size: 2em;
  color: #333333;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

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

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

.page-blog__article-image-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-blog__article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.page-blog__article-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333333;
  line-height: 1.4;
}

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 15px;
}

.page-blog__read-more {
  color: #E53935;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-blog__read-more span {
  font-size: 1.2em;
}

.page-blog__view-all-button {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 60px;
}

.page-blog__btn--outline {
  background: transparent;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-blog__btn--outline:hover {
  background: #E53935;
  color: #ffffff;
}

.page-blog__long-form-content {
  padding-bottom: 60px;
}

.page-blog__long-form-content p {
  margin-bottom: 1.2em;
  font-size: 1em;
  color: #333333;
}

.page-blog__sub-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #E53935;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-blog__figure {
  margin: 30px 0;
  text-align: center;
}

.page-blog__figure-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__figure-caption {
  font-size: 0.9em;
  color: #666666;
  margin-top: 10px;
}

.page-blog__promo-box {
  background-color: #ffffff; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 12px;
  padding: 30px;
  margin: 40px 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-blog__promo-title {
  font-size: 1.5em;
  color: #E53935;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__promo-box p {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 25px;
}

.page-blog__cta-bottom {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-blog__related-links {
  padding: 40px 0;
  background-color: #F5F7FA;
  border-top: 1px solid #E0E0E0;
}

.page-blog__link-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 30px;
}

.page-blog__link-list li a {
  color: #E53935;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
}

.page-blog__link-list li a:hover {
  text-decoration: underline;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile adjustments */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.2em;
  }

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

  .page-blog__section-title {
    font-size: 1.8em;
  }

  .page-blog__article-grid {
    gap: 20px;
  }

  .page-blog__article-image-wrap {
    height: 180px;
  }

  .page-blog__article-title {
    font-size: 1.2em;
  }

  .page-blog__sub-title {
    font-size: 1.4em;
  }

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

/* Mobile specific styles */
@media (max-width: 768px) {
  /* 1. Top section title + CTA */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding */
  }

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

  .page-blog__main-title {
    font-size: 1.8em;
    letter-spacing: -0.5px;
  }

  .page-blog__hero-description {
    font-size: 1em;
  }

  .page-blog__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* 2. Single column long text containers */
  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .page-blog__long-form-content p {
    font-size: 0.95em;
  }

  .page-blog__sub-title {
    font-size: 1.2em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

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

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

  .page-blog__promo-box p {
    font-size: 0.95em;
  }

  /* 3. General images and figures */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-blog__figure-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-blog__article-image-wrap {
    height: 160px;
  }

  /* All containing elements for images */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__article-card,
  .page-blog__promo-box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 4. Buttons and button containers */
  .page-blog__btn,
  .page-blog__btn--primary,
  .page-blog__btn--secondary,
  .page-blog__btn--outline,
  .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;
  }

  .page-blog__hero-cta-buttons,
  .page-blog__cta-bottom,
  .page-blog__view-all-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .page-blog__link-list {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  /* 5. Registration tutorial and FAQ blocks (implicit in long-form content styling) */
  /* No explicit FAQ section with accordion, but long-form content will adapt */
  .page-blog__long-form-content h3 {
    font-size: 1.2em;
  }
  .page-blog__long-form-content p {
    font-size: 0.9em;
  }
}

/* Ensure contrast for text on brand color backgrounds */
.page-blog__dark-section, .page-blog__btn--primary {
  color: #ffffff;
}
.page-blog__light-bg, .page-blog__btn--secondary {
  color: #E53935;
}