/* style/blog.css */

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3; /* Subtle overlay for text readability */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
  margin-top: 50px; /* Space from top edge */
}

.page-blog__main-title {
  font-size: 2.8rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.1rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
}

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

/* Section Titles */
.page-blog__section-title {
  font-size: 2.2rem;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  font-weight: bold;
}

/* Latest Posts Section */
.page-blog__latest-posts {
  padding-bottom: 60px;
  background-color: #0A4B2C; /* Deep Green for contrast */
}

.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: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-blog__post-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__post-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  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; /* Button top color */
}

.page-blog__post-excerpt {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__post-date {
  font-size: 0.85rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
  display: block;
}

.page-blog__read-more {
  display: inline-block;
  color: #2AD16F;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #F2C14E; /* Gold */
}

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

/* Featured Content Section */
.page-blog__featured-content {
  padding-bottom: 60px;
  background-color: #08160F; /* Background */
}

.page-blog__dark-section {
  background-color: #0A4B2C; /* Deep Green for dark sections */
  color: #F2FFF6; /* Text Main */
}

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

.page-blog__feature-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-blog__cta-area {
  text-align: center;
  margin-top: 40px;
}

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

.page-blog__faq-list {
  max-width: 800px;
  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 {
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B; /* Card BG */
  position: relative;
  list-style: none; /* Remove default marker */
}

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

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

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

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F;
}

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

/* CTA Bottom Section */
.page-blog__cta-bottom {
  padding-bottom: 60px;
  padding-top: 60px;
  text-align: center;
}

.page-blog__cta-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

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

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

.page-blog__btn-secondary {
  background-color: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.2);
}

.page-blog__btn-secondary:hover {
  background-color: #2AD16F;
  color: #08160F; /* Background */
  box-shadow: 0 6px 15px rgba(42, 209, 111, 0.4);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.4rem;
  }
  .page-blog__section-title {
    font-size: 1.8rem;
  }
  .page-blog__post-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__main-title {
    font-size: 2rem;
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__section-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
    padding-top: 40px;
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr; /* Stack cards on mobile */
  }
  .page-blog__hero-content {
    padding: 15px;
    margin-top: 30px;
  }
  .page-blog__container {
    padding: 0 15px; /* Add padding to container on mobile */
  }
  
  /* Mobile image, video, button responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure width is 100% */
    height: auto !important;
    display: block !important;
  }
  
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog__hero-section,
  .page-blog__latest-posts,
  .page-blog__featured-content,
  .page-blog__faq-section,
  .page-blog__cta-bottom,
  .page-blog__post-card,
  .page-blog__feature-item,
  .page-blog__faq-item,
  .page-blog__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px !important;
  }

  .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;
    padding: 12px 15px; /* Adjust padding for smaller screens */
  }

  .page-blog__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

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