/* style/blog.css */

/* Base styles for the page-blog scope */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
  padding-bottom: 50px; /* Add some bottom padding */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #F2FFF6;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-blog__hero-content {
  position: relative;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image bottom */
  background: linear-gradient(to top, rgba(8, 22, 15, 1) 0%, rgba(8, 22, 15, 0.8) 50%, rgba(8, 22, 15, 0) 100%);
  z-index: 1; /* Ensure content is above image */
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
}

.page-blog__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6;
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  transform: translateY(-2px);
}

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

.page-blog__btn-secondary:hover {
  background-color: #2AD16F;
  color: #F2FFF6;
  transform: translateY(-2px);
}

/* General Section Styles */
.page-blog__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-blog__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #2AD16F;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-blog__text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Feature Cards */
.page-blog__feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-blog__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-blog__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure image behaves as block */
}

.page-blog__card-text {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
}

/* Download Guide */
.page-blog__download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-blog__download-platform {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
  counter-reset: step-counter;
}

.page-blog__platform-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 25px;
  text-align: center;
}

.page-blog__platform-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain; /* Use contain for app screenshots */
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

.page-blog__step-list {
  list-style: none;
  padding-left: 0;
}

.page-blog__step-item {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-blog__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #2AD16F;
  color: #F2FFF6;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.page-blog__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Feature Grid */
.page-blog__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__feature-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__feature-item:hover {
  transform: translateY(-5px);
}

.page-blog__feature-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-blog__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  text-align: center;
}

.page-blog__feature-description {
  font-size: 0.9rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__feature-link {
  display: inline-block;
  color: #2AD16F;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #2AD16F;
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
  align-self: center; /* Center the link */
}

.page-blog__feature-link:hover {
  color: #57E38D; /* Glow */
  border-color: #57E38D;
}

/* FAQ Section */
.page-blog__faq-section {
  background-color: #0A4B2C; /* Deep Green for FAQ background */
  border-radius: 12px;
  padding: 60px 20px;
  margin: 60px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-blog__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-item summary {
  list-style: none; /* Hide default marker */
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-blog__faq-question:hover {
  background-color: #1E3A2A; /* Divider */
}

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

.page-blog__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2AD16F;
  margin-left: 20px;
  transition: transform 0.3s ease;
}

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

.page-blog__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-blog__faq-answer p {
  margin: 0;
  padding-top: 15px;
}

/* Conclusion Section */
.page-blog__conclusion {
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: -100px;
  }
}

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

  .page-blog__hero-section {
    padding: 10px 0 40px 0; /* Adjust hero section padding for mobile */
  }

  .page-blog__hero-content {
    margin-top: -80px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-blog__description {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
  }

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

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

  .page-blog__section {
    padding: 40px 0; /* Mobile: remove horizontal padding from section, let inner elements handle it */
  }

  .page-blog__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-blog__text {
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__feature-cards,
  .page-blog__download-steps,
  .page-blog__feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__card,
  .page-blog__download-platform,
  .page-blog__feature-item {
    padding: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__card-title,
  .page-blog__platform-title,
  .page-blog__feature-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .page-blog__card-image,
  .page-blog__platform-image,
  .page-blog__feature-image {
    max-height: 200px;
    margin-bottom: 15px;
  }

  .page-blog__step-item {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .page-blog__faq-section {
    padding: 40px 15px;
    margin: 40px auto;
  }

  .page-blog__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9rem;
  }

  .page-blog__cta-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image, video, button responsive overrides */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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