/* General styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
  line-height: 1.6;
}

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

.page-blog__section-title {
  font-size: 32px;
  color: #FFF1E8; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
}

/* Hero Section */
.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0;
  background-color: #140C0C; /* Background */
  position: relative;
  overflow: hidden;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #FFF1E8; /* Text Main */
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 18px;
  color: #FFF1E8;
  margin-bottom: 30px;
}

/* Buttons */
.page-blog__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn--primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #140C0C;
  border: none;
}

.page-blog__btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-blog__btn--secondary {
  background: #2A1212; /* Card BG */
  color: #FFF1E8; /* Text Main */
  border: 2px solid #6A1E1E; /* Border */
  margin-left: 20px;
}

.page-blog__btn--secondary:hover {
  background-color: #3e1b1b;
  border-color: #F3C54D; /* Gold */
  transform: translateY(-2px);
}

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

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

.page-blog__post-card {
  background-color: #2A1212; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #6A1E1E; /* Border */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-blog__post-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.page-blog__post-title a {
  color: #FFF1E8; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #F3C54D; /* Gold */
}

.page-blog__post-meta {
  font-size: 14px;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 16px;
  color: #FFF1E8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-btn {
  display: inline-block;
  font-size: 16px;
  color: #FFB04A;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__read-more-btn:hover {
  color: #F3C54D; /* Gold */
  text-decoration: underline;
}

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

/* Categories Section */
.page-blog__categories {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item a {
  display: block;
  padding: 12px 25px;
  background-color: #2A1212; /* Card BG */
  color: #FFF1E8; /* Text Main */
  text-decoration: none;
  border-radius: 30px;
  border: 1px solid #6A1E1E; /* Border */
  font-size: 17px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-blog__category-item a:hover {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #140C0C;
  border-color: transparent;
}

.page-blog__category-item--inactive {
  opacity: 0.7;
  cursor: default;
}

.page-blog__category-item--inactive:hover {
  background-color: #2A1212; /* Card BG */
  color: #FFF1E8; /* Text Main */
  border-color: #6A1E1E; /* Border */
}

/* Featured Article Section */
.page-blog__featured-article-section {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

.page-blog__featured-content {
  display: flex;
  gap: 40px;
  align-items: center;
  background-color: #2A1212; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #6A1E1E; /* Border */
  padding: 30px;
}

.page-blog__featured-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.page-blog__featured-text {
  width: 50%;
}

.page-blog__featured-text p {
  font-size: 17px;
  color: #FFF1E8;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Why Choose Section */
.page-blog__why-choose {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

.page-blog__benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.page-blog__benefit-item {
  background-color: #2A1212; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #6A1E1E; /* Border */
}

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

.page-blog__benefit-description {
  font-size: 16px;
  color: #FFF1E8;
  line-height: 1.7;
}

/* Bottom CTA Section */
.page-blog__cta-section--bottom {
  text-align: center;
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

.page-blog__cta-description {
  font-size: 18px;
  color: #FFF1E8;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
  box-shadow: 0 4px 10px 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: #3e1b1b;
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF1E8; /* Text Main */
}
.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFB04A; /* Gold color from button gradient */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: #2A1212; /* Card BG */
  border-radius: 0 0 12px 12px;
  color: #FFF1E8;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-blog__featured-content {
    flex-direction: column;
    padding: 20px;
  }
  .page-blog__featured-image,
  .page-blog__featured-text {
    width: 100%;
  }
  .page-blog__benefit-list {
    grid-template-columns: 1fr;
  }
  .page-blog__btn--secondary {
    margin-left: 0;
    margin-top: 15px;
  }
  .page-blog__hero-content {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-blog__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-blog__hero-image {
    max-height: 300px !important;
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-blog__btn {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__hero-content .page-blog__btn--primary,
  .page-blog__hero-content .page-blog__btn--secondary {
    margin-left: 0;
    margin-bottom: 15px;
  }

  .page-blog__hero-content .page-blog__btn--secondary {
    margin-top: 0;
  }

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

  .page-blog__post-card {
    margin-bottom: 0;
  }

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

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

  .page-blog__category-list {
    flex-direction: column;
    align-items: center;
  }

  .page-blog__category-item a {
    font-size: 16px;
    padding: 10px 20px;
    width: 100%;
    max-width: 250px;
    text-align: center;
  }

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

  .page-blog__featured-text p {
    font-size: 15px;
  }

  .page-blog__benefit-item {
    padding: 25px;
  }

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

  .page-blog__benefit-description {
    font-size: 15px;
  }

  .page-blog__cta-description {
    font-size: 16px;
  }

  .page-blog__cta-section--bottom .page-blog__btn--primary,
  .page-blog__cta-section--bottom .page-blog__btn--secondary {
    margin-left: 0;
    margin-top: 15px;
  }

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

  /* General image and button responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-blog__hero-section,
  .page-blog__latest-posts,
  .page-blog__categories,
  .page-blog__featured-article-section,
  .page-blog__why-choose,
  .page-blog__cta-section--bottom,
  .page-blog__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-blog__posts-grid,
  .page-blog__category-list,
  .page-blog__benefit-list,
  .page-blog__cta-section--bottom .page-blog__hero-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center !important;
  }
  .page-blog__cta-section--bottom .page-blog__btn--primary,
  .page-blog__cta-section--bottom .page-blog__btn--secondary {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}