/* ========================================
   📝 BLOG POST CSS - QUICK TOOL DESIGN
   Index.html ke design ke according banaya gaya
======================================== */

/* ✅ Blog Post Container */
.blog-post-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.6s ease;
}

/* ✅ Blog Post Article */
.blog-post {
  color: var(--text-color);
}

/* ========================================
   📅 POST META INFO
======================================== */
.post-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.post-meta span {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.post-date,
.read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ========================================
   📰 BLOG TITLE
======================================== */
.blog-post h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
}

/* ========================================
   🖼️ FEATURED IMAGE
======================================== */
.featured-image {
  width: 100%;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ========================================
   📝 POST CONTENT SECTIONS
======================================== */
.post-section {
  margin: 2.5rem 0;
}

.post-section h2 {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
}

.post-section h3 {
  font-size: 1.35rem;
  color: var(--text-color);
  margin: 1.5rem 0 1rem;
  font-weight: 600;
}

.post-section p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-color);
  font-size: 1rem;
}

.intro-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
}

/* ========================================
   📋 TABLE OF CONTENTS
======================================== */
.table-of-contents {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow);
}

.table-of-contents h3 {
  color: var(--primary-dark);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents ul li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.table-of-contents ul li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 0.75rem;
}

.table-of-contents a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.table-of-contents a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

/* ========================================
   📦 INFO BOXES
======================================== */
.info-box,
.tip-box {
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow);
}

.info-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.tip-box {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
  border-left-color: var(--accent-color);
}

.info-box p,
.tip-box p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-color);
}

.info-box strong,
.tip-box strong {
  color: var(--primary-dark);
  font-weight: 700;
}

/* ========================================
   📋 LISTS
======================================== */
.post-section ul,
.post-section ol {
  margin: 1rem 0 1.5rem 1.5rem;
  padding-left: 1rem;
}

.post-section ul li,
.post-section ol li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  color: var(--text-color);
}

.post-section ul li strong,
.post-section ol li strong {
  color: var(--primary-dark);
  font-weight: 600;
}

/* ========================================
   🎴 CASE TYPE CARDS
======================================== */
.case-type-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.case-type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.case-type-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.case-type-card p {
  margin-bottom: 1rem;
}

.case-type-card ol {
  margin-left: 1.5rem;
}

/* ========================================
   📊 EXAMPLE BOXES
======================================== */
.example-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  border-left: 3px solid var(--secondary-color);
}

.example-box p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.example-box strong {
  color: var(--primary-dark);
}

/* ========================================
   ✅❌ EXAMPLE COMPARISON
======================================== */
.example-comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.bad-example,
.good-example {
  padding: 1.25rem;
  border-radius: 12px;
  border: 2px solid;
}

.bad-example {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
  border-color: #ef4444;
}

.good-example {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.02) 100%);
  border-color: #22c55e;
}

.bad-example p,
.good-example p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.bad-example strong {
  color: #dc2626;
}

.good-example strong {
  color: #16a34a;
}

/* ========================================
   📊 GUIDELINE TABLE
======================================== */
.guideline-table {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.guideline-table p {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.guideline-table p:last-child {
  margin-bottom: 0;
}

.guideline-table strong {
  color: var(--primary-dark);
  font-weight: 700;
}

/* ========================================
   🎯 CTA BOX
======================================== */
.cta-box {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-lg);
}

.cta-box h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.cta-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   🔗 RELATED POSTS
======================================== */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px solid var(--border-color);
}

.related-posts h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.related-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  padding: 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.related-card h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.related-card p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.9rem;
}

/* ========================================
   🔗 INLINE LINKS
======================================== */
.post-section a,
.intro-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.post-section a:hover,
.intro-text a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-color);
}

/* ========================================
   📱 RESPONSIVE - TABLETS
======================================== */
@media (min-width: 640px) {
  .blog-post-container {
    padding: 2.5rem 2rem;
  }

  .blog-post h1 {
    font-size: 2.5rem;
  }

  .post-section h2 {
    font-size: 2rem;
  }

  .example-comparison {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* ========================================
   💻 RESPONSIVE - DESKTOP
======================================== */
@media (min-width: 768px) {
  .blog-post-container {
    padding: 3rem 2.5rem;
  }

  .blog-post h1 {
    font-size: 2.75rem;
  }

  .post-meta {
    gap: 2rem;
  }

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .blog-post-container {
    max-width: 1000px;
    padding: 3.5rem 3rem;
  }

  .blog-post h1 {
    font-size: 3rem;
  }

  .post-section h2 {
    font-size: 2.25rem;
  }
}

/* ========================================
   ✨ ANIMATIONS
======================================== */
.case-type-card,
.related-card,
.info-box,
.tip-box {
  animation: fadeIn 0.6s ease backwards;
}

.case-type-card:nth-of-type(1) { animation-delay: 0.1s; }
.case-type-card:nth-of-type(2) { animation-delay: 0.2s; }
.case-type-card:nth-of-type(3) { animation-delay: 0.3s; }

/* ========================================
   🎯 ACCESSIBILITY
======================================== */
.post-section a:focus,
.cta-button:focus,
.related-card:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .case-type-card,
  .related-card,
  .info-box,
  .tip-box {
    animation: none;
  }
}

.hilltop-banner-wrapper {
  text-align: center; /* Banner ko center mein laayega */
  margin-top: 20px; /* Top se thoda space (chipakne se bachayega, adjust kar le 30px if zyada chahiye) */
  margin-bottom: 20px; /* Neeche bhi space de, optional */
  width: 100%; /* Full width for responsive */
}

.hilltop-banner-wrapper img {
  max-width: 100%; /* Image responsive rahe, overflow na ho */
  height: auto; /* Aspect ratio maintain */
}