:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --background: #ffffff;
  --foreground: #1e293b;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --card: #ffffff;
  --card-foreground: #1e293b;
  --radius: 0.5rem;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: var(--foreground);
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  position: relative;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.3s;
}

nav a:hover,
nav a.active {
  opacity: 1;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
}

.primary-btn {
  background-color: var(--primary);
  color: white;
}

.primary-btn:hover {
  background-color: var(--primary-hover);
}

.secondary-btn {
  background-color: var(--muted);
  color: var(--foreground);
}

.secondary-btn:hover {
  background-color: var(--border);
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  text-align: center;
  background-color: var(--muted);
}

.hero h1 {
  font-size: 2.5rem;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--muted-foreground);
}

/* Featured Posts */
.featured-posts {
  padding: 5rem 0;
}

.featured-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: var(--card);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.post-card-image {
  height: 200px;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 1.5rem;
}

.post-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
 /* text-transform: uppercase; */
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.post-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

.view-all {
  text-align: center;
}

/* Blog Page */
.blog-header {
  padding: 4rem 0;
  text-align: center;
  background-color: var(--muted);
}

.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-header p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted-foreground);
}

.blog-posts {
  padding: 5rem 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Blog Post Page */
.blog-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.blog-post-image {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-post-image img {
  width: 60%;
  height: 60%;
}

.blog-post-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.blog-post-content p {
  margin-bottom: 1.5rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-post-content ul li,
.blog-post-content ol li {
  margin-bottom: 0.5rem;
}

/* Related Posts */
.related-posts {
  padding: 3rem 0 5rem;
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Footer */
footer {
  background-color: var(--muted);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-col h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--muted-foreground);
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--foreground);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    gap: 1.5rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 3rem;
  }
  
  .footer-links {
    width: 100%;
    gap: 2rem;
  }
  
  .footer-col {
    flex: 1 1 100%;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .featured-grid,
  .posts-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-post-header h1 {
    font-size: 2rem;
  }
}

main {
  padding-top: 6rem;
}

/* Blog post content HTML styling */
.blog-post-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--foreground);
}

.blog-post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--foreground);
}

.blog-post-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: var(--muted);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  font-style: italic;
}

.blog-post-content blockquote p {
  margin-bottom: 0.5rem;
}

.blog-post-content blockquote cite {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-style: normal;
}

.blog-post-content strong {
  font-weight: 600;
}

.blog-post-content ul {
  list-style: disc;
}

.blog-post-content ol {
  list-style: decimal;
}

.blog-post-content ul li,
.blog-post-content ol li {
  margin-bottom: 0.5rem;
}
