* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f8f9ff;
  color: #111827;
  overflow-x: hidden;
}

/* ========== SKIP LINK ========== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #4f46ff;
  color: white;
  padding: 8px 16px;
  z-index: 1001;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  font-weight: 500;
}
.skip-link:focus { top: 0; outline: none; }

/* ========== NAVBAR STYLES ========== */
.navbar {
  height: 90px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  border-bottom: 1px solid #ececf8;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo { display: flex; align-items: center; gap: 14px; z-index: 1002; }
.logo-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #6b5cff, #4338ff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.logo h2 { font-size: 24px; background: linear-gradient(135deg, #6b5cff, #4338ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; white-space: nowrap; }
.nav-menu { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; align-items: center; }
.nav-menu li a { text-decoration: none; color: #333; padding: 10px 18px; display: block; transition: all 0.3s ease; border-radius: 8px; font-weight: 600; font-size: 15px; }
.nav-menu li a:hover { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4); }
.nav-menu li.active a { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }

/* CSS Only Hamburger */
.nav-toggle {
  display: none;
}

.hamburger {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #ececf8;
  background: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1002;
  box-shadow: 0 8px 20px rgba(79, 70, 255, 0.08);
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: #4f46ff;
  border-radius: 20px;
  transition: all 0.3s ease;
}

/* Focus styles */
.nav-menu li a:focus-visible, .sidebar a:focus-visible, .cta-button:focus-visible,
.comment-form button:focus-visible, .social-links a:focus-visible, .reply-btn:focus-visible,
.share-btn:focus-visible, .back-to-top:focus-visible, .hamburger:focus-visible { outline: 2px solid #4f46ff; outline-offset: 2px; border-radius: 4px; }

/* ========== POST HEADER ========== */
.post-header { max-width: 900px; margin: 60px auto 40px; padding: 0 20px; text-align: center; }
.post-category { margin-bottom: 20px; }
.tag { display: inline-block; padding: 6px 14px; border-radius: 30px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }
.tag.tips { background: #dcfce7; color: #15803d; }
.post-header h1 { font-size: 48px; line-height: 1.2; margin-bottom: 20px; color: #081028; }
.post-meta { display: flex; justify-content: center; gap: 25px; margin-bottom: 30px; color: #64748b; font-size: 14px; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-feature-image { border-radius: 20px; overflow: hidden; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); }
.post-feature-image img { width: 100%; height: auto; display: block; }

/* ========== POST CONTAINER ========== */
.post-container { max-width: 1200px; margin: 50px auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 320px; gap: 50px; }
.post-content { background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%); border-radius: 24px; padding: 45px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); }
.post-intro p { font-size: 18px; line-height: 1.8; color: #475569; margin-bottom: 20px; }

/* Table of Contents */
.table-of-contents { background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%); padding: 28px; border-radius: 20px; margin: 30px 0; border-left: 4px solid #4f46ff; }
.table-of-contents h3 { margin-bottom: 18px; font-size: 18px; color: #081028; }
.table-of-contents ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.table-of-contents li a { text-decoration: none; color: #4f46ff; font-size: 14px; transition: all 0.3s ease; display: inline-block; position: relative; }
.table-of-contents li a:hover { transform: translateX(5px); }
.table-of-contents li a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: #4f46ff; transition: width 0.3s ease; }
.table-of-contents li a:hover::after { width: 100%; }
.table-of-contents li a.active { color: #4f46ff; font-weight: 600; background: #ede9ff; padding: 5px 10px; border-radius: 8px; margin: -5px -10px; }

/* Post Sections */
.post-section { margin: 45px 0; animation: fadeIn 0.3s ease forwards; }
.post-section h2 { font-size: 32px; margin-bottom: 20px; color: #081028; border-left: 4px solid #4f46ff; padding-left: 15px; }
.post-section p { font-size: 16px; line-height: 1.8; color: #475569; margin-bottom: 16px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Benefits Grid */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 25px 0; }
.benefit-card { background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%); padding: 15px; border-radius: 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #eef2ff; transition: all 0.3s ease; }
.benefit-card:hover { transform: translateY(-2px); }
.benefit-card i { font-size: 20px; color: #4f46ff; }

/* Mistake & Solution Cards */
.mistake-card { background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%); border-radius: 16px; padding: 20px; margin: 15px 0; border-left: 4px solid #dc2626; transition: all 0.3s ease; }
.mistake-card:hover { transform: translateX(3px); }
.mistake-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mistake-header i { font-size: 20px; color: #dc2626; }
.mistake-header h3 { font-size: 18px; color: #991b1b; }

.solution-card { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-radius: 16px; padding: 20px; margin: 15px 0; border-left: 4px solid #22c55e; transition: all 0.3s ease; }
.solution-card:hover { transform: translateX(3px); }
.solution-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.solution-header i { font-size: 20px; color: #22c55e; }
.solution-header h3 { font-size: 18px; color: #166534; }

/* Practices Grid */
.practices-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 25px 0; }
.practice-card { background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%); padding: 22px; border-radius: 16px; text-align: center; border: 1px solid #eef2ff; transition: all 0.3s ease; }
.practice-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(79, 70, 255, 0.1); }
.practice-card i { font-size: 32px; color: #4f46ff; margin-bottom: 12px; }
.practice-card h4 { font-size: 16px; margin-bottom: 8px; }
.practice-card p { font-size: 13px; margin-bottom: 0; }

/* Highlight Box */
.highlight-box { background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%); padding: 20px 25px; border-radius: 16px; margin: 20px 0; border-left: 4px solid #f59e0b; transition: all 0.3s ease; }
.highlight-box:hover { transform: translateX(3px); }
.highlight-box i { font-size: 20px; color: #f59e0b; margin-right: 10px; }

/* CTA Box */
.cta-box { background: linear-gradient(135deg, #f8f9ff 0%, #ede9ff 100%); padding: 35px; border-radius: 24px; text-align: center; margin: 30px 0; transition: all 0.3s ease; }
.cta-box:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); }
.cta-box .highlight { background: rgba(255, 255, 255, 0.8); padding: 12px; border-radius: 12px; margin: 15px 0; font-weight: 600; }
.cta-button { display: inline-block; margin-top: 20px; padding: 14px 32px; background: linear-gradient(135deg, #6b5cff, #4338ff); color: white; text-decoration: none; border-radius: 14px; font-weight: 600; transition: all 0.3s ease; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(107, 92, 255, 0.3); }

/* Share Buttons */
.share-buttons { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 30px 0 20px; padding: 15px; background: linear-gradient(135deg, #f8f9ff, #ffffff); border-radius: 60px; border: 1px solid #eef2ff; }
.share-label { font-size: 14px; color: #64748b; }
.share-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: all 0.3s ease; text-decoration: none; }
.share-btn.facebook { background: #1877f2; color: white; }
.share-btn.twitter { background: #1da1f2; color: white; }
.share-btn.linkedin { background: #0077b5; color: white; }
.share-btn.copy { background: #4f46ff; color: white; }
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); }

/* Author Bio */
.author-bio { display: flex; gap: 25px; padding: 28px; background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%); border-radius: 20px; margin: 45px 0; transition: all 0.3s ease; }
.author-bio:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); }
.author-bio img { width: 85px; height: 85px; border-radius: 50%; object-fit: cover; }
.author-bio h4 { font-size: 18px; margin-bottom: 8px; }
.author-bio p { font-size: 14px; color: #475569; margin-bottom: 12px; line-height: 1.6; }
.author-social a { color: #4f46ff; margin-right: 15px; font-size: 18px; transition: all 0.3s ease; display: inline-block; }
.author-social a:hover { transform: translateY(-2px); }

/* Comments Section */
.comments-section { margin-top: 45px; padding-top: 30px; border-top: 1px solid #e2e8f0; }
.comments-section h3 { margin-bottom: 25px; font-size: 22px; }
.comment { display: flex; gap: 18px; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid #e2e8f0; transition: all 0.3s ease; }
.comment:hover { transform: translateX(5px); }
.comment img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.comment h4 { font-size: 16px; margin-bottom: 5px; }
.comment span { font-size: 12px; color: #64748b; }
.comment p { margin: 10px 0; font-size: 14px; line-height: 1.6; }
.reply-btn { background: none; border: none; color: #4f46ff; cursor: pointer; font-size: 13px; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 5px; }
.reply-btn:hover { transform: translateX(5px); color: #4338ff; }
.comment-form { margin-top: 30px; }
.comment-form h4 { margin-bottom: 15px; font-size: 18px; }
.comment-form textarea { width: 100%; padding: 15px; border: 1px solid #e2e8f0; border-radius: 16px; resize: vertical; font-family: inherit; margin-bottom: 15px; background: #fafbff; transition: all 0.3s ease; }
.comment-form textarea:focus { outline: none; border-color: #4f46ff; box-shadow: 0 0 0 3px rgba(79, 70, 255, 0.1); }
.comment-form button { padding: 12px 30px; background: linear-gradient(135deg, #6b5cff, #4338ff); color: white; border: none; border-radius: 12px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; }
.comment-form button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(107, 92, 255, 0.3); }

/* Sidebar */
.post-sidebar { position: sticky; top: 100px; height: fit-content; }
.sidebar-widget { background: white; border-radius: 20px; padding: 25px; margin-bottom: 25px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); border: 1px solid #eef2ff; transition: all 0.3s ease; }
.sidebar-widget:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); }
.sidebar-widget h3 { margin-bottom: 20px; font-size: 18px; color: #081028; }
.search-box { position: relative; }
.search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.search-box input { width: 100%; padding: 12px 15px 12px 42px; border: 1px solid #e2e8f0; border-radius: 12px; outline: none; background: #fafbff; transition: all 0.3s ease; }
.search-box input:focus { border-color: #4f46ff; box-shadow: 0 0 0 3px rgba(79, 70, 255, 0.1); }
.popular-post { display: flex; gap: 12px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #e2e8f0; transition: all 0.3s ease; }
.popular-post:hover { transform: translateX(5px); }
.popular-post img { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; }
.popular-post h4 { font-size: 14px; margin-bottom: 5px; line-height: 1.4; }
.categories { list-style: none; }
.categories li { padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
.categories a { text-decoration: none; color: #475569; display: flex; justify-content: space-between; transition: all 0.3s ease; }
.categories a:hover { color: #4f46ff; transform: translateX(3px); }
.newsletter-widget input { width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 12px; background: #fafbff; }
.newsletter-widget input:focus { outline: none; border-color: #4f46ff; box-shadow: 0 0 0 3px rgba(79, 70, 255, 0.1); }
.newsletter-widget button { width: 100%; padding: 12px; background: linear-gradient(135deg, #6b5cff, #4338ff); color: white; border: none; border-radius: 12px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; }
.newsletter-widget button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(107, 92, 255, 0.3); }

/* Related Posts */
.related-posts { max-width: 1200px; margin: 50px auto; padding: 0 20px; }
.related-posts h2 { font-size: 28px; margin-bottom: 30px; color: #081028; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.related-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; }
.related-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); }
.related-card img { width: 100%; height: 200px; object-fit: cover; }
.related-card h4 { padding: 18px 18px 8px; font-size: 16px; line-height: 1.4; }
.related-card a { display: inline-block; margin: 0 18px 18px; text-decoration: none; color: #4f46ff; font-weight: 600; transition: all 0.3s ease; }
.related-card a:hover { transform: translateX(5px); }

/* Footer */
.footer { background: #1a1a2e; color: #cbd5e1; margin-top: 80px; padding: 50px 5% 30px; }
.footer-content { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.footer-logo i { font-size: 28px; color: #4f46ff; }
.footer-logo h3 { color: white; font-size: 22px; margin: 0; }
.footer-section p { font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.footer-section h3 { color: white; font-size: 18px; margin-bottom: 20px; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 10px; }
.footer-section a { color: #cbd5e1; text-decoration: none; transition: all 0.3s ease; }
.footer-section a:hover { color: #4f46ff; padding-left: 5px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { color: #cbd5e1; font-size: 20px; transition: all 0.3s ease; }
.social-links a:hover { color: #4f46ff; transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 30px; margin-top: 30px; border-top: 1px solid #334155; font-size: 13px; }

/* Back to Top */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, #6b5cff, #4338ff); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 1000; box-shadow: 0 5px 15px rgba(107, 92, 255, 0.3); }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(107, 92, 255, 0.4); }

/* Responsive */
@media (max-width: 1200px) {
  .navbar { padding: 0 28px; }
  .nav-menu { gap: 10px; }
  .nav-menu li a { padding: 10px 12px; font-size: 14px; }
}

@media (max-width: 1024px) {
  .post-container { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .benefits-grid, .practices-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .navbar {
    height: 76px;
    padding: 0 20px;
    flex-direction: row;
  }

  .logo h2 {
    font-size: 21px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 21px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    padding: 0 20px;
    border-bottom: 1px solid #ececf8;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
    transition: all 0.35s ease;
  }

  .nav-toggle:checked ~ .nav-menu {
    max-height: 80vh;
    visibility: visible;
    opacity: 1;
    padding: 16px 20px 22px;
  }

  .nav-menu li a {
    text-align: center;
    padding: 13px 15px;
    border-radius: 12px;
  }

  .nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  .post-header h1 { font-size: 32px; }
  .post-content { padding: 25px; }
  .table-of-contents ul { grid-template-columns: 1fr; }
  .benefits-grid, .practices-grid { grid-template-columns: 1fr; }
  .author-bio { flex-direction: column; text-align: center; }
  .author-bio img { margin: 0 auto; }
  .comment { flex-direction: column; text-align: center; }
  .comment img { margin: 0 auto; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { justify-content: center; }
  .social-links { justify-content: center; }
  .share-buttons { flex-wrap: wrap; }
  .back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 18px; }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 14px;
  }

  .logo {
    gap: 10px;
  }

  .logo h2 {
    font-size: 19px;
  }

  .post-header h1 { font-size: 28px; }
  .post-section h2 { font-size: 26px; }
  .cta-box { padding: 25px; }
}

/* Print Styles */
@media print {
  .navbar, .footer, .sidebar, .related-posts, .skip-link, .back-to-top, .share-buttons { display: none; }
  .post-content { padding: 0; box-shadow: none; }
  .post-container { display: block; }
  body { background: white; }
  .comment-form { display: none; }
}

::selection { background: #4f46ff; color: white; }
::-moz-selection { background: #4f46ff; color: white; }