/* style/blog.css */

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

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

.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__section-text {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 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: 700px;
  overflow: hidden;
  position: relative;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-blog__hero-title {
  font-size: clamp(36px, 5vw, 64px);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-blog__hero-description {
  font-size: clamp(18px, 2vw, 24px);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

/* Introduction Section */
.page-blog__introduction-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

/* Featured Posts Section */
.page-blog__featured-posts-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-blog__posts-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: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

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

.page-blog__post-content {
  padding: 25px;
}

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

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

.page-blog__post-title a:hover {
  color: #2AD16F; /* Lighter green for hover */
}

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

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

.page-blog__read-more-button {
  display: inline-block;
  color: #57E38D; /* Glow color for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more-button:hover {
  color: #F2FFF6; /* Text Main */
}

.page-blog__view-all {
  text-align: center;
  margin-top: 50px;
}

/* Video Section */
.page-blog__video-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  text-align: center;
}

.page-blog__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 2px solid #2E7A4E;
}

.page-blog__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.page-blog__cta-button--video {
  margin-top: 20px;
}

/* Guides Section */
.page-blog__guides-section {
  padding: 80px 0;
  background-color: #11271B; /* Card BG */
  border-top: 1px solid #1E3A2A; /* Divider */
}

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

.page-blog__guides-item {
  background-color: #0A4B2C; /* Deep Green */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__guides-subtitle {
  font-size: 24px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__guides-item p {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

/* Promotions Section */
.page-blog__promotions-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  border-top: 1px solid #1E3A2A; /* Divider */
}

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

.page-blog__promotions-item {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__promotions-item a {
  font-size: 20px;
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
  transition: color 0.3s ease;
}

.page-blog__promotions-item a:hover {
  color: #57E38D; /* Glow */
}

.page-blog__promotions-item p {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
  border-top: 1px solid #1E3A2A; /* Divider */
}

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

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

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

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

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

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

/* CTA Banner Section */
.page-blog__cta-banner-section {
  position: relative;
  text-align: center;
  padding: 80px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #08160F; /* Fallback background */
}

.page-blog__cta-banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  z-index: 0;
}

.page-blog__cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}

.page-blog__cta-banner-title {
  font-size: clamp(32px, 4vw, 56px);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
}

.page-blog__cta-banner-description {
  font-size: clamp(18px, 2vw, 24px);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
}

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

.page-blog__cta-button--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
}

.page-blog__cta-button--secondary {
  background: #11271B; /* Card BG */
  color: #57E38D; /* Glow */
  border: 2px solid #2AD16F; /* Lighter green border */
}

.page-blog__cta-button--secondary:hover {
  background: #2AD16F;
  color: #F2FFF6;
  border-color: #F2FFF6;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    max-width: 700px;
  }
  .page-blog__posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
  }

  .page-blog__section-text {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* Hero Section */
  .page-blog__hero-section {
    padding-bottom: 40px;
  }

  .page-blog__hero-content {
    max-width: 90%;
    width: 100%;
    top: auto;
    bottom: 20px;
    transform: translateX(-50%);
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
  }

  .page-blog__hero-title {
    font-size: clamp(28px, 6vw, 40px);
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: clamp(16px, 3vw, 20px);
    margin-bottom: 20px;
  }

  .page-blog__cta-button {
    font-size: 16px;
    padding: 12px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Images responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive */
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-blog__video-section {
    padding-top: 10px !important; /* body handles header offset */
  }

  /* Card & Content containers responsive */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__post-card,
  .page-blog__guides-item,
  .page-blog__promotions-item,
  .page-blog__faq-item,
  .page-blog__cta-banner-section,
  .page-blog__cta-banner-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__posts-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__guides-list,
  .page-blog__promotions-list {
    grid-template-columns: 1fr;
  }

  .page-blog__guides-item,
  .page-blog__promotions-item {
    padding: 20px;
  }

  .page-blog__guides-subtitle,
  .page-blog__promotions-item a {
    font-size: 20px;
  }

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

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

  .page-blog__cta-buttons-group {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-content {
    padding: 10px;
  }
  .page-blog__hero-title {
    font-size: clamp(24px, 7vw, 32px);
  }
  .page-blog__hero-description {
    font-size: clamp(14px, 4vw, 18px);
  }
}