/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background-color, #08160F); /* Default background color */
  line-height: 1.6;
}

.page-blog__dark-section {
  background-color: var(--background-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
}

.page-blog__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body takes care of header offset */
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  max-height: 500px; /* Limit height for hero image */
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

.page-blog__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  font-weight: 700;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.page-blog__description {
  font-size: 1.2em;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 30px;
}

/* Buttons */
.page-blog__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: var(--text-main-color, #F2FFF6);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  border: 2px solid var(--border-color, #2E7A4E);
  transition: all 0.3s ease;
  cursor: pointer;
  margin-left: 15px;
}

.page-blog__btn-secondary:hover {
  background-color: var(--border-color, #2E7A4E);
  color: #ffffff;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Content Area */
.page-blog__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #333333;
  background-color: #f8f9fa;
}

.page-blog__section-intro {
  text-align: center;
  margin-bottom: 50px;
  color: #333333;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: var(--deep-green-color, #0A4B2C);
  margin-bottom: 15px;
}

.page-blog__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__article {
  margin-bottom: 60px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__article:nth-of-type(odd) {
  background-color: var(--card-bg-color, #11271B);
  color: var(--text-main-color, #F2FFF6);
}

.page-blog__article:nth-of-type(even) {
  background-color: #ffffff;
  color: #333333;
}

.page-blog__article-title {
  font-size: 2em;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-blog__article:nth-of-type(odd) .page-blog__article-title {
  color: var(--gold-color, #F2C14E);
}

.page-blog__article:nth-of-type(even) .page-blog__article-title {
  color: var(--deep-green-color, #0A4B2C);
}

.page-blog__article p {
  margin-bottom: 15px;
}

.page-blog__article-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 25px 0;
  display: block;
  object-fit: cover;
}

.page-blog__ordered-list,
.page-blog__unordered-list {
  margin-left: 20px;
  margin-bottom: 20px;
  padding: 0;
}

.page-blog__ordered-list li,
.page-blog__unordered-list li {
  margin-bottom: 10px;
}

.page-blog__text-link {
  color: var(--glow-color, #57E38D);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-blog__text-link:hover {
  color: var(--gold-color, #F2C14E);
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 40px;
}

.page-blog__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color, #F2FFF6);
}

.page-blog__faq-item[open] {
  background-color: var(--deep-green-color, #0A4B2C);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main-color, #F2FFF6);
  position: relative;
  list-style: none;
}

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-blog__faq-answer p {
  margin-bottom: 0;
}

/* Call to Action Section */
.page-blog__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--background-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
  border-top: 1px solid var(--divider-color, #1E3A2A);
}

.page-blog__cta-title {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 20px;
}

.page-blog__cta-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 15px;
  }

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

  .page-blog__description {
    font-size: 1.1em;
  }

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

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

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

  .page-blog__cta-description {
    font-size: 1.1em;
  }
}

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

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

  .page-blog__hero-image {
    max-height: 400px;
  }

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

  .page-blog__description {
    font-size: 1em;
  }

  .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: 12px 15px;
    margin-left: 0 !important; /* Remove margin for single column */
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog__content-area {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-blog__article {
    padding: 20px;
    margin-bottom: 40px;
  }

  .page-blog__article-title {
    font-size: 1.5em;
  }

  .page-blog__article img,
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .page-blog__hero-section,
  .page-blog__section-intro,
  .page-blog__article,
  .page-blog__cta-section,
  .page-blog__faq-list,
  .page-blog__faq-item,
  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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

  .page-blog__cta-section {
    padding: 50px 15px;
  }

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

  .page-blog__cta-description {
    font-size: 1em;
  }
}