/* 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: 60px; /* Ensure footer has space */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F2C14E; /* Primary Brand Color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.2rem;
  color: #FFF6D6;
  margin-bottom: 30px;
}

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

/* Section Titles and Descriptions */
.page-blog__section-title {
  font-size: 2.5rem;
  color: #F2C14E; /* Primary Brand Color */
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
}

.page-blog__section-description {
  font-size: 1.1rem;
  color: #FFF6D6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Latest Articles Section */
.page-blog__latest-articles {
  padding: 60px 0;
}

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

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

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px #FFD36B; /* Glow */
}

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

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

.page-blog__article-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-title a {
  color: #FFD36B; /* Auxiliary Brand Color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #F2C14E; /* Primary Brand Color */
}

.page-blog__article-meta {
  font-size: 0.9rem;
  color: #A0A0A0;
  margin-bottom: 15px;
}

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

.page-blog__read-more-btn {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button Gradient */
  color: #0A0A0A;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.page-blog__read-more-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #FFE082 0%, #E6B02B 100%);
}

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

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

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  justify-content: center;
}

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

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #FFD36B; /* Glow */
}

.page-blog__category-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.page-blog__category-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFF6D6;
}

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

.page-blog__cta-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog__cta-title {
  font-size: 2.8rem;
  color: #F2C14E; /* Primary Brand Color */
  margin-bottom: 20px;
}

.page-blog__cta-description {
  font-size: 1.2rem;
  color: #FFF6D6;
  margin-bottom: 40px;
}

.page-blog__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button Gradient */
  color: #0A0A0A;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0 10px;
  transition: background 0.3s ease, transform 0.3s ease;
}

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

.page-blog__btn-secondary {
  display: inline-block;
  background: transparent;
  color: #FFD36B; /* Auxiliary Brand Color */
  border: 2px solid #FFD36B; /* Auxiliary Brand Color */
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0 10px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

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

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

.page-blog__faq-list {
  max-width: 900px;
  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;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  color: #FFD36B; /* Auxiliary Brand Color */
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

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

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

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

.page-blog__faq-answer a {
  color: #F2C14E;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-blog__cta-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-blog__hero-section {
    padding: 10px 15px 40px;
  }

  .page-blog__hero-content {
    padding: 30px 20px;
  }

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

  .page-blog__hero-description {
    font-size: 1rem;
  }

  .page-blog__section-title {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 15px;
  }

  .page-blog__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-blog__latest-articles, .page-blog__categories-section, .page-blog__faq-section {
    padding: 40px 0;
  }

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

  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }

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

  .page-blog__article-title {
    font-size: 1.3rem;
  }

  .page-blog__article-excerpt {
    font-size: 0.95rem;
  }

  .page-blog__read-more-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .page-blog__category-icon {
    font-size: 2rem;
  }

  .page-blog__category-title {
    font-size: 1.1rem;
  }

  .page-blog__cta-banner {
    padding: 60px 0;
  }

  .page-blog__cta-title {
    font-size: 1.8rem;
  }

  .page-blog__cta-description {
    font-size: 1rem;
  }

  .page-blog__btn-primary, .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

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

  .page-blog__faq-toggle {
    font-size: 1.5rem;
  }

  .page-blog__faq-answer {
    font-size: 0.95rem;
    padding: 0 20px;
  }

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

  /* Mobile image response */
  .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-articles, .page-blog__categories-section, .page-blog__cta-banner, .page-blog__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-blog__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}