        /* Scrollbar Styling */
    ::-webkit-scrollbar {
      width: 8px;
    }

    ::-webkit-scrollbar-track {
      background: #f1f5f9;
    }

    ::-webkit-scrollbar-thumb {
      background: #3b82f6;
      border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: #2563eb;
    }
        :root {
            --primary: #2563eb;
            --primary-light: #dbeafe;
            --primary-dark: #1e40af;
            --secondary: #4b5563;
            --light: #f3f4f6;
            --lighter: #f9fafb;
            --dark: #1f2937;
            --darker: #111827;
            --success: #10b981;
            --border: #e5e7eb;
            --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --transition: all 0.3s ease;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
             word-wrap: break-word;
    overflow-wrap: break-word;
        }

        html, body {
            scroll-behavior: smooth;
            font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            background: var(--lighter);
            color: var(--dark);
            line-height: 1.6;
            overflow-x: hidden;
             max-width: 100%;
        }

        .container a {
            color: var(--primary);
            text-decoration: none;
            transition: var(--transition);
        }

       .container  a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 10px;
        }
  .container{
          font-family: 'Inter', -apple-system,'Segoe UI';
    }
        /* Header styles */
        header.hero {
            background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 80px 0 60px;
            text-align: center;
            margin-bottom: 40px;
            position: relative;
            overflow: hidden;
        }

        header.hero::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,224L48,213.3C96,203,192,181,288,160C384,139,480,117,576,122.7C672,128,768,160,864,170.7C960,181,1056,171,1152,165.3C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
            background-size: cover;
            background-position: bottom;
            opacity: 0.2;
        }

        .kicker {
            display: inline-block;
            font-weight: 600;
            letter-spacing: .08em;
            color: white;
            background: rgba(255, 255, 255, 0.15);
            text-transform: uppercase;
            font-size: .8rem;
            padding: .5rem 1rem;
            border-radius: 100px;
            margin-bottom: 1rem;
            backdrop-filter: blur(4px);
        }

       .container  h1 {
            font-size: clamp(2rem, 5vw, 3rem);
            margin: 0 auto 1rem;
            line-height: 1.2;
            max-width: 800px;
            font-weight: 700;
            color: white;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .subtitle {
            color: rgba(255, 255, 255, 0.9);
            max-width: 700px;
            margin: 0 auto;
            font-size: 1.2rem;
            font-weight: 400;
        }

        /* Main layout */
        .wrap {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 10px;
            margin-bottom: 60px;
        }

        @media (max-width: 980px) {
            .wrap {
                grid-template-columns: 1fr;
            }
        }

        /* Table of Contents */
        .toc {
            position: sticky;
            top: 20px;
            align-self: start;
            background: white;
            border-radius: 12px;
            padding: 24px;
            box-shadow: var(--card-shadow);
            border-left: 4px solid var(--primary);
        }

        .toc h2 {
            font-size: 1.25rem;
            margin: 0 0 1rem;
            color: var(--darker);
            font-weight: 600;
            display: flex;
            align-items: center;
        }

        .toc h2::before {
            content: "📑";
            margin-right: 10px;
        }

        .toc ol {
            list-style: none;
            padding: 0;
            margin: 0;
            display: grid;
            gap: 8px;
        }

        .toc li {
            position: relative;
            padding-left: 8px;
        }

        .toc li::before {
            content: "•";
            color: var(--primary);
            font-weight: bold;
            position: absolute;
            left: 0;
        }

        .toc a {
            display: block;
            padding: 10px 12px;
            border-radius: 8px;
            color: var(--secondary);
            font-weight: 500;
            transition: var(--transition);
        }

        .toc a:hover {
            background: var(--primary-light);
            color: var(--primary-dark);
            text-decoration: none;
            transform: translateX(4px);
        }

        /* Article content */
        article {
            background: white;
            border-radius: 12px;
            padding: 40px;
            box-shadow: var(--card-shadow);
        }

        article section {
            margin-bottom: 40px;
        }

       .container  h2 {
            font-size: 1.8rem;
            margin: 2.5rem 0 1rem;
            color: var(--primary);
            font-weight: 700;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--primary-light);
            display: flex;
            align-items: center;
        }

       .container  h2::before {
            content: "";
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--primary);
            margin-right: 12px;
        }

       .container  h3 {
            font-size: 1.3rem;
            margin: 1.5rem 0 0.8rem;
            color: var(--dark);
            font-weight: 600;
        }

        p {
            margin-bottom: 1.2rem;
            font-size: 1.05rem;
            color: var(--secondary);
        }

        /* Grid and cards */
        .grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin: 1.5rem 0;
        }

        @media (max-width: 768px) {
            .grid {
                grid-template-columns: 1fr;
            }
        }

        .card {
            background: var(--lighter);
            border-radius: 12px;
            padding: 24px;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
            border-top: 4px solid var(--primary);
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }

        .card h3 {
            margin-top: 0;
            color: var(--primary-dark);
            display: flex;
            align-items: center;
        }

        .card h3::before {
            content: "→";
            margin-right: 8px;
            color: var(--primary);
        }

        ul {
            padding-left: 1.5rem;
            margin: 1rem 0;
        }

        li {
            margin-bottom: 0.5rem;
            color: var(--secondary);
        }

        strong {
            color: var(--dark);
            font-weight: 600;
        }

        /* Table */
        table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            margin: 1.5rem 0;
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
        }

        thead th {
            background: var(--primary);
            color: white;
            padding: 16px;
            text-align: left;
            font-weight: 600;
        }

        tbody tr:nth-child(even) {
            background: var(--lighter);
        }

        tbody td {
            padding: 16px;
            border-bottom: 1px solid var(--border);
            color: var(--secondary);
        }

        tbody tr:last-child td {
            border-bottom: none;
        }

        /* Note box */
        .note {
            background: var(--primary-light);
            border-left: 4px solid var(--primary);
            padding: 20px;
            border-radius: 8px;
            margin: 1.5rem 0;
            position: relative;
        }

        .note::before {
            content: "💡";
            position: absolute;
            top: 20px;
            left: -15px;
            background: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            font-size: 14px;
        }

        .note strong {
            color: var(--primary-dark);
        }

        /* FAQ section */
        .faq details {
            background: white;
            border-radius: 8px;
            padding: 0;
            margin: 12px 0;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .faq summary {
            padding: 20px;
            cursor: pointer;
            font-weight: 600;
            color: var(--primary-dark);
            list-style: none;
            position: relative;
            transition: var(--transition);
        }

        .faq summary:hover {
            background: var(--primary-light);
        }

        .faq summary::-webkit-details-marker {
            display: none;
        }

        .faq summary::after {
            content: "+";
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.2rem;
            color: var(--primary);
            transition: var(--transition);
        }

        .faq details[open] summary::after {
            content: "-";
        }

        .faq details[open] summary {
            border-bottom: 1px solid var(--border);
        }

        .faq p {
            padding: 0 20px 20px;
            margin: 0;
            color: var(--secondary);
        }

        /* Footer */
        .footer {
            text-align: center;
            padding: 40px 20px;
            background: var(--dark);
            color: white;
            margin-top: 60px;
        }

        .footer a {
            color: var(--primary-light);
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .card, .toc, article {
            animation: fadeIn 0.5s ease-out;
        }
@media (max-width: 580px) {
    .container {
        padding: 0 15px;
        width: 100%;
        overflow-x: hidden;
    }
    
    header.hero {
        padding: 50px 0 30px;
        margin-bottom: 20px;
    }
    
    .kicker {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .container h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .toc {
        position: relative;
        top: 0;
        margin-bottom: 10px;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    article {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .container h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
        word-break: break-word;
    }
    
    .container h3 {
        font-size: 1.2rem;
        word-break: break-word;
    }
    
    p {
        font-size: 1rem;
        word-break: break-word;
    }
    
    .card {
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        font-size: 0.9rem;
    }
    
    .note {
        padding: 15px 15px 15px 30px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .note::before {
        top: 15px;
        left: -12px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .faq summary {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .faq p {
        padding: 0 15px 15px;
    }
    
    /* Adjust images */
    img {
        max-width: 70% !important;
        height: auto;
    }
    
    /* Fix for specific image widths */
    img[style*="width:30%"] {
        width: 70% !important;
        max-width: 250px;
        display: block;
        margin: 0 auto;
    }
    
    /* Grid adjustments */
    .grid {
        gap: 15px;
        margin: 1rem 0;
    }
    
    /* Ensure no horizontal overflow */
    body, html {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Fix for lists */
    ul {
        padding-left: 1.2rem;
    }
    
    li {
        margin-bottom: 0.5rem;
        word-break: break-word;
    }
    
}
.container article section p {
  text-align: justify;
  text-justify: inter-word; /* spaces words evenly */
}
pre code {
  display: block;
  padding: 15px;
   background-color: #f5f5f5;  /* Dark theme background */
  color: black;        /* Light text */
  border-radius: 8px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;      /* Enables horizontal scroll */
  white-space: pre;      /* Keeps original formatting */
  max-width: 100%;
   max-height:500px;/* Prevents overflow */
overflow:auto;
    
}
 .example-btn {
  background-color: #3b82f6; /* Light blue */
  color: white;
  padding: 10px 15px;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin:10px 10px;
 
  
}

.example-btn:hover {
  background-color: white;
  color: #3b82f6;
  border: 2px solid #3b82f6;
}
   .copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
     font-family: 'Montserrat', sans-serif;
    color: black;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}
.copy-btn:hover {
    background-color: #faf7f7;
}