/* style/blog.css */

/* --- General Styling for page-blog scope --- */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main color on dark background */
  background-color: #08160F; /* Background color */
  padding-bottom: 40px; /* Ensure some space at the bottom */
}

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

/* --- Section Titles and Descriptions --- */
.page-blog__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Main text color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-blog__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Secondary text color */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

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

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.6); /* Glow color */
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Brighter green for contrast */
  border: 2px solid #2AD16F; /* Border color */
}

.page-blog__btn-secondary:hover {
  background-color: #2AD16F;
  color: #08160F; /* Background color for hover text */
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.6); /* Glow color */
}

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

/* --- Hero Section --- */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1; /* Ensure image is below text if any */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure minimum size */
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Pull content slightly over image */
  background: rgba(8, 22, 15, 0.9); /* Dark background color with transparency */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #2E7A4E; /* Border color */
}

/* Ensure H1 doesn't have a fixed large font-size */
.page-blog__main-title {
  color: #F2FFF6; /* Text Main color */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 15px;
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
}

.page-blog__subtitle {
  color: #A7D9B8; /* Text Secondary color */
  font-size: 1.15em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Latest Posts Section --- */
.page-blog__latest-posts-section {
  padding: 80px 0;
  background-color: #08160F; /* Background color */
}

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

.page-blog__post-card {
  background-color: #11271B; /* Card BG color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(87, 227, 141, 0.4); /* Glow color */
}

.page-blog__post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-blog__post-thumbnail {
  width: 100%;
  height: 220px; /* Fixed height for thumbnails */
  object-fit: cover;
  display: block;
}

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

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

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

.page-blog__post-excerpt {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary color */
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Limit to 4 lines for more content */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-blog__read-more {
  color: #2AD16F; /* Brighter green for contrast */
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

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

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

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

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

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

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

.page-blog__feature-text {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary color */
  margin-bottom: 20px;
}

.page-blog__read-more-link {
  color: #2AD16F; /* Brighter green for contrast */
  font-weight: bold;
  text-decoration: none;
}

.page-blog__read-more-link:hover {
  text-decoration: underline;
}

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

.page-blog__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-blog__category-card {
  background-color: #11271B; /* Card BG color */
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: #F2FFF6; /* Text Main color */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.4); /* Glow color */
}

.page-blog__category-icon {
  font-size: 2.5em;
  display: block;
  margin-bottom: 10px;
  color: #57E38D; /* Glow color */
}

.page-blog__category-title {
  font-size: 1.1em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main color */
}

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

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

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

.page-blog__reason-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px #57E38D); /* Subtle glow for icons */
}

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

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

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

.page-blog__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main color */
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

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

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

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

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

.page-blog__faq-answer p {
  margin-bottom: 0;
}

/* --- Bottom CTA Section --- */
.page-blog__cta-bottom-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green for a distinct CTA */
  text-align: center;
  border-top: 1px solid #2E7A4E; /* Border color */
}

.page-blog__cta-bottom-section .page-blog__section-title {
  color: #F2FFF6; /* Text Main color */
}

.page-blog__cta-bottom-section .page-blog__section-description {
  color: #A7D9B8; /* Text Secondary color */
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: -60px;
    padding: 30px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
}

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

  /* All containing elements for images/videos/buttons */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__posts-grid,
  .page-blog__feature-grid,
  .page-blog__reasons-grid,
  .page-blog__category-grid,
  .page-blog__post-card,
  .page-blog__feature-item,
  .page-blog__category-card,
  .page-blog__reason-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;
  }
  
  /* Remove specific padding for elements that might have it already if they are full-width sections */
  .page-blog__hero-section,
  .page-blog__latest-posts-section,
  .page-blog__featured-section,
  .page-blog__categories-section,
  .page-blog__why-read-section,
  .page-blog__faq-section,
  .page-blog__cta-bottom-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

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

  /* Video adaptation (if any video is added later) */
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Hero Section Mobile */
  .page-blog__hero-section {
    padding-bottom: 40px;
  }
  .page-blog__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
  }
  .page-blog__main-title {
    font-size: 2em; /* Smaller on mobile */
  }
  .page-blog__subtitle {
    font-size: 1em;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100%; /* Full width buttons */
    padding: 15px 10px;
  }

  /* Sections Mobile */
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-blog__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* Grid layouts */
  .page-blog__posts-grid,
  .page-blog__feature-grid,
  .page-blog__reasons-grid,
  .page-blog__category-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-blog__post-thumbnail {
    height: 180px; /* Adjust thumbnail height */
  }
  
  /* FAQ Mobile */
  .page-blog__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }
  
  /* Video section top padding (if any) - ensure it's small */
  .page-blog__video-section {
    padding-top: 10px !important; 
  }
}

/* Ensure no filter on images */
.page-blog img {
  filter: none !important;
}

/* Content area image size check - minimum 200px */
.page-blog__latest-posts-section img,
.page-blog__featured-section img,
.page-blog__why-read-section img {
  min-width: 200px;
  min-height: 200px;
}
@media (max-width: 768px) {
  .page-blog__latest-posts-section img,
  .page-blog__featured-section img,
  .page-blog__why-read-section img {
    min-width: unset; /* Allow flexibility on mobile */
    min-height: unset;
  }
}