.page-blog {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Text Main */
  background-color: var(--site-bg, #B71C1C); /* Fallback to custom BG if shared.css doesn't define */
}

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

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: #B71C1C; /* Background */
  position: relative;
  overflow: hidden;
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-blog__description {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #FFF5E1; /* Text Main */
}

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

.page-blog__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn--primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button */
  color: #7A0E0E; /* Deep Red for contrast on gold */
  border: 2px solid #F2B544; /* Border */
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-blog__btn--primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-blog__btn--secondary {
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border */
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.page-blog__btn--secondary:hover {
  background: #C91F17; /* Main */
  box-shadow: 0 6px 20px rgba(201, 31, 23, 0.6);
}

.page-blog__articles-section {
  padding: 80px 0;
  background-color: #B71C1C; /* Background */
}

.page-blog__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #FFF5E1; /* Text Main */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

.page-blog__article-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #7A0E0E; /* Deep Red */
}

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

.page-blog__card-link {
  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: 25px;
}

.page-blog__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold */
  line-height: 1.3;
  text-decoration: none;
}

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

.page-blog__card-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 15px;
}

.page-blog__card-date {
  font-size: 0.9rem;
  color: #FFCC66; /* Glow */
  opacity: 0.8;
}

.page-blog__view-all-button-wrapper {
  text-align: center;
}

.page-blog__btn--outline {
  background: transparent;
  color: #F4D34D; /* Gold */
  border: 2px solid #F4D34D; /* Gold */
  padding: 12px 25px;
  font-size: 1rem;
}

.page-blog__btn--outline:hover {
  background: #F4D34D;
  color: #7A0E0E; /* Deep Red */
  box-shadow: 0 4px 10px rgba(244, 211, 77, 0.4);
}

.page-blog__about-section {
  padding: 80px 0;
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1; /* Text Main */
}

.page-blog__about-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main */
}

.page-blog__about-section strong {
  color: #F4D34D; /* Gold */
}

.page-blog__image-with-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  align-items: center;
}

.page-blog__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-blog__cta-promo-section {
  padding: 80px 0;
  background-color: #B71C1C; /* Background */
}

.page-blog__promo-box {
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  padding: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-blog__promo-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-blog__promo-content {
  position: relative;
  z-index: 2;
}

.page-blog__promo-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD86A; /* Brighter gold for promo title */
}

.page-blog__promo-description {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #FFF5E1; /* Text Main */
}

.page-blog__btn--gold {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button */
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid #F2B544; /* Border */
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
  padding: 16px 35px;
  font-size: 1.2rem;
}

.page-blog__btn--gold:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-blog__faq-section {
  padding: 80px 0;
  background-color: #C91F17; /* Main */
}

.page-blog__faq-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Border */
  color: #FFF5E1; /* Text Main */
}

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: #F4D34D; /* Gold */
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #F4D34D; /* Gold */
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }
  .page-blog__description,
  .page-blog__about-section p,
  .page-blog__promo-description {
    font-size: 1.05rem;
  }
  .page-blog__article-card {
    margin: 0 auto;
  }
  .page-blog__card-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  /* 1. Top section title + CTA */
  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-blog__description {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-blog__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-blog__container {
    padding: 0 15px;
  }

  /* 2. Single column long text container */
  .page-blog__articles-section,
  .page-blog__about-section,
  .page-blog__cta-promo-section,
  .page-blog__faq-section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }
  .page-blog__about-section p {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 5px;
  }

  /* 3. General images and figures */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-blog__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }
  .page-blog__card-image {
    height: 200px; /* Adjust height for mobile card images */
  }
  .page-blog__content-image {
    margin-bottom: 20px;
  }
  .page-blog__image-with-text {
    margin-top: 20px;
  }

  /* 4. Buttons and button containers (already covered in top section, but re-emphasize) */
  .page-blog__cta-buttons,
  .page-blog__view-all-button-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__btn--outline,
  .page-blog__btn--gold {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1rem;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 5. Registration tutorial and FAQ blocks */
  .page-blog__promo-box {
    padding: 30px 20px;
  }
  .page-blog__promo-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-blog__promo-description {
    font-size: 1rem;
    margin-bottom: 20px;
    padding: 0 5px;
  }
  .page-blog__faq-item summary {
    font-size: 1.05rem;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }
  .page-blog__faq-toggle {
    font-size: 1.5rem;
  }

  .page-blog__article-card,
  .page-blog__faq-item,
  .page-blog__promo-box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}