.page-blog {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #FFFFFF;
}

.page-blog__hero-section {
  padding-top: 10px; /* Small top margin, as body padding handles header offset */
  position: relative;
  text-align: center;
  padding-bottom: 40px;
  overflow: hidden;
  background: linear-gradient(135deg, #017439, #02a04e);
  color: #FFFFFF;
}

.page-blog__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF;
  letter-spacing: -1px;
}

.page-blog__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register/Login font color */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-blog__btn-primary:hover {
  background-color: #e02020;
  transform: translateY(-2px);
}

.page-blog__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #017439;
}

.page-blog__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-blog__dark-bg .page-blog__section-title {
  color: #FFFFFF;
}

.page-blog__dark-bg .page-blog__section-description {
  color: #f0f0f0;
}

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

.page-blog__latest-articles-section {
  background-color: #017439;
  color: #FFFFFF;
}

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

.page-blog__article-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  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-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

.page-blog__article-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
  color: #017439;
}

.page-blog__article-title a {
  color: #017439;
  text-decoration: none;
}

.page-blog__article-title a:hover {
  text-decoration: underline;
}

.page-blog__article-meta {
  font-size: 0.9rem;
  color: #777777;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-link {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__read-more-link:hover {
  color: #02a04e;
  text-decoration: underline;
}

.page-blog__btn-secondary {
  display: inline-block;
  background-color: #FFFFFF;
  color: #017439;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
}

.page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  border-color: #02a04e;
  color: #02a04e;
}

.page-blog__cta-area {
  text-align: center;
}

.page-blog__categories-section {
  background-color: #f8f8f8;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.page-blog__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__category-icon {
  width: 100%; /* Ensure it takes full width of card */
  max-width: 150px; /* But not too large */
  height: auto;
  margin-bottom: 15px;
  border-radius: 5px;
}

.page-blog__category-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #017439;
}

.page-blog__guide-section {
  background-color: #017439;
  color: #FFFFFF;
}

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

.page-blog__guide-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
}

.page-blog__guide-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-blog__guide-item p {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__cta-section {
  background-color: #f8f8f8;
}

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

.page-blog__btn-register {
  background-color: #C30808;
  color: #FFFF00;
}

.page-blog__btn-register:hover {
  background-color: #e02020;
}

.page-blog__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-blog__btn-login:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-blog__more-articles {
  background-color: #017439;
  color: #FFFFFF;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 30px 15px;
  }

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

  .page-blog__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-blog__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-blog__articles-grid,
  .page-blog__categories-grid,
  .page-blog__guide-cards {
    gap: 20px;
  }

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

  .page-blog__article-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px !important;
  }

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

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

  .page-blog__intro-text,
  .page-blog__section-description {
    font-size: 1rem;
  }

  .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: 12px 15px;
  }

  .page-blog__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-blog__article-thumbnail {
    height: 220px;
  }

  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .page-blog__category-icon {
    max-width: 120px;
  }

  .page-blog__guide-cards {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* General image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-blog__container,
  .page-blog__section,
  .page-blog__card,
  .page-blog__box,
  .page-blog__hero-image-wrapper,
  .page-blog__articles-grid,
  .page-blog__categories-grid,
  .page-blog__guide-cards {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-blog__hero-image-wrapper { padding-left: 0; padding-right: 0; }

  /* Specific for guide cards (no team type on blog page, but general grid) */
  /* The guide cards here are general content, not the 'team' type. */
  /* No specific 5-card layout is present on this blog page. */

  /* No home_content-box with fixed height on this blog page */

  /* No top carousel on this blog page */
}

@media (max-width: 480px) {
  .page-blog__section-title {
    font-size: 1.5rem;
  }

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

  .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }
}