/* style/blog.css */

/* Base styles for the blog page, ensuring light text on dark body background */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark background */
  background-color: #0A0A0A; /* Body background color */
}

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

.page-blog__section-title,
.page-blog__main-title,
.page-blog__cta-title {
  color: #F2C14E;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__section-description,
.page-blog__cta-description,
.page-blog__subtitle {
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px 40px;
  background: #0A0A0A;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 40px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(242, 193, 78, 0.4);
}

.page-blog__hero-content {
  text-align: center;
  max-width: 900px;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-blog__btn-secondary {
  background: transparent;
  color: #F2C14E;
  border: 2px solid #F2C14E;
  margin: 0 10px;
}

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

/* Article Grid */
.page-blog__articles-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

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

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.5);
}

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

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

.page-blog__card-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  min-height: 60px; /* Ensure consistent height for titles */
}

.page-blog__card-title a {
  color: #F2C14E; /* Title link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: #FFD36B;
}

.page-blog__card-meta {
  font-size: 0.9em;
  color: #FFD36B;
  margin-bottom: 15px;
}

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

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

.page-blog__read-more:hover {
  color: #FFD36B;
  text-decoration: underline;
}

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

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 20px;
  background: #111111;
  text-align: center;
  border-top: 1px solid #3A2A12;
  border-bottom: 1px solid #3A2A12;
}

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

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-blog__faq-list {
  margin-top: 40px;
}

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  color: #F2C14E;
  transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-blog__faq-q-text {
  margin: 0;
  font-size: 1.1em;
  color: #F2C14E;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD36B;
}

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

.page-blog__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

.page-blog__faq-item.active .page-blog__faq-answer {
  max-height: 1000px !important; /* Sufficiently large for content */
  padding: 15px 20px;
}

.page-blog__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

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

  .page-blog__hero-section {
    padding: 60px 15px 30px;
  }

  .page-blog__hero-image-wrapper {
    margin-bottom: 30px;
  }

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

  .page-blog__subtitle,
  .page-blog__section-description,
  .page-blog__cta-description {
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-blog__articles-section,
  .page-blog__cta-section,
  .page-blog__faq-section {
    padding: 40px 0;
  }

  .page-blog__container {
    padding: 0 15px;
  }

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

  .page-blog__article-card {
    margin: 0 auto;
    max-width: 400px;
  }

  .page-blog__article-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
  }

  .page-blog__faq-question {
    padding: 15px;
  }

  .page-blog__faq-q-text {
    font-size: 1em;
  }

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

  .page-blog__faq-item.active .page-blog__faq-answer {
    padding: 10px 15px;
  }

  /* General image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}