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

.page-blog__hero-section {
  background: linear-gradient(135deg, #F2C14E, #FFD36B);
  padding-bottom: 60px;
  padding-top: var(--header-offset, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 15px;
  position: relative;
  z-index: 2;
}

.page-blog__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #0A0A0A;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.page-blog__hero-description {
  font-size: 1.15rem;
  color: #333333;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15; /* Subtly blend with the gradient background */
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-blog__btn-secondary {
  background: #111111; /* Card BG */
  color: #FFD86A; /* Complementary gold text */
  border: 2px solid #3A2A12; /* Border */
}

.page-blog__btn-secondary:hover {
  transform: translateY(-2px);
  background: #0A0A0A;
}

.page-blog__categories-section,
.page-blog__latest-articles,
.page-blog__join-cta-section,
.page-blog__faq-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-blog__categories-title,
.page-blog__latest-articles-title,
.page-blog__join-cta-title,
.page-blog__faq-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__categories-description,
.page-blog__latest-articles-description,
.page-blog__join-cta-description,
.page-blog__faq-description {
  font-size: 1.1rem;
  color: #FFF6D6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-blog__category-card,
.page-blog__article-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #FFF6D6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

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

.page-blog__category-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 5px;
}

.page-blog__category-name {
  font-size: 1.3rem;
  color: #F2C14E;
  font-weight: bold;
}

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

.page-blog__article-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #3A2A12;
}

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

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

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

.page-blog__read-more-btn {
  display: inline-block;
  color: #FFD36B; /* Glow */
  font-weight: bold;
  text-decoration: underline;
  margin-top: auto;
}

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

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

.page-blog__view-all-btn {
  padding: 12px 25px;
  font-size: 1rem;
}

.page-blog__join-cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 15px;
  padding: 50px;
  text-align: center;
}

.page-blog__join-cta-content {
  max-width: 800px;
}

.page-blog__join-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog__join-cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-blog__faq-container {
  margin-top: 30px;
}

.page-blog__faq-item {
  background: #111111; /* Card BG */
  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;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #F2C14E;
  background: #1A1A1A;
  transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
  background-color: #2A2A2A;
}

.page-blog__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  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 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #FFF6D6;
  font-size: 0.95rem;
}

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

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-blog__categories-section,
  .page-blog__latest-articles,
  .page-blog__join-cta-section,
  .page-blog__faq-section {
    padding: 15px;
  }
  .page-blog__category-grid,
  .page-blog__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-blog__join-cta-section {
    flex-direction: column;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__hero-section {
    padding-bottom: 40px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding top */
  }
  .page-blog__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-blog__hero-description {
    font-size: 0.95rem;
  }
  .page-blog__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__category-grid,
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__categories-title,
  .page-blog__latest-articles-title,
  .page-blog__join-cta-title,
  .page-blog__faq-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
  .page-blog__categories-description,
  .page-blog__latest-articles-description,
  .page-blog__join-cta-description,
  .page-blog__faq-description {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  .page-blog__category-card,
  .page-blog__article-card,
  .page-blog__join-cta-section,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__category-icon {
    width: 60px;
    height: 60px;
  }
  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-blog__faq-answer {
    padding: 0 20px;
  }
  .page-blog__faq-item.active .page-blog__faq-answer {
    padding: 10px 20px;
  }
  .page-blog__join-cta-image {
    order: -1; /* Move image above text on mobile */
  }
}