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

.page-blog {
  font-family: Arial, sans-serif;
  color: var(--text-main-color); /* Default text color for the page */
  background-color: var(--background-color); /* Page background color */
}

.page-blog__section-spacing {
  padding: 80px 0;
}

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

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

.page-blog__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-secondary-color);
}

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

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Spacing between image and content */
}

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

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

.page-blog__main-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.4);
}

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

.page-blog__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

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

.page-blog__category-card {
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-blog__card-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-blog__card-text {
  font-size: 1em;
  color: var(--text-secondary-color);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-blog__category-list li {
  margin-bottom: 10px;
}

.page-blog__card-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-blog__card-link:hover {
  color: var(--glow-color);
  text-decoration: underline;
}

/* Latest Articles */
.page-blog__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-blog__article-card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

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

.page-blog__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 600;
}

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

.page-blog__article-title a:hover {
  color: var(--gold-color);
}

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

.page-blog__article-excerpt {
  font-size: 1em;
  color: var(--text-secondary-color);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  font-size: 0.9em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-blog__read-more-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.page-blog__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  color: var(--secondary-color);
  text-decoration: none;
  border: 2px solid var(--secondary-color);
  border-radius: 5px;
  font-weight: 500;
  font-size: 0.9em;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-blog__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--background-color);
}

.page-blog__view-all-wrapper {
  text-align: center;
}

.page-blog__view-all-btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-blog__view-all-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* Benefits Section */
.page-blog__benefits-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-blog__benefits-list li {
  background-color: var(--card-bg-color);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  line-height: 1.6;
  font-size: 1em;
  color: var(--text-secondary-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__benefit-highlight {
  color: var(--gold-color);
  font-weight: 600;
}

/* Safety Section */
.page-blog__safety-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-blog__safety-list li {
  background-color: var(--card-bg-color);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  line-height: 1.6;
  font-size: 1em;
  color: var(--text-secondary-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.page-blog__safety-highlight {
  color: var(--gold-color);
  font-weight: 600;
}

/* CTA Section */
.page-blog__cta-content {
  text-align: center;
  background-color: var(--deep-green-color);
  padding: 50px;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

/* FAQ Section */
.page-blog__faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.page-blog__faq-image-wrapper {
  text-align: center;
}

.page-blog__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.page-blog__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-blog__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

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

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

.page-blog__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Allow click on entire summary */
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--secondary-color);
  pointer-events: none; /* Allow click on entire summary */
}

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

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

/* Reset default details/summary styles */
.page-blog__faq-item summary {
  list-style: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-image-wrapper {
    max-height: 500px;
  }
  .page-blog__section-spacing {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-blog__main-title {
    font-size: clamp(28px, 8vw, 48px);
  }
  .page-blog__description {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-blog__text-block {
    font-size: 0.95em;
  }
  .page-blog__category-grid,
  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__faq-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__faq-image-wrapper {
    margin-bottom: 30px;
  }
  .page-blog__section-spacing {
    padding: 40px 0;
  }
  .page-blog__container {
    padding: 0 15px !important;
  }

  /* Mobile image adaptation */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile button adaptation */
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog__read-more-btn,
  .page-blog__view-all-btn,
  .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__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }
  .page-blog__category-card,
  .page-blog__article-card,
  .page-blog__faq-item,
  .page-blog__cta-content,
  .page-blog__hero-section,
  .page-blog__about-section,
  .page-blog__categories-section,
  .page-blog__latest-articles,
  .page-blog__benefits-section,
  .page-blog__safety-section,
  .page-blog__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__hero-content {
    padding: 0 15px;
  }
  .page-blog__hero-image-wrapper {
    max-height: 300px;
  }
  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-blog__faq-question,
  .page-blog__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__faq-answer {
    padding-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-section {
    padding-bottom: 30px;
  }
  .page-blog__main-title {
    font-size: clamp(24px, 9vw, 40px);
  }
  .page-blog__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: clamp(22px, 8vw, 32px);
    margin-bottom: 30px;
  }
  .page-blog__text-block {
    font-size: 0.9em;
  }
  .page-blog__card-title {
    font-size: 1.5em;
  }
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__faq-question {
    font-size: 1em;
  }
  .page-blog__faq-toggle {
    font-size: 1.3em;
  }
}