/* General Styles */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #FFF3E6; /* Text Main */
  background: #0D0E12; /* Background */
  line-height: 1.6;
}

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

.page-blog__section-spacing {
  padding: 60px 0;
}

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFF3E6;
}

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

.page-blog__section-intro {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
  color: rgba(255, 243, 230, 0.8);
}

.page-blog__section-intro--light {
  color: rgba(255, 243, 230, 0.9);
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff; /* Ensure white text on brand color */
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #FF8C1A;
  border: 2px solid #A84F0C; /* Border */
}

.page-blog__btn-secondary:hover {
  background: rgba(255, 140, 26, 0.1);
  color: #FFB04D;
  border-color: #FFB04D;
  transform: translateY(-2px);
}

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-blog__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 500px; /* Adjust height as needed */
  overflow: hidden;
  margin-bottom: 40px;
}

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

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

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

.page-blog__description {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: rgba(255, 243, 230, 0.85);
}

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

/* Latest Posts Section */
.page-blog__latest-posts-section {
  background: #0D0E12;
}

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

.page-blog__post-card {
  background: #17191F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px 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(255, 140, 26, 0.3);
}

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

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

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

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

.page-blog__post-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 243, 230, 0.7);
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #FF8C1A;
  gap: 8px;
}

.page-blog__read-more time {
  font-weight: 400;
  color: rgba(255, 243, 230, 0.6);
}

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

/* Categories Section */
.page-blog__categories-section {
  background: #17191F; /* Card BG for dark section */
  border-top: 1px solid #A84F0C;
  border-bottom: 1px solid #A84F0C;
}

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

.page-blog__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #FFF3E6;
  background: rgba(255, 140, 26, 0.05);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 140, 26, 0.2);
  transition: all 0.3s ease;
}

.page-blog__category-card:hover {
  background: rgba(255, 140, 26, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.3);
}

.page-blog__category-thumbnail {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-blog__category-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #FFB04D;
}

/* CTA Banner Section */
.page-blog__cta-banner {
  background: #0D0E12;
  text-align: center;
}

.page-blog__cta-content {
  padding: 40px;
  background: #17191F; /* Card BG */
  border-radius: 15px;
  border: 1px solid #A84F0C; /* Border */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-blog__cta-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #FFB04D;
}

.page-blog__cta-description {
  font-size: 17px;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 30px;
  color: rgba(255, 243, 230, 0.8);
}

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

/* FAQ Section */
.page-blog__faq-section {
  background: #0D0E12;
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
}

details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF3E6;
}

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: rgba(255, 140, 26, 0.1);
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFB04D;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 140, 26, 0.05);
  border-radius: 0 0 5px 5px;
  color: rgba(255, 243, 230, 0.75);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-image-wrapper {
    height: 400px;
  }

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

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

  .page-blog__category-thumbnail {
    height: 100px;
  }

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

@media (max-width: 768px) {
  .page-blog__section-spacing {
    padding: 40px 0;
  }

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

  /* Hero Section */
  .page-blog__hero-section {
    padding-top: 10px; /* Consistent small top padding */
  }

  .page-blog__hero-image-wrapper {
    height: 300px;
    margin-bottom: 20px;
  }

  .page-blog__hero-image {
    object-fit: contain !important; /* Banner 849px contain */
  }

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

  .page-blog__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-blog__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Latest Posts Section */
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .page-blog__post-title {
    font-size: 20px;
  }

  .page-blog__post-excerpt {
    font-size: 14px;
  }

  .page-blog__view-all-button-wrapper {
    margin-top: 30px;
  }

  /* Categories Section */
  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .page-blog__category-card {
    padding: 15px;
    aspect-ratio: 1/1; /* Five entry aspect-ratio:1/1 */
    border: none !important; /* No border/box-shadow for categories on mobile */
    box-shadow: none !important;
  }

  .page-blog__category-thumbnail {
    height: 80px;
    margin-bottom: 10px;
  }

  .page-blog__category-title {
    font-size: 16px;
  }

  /* CTA Banner Section */
  .page-blog__cta-content {
    padding: 25px;
  }

  .page-blog__cta-title {
    font-size: 24px;
  }

  .page-blog__cta-description {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .page-blog__cta-buttons-inline {
    flex-direction: column;
    gap: 15px;
  }

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

  /* General image and button overflow prevention */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__post-card,
  .page-blog__category-card,
  .page-blog__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__cta-buttons,
  .page-blog__cta-buttons-inline {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Ensure no image filters are applied */
.page-blog img {
  filter: none !important;
}