.page-blog {
  font-family: 'Arial', sans-serif;
  color: #FFF6D6; /* Text Main color on dark background */
  background-color: #0A0A0A; /* Background color */
}

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

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

.page-blog__hero-image-container {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-blog__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  color: #F2C14E; /* Primary color for main title */
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-blog__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Titles and Descriptions */
.page-blog__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #F2C14E;
  text-align: center;
  margin-bottom: 25px;
  padding-top: 40px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-blog__section-description {
  font-size: 1.1em;
  line-height: 1.7;
  color: #FFF6D6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Buttons */
.page-blog__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4);
}

.page-blog__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E;
  border: 2px solid #F2C14E;
}

.page-blog__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4);
}

/* Latest Posts Section */
.page-blog__latest-posts-section,
.page-blog__categories-section,
.page-blog__featured-section,
.page-blog__why-read-section,
.page-blog__faq-section {
  padding: 60px 0;
}

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

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

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

.page-blog__post-thumbnail {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-blog__post-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

.page-blog__post-meta {
  font-size: 0.9em;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1em;
  line-height: 1.6;
  color: #FFF6D6;
  margin-bottom: 20px;
}

.page-blog__read-more-button {
  padding: 10px 20px;
  font-size: 0.95em;
  border-radius: 20px;
}

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

/* Categories Section */
.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.page-blog__category-card {
  background-color: #111111;
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #FFF6D6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #3A2A12;
}

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

.page-blog__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-blog__category-title {
  font-size: 1.1em;
  font-weight: 600;
  color: #F2C14E;
}

/* Featured Section */
.page-blog__featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 50px;
}

.page-blog__featured-item {
  background-color: #111111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: #FFF6D6;
  border: 1px solid #3A2A12;
}

.page-blog__featured-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.page-blog__featured-content {
  padding: 30px;
}

.page-blog__featured-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

.page-blog__featured-excerpt {
  font-size: 1.05em;
  line-height: 1.7;
  color: #FFF6D6;
  margin-bottom: 25px;
}

/* Why Read Section */
.page-blog__why-read-section p {
  text-align: left;
  margin-bottom: 20px;
  padding: 0 10px;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-blog__dark-section {
  background-color: #F2C14E; /* Primary color */
  color: #111111; /* Dark text on primary background */
  border-radius: 15px;
  padding: 50px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid #FFD36B;
}

.page-blog__dark-section .page-blog__section-title {
  color: #111111;
  text-shadow: none;
}

.page-blog__dark-section .page-blog__cta-description {
  color: #111111;
  margin-bottom: 40px;
}

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

.page-blog__dark-section .page-blog__btn-primary {
  background: #111111;
  color: #F2C14E;
  border: 2px solid #111111;
}

.page-blog__dark-section .page-blog__btn-primary:hover {
  background: #0A0A0A;
  color: #FFD36B;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.page-blog__dark-section .page-blog__btn-secondary {
  background: #F2C14E;
  color: #111111;
  border: 2px solid #111111;
}

.page-blog__dark-section .page-blog__btn-secondary:hover {
  background: #FFD36B;
  color: #0A0A0A;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__faq-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 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;
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

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

.page-blog__faq-title {
  font-size: 1.15em;
  font-weight: 600;
  color: #F2C14E;
  margin: 0;
}

.page-blog__faq-toggle {
  font-size: 1.8em;
  font-weight: 300;
  color: #FFD36B;
  transition: transform 0.3s ease;
  line-height: 1;
}

.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;
  line-height: 1.7;
  font-size: 1em;
}

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

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

/* Responsive Design */
@media (min-width: 769px) {
  .page-blog__featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.4em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__hero-image-container {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-blog__main-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__section-description {
    font-size: 0.95em;
  }
  
  .page-blog__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* Ensure minimal top padding */
  }

  /* Images */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-blog__hero-image-container,
  .page-blog__post-thumbnail,
  .page-blog__featured-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Cards and Containers */
  .page-blog__container,
  .page-blog__latest-posts-section,
  .page-blog__categories-section,
  .page-blog__featured-section,
  .page-blog__why-read-section,
  .page-blog__cta-section,
  .page-blog__faq-section,
  .page-blog__post-card,
  .page-blog__category-card,
  .page-blog__featured-item,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__posts-grid,
  .page-blog__categories-grid,
  .page-blog__featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 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 {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__dark-section {
    padding: 30px 15px;
  }

  .page-blog__faq-question {
    padding: 15px 20px;
  }

  .page-blog__faq-answer {
    padding: 0 20px;
  }

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

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.4em;
  }
  .page-blog__hero-description {
    font-size: 0.9em;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__featured-title {
    font-size: 1.3em;
  }
  .page-blog__cta-button {
    padding: 12px 20px;
    font-size: 1em;
  }
}