/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  padding-bottom: 50px; /* Ensure space above footer */
}

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

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

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
}

.page-blog__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-blog__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 10px 0 80px 0; /* Small top padding, larger bottom for content */
  min-height: 600px;
}

.page-blog__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

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

.page-blog__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  border: none;
}

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

.page-blog__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Complementary to button gradient */
  border: 2px solid #2AD16F; /* Border */
}

.page-blog__btn-secondary:hover {
  background: #2AD16F;
  color: #08160F; /* Background */
  transform: translateY(-2px);
}

/* Guide Section */
.page-blog__guide-section {
  background-color: #11271B; /* Card BG */
}

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

.page-blog__step-item {
  text-align: center;
  background-color: #0A4B2C; /* Deep Green for steps */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__step-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-blog__step-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-blog__step-description {
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-blog__list-item-icon {
  color: #2AD16F; /* Green for checkmark */
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

.page-blog__list-item-title {
  color: #F2FFF6; /* Text Main */
}

/* Why Choose Section */
.page-blog__why-choose-section {
  background-color: #08160F; /* Background */
}

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

.page-blog__feature-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__feature-icon {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-blog__feature-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-blog__feature-description {
  color: #A7D9B8; /* Text Secondary */
}

/* Related Articles Section */
.page-blog__related-articles-section {
  background-color: #0A4B2C; /* Deep Green */
  padding-bottom: 80px;
}

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

.page-blog__article-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
}

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
}

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

.page-blog__article-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__article-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
}

.page-blog__article-title a:hover {
  color: #2AD16F;
}

.page-blog__article-meta {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-blog__article-summary {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: #2AD16F;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

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

/* FAQ Section */
.page-blog__faq-section {
  background-color: #11271B; /* Card BG */
}

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

.page-blog__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  font-size: 1.2em;
  outline: none;
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-blog__faq-answer {
  padding: 0 25px 20px 25px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1.1em;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px !important;
  }

  .page-blog__section {
    padding: 40px 0 !important;
  }

  .page-blog__section-title {
    font-size: 2em !important;
    margin-bottom: 30px !important;
  }

  .page-blog__sub-title {
    font-size: 1.5em !important;
  }

  .page-blog__hero-section {
    min-height: 400px !important;
    padding: 10px 0 60px 0 !important;
  }

  .page-blog__main-title {
    font-size: clamp(2em, 8vw, 2.5em) !important;
  }

  .page-blog__hero-description {
    font-size: 1em !important;
  }

  .page-blog__cta-group {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .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__guide-steps,
  .page-blog__features-grid,
  .page-blog__article-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-blog__step-item,
  .page-blog__feature-card,
  .page-blog__article-card {
    padding: 20px !important;
  }

  /* Mobile image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Adjust padding for sections on mobile to prevent overflow */
  .page-blog__guide-section,
  .page-blog__why-choose-section,
  .page-blog__related-articles-section,
  .page-blog__faq-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-blog__faq-item summary {
    font-size: 1em !important;
    padding: 15px 20px !important;
  }

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