:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --gradient-button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --bg-card: #11271B;
  --bg-body: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

/* General page styling */
.page-blog {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: 'Arial', sans-serif;
}

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

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__section-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.5;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--bg-body);
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 40px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: clamp(36px, 5vw, 58px);
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-blog__description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-main);
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-blog__btn-primary {
  background: var(--gradient-button);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-blog__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-blog__btn-secondary {
  background: transparent;
  color: var(--color-glow);
  border: 2px solid var(--color-glow);
}

.page-blog__btn-secondary:hover {
  background: var(--color-glow);
  color: var(--bg-body);
  transform: translateY(-3px);
}

/* Articles Section */
.page-blog__articles-section {
  padding: 80px 0;
  background-color: var(--bg-body);
}

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

.page-blog__article-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-blog__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--color-glow);
}

.page-blog__article-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

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

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

.page-blog__article-title {
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 600;
}

.page-blog__article-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  background-color: var(--bg-body);
}

.page-blog__cta-section .page-blog__container {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: var(--bg-body);
}

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

.page-blog__faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--bg-card);
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-blog__faq-question:hover {
  background-color: rgba(var(--color-primary), 0.1);
}

.page-blog__faq-toggle {
  font-size: 28px;
  line-height: 1;
  color: var(--color-glow);
  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: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  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 length */
  padding-top: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-blog__hero-section,
  .page-blog__articles-section,
  .page-blog__cta-section,
  .page-blog__faq-section {
    padding: 40px 0;
  }

  .page-blog__hero-image-wrapper,
  .page-blog__articles-grid,
  .page-blog__cta-section .page-blog__container,
  .page-blog__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-blog__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-blog__main-title {
    font-size: clamp(28px, 8vw, 42px);
  }

  .page-blog__description {
    font-size: clamp(16px, 4vw, 20px);
  }

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

  .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;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-blog__article-title {
    font-size: 18px;
  }

  .page-blog__article-excerpt,
  .page-blog p,
  .page-blog li {
    font-size: 15px;
  }

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

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

  /* Image responsive enforcement */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all content containers have proper padding and overflow */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific override for CTA section inner container */
  .page-blog__cta-section .page-blog__container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-blog__description {
    font-size: clamp(15px, 3.5vw, 18px);
  }

  .page-blog__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-blog__section-subtitle {
    font-size: clamp(14px, 3vw, 18px);
  }

  .page-blog__article-content {
    padding: 20px;
  }

  .page-blog__article-title {
    font-size: 16px;
  }

  .page-blog__article-meta,
  .page-blog__article-excerpt {
    font-size: 14px;
  }

  .page-blog__faq-question {
    font-size: 16px;
    padding: 12px 15px;
  }

  .page-blog__faq-answer {
    font-size: 14px;
    padding: 0 15px 12px;
  }
}