/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  overflow-y: scroll;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  /* padding: 0 20px; */
}

/* Header */
.header {
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 0;
  margin-bottom: 30px;
  position: sticky;
  top: 0;
  background: #fff;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  color: #111;
  display: flex;
}

.logo>a {
  margin-right: 0.3rem;
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: #666;
  font-size: 15px;
  transition: color 0.2s;
  font-weight: 500;
}

a {
  color: #667eea;
  text-decoration: none;
}

nav a.active {
  color: #111 !important;
  font-weight: 500;
}

nav a:hover:not(.active) {
  color: #666;
  font-weight: 500;
  text-decoration: underline !important;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111;
}

.subtitle {
  font-size: 20px;
  color: #666;
  /* max-width: 600px; */
  margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 80px;
}

.blog-card {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 20px;
}

.blog-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;
}

h2 {
  color: #667eea;
  /* margin-top: 30px; */
  margin-bottom: 15px;
  font-size: 1.5em;
}

.blog-card h2 {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card h2 a {
  text-decoration: none;
  color: #111;
  transition: color 0.2s;
}

.blog-card h2 a:hover {
  color: #4f46e5;
}

.excerpt {
  color: #666;
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.read-more {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.read-more:hover {
  color: #3730a3;
}

/* Blog Post Page Styles */
.blog-post {
  margin-bottom: 80px;
}

.blog-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e5e7eb;
}

.blog-header h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #111;
}

.blog-header .blog-meta {
  justify-content: center;
  font-size: 15px;
}

.blog-content {
  font-size: 18px;
  line-height: 1.8;
  color: #374151;
}

.blog-content h2 {
  font-size: 32px;
  margin-top: 48px;
  margin-bottom: 16px;
  color: #111;
}

.blog-content h3 {
  font-size: 24px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #111;
}

.blog-content p {
  margin-bottom: 20px;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.blog-content li {
  margin-bottom: 8px;
}

.blog-content strong {
  font-weight: 600;
  color: #111;
}

.blog-content em {
  font-style: italic;
}

.blog-content a {
  color: #4f46e5;
  text-decoration: underline;
}

.blog-content a:hover {
  color: #3730a3;
}

.blog-content code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  color: #dc2626;
}

.blog-content pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.blog-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 14px;
}

.blog-content blockquote {
  border-left: 4px solid #4f46e5;
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: #666;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

/* Back to Blog Link */
.back-link {
  display: inline-block;
  margin-bottom: 40px;
  color: #666;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.back-link:hover {
  color: #111;
}

/* Footer */
.footer {
  border-top: 1px solid #e5e7eb;
  padding: 20px 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #111;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .subtitle {
    font-size: 18px;
  }

  .blog-card h2 {
    font-size: 24px;
  }

  .blog-header h1 {
    font-size: 32px;
  }

  .blog-content {
    font-size: 17px;
  }

  .blog-content h2 {
    font-size: 26px;
  }

  .footer .container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
.login-btn-hero {
    padding: 0.3em 1em;
    background: #705ebd;
    color: #FFF;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}