/* style/blog.css */
:root {
  --page-blog-primary-color: #11A84E;
  --page-blog-secondary-color: #22C768;
  --page-blog-background-color: #08160F;
  --page-blog-card-bg: #11271B;
  --page-blog-text-main: #F2FFF6;
  --page-blog-text-secondary: #A7D9B8;
  --page-blog-border-color: #2E7A4E;
  --page-blog-divider-color: #1E3A2A;
  --page-blog-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-blog {
  background-color: var(--page-blog-background-color);
  color: var(--page-blog-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.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: 40px;
  overflow: hidden;
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-blog__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 20px;
  margin-top: -150px; /* Adjust to overlap image slightly for visual flow */
  position: relative; /* Ensure content is above image but not overlapping text */
  z-index: 1;
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--page-blog-text-main);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__description {
  font-size: 1.1rem;
  color: var(--page-blog-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  background: var(--page-blog-button-gradient);
  color: var(--page-blog-text-main);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-blog__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-blog__section-title {
  font-size: 2.5rem;
  color: var(--page-blog-text-main);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-blog__section-subtitle {
  font-size: 1.2rem;
  color: var(--page-blog-text-secondary);
  margin-bottom: 40px;
}

.page-blog__introduction .page-blog__content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-blog__introduction .page-blog__text-block {
  flex: 1;
  min-width: 300px;
  color: var(--page-blog-text-secondary);
}

.page-blog__introduction .page-blog__text-block p {
  margin-bottom: 15px;
}

.page-blog__introduction .page-blog__image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-blog__introduction .page-blog__image {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
  display: block;
}

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

.page-blog__category-card {
  background-color: var(--page-blog-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(34, 199, 104, 0.3);
}

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

.page-blog__card-title {
  font-size: 1.4rem;
  color: var(--page-blog-text-main);
  margin: 20px 20px 10px 20px;
  font-weight: 600;
}

.page-blog__card-title a {
  color: var(--page-blog-text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: var(--page-blog-secondary-color);
}

.page-blog__card-description {
  font-size: 0.95rem;
  color: var(--page-blog-text-secondary);
  margin: 0 20px 20px 20px;
}

.page-blog__card-link {
  display: inline-block;
  color: var(--page-blog-secondary-color);
  text-decoration: none;
  font-weight: 600;
  margin-left: 20px;
  transition: color 0.3s ease;
}

.page-blog__card-link:hover {
  color: var(--page-blog-primary-color);
}

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

.page-blog__article-card {
  background-color: var(--page-blog-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(34, 199, 104, 0.3);
}

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

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

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

.page-blog__article-title {
  font-size: 1.3rem;
  color: var(--page-blog-text-main);
  margin-bottom: 10px;
  font-weight: 600;
}

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

.page-blog__article-excerpt {
  font-size: 0.95rem;
  color: var(--page-blog-text-secondary);
}

.page-blog__button-container {
  margin-top: 40px;
  text-align: center;
}

.page-blog__cta-button--view-all {
  background: var(--page-blog-button-gradient);
  color: var(--page-blog-text-main);
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 8px;
}

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

.page-blog__faq-item {
  background-color: var(--page-blog-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-blog__faq-item summary:hover {
  background-color: rgba(34, 199, 104, 0.1);
}

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

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-blog-secondary-color);
}

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

.page-blog__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: var(--page-blog-text-secondary);
  line-height: 1.7;
}

.page-blog__cta-bottom {
  background-color: var(--page-blog-primary-color);
  padding: 80px 20px;
  color: #ffffff;
  text-align: center;
}

.page-blog__cta-bottom .page-blog__section-title {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-blog__cta-bottom .page-blog__description {
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-bottom .page-blog__cta-button {
  background: #ffffff; /* White button on green background */
  color: var(--page-blog-primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-bottom .page-blog__cta-button:hover {
  background: #f0f0f0;
  color: var(--page-blog-primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: -100px;
  }
  .page-blog__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-blog__section-title {
    font-size: 2rem;
  }
  .page-blog__introduction .page-blog__content-grid {
    flex-direction: column;
  }
  .page-blog__introduction .page-blog__image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-bottom: 20px;
  }
  .page-blog__hero-content {
    margin-top: -80px;
    padding: 15px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-blog__description {
    font-size: 1rem;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    width: 100% !important;
  }
  .page-blog__section {
    padding: 40px 15px;
  }
  .page-blog__section-title {
    font-size: 1.8rem;
  }
  .page-blog__section-subtitle {
    font-size: 1rem;
  }
  .page-blog__category-grid, .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__category-card, .page-blog__article-card, .page-blog__faq-item {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-blog__introduction .page-blog__text-block, .page-blog__introduction .page-blog__image-wrapper {
    min-width: unset;
    width: 100%;
  }
  
  /* Mobile image, video, and button adaptation */
  .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__hero-image-wrapper,
  .page-blog__image-wrapper,
  .page-blog__button-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-blog__cta-button,
  .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-left: 15px; */ /* already handled by container */
    /* padding-right: 15px; */ /* already handled by container */
  }

  .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;
  }

  .page-blog__cta-buttons {
    display: flex;
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .page-blog__hero-content {
    margin-top: -60px;
  }
  .page-blog__main-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .page-blog__description {
    font-size: 0.9rem;
  }
  .page-blog__section-title {
    font-size: 1.5rem;
  }
  .page-blog__faq-item summary {
    font-size: 1rem;
  }
  .page-blog__faq-answer {
    font-size: 0.9rem;
  }
}