/* style/blog.css */
/* Body background from shared.css: var(--background, #08160F) */

.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main - light color for dark background */
  background-color: #08160F; /* Background color */
}

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

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

.page-blog__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #F2FFF6;
}

.page-blog__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height to prevent image from being too tall */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  max-width: 1200px; /* Display width */
  max-height: 675px; /* Display height */
}

.page-blog__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
  color: #F2FFF6;
}

.page-blog__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
}

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

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

.page-blog__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Bright green from button gradient */
  border: 2px solid #2AD16F;
}

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

/* Intro Section */
.page-blog__intro-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green for contrast */
  color: #F2FFF6;
}

.page-blog__intro-section p {
  font-size: 1.05em;
  margin-bottom: 1em;
  text-align: justify;
  color: #A7D9B8;
}

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

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

.page-blog__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background-color: #11271B;
  padding: 20px;
}

.page-blog__category-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  margin-bottom: 15px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-blog__category-title {
  font-size: 1.5em;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-blog__category-text {
  font-size: 0.95em;
  color: #A7D9B8;
}

/* Latest Articles Section */
.page-blog__latest-articles {
  padding: 60px 0;
  background-color: #0A4B2C;
  color: #F2FFF6;
}

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

.page-blog__article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #F2FFF6;
  height: 100%;
}

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

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

.page-blog__article-date {
  font-size: 0.9em;
  color: #A7D9B8;
  margin-bottom: 10px;
}

.page-blog__article-title {
  font-size: 1.3em;
  color: #F2FFF6;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog__article-title a {
  color: #F2FFF6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #57E38D; /* Glow color */
}

.page-blog__article-excerpt {
  font-size: 1em;
  color: #A7D9B8;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__read-more {
  display: inline-block;
  color: #2AD16F;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #57E38D;
}

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

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

.page-blog__steps-grid {
  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: #11271B;
}

.page-blog__step-title {
  font-size: 1.4em;
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-blog__step-item p {
  color: #A7D9B8;
}

.page-blog__cta-buttons--center {
  margin-top: 40px;
  text-align: center;
}

/* Tips Section */
.page-blog__tips-section {
  padding: 60px 0;
  background-color: #0A4B2C;
  color: #F2FFF6;
}

.page-blog__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  gap: 25px;
}

.page-blog__tip-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  padding: 25px;
  color: #F2FFF6;
}

.page-blog__tip-title {
  font-size: 1.4em;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-blog__tip-item p {
  color: #A7D9B8;
}

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

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

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  color: #F2FFF6;
  cursor: pointer;
  background-color: #11271B;
  border-bottom: 1px solid #2E7A4E;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-blog__faq-question:hover {
  background-color: #1E3A2A; /* Divider color for hover */
}

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

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

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

.page-blog__faq-item[open] .page-blog__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 0 25px 20px;
}

/* Final CTA Section */
.page-blog__cta-section {
  padding: 60px 0;
  background-color: #0A4B2C;
  text-align: center;
}

.page-blog__cta-section .page-blog__section-description {
  margin-bottom: 30px;
}


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

  .page-blog__container {
    padding: 0 15px !important;
  }

  .page-blog__section-title {
    font-size: 2em;
  }

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

  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-blog__hero-image-wrapper {
    max-height: 50vh;
  }

  .page-blog__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

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

  .page-blog__categories-grid,
  .page-blog__articles-grid,
  .page-blog__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__category-card,
  .page-blog__article-card,
  .page-blog__step-item,
  .page-blog__tip-item,
  .page-blog__faq-item {
    padding: 20px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__article-image,
  .page-blog__category-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

  .page-blog__faq-answer {
    padding: 0 20px 15px !important;
  }
  
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}