/* -------------------------------------------------------------------------- */
/*                                 Base Styles                                */
/* -------------------------------------------------------------------------- */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Contrasts with body background #140C0C */
  background-color: transparent; /* Body background from shared.css */
}

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

.page-blog__section {
  padding: 60px 0;
  text-align: center;
}

.page-blog__dark-section {
  background-color: #140C0C; /* Dark background */
  color: #FFF1E8;
}

.page-blog__dark-bg {
  background-color: #2A1212; /* Card BG color, also dark */
  color: #FFF1E8;
}

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 40px);
  color: #F3C54D; /* Gold color */
  margin-bottom: 40px;
  font-weight: bold;
}

.page-blog__section-title--light {
  color: #FFF1E8;
}

.page-blog__article-body {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  font-size: 17px;
  line-height: 1.7;
}

.page-blog__article-body p {
  margin-bottom: 20px;
}

.page-blog__article-body ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-blog__article-body li {
  margin-bottom: 10px;
}

.page-blog__article-figure {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------------------------------- */
/*                                 Hero Section                               */
/* -------------------------------------------------------------------------- */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-blog__hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-top: 40px; /* Space below image */
  text-align: center;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #FFF1E8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------------------------- */
/*                                 Buttons                                    */
/* -------------------------------------------------------------------------- */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
  transform: translateY(-3px);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #F3C54D; /* Gold */
  border: 2px solid #F3C54D;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-secondary:hover {
  background: #F3C54D;
  color: #140C0C;
  transform: translateY(-3px);
}

.page-blog__button-container {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-blog__button-container--center {
  text-align: center;
}

/* -------------------------------------------------------------------------- */
/*                             Categories Section                             */
/* -------------------------------------------------------------------------- */
.page-blog__categories-section {
  padding: 80px 0;
}

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

.page-blog__category-item {
  background-color: #2A1212; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  border: 1px solid #6A1E1E;
}

.page-blog__category-title {
  font-size: 24px;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-blog__category-description {
  font-size: 16px;
  color: #FFF1E8;
  line-height: 1.7;
}

/* -------------------------------------------------------------------------- */
/*                             Latest Articles Section                        */
/* -------------------------------------------------------------------------- */
.page-blog__latest-articles-section {
  padding: 80px 0;
  background-color: #140C0C;
}

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

.page-blog__article-card {
  background-color: #2A1212; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s ease;
  border: 1px solid #6A1E1E;
  height: 100%; /* Ensure cards in grid have equal height */
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

.page-blog__article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-blog__card-title {
  font-size: 22px;
  color: #F3C54D; /* Gold */
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.3;
}

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

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

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

.page-blog__read-more-btn {
  display: inline-block;
  font-size: 16px;
  color: #FFB04A;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* -------------------------------------------------------------------------- */
/*                             Benefits Section                               */
/* -------------------------------------------------------------------------- */
.page-blog__benefits-section {
  padding: 80px 0;
  background-color: #7E0D0D; /* Deep Red */
}

.page-blog__benefit-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-top: 30px;
}

.page-blog__benefit-list li {
  background-color: #C61F1F;
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  font-size: 17px;
  color: #FFF1E8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-left: 5px solid #F3C54D;
}

.page-blog__benefit-list li strong {
  color: #F3C54D;
}

/* -------------------------------------------------------------------------- */
/*                                 FAQ Section                                */
/* -------------------------------------------------------------------------- */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: #140C0C;
}

.page-blog__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E;
  overflow: hidden;
  background: #2A1212; /* Card BG */
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
  display: none;
}
details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: #3A1E1E;
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF1E8;
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F3C54D;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #1F1010;
  border-radius: 0 0 5px 5px;
  color: #FFF1E8;
}
.page-blog__faq-answer p {
  margin: 0;
  font-size: 16px;
}

/* -------------------------------------------------------------------------- */
/*                               Media Queries                                */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 0 30px;
  }

  .page-blog__main-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }

  .page-blog__subtitle {
    font-size: clamp(16px, 2.2vw, 20px);
  }

  .page-blog__section-title {
    font-size: clamp(26px, 3.5vw, 36px);
  }

  .page-blog__category-item {
    padding: 25px;
  }

  .page-blog__category-title {
    font-size: 22px;
  }

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

  .page-blog__card-title {
    font-size: 20px;
  }

  .page-blog__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__section {
    padding: 40px 0;
  }

  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    min-height: unset;
  }

  .page-blog__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    height: auto !important;
    min-height: 200px; /* Ensure a minimum visible height */
  }

  .page-blog__hero-content {
    margin-top: 30px;
    padding: 0 15px;
  }

  .page-blog__main-title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .page-blog__subtitle {
    font-size: clamp(16px, 4vw, 18px);
  }

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

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

  .page-blog__section-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 30px;
  }

  .page-blog__article-body {
    font-size: 16px;
    padding: 0 10px;
  }

  .page-blog__article-figure {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }

  .page-blog__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-blog__category-item {
    padding: 20px;
  }

  .page-blog__category-title {
    font-size: 20px;
  }

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

  .page-blog__article-image {
    height: 200px;
  }

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

  .page-blog__card-title {
    font-size: 18px;
  }

  .page-blog__article-excerpt {
    font-size: 15px;
  }

  .page-blog__benefit-list li {
    font-size: 16px;
    padding: 15px 20px;
  }

  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
  }
  .page-blog__faq-qtext {
    font-size: 16px;
  }
  .page-blog__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }
  .page-blog__faq-answer p {
    font-size: 15px;
  }

  /* Ensure all images are responsive and don't overflow */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__introduction-section,
  .page-blog__categories-section,
  .page-blog__latest-articles-section,
  .page-blog__benefits-section,
  .page-blog__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}