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

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

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  position: relative;
  /* Maintain aspect ratio for the image, text will be below */
  padding-bottom: 56.25%; /* 16:9 aspect ratio for 1920x1080 */
  height: 0;
  overflow: hidden;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-blog__hero-content {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Adjust to slightly overlap with the image below for visual flow */
  background-color: #11271B; /* Card B G */
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.page-blog__main-title {
  color: #F2C14E; /* Custom color: Gold */
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 100%;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

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

.page-blog__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom color: Button */
  color: #F2FFF6; /* Custom color: Text Main */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-blog__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-blog__latest-posts {
  padding: 60px 0;
  background-color: #08160F;
}

.page-blog__section-title {
  text-align: center;
  color: #F2C14E; /* Custom color: Gold */
  font-size: 2.5em;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.page-blog__section-description {
  text-align: center;
  color: #A7D9B8; /* Custom color: Text Secondary */
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__post-card {
  background-color: #11271B; /* Custom color: Card B G */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Custom color: Border */
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-blog__post-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-blog__post-content {
  padding: 25px;
}

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

.page-blog__post-title a {
  color: #F2FFF6; /* Custom color: Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #2AD16F; /* Brighter green for hover */
}

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

.page-blog__post-excerpt {
  color: #A7D9B8; /* Custom color: Text Secondary */
  margin-bottom: 20px;
}

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

.page-blog__read-more-button:hover {
  color: #F2C14E; /* Gold for hover */
}

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

.page-blog__about-blog-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Custom color: Deep Green */
}

.page-blog__about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-blog__about-text {
  flex: 2;
  min-width: 300px;
  color: #F2FFF6; /* Custom color: Text Main */
}

.page-blog__about-text p {
  margin-bottom: 15px;
  color: #A7D9B8; /* Custom color: Text Secondary */
}

.page-blog__about-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-blog__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 2px solid #2E7A4E; /* Custom color: Border */
}

.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #11A84E, #22C768); /* Main and Auxiliary colors */
}

.page-blog__dark-section .page-blog__section-title,
.page-blog__dark-section .page-blog__section-description {
  color: #F2FFF6; /* Light text for dark sections */
}

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

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

.page-blog__faq-item {
  background-color: #11271B; /* Custom color: Card B G */
  border: 1px solid #2E7A4E; /* Custom color: Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-blog__faq-item[open] {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Custom color: Text Main */
  cursor: pointer;
  background-color: #1E3A2A; /* Custom color: Divider */
  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: #0A4B2C; /* Darker green on hover */
}

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

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

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: '−';
}

.page-blog__faq-answer {
  padding: 20px 25px;
  color: #A7D9B8; /* Custom color: Text Secondary */
  line-height: 1.7;
  font-size: 1.05em;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }

  .page-blog__main-title {
    font-size: 2.2em;
  }

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

  .page-blog__about-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__hero-section {
    padding-bottom: 40px;
  }

  .page-blog__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
    max-width: 90%;
  }

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

  .page-blog__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
  }

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

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

  .page-blog__post-image {
    height: 200px;
  }

  .page-blog__post-title {
    font-size: 1.3em;
  }

  .page-blog__about-text p {
    font-size: 0.95em;
  }

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

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

  /* 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__post-card,
  .page-blog__about-content,
  .page-blog__about-image-wrapper,
  .page-blog__faq-list,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  .page-blog__hero-section,
  .page-blog__latest-posts,
  .page-blog__about-blog-section,
  .page-blog__cta-section,
  .page-blog__faq-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Mobile button responsiveness */
  .page-blog__cta-button,
  .page-blog__read-more-button,
  .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;
    text-align: center;
  }

  .page-blog__view-all-posts .page-blog__cta-button {
    width: auto !important; /* Allow button to size naturally */
    max-width: 80% !important; /* Limit max width for aesthetic */
    margin: 0 auto;
  }

  .page-blog__hero-content .page-blog__cta-button {
    max-width: 80% !important;
    margin: 0 auto;
  }

  .page-blog__about-blog-section .page-blog__cta-button {
    max-width: 80% !important;
    margin: 20px auto 0 auto;
  }

  .page-blog__cta-section .page-blog__cta-button {
    max-width: 80% !important;
    margin: 0 auto;
  }

  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

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

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

  .page-blog__hero-content {
    margin-top: -40px;
    padding: 20px 10px;
  }
}