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

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

.page-blog__top-section {
  padding-top: 10px; /* Small top padding, relies on body for --header-offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: #140C0C; /* Background */
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF1E8; /* Text Main */
}

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

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

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #ffffff;
  border: none;
}

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

.page-blog__btn-secondary {
  background: #2A1212; /* Card B G */
  color: #F3C54D; /* Gold */
  border: 2px solid #6A1E1E; /* Border */
}

.page-blog__btn-secondary:hover {
  background: #6A1E1E; /* Border */
  color: #ffffff;
}

.page-blog__content-section {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

.page-blog__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  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-color: #2A1212; /* Card B G */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF1E8; /* Text Main */
  display: flex;
  flex-direction: column;
}

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

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

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

.page-blog__article-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__article-title a {
  color: #F3C54D; /* Gold */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #FFB04A;
}

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

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

.page-blog__read-more {
  display: inline-block;
  color: #FFB04A;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-blog__read-more:hover {
  color: #F3C54D;
}

.page-blog__view-all-button-container {
  text-align: center;
  margin-top: 40px;
}

.page-blog__info-section {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
  text-align: center;
}

.page-blog__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__feature-item {
  background-color: #2A1212; /* Card B G */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #FFF1E8;
  text-align: left;
}

.page-blog__feature-title {
  font-size: 1.3rem;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__feature-description {
  font-size: 1rem;
  color: #FFF1E8;
}

.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #140C0C; /* Background */
}

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

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

  /* 1. Top section title + dual CTA */
  .page-blog__top-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-blog__main-title {
    font-size: 2rem;
  }

  .page-blog__description {
    font-size: 1rem;
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* 2. Single column article container */
  .page-blog__article-wrap,
  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__content-section,
  .page-blog__info-section,
  .page-blog__cta-section {
    padding: 40px 0;
  }

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

  .page-blog__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__article-image {
    height: 200px; /* Adjust height for smaller screens */
  }

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

  .page-blog__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  /* 4. Buttons and button containers (already covered in top-section and general btn styles) */
  .page-blog__view-all-button-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 5. Registration tutorial and FAQ blocks - N/A for this blog page's current content, but structure is here for completeness */
  /* No explicit FAQ or registration tutorial blocks in this content, but general text/card styles apply. */
  .page-blog__article-card {
    padding: 15px;
  }
}

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

  .page-blog__section-title {
    font-size: 1.6rem;
  }

  .page-blog__btn {
    font-size: 0.95rem;
    padding: 10px 15px;
  }
}