/* 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 */
}

.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: clamp(1.8rem, 2.5vw, 2.5rem);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__subsection-title {
  font-size: clamp(1.4rem, 2vw, 2rem);
  color: #F2FFF6; /* Text Main */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-blog__text-block {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__list-item {
  margin-bottom: 5px;
}

.page-blog a {
  color: #57E38D; /* Glow */
  text-decoration: none;
}

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

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

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Adjust as needed */
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-blog__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 900px;
  margin-top: 30px;
}

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

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

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

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

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
}

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

.page-blog__cta-group {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-blog__cta-group--center {
  justify-content: center;
}

/* Image with text layout */
.page-blog__image-with-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.page-blog__image-with-text .page-blog__content-image {
  flex: 1 1 400px;
  border-radius: 10px;
  object-fit: cover;
}

.page-blog__image-with-text .page-blog__text-block {
  flex: 2 1 400px;
  margin-bottom: 0;
}

/* Topic Cards */
.page-blog__topic-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__topic-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-blog__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-blog__card-title {
  font-size: 1.25rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__card-description {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__topic-card .page-blog__btn-secondary {
  margin-top: auto; /* Push button to bottom */
  width: auto;
}

/* Article Cards */
.page-blog__latest-articles-section {
  background-color: #08160F; /* Background */
}

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

.page-blog__article-card {
  display: flex;
  flex-direction: column;
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-blog__article-card .page-blog__card-image {
  height: 220px;
}

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

.page-blog__card-date {
  font-size: 0.85rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 10px;
}

.page-blog__card-excerpt {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__read-more {
  color: #57E38D; /* Glow */
  font-weight: bold;
  margin-top: auto;
}

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

/* FAQ Section */
.page-blog__faq-section {
  background-color: #08160F; /* Background */
}

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

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B; /* Card BG */
  position: relative;
  list-style: none; /* Remove default summary marker */
}

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

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #57E38D; /* Glow */
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

/* Conclusion Section */
.page-blog__conclusion-section {
  background-color: #08160F; /* Background */
  text-align: center;
}

.page-blog__conclusion-content {
  max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 20px;
  }
  .page-blog__section-title {
    margin-bottom: 30px;
  }
  .page-blog__image-with-text {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__image-with-text .page-blog__content-image {
    width: 100%;
    flex: none;
  }
  .page-blog__image-with-text .page-blog__text-block {
    flex: none;
  }
}

@media (max-width: 768px) {
  .page-blog__section {
    padding: 40px 0;
  }
  .page-blog__hero-section {
    padding-bottom: 40px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    display: block !important;
    margin: 0 0 15px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__cta-group {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__container,
  .page-blog__section,
  .page-blog__topic-card,
  .page-blog__article-card,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__card-image {
    height: auto;
  }
  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .page-blog__subsection-title {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }
  .page-blog__hero-section {
    padding-bottom: 30px;
  }
}