/* style/blog.css */
/* Base styles for the blog page, scoped to .page-blog */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main color for dark background */
  background-color: #08160F; /* Background color */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  background-color: #08160F; /* Ensure background matches body */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and text */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-blog__hero-content {
  max-width: 900px;
  width: 100%;
  padding: 0 15px;
  z-index: 1; /* Ensure content is above image if any overlap */
}

.page-blog__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F2C14E; /* Gold color for main title */
  margin-bottom: 20px;
  /* No fixed font-size for H1 */
}

.page-blog__intro-description {
  font-size: 1.15em;
  color: #A7D9B8; /* Text Secondary color */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Content Sections */
.page-blog__content-section {
  padding: 60px 0;
  background-color: #08160F; /* Default section background */
}

.page-blog__dark-section {
  background-color: #11271B; /* Card BG color */
  color: #F2FFF6;
}

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

.page-blog__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #F2C14E; /* Gold color for section titles */
  margin-bottom: 30px;
  text-align: center;
}

.page-blog p {
  margin-bottom: 15px;
  color: #F2FFF6; /* Default paragraph text color */
}

.page-blog strong {
  color: #F2C14E; /* Highlight keywords with Gold */
}

.page-blog__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 800px; /* Example max-width for content images */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Lists */
.page-blog__list,
.page-blog__sub-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #F2FFF6;
}

.page-blog__list li,
.page-blog__sub-list li {
  margin-bottom: 8px;
}

.page-blog__list.page-blog__list--ordered {
  list-style-type: decimal;
}

/* Call to Action Buttons */
.page-blog__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Gold color */
  border: 2px solid #F2C14E; /* Border color */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__btn-secondary:hover {
  background: #F2C14E; /* Gold color */
  color: #08160F; /* Dark background color for contrast */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #08160F;
}

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

.page-blog__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: #F2FFF6;
  background-color: #11271B;
  user-select: none;
  list-style: none; /* For details/summary */
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #F2C14E; /* Gold color for toggle */
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

/* For details tag, the content is shown by default when open */
.page-blog__faq-item[open] .page-blog__faq-answer {
  max-height: 1000px; /* Sufficiently large to show content */
  transition: max-height 0.5s ease-in;
}

.page-blog__faq-item[open] .page-blog__faq-question {
  border-bottom: 1px solid #2E7A4E;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.8em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

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

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

  .page-blog__intro-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-blog__container {
    padding: 0 15px !important; /* Ensure padding for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  /* Images responsive for mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure image containers also adapt */
  .page-blog__hero-image-wrapper,
  .page-blog__image-content-wrapper { /* If I had a dedicated wrapper for content images */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsive for mobile */
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
}