/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  padding-bottom: 60px; /* Space above footer */
}

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

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #22C768; /* Auxiliary color */
  border-radius: 2px;
}

.page-blog__text-block {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  background-color: #0A4B2C; /* Deep Green */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-content {
  text-align: center;
  max-width: 900px;
  position: relative;
  z-index: 2;
  padding: 20px;
}

.page-blog__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__subtitle {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
  margin: 0 10px;
}

.page-blog__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(34, 199, 104, 0.4);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow color */
  border: 2px solid #2E7A4E; /* Border color */
  margin: 0 10px;
}

.page-blog__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(46, 122, 78, 0.4);
}

/* Intro Section */
.page-blog__intro-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-blog__step-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-blog__card-title {
  font-size: 1.8em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-blog__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

.page-blog__card-text {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  text-align: left;
}

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

/* Benefits Section */
.page-blog__benefits-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-blog__benefit-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-blog__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__benefit-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-blog__benefit-description {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* Issues Section */
.page-blog__issues-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.page-blog__issue-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid #2E7A4E; /* Border color */
}

/* Mobile Section */
.page-blog__mobile-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-blog__mobile-options {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-blog__option-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-blog__option-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

/* Security Section */
.page-blog__security-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.page-blog__security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-blog__security-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-blog__item-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-blog__item-description {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* Other Posts Section */
.page-blog__other-posts-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-blog__post-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-blog__post-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__post-card h3,
.page-blog__post-card p {
  padding: 0 25px;
}

.page-blog__post-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-top: 20px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-meta {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

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

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

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

.page-blog__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid #2E7A4E; /* Border color */
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
}

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  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 */
  padding-top: 10px;
}

/* Ensure details summary marker is hidden */
.page-blog__faq-item summary {
  list-style: none;
}

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

/* CTA Section */
.page-blog__cta-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }
  .page-blog__hero-section {
    padding: 40px 15px;
  }
  .page-blog__guide-section,
  .page-blog__benefits-section,
  .page-blog__issues-section,
  .page-blog__mobile-section,
  .page-blog__security-section,
  .page-blog__other-posts-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-blog__subtitle {
    font-size: 1em;
  }

  .page-blog__text-block {
    font-size: 1em;
  }

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

  /* All image containers */
  .page-blog__hero-image-wrapper,
  .page-blog__step-card,
  .page-blog__benefit-item,
  .page-blog__option-card,
  .page-blog__post-card,
  .page-blog__issue-card,
  .page-blog__security-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
  }

  /* Buttons responsiveness */
  .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;
    margin: 10px 0 !important; /* Stack buttons vertically */
  }

  .page-blog__cta-block,
  .page-blog__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-blog__mobile-options {
    flex-direction: column;
    align-items: center;
  }

  .page-blog__option-card {
    max-width: 100%;
    width: 100%;
  }

  .page-blog__post-image {
    height: auto;
  }

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

@media (max-width: 480px) {
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-blog__card-title,
  .page-blog__benefit-title,
  .page-blog__item-title,
  .page-blog__post-title,
  .page-blog__faq-question {
    font-size: 1.1em;
  }
  .page-blog__post-image {
    height: 180px;
  }
}