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

.page-blog {
  font-family: 'Arial', sans-serif;
  color: var(--page-blog-text-main); /* Default text color for the page */
  background-color: var(--page-blog-bg-color); /* Rely on shared.css for body bg */
}

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

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  /* Ensure image is not covered by text */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

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

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

.page-blog__description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--page-blog-text-secondary);
  margin-bottom: 30px;
}

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

.page-blog__btn-primary {
  background: var(--page-blog-button-gradient);
  color: var(--page-blog-text-main);
  border: 2px solid transparent;
  margin: 0 10px;
}

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

.page-blog__btn-secondary {
  background: none;
  color: var(--page-blog-primary-color);
  border: 2px solid var(--page-blog-primary-color);
  margin: 0 10px;
}

.page-blog__btn-secondary:hover {
  background: var(--page-blog-primary-color);
  color: var(--page-blog-text-main);
  transform: translateY(-2px);
}

.page-blog__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  color: var(--page-blog-text-main);
  margin-bottom: 30px;
  text-align: center;
}

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

.page-blog__intro-section,
.page-blog__why-follow-section,
.page-blog__faq-section {
  padding: 80px 0;
  text-align: center;
}

.page-blog__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--page-blog-text-secondary);
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-blog__feature-item,
.page-blog__benefit-item {
  background: var(--page-blog-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-blog-border-color);
}

.page-blog__feature-title,
.page-blog__benefit-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--page-blog-primary-color);
  margin-bottom: 15px;
}

.page-blog__feature-item p,
.page-blog__benefit-item p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-blog-text-secondary);
}

.page-blog__categories-section,
.page-blog__featured-posts,
.page-blog__cta-section,
.page-blog__video-section {
  padding: 80px 0;
  text-align: center;
}

.page-blog__dark-section {
  background-color: var(--page-blog-bg-color);
  color: var(--page-blog-text-main);
}

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

.page-blog__light-bg .page-blog__section-title,
.page-blog__light-bg .page-blog__text-block,
.page-blog__light-bg .page-blog__feature-title,
.page-blog__light-bg .page-blog__feature-item p,
.page-blog__light-bg .page-blog__benefit-title,
.page-blog__light-bg .page-blog__benefit-item p,
.page-blog__light-bg .page-blog__faq-question .page-blog__faq-qtext,
.page-blog__light-bg .page-blog__faq-answer p {
  color: #333333;
}

.page-blog__light-bg .page-blog__faq-question {
  background-color: #f5f5f5;
  border-color: #e0e0e0;
}

.page-blog__light-bg .page-blog__faq-item[open] .page-blog__faq-question {
  background-color: #e0e0e0;
}

.page-blog__light-bg .page-blog__faq-toggle {
  color: #333333;
}

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

.page-blog__category-card,
.page-blog__post-card {
  background: var(--page-blog-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--page-blog-border-color);
  display: flex;
  flex-direction: column;
}

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

.page-blog__category-card .page-blog__category-title,
.page-blog__post-card .page-blog__post-title {
  font-size: 1.3em;
  font-weight: 600;
  margin: 20px 20px 10px 20px;
  line-height: 1.4;
}

.page-blog__category-card .page-blog__category-title a,
.page-blog__post-card .page-blog__post-title a {
  color: var(--page-blog-text-main);
  text-decoration: none;
}

.page-blog__category-card .page-blog__category-title a:hover,
.page-blog__post-card .page-blog__post-title a:hover {
  color: var(--page-blog-primary-color);
}

.page-blog__category-description,
.page-blog__post-excerpt {
  font-size: 0.95em;
  color: var(--page-blog-text-secondary);
  margin: 0 20px 15px 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.page-blog__post-date {
  font-size: 0.85em;
  color: var(--page-blog-text-secondary);
  margin: 0 20px 20px 20px;
  display: block;
}

.page-blog__view-all-wrapper {
  margin-top: 50px;
}

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

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

.page-blog__faq-item summary {
  list-style: none;
}

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--page-blog-text-main);
  cursor: pointer;
  background-color: var(--page-blog-card-bg);
  border-bottom: 1px solid var(--page-blog-border-color);
}

.page-blog__faq-item[open] .page-blog__faq-question {
  background-color: var(--page-blog-primary-color);
}

.page-blog__faq-question:hover {
  opacity: 0.9;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--page-blog-text-main);
}

.page-blog__faq-answer {
  padding: 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--page-blog-text-secondary);
  background-color: var(--page-blog-card-bg);
}

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

.page-blog__video-section .page-blog__container {
  max-width: 1200px;
}

.page-blog__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-blog__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.page-blog__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 10;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: 20px;
  }
  .page-blog__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-blog__section-title {
    font-size: clamp(1.6em, 4vw, 2.4em);
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-blog__hero-image {
    border-radius: 8px;
  }
  .page-blog__hero-content {
    margin-top: 30px;
    padding: 0 15px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-blog__description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    padding: 12px 20px;
    font-size: 0.95em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-blog__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__intro-section,
  .page-blog__why-follow-section,
  .page-blog__faq-section,
  .page-blog__categories-section,
  .page-blog__featured-posts,
  .page-blog__cta-section,
  .page-blog__video-section {
    padding: 50px 0;
  }
  .page-blog__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__text-block {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-blog__features-grid,
  .page-blog__benefit-grid,
  .page-blog__category-grid,
  .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }
  .page-blog__category-image,
  .page-blog__post-image {
    height: 180px;
  }
  .page-blog__category-card .page-blog__category-title,
  .page-blog__post-card .page-blog__post-title {
    font-size: 1.15em;
    margin: 15px 15px 8px 15px;
  }
  .page-blog__category-description,
  .page-blog__post-excerpt {
    font-size: 0.9em;
    margin: 0 15px 10px 15px;
  }
  .page-blog__post-date {
    margin: 0 15px 15px 15px;
  }
  .page-blog__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-blog__faq-answer {
    padding: 15px;
  }
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__video-section {
    padding-top: 10px !important;
  }
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}