/* Base styles for the blog page, adhering to BEM naming and dark theme */
.page-blog {
  color: #FFF1E8; /* Main text color for dark background */
  background-color: #140C0C; /* Overall page background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-blog__section-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #F3C54D; /* Gold color for titles */
  line-height: 1.2;
}

.page-blog__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF1E8;
  opacity: 0.8;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, shared.css handles body padding */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #140C0C;
}

.page-blog__hero-image {
  width: 100%;
  max-height: 70vh; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the area, may crop */
}

.page-blog__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  background: rgba(42, 18, 18, 0.85); /* Card BG with transparency */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #6A1E1E;
}

.page-blog__main-title {
  font-size: clamp(32px, 4vw, 56px); /* Responsive font size */
  font-weight: 800;
  color: #F3C54D; /* Gold color */
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-blog__hero-description {
  font-size: 20px;
  color: #FFF1E8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Primary Button */
.page-blog__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8; /* Text Main for buttons */
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
}

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

/* Secondary Button */
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #2A1212;
  color: #F3C54D; /* Gold color for secondary button text */
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  border: 2px solid #6A1E1E; /* Border color */
}

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

/* Link Button */
.page-blog__btn-link {
  color: #F3C54D;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__btn-link:hover {
  color: #FFB04A;
  text-decoration: underline;
}

/* Intro Section */
.page-blog__intro-section {
  padding: 60px 0;
  background-color: #140C0C;
}

.page-blog__dark-section {
  background-color: #140C0C;
  color: #FFF1E8;
}

.page-blog__intro-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-blog__intro-text {
  flex: 1;
}

.page-blog__intro-text p {
  font-size: 17px;
  margin-bottom: 20px;
  color: #FFF1E8;
}

.page-blog__intro-image {
  flex: 1;
  min-width: 400px;
}

.page-blog__intro-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
  background-color: #2A1212; /* Card BG */
}

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

.page-blog__category-card {
  background: #140C0C;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 25px;
  border: 1px solid #6A1E1E;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-blog__category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-blog__category-title {
  font-size: 22px;
  font-weight: 700;
  color: #F3C54D;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-blog__category-title a {
  color: inherit;
  text-decoration: none;
}

.page-blog__category-title a:hover {
  text-decoration: underline;
}

.page-blog__category-card p {
  font-size: 16px;
  color: #FFF1E8;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
  padding: 60px 0;
}

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

.page-blog__post-card {
  background: #2A1212; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #6A1E1E;
  display: flex;
  flex-direction: column;
}

.page-blog__post-thumbnail-link {
  display: block;
  overflow: hidden;
}

.page-blog__post-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

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

.page-blog__post-title {
  font-size: 24px;
  font-weight: 700;
  color: #F3C54D;
  margin-bottom: 10px;
}

.page-blog__post-title a {
  color: inherit;
  text-decoration: none;
}

.page-blog__post-title a:hover {
  text-decoration: underline;
}

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

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

.page-blog__btn-readmore {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-self: flex-start;
}

.page-blog__btn-readmore:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

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

/* Why Choose Section */
.page-blog__why-choose-section {
  padding: 60px 0;
  background-color: #2A1212; /* Card BG */
}

.page-blog__why-choose-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-blog__why-choose-image {
  flex: 1;
  min-width: 400px;
}

.page-blog__why-choose-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__why-choose-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-blog__list-item {
  background: #140C0C;
  border: 1px solid #6A1E1E;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__list-item:last-child {
  margin-bottom: 0;
}

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

.page-blog__list-item p {
  font-size: 16px;
  color: #FFF1E8;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E; /* Border color */
  overflow: hidden;
  background: #2A1212; /* 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: #F3C54D; /* Gold color for question text */
  font-weight: 600;
}

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: #3a1a1a;
}

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

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F3C54D;
  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: #140C0C;
  border-radius: 0 0 5px 5px;
  color: #FFF1E8;
  font-size: 16px;
}

.page-blog__faq-answer p {
  margin: 0;
  color: #FFF1E8;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #2A1212; /* Card BG */
}

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

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

/* General button responsive styles */
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-buttons,
.page-blog__button-group,
.page-blog__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: -80px;
  }

  .page-blog__intro-content,
  .page-blog__why-choose-content {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__intro-image,
  .page-blog__why-choose-image {
    min-width: unset;
    width: 100%;
    margin-bottom: 30px;
  }

  .page-blog__intro-text,
  .page-blog__why-choose-list {
    width: 100%;
  }

  .page-blog__section-title {
    font-size: 32px;
  }

  .page-blog__hero-description {
    font-size: 18px;
  }

  .page-blog__main-title {
    font-size: clamp(28px, 5vw, 48px);
  }

  .page-blog__category-card img {
    
  }

  .page-blog__post-card img {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 15px;
  }

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

  .page-blog__hero-image img {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-blog__hero-content {
    margin-top: 0; /* Remove overlap for mobile */
    padding: 30px 15px;
    border-radius: 0;
  }

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

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

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

  .page-blog__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* General images and containers */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__intro-section,
  .page-blog__categories-section,
  .page-blog__latest-posts-section,
  .page-blog__why-choose-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 40px 0;
  }

  .page-blog__intro-content,
  .page-blog__why-choose-content {
    gap: 30px;
  }

  .page-blog__intro-text p,
  .page-blog__list-item p {
    font-size: 15px;
  }

  .page-blog__categories-grid,
  .page-blog__posts-grid {
    grid-template-columns: 1fr; /* Single column layout for mobile */
    gap: 20px;
  }

  .page-blog__category-card img {
    
  }

  .page-blog__category-title,
  .page-blog__list-title {
    font-size: 20px;
  }

  .page-blog__post-card img {
    height: 200px;
  }

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

  .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 !important;
    padding-right: 15px !important;
  }

  .page-blog__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  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;
    width: 24px;
  }

  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }
}