/* style/blog.css */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

.page-blog__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-blog__hero-section {
  padding-top: 10px; /* Rely on body padding-top from shared.css */
  padding-bottom: 40px;
  background-color: #0A0A0A;
}

.page-blog__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-blog__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-blog__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E; /* Main color for title */
  max-width: 600px;
}

.page-blog__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF6D6;
}

.page-blog__cta-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text on light button for contrast */
  border: none;
}

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

.page-blog__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E;
}

.page-blog__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
}

.page-blog__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-blog__hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.page-blog__articles-section {
  background-color: #0A0A0A;
  padding-top: 60px;
  padding-bottom: 60px;
}

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

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

.page-blog__article-card {
  background-color: #111111; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__article-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.page-blog__article-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.page-blog__article-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F2C14E;
}

.page-blog__article-meta {
  font-size: 0.9em;
  color: #FFD36B; /* Glow color for meta */
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 20px;
}

.page-blog__read-more {
  color: #FFD36B;
  font-weight: 600;
  text-decoration: underline;
}

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

.page-blog__cta-section {
  padding: 60px 16px;
  text-align: center;
  background-color: #111111; /* Card BG as dark section */
}

.page-blog__dark-section .page-blog__section-title,
.page-blog__dark-section .page-blog__description {
  color: #FFF6D6;
}

.page-blog__faq-section {
  background-color: #0A0A0A;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-blog__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__faq-item {
  background-color: #111111;
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #F2C14E;
  cursor: pointer;
  list-style: none;
  user-select: none; /* Prevent text selection on click */
}

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

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-blog__faq-answer {
  padding: 0 25px 18px;
  font-size: 1em;
  color: #FFF6D6;
}

.page-blog__faq-answer p {
  margin: 0;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.5em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__hero-container {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

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

  .page-blog__hero-section {
    padding-top: 10px !important; /* Specific top padding */
    padding-bottom: 30px !important;
  }

  .page-blog__hero-container {
    flex-direction: column; /* Stack hero content and image */
    gap: 30px !important;
  }

  .page-blog__hero-content,
  .page-blog__hero-image {
    flex: 1 1 100% !important;
    min-width: unset !important;
  }

  .page-blog__main-title {
    font-size: 2em !important;
    text-align: center;
    margin-bottom: 15px;
  }

  .page-blog__description {
    font-size: 1em !important;
    text-align: center;
    margin-bottom: 25px;
  }

  .page-blog__cta-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px !important;
  }

  .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 20px !important;
  }

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

  .page-blog__article-grid {
    grid-template-columns: 1fr; /* Single column for articles */
    gap: 20px !important;
  }

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

  .page-blog__article-title {
    font-size: 1.15em !important;
  }

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

  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__faq-question {
    font-size: 1em !important;
    padding: 15px 20px !important;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px !important;
  }
}