.nav-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-links a svg {
  width: 18px;
  height: 18px;
  stroke: #555;
}

.nav-links a:hover {
  color: #000;
}

.nav-links a:hover svg {
  stroke: #000;
}
*, *::before, *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --primary: #0ea5e9;
      --primary-dark: #0284c7;
      --secondary: #14b8a6;
      --background: #ffffff;
      --background-alt: #f8fafc;
      --foreground: #0f172a;
      --foreground-muted: #64748b;
      --card: #ffffff;
      --card-border: #e2e8f0;
      --gradient: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
    }

    .dark {
      --primary: #38bdf8;
      --primary-dark: #0ea5e9;
      --secondary: #2dd4bf;
      --background: #0f172a;
      --background-alt: #1e293b;
      --foreground: #f1f5f9;
      --foreground-muted: #94a3b8;
      --card: #1e293b;
      --card-border: #334155;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Inter', sans-serif;
      background-color: var(--background);
      color: var(--foreground);
      line-height: 1.6;
      transition: background-color 0.3s ease, color 0.3s ease;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    img {
      max-width: 100%;
      height: auto;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--background);
  border-bottom: 1px solid var(--card-border);
  z-index: 9999;
}

    .header.scrolled {
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .header-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 15px 20px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .logo img {
      width: 80px;
      height: auto;
      border-radius: 0;
      object-fit: contain;
    }

    .logo-text {
      font-size: 1.25rem;
      font-weight: 700;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 30px;
    }

    .nav-links {
      display: flex;
      gap: 30px;
      list-style: none;
    }

    .nav-links a {
      font-weight: 500;
      color: var(--foreground-muted);
      transition: color 0.3s ease;
      position: relative;
    }

    .nav-links a:hover,
    .nav-links a.active {
      color: var(--primary);
    }

    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--gradient);
      transition: width 0.3s ease;
    }

    .nav-links a:hover::after {
      width: 100%;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .dark-toggle {
      background: var(--background-alt);
      border: 1px solid var(--card-border);
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
      color: var(--foreground);
    }

    .dark-toggle:hover {
      background: var(--primary);
      color: white;
    }

    .dark-toggle svg {
      width: 20px;
      height: 20px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 12px 24px;
      border-radius: 8px;
      font-weight: 600;
      font-size: 0.95rem;
      cursor: pointer;
      transition: all 0.3s ease;
      border: none;
    }

    .btn-primary {
      background: var(--gradient);
      color: white;
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
    }

    .mobile-menu-btn {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 5px;
    }

    .mobile-menu-btn span {
      display: block;
      width: 25px;
      height: 3px;
      background: var(--foreground);
      margin: 5px 0;
      transition: all 0.3s ease;
      border-radius: 2px;
    }

    .article-header {
      padding: 140px 0 60px;
      background: var(--background-alt);
    }

    .article-header-content {
      max-width: 900px;
      margin: 0 auto;
    }

    .breadcrumb {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 30px;
      font-size: 0.9rem;
      color: var(--foreground-muted);
    }

    .breadcrumb a {
      color: var(--primary);
      transition: opacity 0.3s ease;
    }

    .breadcrumb a:hover {
      opacity: 0.8;
    }

    .breadcrumb svg {
      width: 16px;
      height: 16px;
    }

    .article-category {
      display: inline-block;
      background: var(--gradient);
      color: white;
      padding: 8px 20px;
      border-radius: 50px;
      font-size: 0.85rem;
      font-weight: 600;
      margin-bottom: 20px;
    }
    
    @media (max-width: 768px) {
  .breadcrumb span {
    display: inline-block;
    max-width: 100%;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    vertical-align: bottom;
  }
}
    
    .article-category2 {
  display: inline-block;
  background: #e11d48;
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

    .article-title {
      font-size: 3rem;
      font-weight: 800;
      line-height: 1.2;
      margin-bottom: 25px;
    }

    .article-excerpt {
      font-size: 1.25rem;
      color: var(--foreground-muted);
      line-height: 1.7;
      margin-bottom: 30px;
    }

    .article-meta {
      display: flex;
      align-items: center;
      gap: 30px;
      flex-wrap: wrap;
    }

    .author-box {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .author-avatar {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid var(--primary);
    }

    .author-info {
      display: flex;
      flex-direction: column;
    }

    .author-name {
      font-weight: 700;
      font-size: 1rem;
    }

    .author-role {
      font-size: 0.85rem;
      color: var(--foreground-muted);
    }

    .meta-item {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--foreground-muted);
      font-size: 0.95rem;
    }

    .meta-item svg {
      width: 20px;
      height: 20px;
    }

    .article-featured-image {
      margin: -30px auto 0;
      max-width: 900px;
      padding: 0 20px;
      position: relative;
      z-index: 10;
    }

    .article-featured-image img {
      width: 100%;
      height: 500px;
      object-fit: cover;
      border-radius: 20px;
      box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    }

    .article-content {
      max-width: 750px;
      margin: 60px auto;
      padding: 0 20px;
    }

    .article-content h2 {
      font-size: 1.8rem;
      font-weight: 700;
      margin: 40px 0 20px;
      color: var(--foreground);
    }

    .article-content h3 {
      font-size: 1.4rem;
      font-weight: 600;
      margin: 30px 0 15px;
      color: var(--foreground);
    }

    .article-content p {
      font-size: 1.1rem;
      line-height: 1.9;
      margin-bottom: 25px;
      color: var(--foreground);
    }

    .article-content ul,
    .article-content ol {
      margin: 25px 0;
      padding-left: 30px;
    }

    .article-content li {
      font-size: 1.1rem;
      line-height: 1.8;
      margin-bottom: 12px;
      color: var(--foreground);
    }

    .article-content blockquote {
      margin: 40px 0;
      padding: 30px 40px;
      background: var(--background-alt);
      border-left: 4px solid var(--primary);
      border-radius: 0 15px 15px 0;
      font-size: 1.2rem;
      font-style: italic;
      color: var(--foreground);
    }

    .article-content a {
      color: var(--primary);
      border-bottom: 2px solid transparent;
      transition: border-color 0.3s ease;
    }

    .article-content a:hover {
      border-color: var(--primary);
    }

    .article-content img {
      width: 100%;
      border-radius: 15px;
      margin: 30px 0;
    }

    .highlight-box {
      background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
      border: 1px solid var(--card-border);
      border-radius: 15px;
      padding: 30px;
      margin: 30px 0;
    }

    .highlight-box h4 {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 15px;
      color: var(--primary);
    }

    .share-section {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 30px 0;
      border-top: 1px solid var(--card-border);
      border-bottom: 1px solid var(--card-border);
      margin: 40px 0;
      flex-wrap: wrap;
      gap: 20px;
    }

    .share-label {
      font-weight: 600;
      font-size: 1rem;
    }

    .share-buttons {
      display: flex;
      gap: 12px;
    }

    .share-btn {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--background-alt);
      border: 1px solid var(--card-border);
      cursor: pointer;
      transition: all 0.3s ease;
      color: var(--foreground);
    }

    .share-btn:hover {
      background: var(--gradient);
      color: white;
      border-color: transparent;
      transform: translateY(-3px);
    }

    .share-btn svg {
      width: 20px;
      height: 20px;
    }

    .author-bio {
      background: var(--card);
      border: 1px solid var(--card-border);
      border-radius: 20px;
      padding: 40px;
      display: flex;
      gap: 30px;
      margin: 50px 0;
    }

    .author-bio-avatar {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      object-fit: cover;
      border: 4px solid var(--primary);
      flex-shrink: 0;
    }

    .author-bio-content h3 {
      font-size: 1.3rem;
      font-weight: 700;
      margin-bottom: 5px;
    }

    .author-bio-content .role {
      color: var(--primary);
      font-weight: 600;
      margin-bottom: 15px;
    }

    .author-bio-content p {
      color: var(--foreground-muted);
      line-height: 1.7;
      margin-bottom: 15px;
    }

    .author-social {
      display: flex;
      gap: 10px;
    }

    .author-social a {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--background-alt);
      border: 1px solid var(--card-border);
      transition: all 0.3s ease;
      color: var(--foreground);
    }

    .author-social a:hover {
      background: var(--primary);
      color: white;
      border-color: transparent;
    }

    .author-social svg {
      width: 16px;
      height: 16px;
    }

    .related-posts {
      padding: 80px 0;
      background: var(--background-alt);
    }

    .related-posts h2 {
      font-size: 2rem;
      font-weight: 800;
      text-align: center;
      margin-bottom: 50px;
    }

    .related-posts h2 span {
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .related-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .related-card {
      background: var(--card);
      border: 1px solid var(--card-border);
      border-radius: 20px;
      overflow: hidden;
      transition: all 0.4s ease;
    }

    .related-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

    .related-card-image {
      height: 200px;
      overflow: hidden;
    }

    .related-card-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .related-card:hover .related-card-image img {
      transform: scale(1.1);
    }

    .related-card-content {
      padding: 25px;
    }

    .related-card-meta {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-bottom: 12px;
      font-size: 0.85rem;
      color: var(--foreground-muted);
    }

    .related-card h3 {
      font-size: 1.1rem;
      font-weight: 700;
      line-height: 1.4;
      transition: color 0.3s ease;
    }

    .related-card h3:hover {
      color: var(--primary);
    }

    .footer {
      background: var(--background);
      border-top: 1px solid var(--card-border);
      padding: 60px 0 30px;
    }

    .footer-content {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 40px;
      margin-bottom: 40px;
    }

    .footer-brand p {
      color: var(--foreground-muted);
      margin: 20px 0;
      line-height: 1.8;
    }

    .footer-social {
      display: flex;
      gap: 12px;
    }

    .footer-social a {
      width: 40px;
      height: 40px;
      background: var(--background-alt);
      border: 1px solid var(--card-border);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }

    .footer-social a:hover {
      background: var(--gradient);
      color: white;
      border-color: transparent;
    }

    .footer-links h4 {
      font-weight: 700;
      margin-bottom: 20px;
    }

    .footer-links ul {
      list-style: none;
    }

    .footer-links li {
      margin-bottom: 12px;
    }

    .footer-links a {
      color: var(--foreground-muted);
      transition: color 0.3s ease;
    }

    .footer-links a:hover {
      color: var(--primary);
    }

    .footer-bottom {
      border-top: 1px solid var(--card-border);
      padding-top: 30px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
    }

    .footer-bottom p {
      color: var(--foreground-muted);
      font-size: 0.9rem;
    }

    .footer-bottom-links {
      display: flex;
      gap: 30px;
    }

    .footer-bottom-links a {
      color: var(--foreground-muted);
      font-size: 0.9rem;
      transition: color 0.3s ease;
    }

    .footer-bottom-links a:hover {
      color: var(--primary);
    }

.mobile-menu {
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  background: var(--background);
  border-bottom: 1px solid var(--card-border);
  padding: 20px;
  z-index: 999999;
  display: none;
}

.mobile-menu.active {
  display: block;
}

     .mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

    .mobile-menu ul {
      list-style: none;
    }

    .mobile-menu li {
      padding: 15px 0;
      border-bottom: 1px solid var(--card-border);
    }

    .mobile-menu a {
      font-weight: 500;
      font-size: 1.1rem;
    }

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  pointer-events: none;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

    @media (max-width: 1024px) {
      .related-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .footer-content {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 768px) {
      .nav-links {
        display: none;
      }

      .nav-actions .btn {
        display: none;
      }

      .mobile-menu-btn {
        display: block;
      }

      .article-header {
        padding: 120px 0 40px;
      }

      .article-title {
        font-size: 2rem;
      }

      .article-excerpt {
        font-size: 1.1rem;
      }

      .article-meta {
        gap: 20px;
      }

    .article-featured-image img {
    width: 100%;
    height: auto;
  }

      .article-content {
        margin: 40px auto;
      }

      .article-content h2 {
        font-size: 1.5rem;
      }
      
      .article-content {
  margin: 40px auto;
  max-width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}
.article-content * {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}
.article-content pre {
  overflow-x: auto;
  white-space: pre;
  max-width: 100%;
  padding: 15px;
}

      .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px;
      }

      .author-social {
        justify-content: center;
      }

      .related-grid {
        grid-template-columns: 1fr;
      }

      .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .footer-social {
        justify-content: center;
      }

      .footer-bottom {
        flex-direction: column;
        text-align: center;
      }

      .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
      }
    }

    @media (max-width: 480px) {
      .container {
        padding: 0 15px;
      }

      .article-content blockquote {
        padding: 20px;
      }

      .share-section {
        flex-direction: column;
        align-items: flex-start;
      }
    }
#backToTop2 {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: var(--primary);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 999;
}

#backToTop2 svg {
  width: 20px;
  height: 20px;
  transition: 0.3s;
}

#backToTop2:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-4px) scale(1.05);
}

#backToTop2:hover svg {
  transform: translateY(-2px);
}
.post-tags {
  margin-top: 40px;
  padding: 10px 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  transform: translateY(3px);
  flex-wrap: wrap;
}

.tags-label {
  font-size: 13px;
  font-weight: 500;
  color: #777;
  margin-right: 10px;
}

.tag {
  display: inline-block;
  margin: 6px 6px 3px 0;
  padding: 5px 12px;
  border-radius: 6px;
  background: #f8f8f8;
  color: #555;
  font-size: 12.5px;
  border: 1px solid #ececec;
}
@media (max-width: 768px) {
  .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }

  .tags-label {
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
  }

  .tag {
    font-size: 0.75rem;
    padding: 6px 10px;
    white-space: nowrap;
  }
}
@media (max-width: 768px) {
  .footer-brand {
    text-align: center;
  }

  .footer-brand .logo {
    display: inline-block;
  }
}
.back-to-blog {
  margin-bottom: 24px;
}

.btn-back {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(128,128,128,0.3);
  background: transparent;
}

.btn-back:hover,
.btn-back:focus,
.btn-back:active {
  color: inherit;
  border: 1px solid rgba(128,128,128,0.3);
  background: transparent;
  text-decoration: none;
  outline: none;
}
    .views {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #9aa4b2;
  white-space: nowrap;
}

.views .icon-eye {
  width: 18px;
  height: 18px;
  stroke: #9aa4b2;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .views {
    width: 100%;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 20px;
    margin-top: 8px;
  }
}
.date-item {
  display: flex;
  gap: 8px;
}

.icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.texts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edited {
  font-size: 0.85em;
  opacity: 0.7;
}

img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

img:not(a img) {
  pointer-events: none;
}

a img {
  pointer-events: auto;
}
