.page-blog {
  font-family: 'Arial', sans-serif;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
  line-height: 1.6;
}

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

.page-blog__top-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  text-align: center;
  background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%); /* Deep Green to Background */
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: #F2C14E; /* Gold */
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-blog__intro-text {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

.page-blog__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  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, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.3);
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.5);
}

.page-blog__btn-secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F; /* A lighter shade of primary button color for contrast */
  border: 2px solid #2E7A4E; /* Border */
}

.page-blog__btn-secondary:hover {
  background: #2E7A4E;
  color: #F2FFF6;
  transform: translateY(-2px);
}

.page-blog__btn-gold {
  background: linear-gradient(180deg, #F2C14E 0%, #D4A73F 100%); /* Gold gradient */
  color: #08160F; /* Dark text for gold button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-blog__btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-blog__articles-section {
  padding: 60px 0;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.page-blog__article-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  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.5);
}

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

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

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

.page-blog__article-heading {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-blog__article-link {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-link:hover {
  color: #2AD16F; /* Lighter green for hover */
}

.page-blog__article-meta {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-blog__read-more {
  color: #2AD16F; /* Lighter green */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-blog__read-more:hover {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

.page-blog__view-all-cta {
  text-align: center;
  margin-top: 50px;
}

.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-blog__dark-section {
  background: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

.page-blog__cta-title {
  font-size: 2.8em;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-blog__cta-description {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #A7D9B8; /* Text Secondary */
}

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

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-blog__intro-text {
    font-size: 1em;
  }

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

  .page-blog__article-card {
    height: auto; /* Allow card height to adjust */
  }

  .page-blog__article-figure {
    height: 180px;
  }

  .page-blog__cta-title {
    font-size: 2.2em;
  }

  .page-blog__cta-description {
    font-size: 1.1em;
  }
}

/* Mobile Specific */
@media (max-width: 768px) {
  /* 1. Top section title + Dual CTA */
  .page-blog__top-section {
    padding-top: 10px !important; /* Small top padding, relying on body for header offset */
    padding-bottom: 30px;
  }

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

  .page-blog__intro-text {
    font-size: 0.95em;
    padding: 0 10px;
  }

  .page-blog__top-cta {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }

  .page-blog__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-blog__articles-section {
    padding: 40px 0;
  }

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

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

  .page-blog__article-card {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  }

  .page-blog__article-figure {
    height: 160px;
  }

  .page-blog__article-heading {
    font-size: 1.3em;
  }

  .page-blog__article-meta,
  .page-blog__article-excerpt {
    font-size: 0.9em;
  }

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

  .page-blog__article-figure,
  .page-blog__cta-section .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 4. Buttons and button containers */
  /* Already covered in .page-blog__btn and .page-blog__top-cta */
  .page-blog__view-all-cta {
    padding: 0 15px;
  }
  .page-blog__view-all-cta .page-blog__btn {
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-blog__cta-section {
    padding: 50px 0;
  }

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

  .page-blog__cta-description {
    font-size: 1em;
    padding: 0 10px;
  }

  /* 5. Registration tutorial and FAQ blocks: Not explicitly present as standalone blocks on this blog page. */
  /* The general .page-blog__container and .page-blog__article-wrap rules cover content blocks. */
  /* If there were specific .page-blog__faq-item or .page-blog__registration-step elements, their mobile styles would be defined here. */
}