/* Base styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main for dark body background */
  background-color: var(--color-bg, #0D0E12); /* Body 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, 38px);
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  color: #FF8C1A;
  line-height: 1.2;
}

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

.page-blog__section-description {
  font-size: clamp(16px, 2vw, 18px);
  text-align: center;
  margin-bottom: 40px;
  color: #b0b0b0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__section-description--light {
  color: #e0e0e0;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 12px 25px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
}

.page-blog__btn-secondary {
  background: #17191F;
  color: #FF8C1A;
  border: 2px solid #A84F0C;
}

.page-blog__btn-secondary:hover {
  background: #252833;
  color: #FFA53A;
}

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  background-color: #0D0E12;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-blog__hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.page-blog__main-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 20px;
  color: #FFF3E6;
  line-height: 1.1;
}

.page-blog__intro-text {
  font-size: clamp(18px, 2.2vw, 22px);
  margin-bottom: 30px;
  color: #e0e0e0;
}

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 80px 0;
  background-color: #1a1c22; /* Light-ish background for content */
  color: #FFF3E6;
}

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

.page-blog__post-card {
  background-color: #17191F; /* Card BG */
  border-radius: 12px;
  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 #A84F0C; /* Border */
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-blog__post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-blog__post-thumbnail-wrapper {
  width: 100%;
  height: 225px; /* Fixed height for thumbnails */
  overflow: hidden;
}

.page-blog__post-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-blog__post-card:hover .page-blog__post-thumbnail {
  transform: scale(1.05);
}

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

.page-blog__post-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFF3E6;
  line-height: 1.3;
}

.page-blog__post-meta {
  font-size: 14px;
  color: #FF8C1A;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 16px;
  color: #b0b0b0;
  margin-bottom: 0;
}

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

.page-blog__view-all-button {
  min-width: 200px;
}

/* Categories Section */
.page-blog__categories {
  padding: 80px 0;
  background-color: #0D0E12;
}

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

.page-blog__category-card {
  background-color: #17191F;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #FFF3E6;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid #A84F0C;
}

.page-blog__category-card:hover {
  background-color: #252833;
  transform: translateY(-3px);
}

.page-blog__category-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FF8C1A;
}

.page-blog__category-desc {
  font-size: 15px;
  color: #b0b0b0;
}

/* Why Choose Section */
.page-blog__why-choose {
  padding: 80px 0;
  background-color: #1a1c22;
  color: #FFF3E6;
}

.page-blog__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
}

.page-blog__benefit-item {
  background-color: #17191F;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C;
}

.page-blog__benefit-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FF8C1A;
}

.page-blog__benefit-text {
  font-size: 16px;
  color: #b0b0b0;
}

/* FAQ Section */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background: #17191F;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
  display: none;
}
details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: #252833;
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}
.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FF8C1A;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: #17191F;
  border-top: 1px solid #A84F0C;
  border-radius: 0 0 12px 12px;
}
.page-blog__faq-answer p {
  color: #b0b0b0;
  font-size: 16px;
  margin-top: 15px;
}

.page-blog__faq-section {
  padding: 80px 0;
  background-color: #0D0E12;
}

/* Bottom CTA Section */
.page-blog__cta-bottom {
  padding: 80px 0;
  text-align: center;
  background-color: #1a1c22;
}

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

/* General image styling */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 0 15px;
  }

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

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

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

  .page-blog__post-thumbnail-wrapper {
    height: 200px;
  }
}

@media (max-width: 768px) {
  /* Top section top padding */
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
  }

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

  /* General content sections */
  .page-blog__latest-posts,
  .page-blog__categories,
  .page-blog__why-choose,
  .page-blog__faq-section,
  .page-blog__cta-bottom {
    padding: 50px 0;
  }

  .page-blog__section-description {
    margin-bottom: 30px;
  }

  /* Image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__hero-image-wrapper,
  .page-blog__post-thumbnail-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0;
  }

  .page-blog__post-thumbnail-wrapper {
    height: 180px;
  }

  /* Buttons responsiveness */
  .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-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  /* FAQ */
  details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .page-blog__faq-qtext { font-size: 16px; }
  .page-blog__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 24px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }

  .page-blog__faq-answer p {
    font-size: 15px;
  }

  /* Card and section padding */
  .page-blog__post-card,
  .page-blog__category-card,
  .page-blog__benefit-item {
    padding: 20px;
  }

  .page-blog__hero-content {
    padding: 0 15px;
  }

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