/* style/blog.css */

/* Base styles for page-blog */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  margin: 0;
  padding: 0;
}

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

.page-blog__section {
  padding: 60px 0;
}

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  text-align: justify;
}

.page-blog__text-secondary {
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  font-size: 18px;
  margin-bottom: 30px;
}

.page-blog__keyword {
  color: #F2C14E; /* Gold for keywords */
  font-weight: bold;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles top padding */
  background-color: #08160F; /* Background */
  overflow: hidden;
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: clamp(32px, 5vw, 60px);
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: bold;
}

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

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  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: #ffffff; /* White text for contrast */
  border: none;
  margin: 10px;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Green from button gradient */
  border: 2px solid #2AD16F;
  margin: 10px;
}

.page-blog__btn-secondary:hover {
  background: #2AD16F;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-wrapper {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

/* Dark/Light Sections */
.page-blog__dark-section {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-blog__intro-section {
  background-color: #11271B; /* Card BG */
}

.page-blog__promotions-section {
  background-color: #11271B; /* Card BG */
}

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

.page-blog__news-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-blog__news-card:hover {
  transform: translateY(-5px);
}

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

.page-blog__news-content {
  padding: 20px;
}

.page-blog__news-title {
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__news-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__news-title a:hover {
  color: #F2C14E; /* Gold */
}

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

.page-blog__news-excerpt {
  font-size: 15px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-blog__read-more-btn {
  font-size: 14px;
  padding: 8px 15px;
  border-radius: 4px;
}

/* Guide Section */
.page-blog__guide-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__guide-title {
  font-size: 26px;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  text-align: center;
}

.page-blog__guide-image {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  margin: 25px 0;
  display: block;
}

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

.page-blog__feature-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-blog__feature-title {
  font-size: 22px;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-blog__feature-description {
  font-size: 15px;
  color: #F2FFF6; /* Text Main */
}

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

.page-blog__promo-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  text-align: center;
}

.page-blog__promo-card:hover {
  transform: translateY(-5px);
}

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

.page-blog__promo-title {
  font-size: 22px;
  color: #F2C14E; /* Gold */
  margin: 20px 15px 10px 15px;
  line-height: 1.3;
}

.page-blog__promo-description {
  font-size: 15px;
  color: #F2FFF6; /* Text Main */
  margin: 0 15px 20px 15px;
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 40px;
}

.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-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-blog__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-blog__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

.page-blog__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #F2C14E; /* Gold */
}

.page-blog__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

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

/* Conclusion Section */
.page-blog__conclusion-section {
  background-color: #11271B; /* Card BG */
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-image-wrapper {
    max-height: 500px;
  }

  .page-blog__section-title {
    font-size: clamp(24px, 3.5vw, 40px);
  }

  .page-blog__main-title {
    font-size: clamp(28px, 4.5vw, 50px);
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-blog__hero-image-wrapper {
    max-height: 400px;
  }

  .page-blog__hero-image {
    border-radius: 0;
  }

  .page-blog__section {
    padding: 40px 0;
  }

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

  .page-blog__main-title {
    font-size: 38px;
  }

  .page-blog__subtitle {
    font-size: 16px;
  }

  .page-blog__text-block, .page-blog__news-excerpt, .page-blog__feature-description, .page-blog__promo-description, .page-blog__faq-answer {
    font-size: 15px;
  }

  .page-blog__text-secondary {
    font-size: 16px;
  }

  .page-blog__news-grid, .page-blog__security-features, .page-blog__promotions-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-blog__news-card, .page-blog__feature-card, .page-blog__promo-card, .page-blog__guide-item, .page-blog__faq-item {
    margin-left: 15px;
    margin-right: 15px;
    width: calc(100% - 30px);
    box-sizing: border-box;
  }

  .page-blog__news-thumbnail, .page-blog__guide-image, .page-blog__feature-icon, .page-blog__promo-thumbnail {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__news-card, .page-blog__feature-card, .page-blog__promo-card, .page-blog__guide-item, .page-blog__faq-item,
  .page-blog__hero-section, .page-blog__intro-section, .page-blog__latest-news-section, .page-blog__guides-section, .page-blog__security-section, .page-blog__promotions-section, .page-blog__faq-section, .page-blog__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-blog__cta-wrapper {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .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: 5px 0 !important;
    padding: 12px 15px !important;
  }

  .page-blog__faq-question {
    font-size: 16px;
    padding: 15px;
  }

  .page-blog__faq-toggle {
    font-size: 20px;
  }

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

/* Ensure content area images are never too small */
.page-blog img {
  min-width: 200px;
  min-height: 200px;
}

.page-blog__hero-image {
  min-width: 0;
  min-height: 0;
}

.page-blog__feature-icon {
  min-width: 0;
  min-height: 0;
}

/* Overwrite for clarity on body bg if needed, though dark theme handles it */
.page-blog p, .page-blog li, .page-blog h1, .page-blog h2, .page-blog h3, .page-blog h4, .page-blog h5, .page-blog h6 {
  color: #F2FFF6; /* Ensure main text is light on dark background */
}

.page-blog__dark-bg .page-blog__text-block {
  color: #F2FFF6; /* Deep Green */
}

.page-blog__light-bg .page-blog__text-block {
  color: #333333;
}

.page-blog__medium-bg .page-blog__text-block {
  color: #000000;
}

/* Text contrast fix (if needed) */
.page-blog__text-contrast-fix {
  color: #F2FFF6 !important; /* Force light text on dark bg */
  text-shadow: none !important;
}

/* Card contrast fix (if needed) */
.page-blog__card.page-blog__contrast-fix {
  background: #11271B !important;
  color: #F2FFF6 !important;
  border: 1px solid #2E7A4E !important;
}