/* ========================================
   📝 BLOG POST PAGE - CSS
   Index.html Theme ke According
======================================== */

/* ========================================
   📦 BLOG POST CONTAINER
======================================== */
.blog-post-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.blog-post {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 3rem 2.5rem;
  animation: fadeInUp 0.6s ease;
}

/* ========================================
   📋 POST META INFO
======================================== */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.category-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-date,
.read-time {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ========================================
   📝 TYPOGRAPHY
======================================== */
.blog-post h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  line-height: 1.3;
  margin-bottom: 2rem;
  font-weight: 800;
}

.blog-post h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
  font-weight: 700;
}

.blog-post h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.blog-post p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.intro-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-color);
  line-height: 1.9;
}

/* ========================================
   🖼️ FEATURED IMAGE
======================================== */
.featured-image {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  margin: 2rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  box-shadow: var(--shadow-lg);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-image:hover img {
  transform: scale(1.05);
}

/* ========================================
   📋 TABLE OF CONTENTS
======================================== */
.table-of-contents {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.table-of-contents h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.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-weight: bold;
}

.table-of-contents a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.table-of-contents a:hover {
  color: var(--primary-dark);
  padding-left: 0.5rem;
}

/* ========================================
   📄 POST SECTIONS
======================================== */
.post-section {
  margin: 3rem 0;
}

/* Lists */
.blog-post ul,
.blog-post ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.blog-post ul li,
.blog-post ol li {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-color);
}

.blog-post ul li::marker {
  color: var(--primary-color);
}

.blog-post ol li::marker {
  color: var(--primary-color);
  font-weight: 700;
}

.blog-post li strong {
  color: var(--primary-color);
  font-weight: 700;
}

/* Links */
.blog-post a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.blog-post a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-color);
}

.blog-post strong {
  color: var(--primary-color);
  font-weight: 700;
}

/* ========================================
   💡 INFO BOX
======================================== */
.info-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 2px solid var(--success-color);
  border-left: 4px solid var(--success-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.info-box p {
  margin: 0;
  color: var(--text-color);
}

/* ========================================
   🎨 COLOR COMBO CARDS
======================================== */
.color-combo-card {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  transition: all 0.3s ease;
}

.color-combo-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.combo-preview {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.color-swatch {
  flex: 1;
  height: 80px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.color-swatch:hover {
  transform: scale(1.05);
}

.combo-details h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.combo-details p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

/* ========================================
   📝 COMBO LIST
======================================== */
.combo-list {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.combo-list h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.combo-list ul {
  margin-left: 0;
  list-style: none;
}

.combo-list ul li {
  padding: 1rem;
  background: white;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.combo-list ul li:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateX(5px);
}

/* ========================================
   🎯 CTA BOX
======================================== */
.cta-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.cta-box h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cta-box p {
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   ⚡ TIP BOX
======================================== */
.tip-box {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
  border: 2px solid #FFC107;
  border-left: 4px solid #FFC107;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.tip-box p {
  margin: 0;
  color: var(--text-color);
}

/* ========================================
   📚 RELATED POSTS
======================================== */
.related-posts {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 3px solid var(--border-color);
}

.related-posts h3 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.related-card {
  padding: 1.5rem;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.related-card h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.related-card p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.95rem;
}

/* ========================================
   📱 RESPONSIVE - TABLETS (640px+)
======================================== */
@media (min-width: 640px) {
  .blog-post h1 {
    font-size: 3rem;
  }

  .blog-post h2 {
    font-size: 2.2rem;
  }

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   💻 RESPONSIVE - DESKTOP (768px+)
======================================== */
@media (min-width: 768px) {
  .blog-post {
    padding: 4rem 3.5rem;
  }

  .blog-post h1 {
    font-size: 3.5rem;
  }

  .featured-image {
    height: 500px;
  }
}

/* ========================================
   📱 RESPONSIVE - MOBILE
======================================== */
@media (max-width: 640px) {
  .blog-post-container {
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .blog-post {
    padding: 2rem 1.5rem;
  }

  .blog-post h1 {
    font-size: 2rem;
  }

  .blog-post h2 {
    font-size: 1.5rem;
  }

  .featured-image {
    height: 250px;
  }

  .combo-preview {
    flex-direction: column;
  }

  .color-swatch {
    height: 60px;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========================================
   ✨ ANIMATIONS
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   ♿ ACCESSIBILITY
======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.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 */
}