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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

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

/* Header */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  position: relative;
}

.nav-brand {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: #6366f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.brand-link:hover {
  color: #4f46e5;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #6366f1;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 4rem 0;
  text-align: center;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.cta-button {
  display: inline-block;
  background: #6366f1;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.cta-button:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Sections */
.featured-articles,
.recent-articles {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 3rem;
  text-align: center;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.article-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.article-category {
  display: inline-block;
  background: #ede9fe;
  color: #6366f1;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-title a:hover {
  color: #6366f1;
}

.article-excerpt {
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #94a3b8;
}

/* Articles List */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-item {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.article-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.view-all {
  text-align: center;
  margin-top: 3rem;
}

.view-all-link {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

.view-all-link:hover {
  color: #4f46e5;
}

/* Footer */
.footer {
  background: #1e293b;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #6366f1;
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.6;
}

.footer-links h4 {
  margin-bottom: 1rem;
  color: #e2e8f0;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1rem;
  text-align: center;
  color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    flex-direction: row;
    gap: 0;
  }
  .nav-brand {
    flex: 1 1 auto;
    justify-content: flex-start;
  }
  .nav-toggle {
    display: flex;
    position: relative;
    right: 0;
    top: 0;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 100;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-link {
    width: 100%;
    padding: 1.25rem 2.5rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    margin: 0 0 0.5rem 0;
  }
  .nav-link:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
  .nav-menu .nav-link + .nav-link {
    margin-top: 0.5rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.125rem;
  }
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 0;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .article-card,
  .article-item {
    padding: 1.25rem;
  }
}

/* Performance Optimizations */
.article-card,
.article-item {
  will-change: transform;
}

/* Lazy loading styles */
.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy.loaded {
  opacity: 1;
}

/* Burger Menu */
.nav-toggle {
  order: 2;
  margin-left: auto;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  cursor: pointer;
  z-index: 110;
  transition: none;
}
.nav-toggle:hover,
.nav-toggle.active {
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  height: 4px;
  width: 28px;
  margin: 3px auto;
  background: #6366f1;
  border-radius: 2px;
  transition: 0.3s;
}
.nav-toggle.active span {
  margin: 2px auto;
  background: #1e293b;
}
.nav-toggle.active span:nth-child(1) {
  width: 22px;
  height: 3px;
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  width: 22px;
  height: 3px;
  transform: translateY(-8px) rotate(-45deg);
}
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    position: relative;
    right: 0;
    top: 0;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 100;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu.active li {
    padding: 0.5rem 0;
  }
  .nav-link {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    margin: 0 0 0.5rem 0;
  }
  .nav-link:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
  .nav-menu .nav-link + .nav-link {
    margin-top: 0.5rem;
  }
}

.article-page {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 2.5rem 2rem 2rem 2rem;
  margin: 3rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.article-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.5rem;
}
.article-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}
.article-meta {
  display: flex;
  gap: 2rem;
  color: #94a3b8;
  font-size: 1rem;
  margin-top: 0.5rem;
}
.article-lead {
  font-size: 1.25rem;
  color: #475569;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.article-content {
  color: #334155;
  line-height: 1.7;
  font-size: 1.08rem;
}
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #6366f1;
  margin: 2.5rem 0 1rem 0;
}
.article-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e293b;
  margin: 2rem 0 1rem 0;
}
.article-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #6366f1;
  margin: 1.5rem 0 0.75rem 0;
}
.article-content p {
  margin-bottom: 1.25rem;
}
.article-content ul, .article-content ol {
  margin: 1.25rem 0 1.25rem 2rem;
  padding-left: 1.25rem;
}
.article-content li {
  margin-bottom: 0.5rem;
}
.article-content blockquote {
  border-left: 4px solid #6366f1;
  background: #f8fafc;
  color: #475569;
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  font-style: italic;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .article-page {
    padding: 1.25rem 0.5rem;
  }
  .article-title {
    font-size: 1.5rem;
  }
  .article-header {