/* Blog-specific styles matching main site design */

:root {
  --blog-primary: #1b5e20;
  --blog-primary-light: #2e7d32;
  --blog-accent: #4caf50;
  --blog-bg: #f8fff9;
  --blog-text: #2d3436;
  --blog-text-light: #636e72;
}

body {
  background: #ffffff;
}

/* Blog Container */
.blog-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 20px 60px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Blog Header */
.blog-title {
  font-size: 2.8rem;
  color: var(--blog-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e8f5e9;
  color: var(--blog-text-light);
  font-size: 0.95rem;
}

/* Section Styles */
.blog-section {
  margin-bottom: 3rem;
}

.blog-section h2 {
  font-size: 2rem;
  color: var(--blog-primary);
  margin: 2.5rem 0 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

.blog-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--blog-accent);
  border-radius: 2px;
}

.blog-section h3 {
  font-size: 1.5rem;
  color: var(--blog-primary-light);
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.blog-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--blog-text);
  margin-bottom: 1.5rem;
}

.blog-section strong {
  color: var(--blog-primary);
  font-weight: 600;
}

.blog-section em {
  color: var(--blog-primary-light);
  font-style: italic;
}

.blog-section a {
  color: #1b5e20; /* Changed from #4caf50 for better contrast */
  text-decoration: underline;
  transition: color 0.3s ease;
  font-weight: 500;
}

.blog-section a:hover {
  color: #2e7d32;
  text-decoration-thickness: 2px;
}

/* Lists */
.blog-section ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
  list-style: none;
}

.blog-section ul li {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--blog-text);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.blog-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blog-accent);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Checklist */
.checklist {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--blog-accent);
  margin: 2rem 0;
}

.checklist p {
  font-weight: 600;
  color: var(--blog-primary-light);
  margin-bottom: 1rem;
}

.checklist li {
  color: var(--blog-primary-light);
  font-weight: 500;
}

/* Highlight Boxes */
.highlight-box {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #ff9800;
  margin: 2rem 0;
}

.highlight-box p {
  color: #e65100;
  font-weight: 500;
  margin: 0;
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #2196f3;
  margin: 2rem 0;
}

.info-box p {
  color: #1565c0;
  margin-bottom: 0;
}

/* Tips Section */
.tips-section {
  background: #f8fff9;
  padding: 2rem;
  border-radius: 16px;
  border: 2px solid #e8f5e9;
  margin: 2rem 0;
}

.tips-section h3 {
  color: var(--blog-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.tips-section p {
  margin-bottom: 1.5rem;
}

.tips-section strong {
  display: block;
  color: var(--blog-primary-light);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* CTA Box */
.cta-box-final {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  margin: 4rem 0;
  box-shadow: 0 12px 40px rgba(46, 125, 50, 0.2);
  border: 2px solid rgba(76, 175, 80, 0.3);
}

.cta-box-final h2 {
  color: var(--blog-primary);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta-box-final h2::after {
  display: none;
}

.cta-box-final p {
  font-size: 1.2rem;
  color: var(--blog-text);
  margin-bottom: 2rem;
}

.blog-cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  color: white;
  padding: 1.3rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.blog-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
}

/* Emoji Icons */
.emoji-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-container {
    padding: 120px 15px 40px;
  }

  .blog-title {
    font-size: 2rem;
  }

  .blog-meta {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .blog-section h2 {
    font-size: 1.6rem;
  }

  .blog-section h3 {
    font-size: 1.3rem;
  }

  .blog-section p,
  .blog-section ul li {
    font-size: 1rem;
  }

  .cta-box-final {
    padding: 2rem 1.5rem;
  }

  .cta-box-final h2 {
    font-size: 1.8rem;
  }

  .blog-cta-button {
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
  }

  .tips-section {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .blog-title {
    font-size: 1.6rem;
  }

  .blog-section h2 {
    font-size: 1.4rem;
  }

  .cta-box-final h2 {
    font-size: 1.6rem;
  }

  .blog-section p,
  .blog-section ul li {
    font-size: 0.95rem;
  }

  .checklist,
  .highlight-box,
  .info-box {
    padding: 1.2rem;
  }
}


/* ================= RELATED ARTICLES SECTION (Improved) ================= */

/* 1. Main Container (The Card) */
.related-articles {
  margin-top: 4rem; /* Increased top margin for better separation */
  padding: 2.5rem; /* Slightly increased padding */
  background: var(--background-light, #f9f9f9);
  border-radius: 1.25rem; /* Larger, softer border-radius */
  /* Enhanced box-shadow for a more prominent, lifted card look */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
  border: 1px solid var(--border-light, #e0e0e0); /* Defined border for structure */
}

/* 2. Section Heading Style */
.related-articles h2 {
  font-size: 1.75rem; /* Slightly larger heading */
  font-weight: 800; /* Bolder heading */
  color: var(--primary-dark, #2e7d32);
  margin-bottom: 2rem; /* Increased margin below heading */
  text-align: left;
  /* Use a subtle gradient or solid color border */
  border-left: 6px solid var(--primary-light, #81c784); /* Thicker, lighter border for contrast */
  padding-left: 1rem; /* Increased padding */
  line-height: 1.2;
}

/* 3. List and Grid Layout */
.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  /* Use a responsive grid with a minimum card width */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 1.5rem; /* Increased gap between cards */
}

/* 4. Individual List Item (Article Link Card) */
.related-articles ul li {
  background: #fff;
  border-radius: 1rem; /* Defined border-radius */
  padding: 1.5rem; /* Increased padding inside the card */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Cleaner card shadow */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
  border: 1px solid #f0f0f0; /* Subtle internal border */
}

/* Hover Effect for Individual Link Cards */
.related-articles ul li:hover {
  transform: translateY(-6px); /* More pronounced lift effect */
  box-shadow: 0 12px 25px rgba(0,0,0,0.15); /* Stronger shadow on hover */
}

/* 5. Link Styling */
.related-articles ul li a {
  text-decoration: none;
  color: var(--text-dark, #333);
  font-weight: 700; /* Bolder link text */
  font-size: 1.1rem; /* Slightly larger font size for readability */
  display: flex;
  align-items: center;
  justify-content: space-between; /* Separate link text from arrow */
  gap: 1rem; /* Increased gap */
  transition: color 0.3s ease;
  line-height: 1.4;
}

.related-articles ul li a:hover {
  color: var(--primary, #4caf50);
}

/* 6. Arrow Icon Styling */
.related-articles ul li a::after {
  content: "→";
  font-weight: 900; /* Extra bold arrow */
  font-size: 1.25rem;
  color: var(--primary-dark, #2e7d32);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-left: auto; /* Ensures arrow stays on the right */
}

.related-articles ul li:hover a::after {
  transform: translateX(6px); /* More noticeable arrow movement */
}

/* 7. Responsive Layout for Smaller Screens */
@media (max-width: 768px) {
  .related-articles {
    margin-top: 3rem;
    padding: 2rem 1rem;
    border-radius: 1rem;
  }

  .related-articles h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
  }

  .related-articles ul {
    grid-template-columns: 1fr; /* Stack links vertically on small screens */
    gap: 0.75rem;
  }

  .related-articles ul li {
    padding: 1rem;
    border-radius: 0.75rem;
  }

  .related-articles ul li a {
    font-size: 1rem;
    justify-content: space-between;
  }
}







/* FAQ Section Styles */
.blog-section details {
    margin-bottom: 1.2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-section details:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(46, 125, 50, 0.15);
}

.blog-section summary {
    width: 100%;
    background: none;
    border: none;
    padding: 1.4rem 1.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1b5e20;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: all 0.3s ease;
}

.blog-section summary::-webkit-details-marker {
    display: none;
}

.blog-section summary::after {
    content: '+';
    font-size: 1.5rem;
    color: #2e7d32;
    transition: transform 0.3s ease;
}

.blog-section details[open] summary::after {
    content: '+';
    transform: rotate(45deg);
    color: #1b5e20;
}

.blog-section details[open] summary {
    color: #1b5e20;
}

.blog-section details p {
    display: none;
    padding: 0 1.8rem 1.6rem;
    color: #2d3436;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

.blog-section details[open] p {
    display: block;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .blog-section details {
        margin-bottom: 1rem;
    }
    
    .blog-section summary {
        font-size: 1.1rem;
        padding: 1.2rem 1.5rem;
    }
    
    .blog-section details p {
        padding: 0 1.5rem 1.4rem;
    }
    
    .blog-section summary::after {
        font-size: 1.3rem;
    }
}



.intro-link {
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #2e7d32;
    margin: 2rem 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.intro-link a {
    color: #1b5e20;
    text-decoration: none;
    transition: color 0.3s ease;
}

.intro-link a:hover {
    color: #2e7d32;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .intro-link {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* ================= NAV OVERLAY FIX ================= */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ================= MOBILE NAV FIXES ================= */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8fff9 100%);
    padding: 100px 0 30px;
    transition: left 0.4s ease;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  /* CRITICAL FIX: Remove animations that cause blank menu */
  nav ul li {
    width: 100%;
    opacity: 1 !important;
    transform: translateX(0) !important;
    animation: none !important;
  }

  nav ul li a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.05rem;
    color: #2d3436;
    background: transparent;
    border-radius: 0;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
  }

  nav ul li a:hover {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.15) 0%, transparent 100%);
    color: #1b5e20;
    padding-left: 2.2rem;
  }

  /* Remove problematic menu text */
  nav::before,
  nav::after {
    display: none;
  }
}

@media (max-width: 480px) {
  nav {
    width: 280px;
  }

  nav ul li a {
    padding: 1.1rem 1.5rem;
    font-size: 1rem;
  }
}