/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

.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;
  line-height: 1.2;
  color: #F2C14E; /* Primary color */
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.page-blog__section-subtitle {
  font-size: 18px;
  color: #FFD36B; /* Accent color */
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: center;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__read-more-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  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 for light button */
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #FFE87A 0%, #EEC12D 100%);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

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

.page-blog__read-more-btn {
  background: #3A2A12; /* Border color as background */
  color: #FFD36B;
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 5px;
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

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

.page-blog__main-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  color: #FFD36B; /* Glow color */
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  text-shadow: 0 0 15px rgba(255, 211, 107, 0.6);
}

.page-blog__hero-content .page-blog__description {
  font-size: 20px;
  color: #FFF6D6;
  margin-bottom: 40px;
}

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

/* Blog Posts Section */
.page-blog__posts-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

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

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

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

.page-blog__card-link {
  display: block;
}

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

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

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

.page-blog__card-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
}

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

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

.page-blog__card-excerpt {
  font-size: 16px;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

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

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG */
  color: #FFF6D6;
}

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

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

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

.page-blog__faq-question:hover {
  background-color: #1a1a1a;
}

.page-blog__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #F2C14E;
}

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

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

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

/* Call to Action Section */
.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0A0A0A;
}

.page-blog__cta-section .page-blog__section-title {
  color: #F2C14E;
}

.page-blog__cta-section .page-blog__description {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 20px;
  color: #FFF6D6;
  margin-bottom: 40px;
}

.page-blog__cta-section .page-blog__btn-primary {
  font-size: 18px;
  padding: 16px 32px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(32px, 4.5vw, 56px);
  }
  .page-blog__hero-content .page-blog__description {
    font-size: 18px;
  }
  .page-blog__posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__card-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-blog__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }
  .page-blog__hero-content .page-blog__description {
    font-size: 16px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog__read-more-btn,
  .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__posts-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 50px 0;
  }
  .page-blog__card-image {
    height: 180px;
  }
  .page-blog__blog-card,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-blog__faq-answer {
    padding: 0 20px;
  }
  .page-blog__faq-item.active .page-blog__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: clamp(24px, 8vw, 36px);
  }
  .page-blog__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-blog__card-content {
    padding: 20px;
  }
  .page-blog__card-title {
    font-size: 18px;
  }
  .page-blog__card-excerpt {
    font-size: 14px;
  }
}