/* style/blog.css */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.6;
}

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

.page-blog__hero-section {
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  position: relative;
  overflow: hidden;
}

.page-blog__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #F0F0F0;
}

.page-blog__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-blog__section-title {
  font-size: 2.2em;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

.page-blog__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-blog__dark-section .page-blog__section-title,
.page-blog__dark-section .page-blog__section-intro {
  color: #ffffff;
}

.page-blog__text-light {
  color: #F0F0F0;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__btn-register,
.page-blog__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-blog__btn-primary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-blog__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

.page-blog__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-blog__btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-blog__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-blog__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

/* Latest News Section */
.page-blog__latest-news-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-blog__news-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.page-blog__news-title {
  font-size: 1.3em;
  margin: 15px 15px 10px 15px;
  line-height: 1.4;
}

.page-blog__news-title a {
  color: #017439;
  text-decoration: none;
}

.page-blog__news-title a:hover {
  text-decoration: underline;
}

.page-blog__news-excerpt {
  font-size: 0.95em;
  color: #666666;
  padding: 0 15px;
  flex-grow: 1;
}

.page-blog__read-more-link {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  padding: 15px;
  align-self: flex-start;
}

.page-blog__read-more-link:hover {
  text-decoration: underline;
}

/* Guide Section */
.page-blog__guide-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-blog__guide-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-blog__guide-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__guide-text {
  flex: 1;
}

.page-blog__guide-subtitle {
  font-size: 1.6em;
  color: #017439;
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-blog__guide-text p {
  margin-bottom: 15px;
  color: #555555;
}

/* Strategy Section */
.page-blog__strategy-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

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

.page-blog__strategy-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.page-blog__strategy-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-blog__strategy-card-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-blog__strategy-card p {
  color: #f0f0f0;
}

/* Promotions Section */
.page-blog__promotions-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-blog__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.page-blog__promo-title {
  font-size: 1.3em;
  margin: 15px 15px 10px 15px;
  line-height: 1.4;
}

.page-blog__promo-title a {
  color: #017439;
  text-decoration: none;
}

.page-blog__promo-title a:hover {
  text-decoration: underline;
}

.page-blog__promo-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 15px 15px 15px;
  flex-grow: 1;
}

/* Safety Section */
.page-blog__safety-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-blog__safety-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-blog__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.page-blog__feature-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-blog__feature-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-blog__feature-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-blog__feature-item p {
  color: #f0f0f0;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-blog__faq-list {
  max-width: 800px;
  margin: 50px auto 0 auto;
}

.page-blog__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
  background-color: #ebebeb;
}

.page-blog__faq-question-title {
  font-size: 1.1em;
  margin: 0;
  color: #017439;
}

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

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

.page-blog__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #ffffff;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-blog__faq-item.active .page-blog__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

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

/* Final CTA Section */
.page-blog__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 2.5em;
  }

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

  .page-blog__guide-content {
    flex-direction: column;
    align-items: center;
  }

  .page-blog__guide-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-blog__hero-cta-buttons,
  .page-blog__cta-buttons--center {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    overflow: hidden !important;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog__btn-register,
  .page-blog__btn-login {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

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

  .page-blog__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-blog__news-grid,
  .page-blog__strategy-grid,
  .page-blog__promo-grid,
  .page-blog__safety-features {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-blog__guide-image {
    max-width: 100%;
  }

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

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

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

  .page-blog img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__news-card,
  .page-blog__promo-card,
  .page-blog__feature-item,
  .page-blog__guide-content,
  .page-blog__guide-text,
  .page-blog__strategy-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }

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

  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-blog__news-image,
  .page-blog__promo-image {
    height: 180px;
  }
}