/* Blog Styles - Clean White & Blue Theme (Zerodha-inspired) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  color: #333333;
  line-height: 1.7;
  min-height: 100vh;
}

/* Navigation */
.blog-nav {
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.blog-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-link {
  color: #387ed1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #2563eb;
}

.blog-home-link {
  color: #666;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.blog-home-link:hover {
  color: #387ed1;
}

/* Container */
.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
}

/* Article */
article {
  background: #ffffff;
}

h1 {
  font-size: 40px;
  color: #1a1a1a;
  margin-bottom: 24px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e8e8;
  font-size: 14px;
  color: #666;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

h2 {
  font-size: 32px;
  color: #1a1a1a;
  margin-top: 48px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 24px;
  color: #2563eb;
  margin-top: 36px;
  margin-bottom: 16px;
  font-weight: 600;
}

h4 {
  font-size: 20px;
  color: #1a1a1a;
  margin-top: 28px;
  margin-bottom: 12px;
  font-weight: 600;
}

p {
  margin-bottom: 20px;
  color: #4a4a4a;
  font-size: 17px;
  line-height: 1.8;
}

strong {
  color: #1a1a1a;
  font-weight: 600;
}

ul, ol {
  margin-left: 28px;
  margin-bottom: 24px;
  color: #4a4a4a;
}

li {
  margin-bottom: 12px;
  line-height: 1.7;
  font-size: 17px;
}

a {
  color: #387ed1;
  text-decoration: none;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

thead {
  background: #f8f9fa;
}

th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #1a1a1a;
  border-bottom: 2px solid #e8e8e8;
  font-size: 15px;
}

td {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #4a4a4a;
  font-size: 15px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: #f8f9fa;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%);
  border: 2px solid #387ed1;
  border-radius: 12px;
  padding: 36px;
  margin: 48px 0;
  text-align: center;
}

.cta-box h3 {
  color: #1a1a1a;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 24px;
}

.cta-box p {
  margin-bottom: 24px;
  color: #4a4a4a;
  font-size: 16px;
}

.cta-button {
  display: inline-block;
  padding: 14px 32px;
  background: #387ed1;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  border: none;
}

.cta-button:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 126, 209, 0.3);
  border-bottom: none;
}

/* FAQ Section */
.faq-section {
  margin-top: 56px;
}

.faq-item {
  margin-bottom: 28px;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #387ed1;
}

.faq-item h4 {
  color: #1a1a1a;
  margin-bottom: 12px;
  margin-top: 0;
  font-size: 18px;
  font-weight: 600;
}

.faq-item p {
  margin-bottom: 0;
  color: #4a4a4a;
  font-size: 16px;
}

/* Stock Links */
.stock-link {
  display: inline-block;
  padding: 4px 10px;
  background: #e3f2fd;
  border-radius: 4px;
  color: #387ed1;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: none;
}

.stock-link:hover {
  background: #bbdefb;
  color: #2563eb;
  border-bottom: none;
}

/* Highlight */
.highlight {
  color: #2563eb;
  font-weight: 600;
}

/* Section */
.section {
  margin-bottom: 40px;
}

/* Footer */
.blog-footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #e8e8e8;
}

.disclaimer {
  background: #fff9e6;
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

.disclaimer h4 {
  color: #d97706;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

.disclaimer p {
  color: #4a4a4a;
  font-size: 14px;
  margin-bottom: 0;
  line-height: 1.6;
}

.disclaimer-box {
  background: #fff9e6;
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
}

.disclaimer-box h4 {
  color: #d97706;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

.disclaimer-box p {
  color: #4a4a4a;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.disclaimer-box p:last-child {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #666;
  font-size: 14px;
  text-decoration: none;
  border-bottom: none;
}

.footer-links a:hover {
  color: #387ed1;
  border-bottom: none;
}

.copyright {
  text-align: center;
  color: #999;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-nav .nav-container {
    padding: 0 20px;
  }
  
  .blog-container {
    padding: 40px 20px;
  }
  
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 26px;
  }
  
  h3 {
    font-size: 22px;
  }
  
  p, li {
    font-size: 16px;
  }
  
  table {
    font-size: 14px;
  }
  
  th, td {
    padding: 12px;
  }
  
  .cta-box {
    padding: 28px 20px;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* Print Styles */
@media print {
  .blog-nav,
  .cta-box,
  .footer-links {
    display: none;
  }
  
  body {
    background: white;
  }
}
