/* General styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main on dark background */
  background-color: #0A0A0A; /* Background color */
}

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

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  color: #F2C14E; /* Main color for titles */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-blog__section-description {
  font-size: 18px;
  text-align: center;
  color: #FFF6D6;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #0A0A0A;
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: 600px; /* Fixed height for desktop */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover for desktop, contain for mobile */
  display: block;
}

.page-blog__hero-content {
  text-align: center;
  padding: 40px 15px;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem); /* Responsive font size */
  font-weight: 700;
  color: #FFD36B; /* Glow color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-blog__hero-description {
  font-size: 1.15rem;
  color: #FFF6D6;
  margin-bottom: 30px;
  line-height: 1.5;
}

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

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

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

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

.page-blog__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  color: #FFD36B;
}

/* Posts Section */
.page-blog__posts-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-blog__post-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(242, 193, 78, 0.2);
}

.page-blog__post-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-blog__post-card img {
  width: 100%;
  height: 220px; /* Fixed height for card images */
  object-fit: cover;
  display: block;
}

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

.page-blog__post-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFD36B; /* Auxiliary color for post titles */
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-blog__post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #F2C14E; /* Main color for meta info */
  margin-top: auto; /* Push to bottom */
}

.page-blog__read-more {
  font-weight: 600;
}

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

/* About Us Section */
.page-blog__about-us-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG */
  border-top: 1px solid #3A2A12;
}

.page-blog__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-blog__text-content {
  flex: 1;
}

.page-blog__text-content p {
  font-size: 17px;
  color: #FFF6D6;
  margin-bottom: 20px;
}

.page-blog__image-content {
  flex: 1;
  text-align: center;
}

.page-blog__image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Why Choose Section */
.page-blog__why-choose-section {
  padding: 80px 0;
  background-color: #0A0A0A;
  border-top: 1px solid #3A2A12;
}

.page-blog__features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.page-blog__feature-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 211, 107, 0.2);
}

.page-blog__feature-item img {
  max-width: 100%;
   /* Fixed height for feature images */
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__feature-title {
  font-size: 24px;
  font-weight: 600;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-blog__feature-item p {
  font-size: 16px;
  color: #FFF6D6;
  line-height: 1.6;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: #111111;
  border-top: 1px solid #3A2A12;
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12;
  overflow: hidden;
  background: #0A0A0A;
  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 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  background: #111111; /* Card BG for summary */
}
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: #1a1a1a;
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD36B; /* Glow color for question text */
}
.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Main color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #0A0A0A; /* Background for answer */
  border-radius: 0 0 10px 10px;
  color: #FFF6D6;
  font-size: 16px;
  line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-blog__features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-blog__hero-image {
    height: 500px;
  }
  .page-blog__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }
}

@media (max-width: 768px) {
  /* All images general mobile rule */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* All containers general mobile rule */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  /* HERO Section */
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
  }

  .page-blog__hero-image {
    height: 300px; /* Smaller height for mobile hero */
    width: 100%;
    max-width: 100% !important;
    overflow: hidden;
    box-sizing: border-box !important;
  }

  .page-blog__hero-image img {
    object-fit: contain !important; /* Contain for mobile */
    aspect-ratio: unset !important; /* Reset aspect ratio */
  }

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

  .page-blog__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

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

  /* Buttons */
  .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;
  }
  
  /* Button containers mobile */
  .page-blog__hero-content .page-blog__btn-primary,
  .page-blog__view-all .page-blog__btn-secondary,
  .page-blog__text-content .page-blog__btn-secondary {
    margin: 0 auto;
    display: block;
  }

  /* Posts Section */
  .page-blog__posts-section {
    padding: 40px 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-blog__posts-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
    margin-top: 30px;
  }

  .page-blog__post-card img {
     /* Adjust card image height for mobile */
  }

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

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

  /* About Us Section */
  .page-blog__about-us-section {
    padding: 50px 0;
  }

  .page-blog__content-wrapper {
    flex-direction: column; /* Stack content for mobile */
    gap: 30px;
  }

  /* Why Choose Section */
  .page-blog__why-choose-section {
    padding: 50px 0;
  }

  .page-blog__features-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
    margin-top: 30px;
  }

  .page-blog__feature-item img {
    
  }

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

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

  .page-blog__faq-list {
    margin-top: 30px;
  }

  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;
    margin-left: 10px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }
}