/* style/blog.css */
/* 
 * CSS for the Blog page (blog.html)
 * All class names follow BEM methodology with .page-blog__ prefix.
 * Styles are scoped to .page-blog.
 */

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

/* Ensure contrast for main text against the dark background */
.page-blog p,
.page-blog li,
.page-blog a {
  color: #F2FFF6; /* Text Main */
}

/* Headings */
.page-blog h1,
.page-blog h2,
.page-blog h3 {
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-blog h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 size */
  font-weight: bold;
  line-height: 1.2;
}

.page-blog h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

.page-blog h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: bold;
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Align content to top */
  min-height: 500px; /* Minimum height for hero */
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px; /* Padding below content */
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* Ensure image is behind content */
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 40px 20px;
  background-color: rgba(17, 40, 27, 0.7); /* Card BG with transparency */
  border-radius: 10px;
  margin-top: 50px; /* Space from top */
}

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

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

.page-blog__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4); /* Glow effect */
}

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

.page-blog__introduction-section p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #A7D9B8; /* Text Secondary */
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
  padding: 60px 0;
  background-color: #11271B; /* Card BG */
}

.page-blog__section-description {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.05rem;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.3);
}

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

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

.page-blog__card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

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

.page-blog__card-excerpt {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-blog__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: #22C768; /* Auxiliary color */
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.page-blog__read-more-button:hover {
  background-color: #13994A; /* Darker green */
}

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

/* Why Choose Us Section */
.page-blog__why-choose-us-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

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

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

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

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

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

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
  background-color: #11271B; /* Card BG */
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-blog__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #08160F; /* Background */
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
  padding-bottom: 20px;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.3);
}

.page-blog__category-thumbnail {
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-blog__category-title {
  font-size: 1.2rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-blog__category-count {
  font-size: 0.9rem;
  color: #A7D9B8; /* Text Secondary */
}

/* Call to Action Section (Dark) */
.page-blog__cta-section.page-blog__dark-section {
  background-color: #0A4B2C; /* Deep Green */
  padding: 80px 0;
  text-align: center;
}

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

.page-blog__cta-section .page-blog__section-description {
  color: #A7D9B8; /* Text Secondary */
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

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

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

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

.page-blog__btn-secondary:hover {
  background-color: rgba(42, 209, 111, 0.1); /* Light hover effect */
  color: #F2FFF6; /* Text Main */
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  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-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B; /* Card BG */
  position: relative;
  list-style: none; /* Remove default marker for details summary */
}

.page-blog__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker in Webkit browsers */
}

.page-blog__faq-qtext {
  flex-grow: 1;
  color: #F2FFF6; /* Text Main */
}

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

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

.page-blog__faq-answer p {
  margin-top: 15px;
  color: #A7D9B8; /* Text Secondary */
}

/* Details tag specific styles */
.page-blog__faq-item[open] .page-blog__faq-question {
  background-color: #0A4B2C; /* Deep Green when open */
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  color: #F2FFF6; /* Text Main when open */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: 30px;
    padding: 30px 15px;
  }
  .page-blog__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__post-grid,
  .page-blog__features-grid,
  .page-blog__categories-grid {
    gap: 20px;
  }
}

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

  /* Mobile image responsive */
  .page-blog img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsive (if any, though not in this specific HTML) */
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__hero-section {
    min-height: 400px;
    padding-bottom: 40px;
    padding-top: 10px !important; /* body already has padding-top */
  }

  .page-blog__hero-content {
    margin-top: 20px;
    padding: 25px 10px;
  }

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

  .page-blog__hero-description {
    font-size: 0.95rem;
  }

  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

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

  .page-blog__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

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

  .page-blog__post-thumbnail {
    height: 180px;
  }

  .page-blog__card-title {
    font-size: 1.1rem;
  }

  .page-blog__card-excerpt {
    font-size: 0.9rem;
  }

  .page-blog__read-more-button {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .page-blog__features-grid,
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-blog__feature-title {
    font-size: 1.2rem;
  }

  .page-blog__cta-section {
    padding: 60px 0;
  }

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

  /* Button responsive */
  .page-blog__cta-button,
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-blog__faq-toggle {
    font-size: 1.2rem;
  }

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

  /* Ensure all containers with images/videos/buttons are constrained */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__post-card,
  .page-blog__category-card,
  .page-blog__feature-item,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Removed padding-left/right here to avoid double padding if container already has it */
  }
}

/* Ensure no image filters are used */
.page-blog img {
  filter: none; /* Override any potential global filters */
}