/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  padding-bottom: 50px; /* Add some padding at the bottom */
}

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

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  text-align: center;
  color: #FFF6D6;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FFD36B 0%, #F2C14E 100%);
  border-radius: 2px;
}

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

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.4);
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  color: #FFF6D6;
}

.page-blog__main-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-blog__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.3);
  border: none;
  cursor: pointer;
}

.page-blog__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.5);
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
  padding: 60px 0;
}

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

.page-blog__post-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 211, 107, 0.2);
}

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

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

.page-blog__post-date {
  font-size: 14px;
  color: #FFD36B; /* Glow */
  margin-bottom: 10px;
  display: block;
}

.page-blog__post-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog__post-title a {
  color: #FFF6D6;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-blog__read-more-button {
  display: inline-block;
  color: #FFD36B;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #FFD36B;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more-button:hover {
  background-color: #FFD36B;
  color: #111111;
}

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

.page-blog__cta-button--secondary {
  background: none;
  border: 2px solid #F2C14E;
  color: #F2C14E;
  box-shadow: none;
}

.page-blog__cta-button--secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 195, 78, 0.3);
}

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
  background-color: rgba(17, 17, 17, 0.7); /* Slightly lighter background for contrast */
  border-top: 1px solid #3A2A12;
  border-bottom: 1px solid #3A2A12;
}

.page-blog__categories-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 -10px;
}

.page-blog__category-item {
  margin: 10px;
}

.page-blog__category-item a {
  display: block;
  padding: 12px 25px;
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 25px;
  color: #FFF6D6;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.page-blog__category-item a:hover {
  background-color: #F2C14E;
  border-color: #F2C14E;
  color: #111111;
}

/* Featured Articles Section */
.page-blog__featured-articles-section {
  padding: 60px 0;
}

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

.page-blog__cta-content-wrapper {
  max-width: 900px;
}

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

.page-blog__cta-description {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

.page-blog__faq-question:hover {
  background-color: rgba(255, 211, 107, 0.1);
}

.page-blog__faq-title {
  margin: 0;
  font-size: 18px;
  flex-grow: 1;
}

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

.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: #ccc;
}

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

.page-blog__faq-answer p {
  margin: 0;
  font-size: 16px;
}

/* About Blog Section */
.page-blog__about-blog-section {
  padding: 60px 0;
  background-color: rgba(17, 17, 17, 0.7); /* Slightly lighter background for contrast */
}

.page-blog__about-description {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 20px;
  text-align: justify;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 20px 15px;
  }
  .page-blog__main-title {
    font-size: clamp(30px, 4.5vw, 50px);
  }
  .page-blog__hero-description {
    font-size: clamp(15px, 1.8vw, 18px);
  }
  .page-blog__posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
  }
  .page-blog__hero-section {
    min-height: 400px;
    padding-bottom: 40px;
  }
  .page-blog__main-title {
    font-size: clamp(28px, 6vw, 48px);
  }
  .page-blog__hero-description {
    font-size: 15px;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__post-image {
    height: 180px;
  }
  .page-blog__post-title {
    font-size: 20px;
  }
  .page-blog__post-excerpt {
    font-size: 15px;
  }
  .page-blog__read-more-button {
    padding: 7px 12px;
    font-size: 14px;
  }
  .page-blog__categories-list {
    flex-direction: column;
    align-items: center;
  }
  .page-blog__category-item {
    width: 100%;
    margin: 5px 0;
  }
  .page-blog__category-item a {
    text-align: center;
  }
  .page-blog__cta-description {
    font-size: 16px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__faq-question {
    font-size: 16px;
    padding: 15px;
  }
  .page-blog__faq-title {
    font-size: 16px;
  }
  .page-blog__faq-answer p {
    font-size: 15px;
  }
  .page-blog__about-description {
    font-size: 15px;
  }

  /* Mobile responsive for images */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__latest-posts-section,
  .page-blog__categories-section,
  .page-blog__featured-articles-section,
  .page-blog__cta-section,
  .page-blog__faq-section,
  .page-blog__about-blog-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Specific padding for hero section to ensure small top margin */
  .page-blog__hero-section {
    padding-top: 10px !important;
  }

  /* Mobile responsive for buttons */
  .page-blog__cta-button,
  .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-left: 15px;
    padding-right: 15px;
  }
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
  }
}