<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Louisiana &#8211; 24 Car Repair</title>
	<atom:link href="https://24car-repair.com/tag/louisiana/feed/" rel="self" type="application/rss+xml" />
	<link>https://24car-repair.com</link>
	<description>We Believe Best Services</description>
	<lastBuildDate>Thu, 26 Feb 2026 13:14:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>Louisiana Car Sales Tax Calculator: Comprehensive Guide to Vehicle Tax Calculation</title>
		<link>https://24car-repair.com/louisiana-car-sales-tax-calculator/</link>
					<comments>https://24car-repair.com/louisiana-car-sales-tax-calculator/#respond</comments>
		
		<dc:creator><![CDATA[Robert]]></dc:creator>
		<pubDate>Mon, 29 Dec 2025 14:17:32 +0000</pubDate>
				<category><![CDATA[Calculator]]></category>
		<category><![CDATA[Louisiana]]></category>
		<guid isPermaLink="false">https://24car-repair.com/?p=5168</guid>

					<description><![CDATA[Louisiana Car Sales Tax Calculator 2026 &#124; 24Car-Repair.com 24Car-Repair.com Automotive Calculators &#038; Resources Louisiana Car Sales Tax Calculator: Complete Guide &#038; Calculator Comprehensive Guide Interactive Calculator Included Introduction to Louisiana Car Sales Tax Understanding car sales tax in Louisiana is essential for any vehicle purchase within the state. Louisiana employs a unique two-tiered tax system [&#8230;]]]></description>
										<content:encoded><![CDATA[

    <title>Louisiana Car Sales Tax Calculator 2026 | 24Car-Repair.com</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #2563eb;
            --primary-dark: #1d4ed8;
            --primary-light: #dbeafe;
            --secondary: #059669;
            --secondary-light: #d1fae5;
            --accent: #dc2626;
            --light: #ffffff;
            --dark: #1f2937;
            --gray-50: #f9fafb;
            --gray-100: #f3f4f6;
            --gray-200: #e5e7eb;
            --gray-300: #d1d5db;
            --gray-400: #9ca3af;
            --gray-600: #4b5563;
            --gray-700: #374151;
            --gray-800: #1f2937;
            --border-radius: 12px;
            --border-radius-sm: 8px;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            line-height: 1.7;
            color: var(--gray-800);
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            min-height: 100vh;
            padding: 0;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header */
        .site-header {
            background: var(--light);
            box-shadow: var(--shadow);
            padding: 20px 0;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .brand {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .brand-logo {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
        }
        
        .brand-text h1 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark);
            line-height: 1.2;
        }
        
        .brand-text .tagline {
            font-size: 0.85rem;
            color: var(--gray-600);
        }
        
        /* Main Layout */
        .main-layout {
            display: grid;
            grid-template-columns: 1fr;
            gap: 40px;
            padding: 40px 0;
        }
        
        @media (min-width: 992px) {
            .main-layout {
                grid-template-columns: 2fr 1fr;
            }
        }
        
        /* Left Column - Article */
        .article-column {
            background: var(--light);
            border-radius: var(--border-radius);
            padding: 40px;
            box-shadow: var(--shadow);
        }
        
        /* Right Column */
        .sidebar-column {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }
        
        /* Calculator Widget */
        .calculator-widget {
            background: var(--light);
            border-radius: var(--border-radius);
            padding: 30px;
            box-shadow: var(--shadow);
            position: sticky;
            top: 100px;
        }
        
        .widget-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--primary-light);
        }
        
        .widget-icon {
            width: 40px;
            height: 40px;
            background: var(--primary-light);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 1.2rem;
        }
        
        .widget-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--dark);
        }
        
        /* Form Elements */
        .form-group {
            margin-bottom: 22px;
        }
        
        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--gray-700);
            font-size: 0.95rem;
        }
        
        .form-input {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid var(--gray-200);
            border-radius: var(--border-radius-sm);
            font-size: 1rem;
            transition: var(--transition);
            background: var(--light);
        }
        
        .form-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }
        
        .input-hint {
            font-size: 0.85rem;
            color: var(--gray-600);
            margin-top: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .input-hint i {
            color: var(--primary);
        }
        
        /* Calculator Results */
        .results-summary {
            background: var(--gray-50);
            border-radius: var(--border-radius-sm);
            padding: 25px;
            margin: 25px 0;
            border: 1px solid var(--gray-200);
        }
        
        .result-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid var(--gray-200);
        }
        
        .result-item:last-child {
            border-bottom: none;
        }
        
        .result-label {
            font-weight: 500;
            color: var(--gray-700);
        }
        
        .result-value {
            font-weight: 600;
            color: var(--gray-800);
        }
        
        .result-total {
            background: var(--primary-light);
            margin-top: 15px;
            padding: 18px;
            border-radius: var(--border-radius-sm);
            border-left: 4px solid var(--primary);
        }
        
        .result-total .result-label {
            font-size: 1.1rem;
            font-weight: 700;
        }
        
        .result-total .result-value {
            font-size: 1.3rem;
            font-weight: 800;
            color: var(--primary-dark);
        }
        
        /* Button */
        .btn-calculate {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border: none;
            padding: 16px 32px;
            font-size: 1.05rem;
            font-weight: 600;
            border-radius: var(--border-radius-sm);
            cursor: pointer;
            transition: var(--transition);
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-top: 10px;
        }
        
        .btn-calculate:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
        
        .btn-calculate:active {
            transform: translateY(0);
        }
        
        /* FAQ Widget */
        .faq-widget {
            background: var(--light);
            border-radius: var(--border-radius);
            padding: 30px;
            box-shadow: var(--shadow);
        }
        
        .faq-item {
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--gray-200);
        }
        
        .faq-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .faq-question {
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .faq-question i {
            color: var(--primary);
        }
        
        .faq-answer {
            color: var(--gray-700);
            font-size: 0.95rem;
        }
        
        /* Article Styles */
        .article-header {
            margin-bottom: 40px;
            padding-bottom: 30px;
            border-bottom: 1px solid var(--gray-200);
        }
        
        .article-title {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--dark);
            line-height: 1.2;
            margin-bottom: 15px;
        }
        
        .article-meta {
            display: flex;
            align-items: center;
            gap: 20px;
            color: var(--gray-600);
            font-size: 0.9rem;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .meta-item i {
            color: var(--primary);
        }
        
        /* Numbered Headings */
        .numbered-heading {
            counter-increment: section;
            display: flex;
            align-items: center;
            gap: 15px;
            margin: 40px 0 20px;
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--dark);
        }
        
        .numbered-heading:before {
            content: counter(section) ".";
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            font-weight: 700;
        }
        
        .numbered-subheading {
            counter-increment: subsection;
            margin: 30px 0 15px;
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--gray-800);
            padding-left: 20px;
            position: relative;
        }
        
        .numbered-subheading:before {
            content: counter(section) "." counter(subsection);
            position: absolute;
            left: 0;
            color: var(--primary);
            font-weight: 700;
        }
        
        /* Content Elements */
        .article-content {
            counter-reset: section subsection;
        }
        
        .article-content p {
            margin-bottom: 20px;
            font-size: 1.05rem;
            line-height: 1.8;
            color: var(--gray-700);
        }
        
        .article-content ul, .article-content ol {
            margin: 20px 0 20px 30px;
        }
        
        .article-content li {
            margin-bottom: 10px;
            font-size: 1.05rem;
            line-height: 1.7;
            color: var(--gray-700);
        }
        
        .highlight-box {
            background: var(--primary-light);
            border-left: 4px solid var(--primary);
            padding: 25px;
            margin: 30px 0;
            border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
        }
        
        .highlight-box h4 {
            color: var(--primary-dark);
            margin-bottom: 10px;
            font-size: 1.2rem;
        }
        
        /* Tables */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin: 30px 0;
            box-shadow: var(--shadow);
            border-radius: var(--border-radius-sm);
            overflow: hidden;
        }
        
        .data-table thead {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
        }
        
        .data-table th {
            padding: 18px 15px;
            text-align: left;
            font-weight: 600;
            font-size: 1rem;
        }
        
        .data-table tbody tr {
            border-bottom: 1px solid var(--gray-200);
            transition: var(--transition);
        }
        
        .data-table tbody tr:nth-child(even) {
            background: var(--gray-50);
        }
        
        .data-table tbody tr:hover {
            background: var(--primary-light);
        }
        
        .data-table td {
            padding: 16px 15px;
            color: var(--gray-700);
        }
        
        .data-table .highlight-cell {
            background: var(--secondary-light);
            color: var(--secondary);
            font-weight: 600;
        }
        
        /* Chart Placeholder */
        .chart-placeholder {
            background: var(--gray-100);
            border-radius: var(--border-radius);
            padding: 40px 20px;
            margin: 40px 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            border: 2px dashed var(--gray-300);
        }
        
        .chart-icon {
            font-size: 3rem;
            color: var(--gray-400);
            margin-bottom: 20px;
        }
        
        /* Footer */
        .site-footer {
            background: var(--gray-800);
            color: var(--gray-300);
            padding: 40px 0;
            margin-top: 60px;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 40px;
        }
        
        @media (min-width: 768px) {
            .footer-content {
                grid-template-columns: 2fr 1fr;
            }
        }
        
        .footer-brand {
            margin-bottom: 20px;
        }
        
        .footer-brand h3 {
            color: white;
            margin-bottom: 5px;
        }
        
        .footer-disclaimer {
            font-size: 0.9rem;
            line-height: 1.6;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid var(--gray-700);
        }
        
        .footer-links h4 {
            color: white;
            margin-bottom: 20px;
        }
        
        .footer-links ul {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: var(--gray-300);
            text-decoration: none;
            transition: var(--transition);
        }
        
        .footer-links a:hover {
            color: white;
            text-decoration: underline;
        }
        
        .copyright {
            text-align: center;
            padding-top: 30px;
            margin-top: 30px;
            border-top: 1px solid var(--gray-700);
            font-size: 0.9rem;
            color: var(--gray-500);
        }
        
        /* Mobile Responsive */
        @media (max-width: 768px) {
            .article-column {
                padding: 25px;
            }
            
            .article-title {
                font-size: 2rem;
            }
            
            .numbered-heading {
                font-size: 1.4rem;
            }
            
            .calculator-widget, .faq-widget {
                padding: 25px;
            }
            
            .data-table {
                display: block;
                overflow-x: auto;
            }
        }
        
        @media (max-width: 480px) {
            .container {
                padding: 0 15px;
            }
            
            .article-title {
                font-size: 1.8rem;
            }
            
            .header-content {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
            
            .brand {
                flex-direction: column;
                gap: 10px;
            }
        }
        
        /* Print Styles */
        @media print {
            .site-header, .sidebar-column, .site-footer {
                display: none;
            }
            
            .article-column {
                box-shadow: none;
                padding: 0;
            }
        }
    </style>
    <!-- Header -->
    <header class="site-header">
        <div class="container">
            <div class="header-content">
                <div class="brand">
                    <div class="brand-logo">
                        <i class="fas fa-car"></i>
                    </div>
                    <div class="brand-text">
                        <h1>24Car-Repair.com</h1>
                        <div class="tagline">Automotive Calculators &#038; Resources</div>
                    </div>
                </div>
                <div class="last-updated">
                    <span><i class="fas fa-calendar-alt"></i> </span>
                </div>
            </div>
        </div>
    </header>

    <!-- Main Content -->
    <div class="container">
        <div class="main-layout">
            <!-- Left Column - Article -->
            <main class="article-column">
                <header class="article-header">
                    <h1 class="article-title">Louisiana Car Sales Tax Calculator: Complete Guide &#038; Calculator</h1>
                    <div class="article-meta">
                        <div class="meta-item">
                            <i class="fas fa-file-alt"></i>
                            <span>Comprehensive Guide</span>
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-calculator"></i>
                            <span>Interactive Calculator Included</span>
                        </div>
                    </div>
                </header>
                
                <div class="article-content">
                    <h2 class="numbered-heading">Introduction to Louisiana Car Sales Tax</h2>
                    <p>Understanding car sales tax in Louisiana is essential for any vehicle purchase within the state. Louisiana employs a unique two-tiered tax system comprising a fixed state tax rate and variable local parish taxes. This comprehensive guide provides detailed insights into how Louisiana calculates vehicle sales tax, complete with an interactive calculator to estimate your exact tax liability.</p>
                    
                    <p>Louisiana&#8217;s tax structure offers a significant advantage through its trade-in tax credit system, which reduces the taxable base when you trade in a vehicle. This guide will walk you through all components of Louisiana&#8217;s car sales tax, including state rates, parish variations, and additional fees that contribute to your total out-the-door cost.</p>
                    
                    <div class="highlight-box">
                        <h4><i class="fas fa-lightbulb"></i> Key Insight</h4>
                        <p>Louisiana is one of only 13 states that offer a full sales tax credit on trade-in vehicles. This means you only pay sales tax on the difference between your new vehicle&#8217;s price and your trade-in&#8217;s value, potentially saving you hundreds or even thousands of dollars.</p>
                    </div>
                    
                    <h2 class="numbered-heading">Louisiana Car Sales Tax Calculator</h2>
                    <p>Use our interactive calculator in the sidebar to instantly compute your exact tax liability. The calculator implements the official Louisiana Department of Revenue formula and includes all parish variations. Simply enter your vehicle details, select your parish, and receive a comprehensive breakdown of all costs associated with your vehicle purchase.</p>
                    
                    <h3 class="numbered-subheading">How the Calculator Works</h3>
                    <p>The calculator follows Louisiana&#8217;s official tax calculation methodology:</p>
                    <ol>
                        <li><strong>Determines Taxable Base</strong>: Calculates the net purchase price (Vehicle Price &#8211; Trade-in Value)</li>
                        <li><strong>Applies State Tax</strong>: Adds the 4.45% state sales tax</li>
                        <li><strong>Adds Parish Tax</strong>: Includes the specific local parish tax rate (0% to 2% additional)</li>
                        <li><strong>Includes Additional Fees</strong>: Factors in title, registration, and documentation fees</li>
                        <li><strong>Calculates Total</strong>: Sums all components for your out-the-door price</li>
                    </ol>
                    
                    <h2 class="numbered-heading">Understanding Louisiana&#8217;s Tax Structure</h2>
                    <p>Louisiana&#8217;s vehicle sales tax system comprises multiple layers that combine to form your total tax rate. The system is designed to support both state and local government functions through vehicle-related taxation.</p>
                    
                    <h3 class="numbered-subheading">State Sales Tax Rate</h3>
                    <p>The Louisiana state sales tax rate for vehicles is fixed at 4.45%. This rate applies uniformly across all parishes and forms the foundation of your vehicle tax calculation. The state tax revenue supports essential services including transportation infrastructure, public safety, and education initiatives.</p>
                    
                    <h3 class="numbered-subheading">Local Parish Tax Rates</h3>
                    <p>Parish governments in Louisiana can levy additional sales tax ranging from 0% to 2%. These rates vary significantly between parishes and sometimes even within different municipalities of the same parish. The table below illustrates the complete tax picture across major Louisiana parishes:</p>
                    
                    <table class="data-table">
                        <thead>
                            <tr>
                                <th>Parish Name</th>
                                <th>State Tax Rate</th>
                                <th>Parish Tax Rate</th>
                                <th>Total Tax Rate</th>
                                <th>Effective Range</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>Orleans Parish</td>
                                <td>4.45%</td>
                                <td>1.00%</td>
                                <td>5.45%</td>
                                <td>Statewide High</td>
                            </tr>
                            <tr>
                                <td>East Baton Rouge Parish</td>
                                <td>4.45%</td>
                                <td>1.00%</td>
                                <td>5.45%</td>
                                <td>Statewide High</td>
                            </tr>
                            <tr>
                                <td>Jefferson Parish</td>
                                <td>4.45%</td>
                                <td>0.65%</td>
                                <td>5.10%</td>
                                <td>Above Average</td>
                            </tr>
                            <tr>
                                <td>Lafayette Parish</td>
                                <td>4.45%</td>
                                <td>0.75%</td>
                                <td>5.20%</td>
                                <td>Above Average</td>
                            </tr>
                            <tr>
                                <td>St. Tammany Parish</td>
                                <td>4.45%</td>
                                <td>0.55%</td>
                                <td>5.00%</td>
                                <td>Average</td>
                            </tr>
                            <tr>
                                <td>Caddo Parish</td>
                                <td>4.45%</td>
                                <td>0.55%</td>
                                <td>5.00%</td>
                                <td>Average</td>
                            </tr>
                            <tr>
                                <td>Calcasieu Parish</td>
                                <td>4.45%</td>
                                <td>0.85%</td>
                                <td>5.30%</td>
                                <td>Above Average</td>
                            </tr>
                            <tr class="highlight-cell">
                                <td>Lowest Parish Rates</td>
                                <td>4.45%</td>
                                <td>0.00%</td>
                                <td>4.45%</td>
                                <td>Statewide Low</td>
                            </tr>
                        </tbody>
                    </table>
                    
                    <h2 class="numbered-heading">Detailed Tax Calculation Methodology</h2>
                    <p>The Louisiana Department of Revenue specifies precise calculation methods for vehicle sales tax. Understanding these calculations helps you verify dealer quotes and plan your vehicle purchase budget accurately.</p>
                    
                    <h3 class="numbered-subheading">Official Tax Formula</h3>
                    <p>The official Louisiana vehicle sales tax formula, as defined in Louisiana Revised Statute RS 47:305, is:</p>
                    
                    <div class="highlight-box">
                        <h4><i class="fas fa-calculator"></i> Official Calculation Formula</h4>
                        <p><strong>Taxable Amount = Vehicle Purchase Price &#8211; Trade-in Allowance</strong></p>
                        <p><strong>State Tax = Taxable Amount × 4.45%</strong></p>
                        <p><strong>Local Parish Tax = Taxable Amount × Parish Tax Rate</strong></p>
                        <p><strong>Total Sales Tax = State Tax + Local Parish Tax</strong></p>
                        <p><strong>Total Vehicle Cost = Taxable Amount + Total Sales Tax + Title &#038; Registration Fees</strong></p>
                    </div>
                    
                    <h3 class="numbered-subheading">Step-by-Step Calculation Example</h3>
                    <p>Consider purchasing a $35,000 vehicle in Orleans Parish with a $12,000 trade-in:</p>
                    <ol>
                        <li><strong>Determine Taxable Base</strong>: $35,000 &#8211; $12,000 = $23,000</li>
                        <li><strong>Calculate State Tax</strong>: $23,000 × 4.45% = $1,023.50</li>
                        <li><strong>Calculate Parish Tax</strong>: $23,000 × 1.00% = $230.00</li>
                        <li><strong>Total Sales Tax</strong>: $1,023.50 + $230.00 = $1,253.50</li>
                        <li><strong>Add Title/Registration</strong>: $1,253.50 + $185 = $1,438.50</li>
                        <li><strong>Final Vehicle Cost</strong>: $23,000 + $1,438.50 = $24,438.50</li>
                    </ol>
                    
                    <div class="chart-placeholder">
                        <div class="chart-icon">
                            <i class="fas fa-chart-pie"></i>
                        </div>
                        <h3>Visual Tax Breakdown</h3>
                        <p>In this example, your total tax savings from the trade-in credit would be $1,076.50 ($535.50 state tax + $541.00 parish tax). This visualization demonstrates how significant the trade-in advantage can be in Louisiana.</p>
                    </div>
                    
                    <h2 class="numbered-heading">Additional Fees and Costs</h2>
                    <p>Beyond sales tax, several additional fees contribute to your total vehicle purchase cost in Louisiana. These mandatory fees are collected by the Louisiana Office of Motor Vehicles (OMV) and vary based on vehicle type and value.</p>
                    
                    <h3 class="numbered-subheading">Title and Registration Fees</h3>
                    <table class="data-table">
                        <thead>
                            <tr>
                                <th>Fee Type</th>
                                <th>Standard Amount</th>
                                <th>Description</th>
                                <th>Applicable To</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>Title Fee</td>
                                <td>$68.50</td>
                                <td>Certificate of ownership issuance</td>
                                <td>All Vehicles</td>
                            </tr>
                            <tr>
                                <td>Registration Fee</td>
                                <td>$20-$80</td>
                                <td>Based on vehicle value and type</td>
                                <td>All Vehicles</td>
                            </tr>
                            <tr>
                                <td>License Plate Fee</td>
                                <td>$18.00</td>
                                <td>Standard issue plate</td>
                                <td>New Registrations</td>
                            </tr>
                            <tr>
                                <td>Handling Fee</td>
                                <td>$8.00</td>
                                <td>OMV processing fee</td>
                                <td>All Transactions</td>
                            </tr>
                            <tr>
                                <td>Notary Fee</td>
                                <td>$10-$50</td>
                                <td>Document notarization</td>
                                <td>Most Transactions</td>
                            </tr>
                        </tbody>
                    </table>
                    
                    <h3 class="numbered-subheading">Documentary Service Charge</h3>
                    <p>Louisiana dealers may charge a documentary service fee, typically ranging from $100 to $500. This fee covers administrative costs associated with processing paperwork. Unlike sales tax, this fee is negotiable and varies between dealerships.</p>
                    
                    <h2 class="numbered-heading">Special Considerations and Exemptions</h2>
                    <p>Several special circumstances and exemptions can affect your Louisiana car sales tax calculation. Understanding these exceptions ensures accurate tax planning.</p>
                    
                    <h3 class="numbered-subheading">Trade-In Tax Credit Advantage</h3>
                    <p>Louisiana&#8217;s trade-in tax credit represents one of the most significant tax advantages for vehicle purchasers. Unlike many states that tax the full purchase price, Louisiana only taxes the net difference. This policy can result in substantial savings, particularly on high-value trade-ins.</p>
                    
                    <h3 class="numbered-subheading">Military Personnel Exemptions</h3>
                    <p>Active-duty military personnel stationed in Louisiana but maintaining legal residence in another state may be exempt from Louisiana sales tax on vehicle purchases. Proper documentation of military status and out-of-state residency is required.</p>
                    
                    <h3 class="numbered-subheading">Disabled Veteran Exemptions</h3>
                    <p>Louisiana offers sales tax exemptions for disabled veterans with service-connected disabilities rated at 100% by the VA. Eligible veterans must obtain proper certification from the Louisiana Department of Veterans Affairs.</p>
                    
                    <h2 class="numbered-heading">Comparison with Neighboring States</h2>
                    <p>Understanding how Louisiana&#8217;s vehicle tax system compares to neighboring states provides valuable context for border-area purchasers.</p>
                    
                    <table class="data-table">
                        <thead>
                            <tr>
                                <th>State</th>
                                <th>Base Tax Rate</th>
                                <th>Trade-in Credit</th>
                                <th>Local Taxes</th>
                                <th>Additional Notes</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td><strong>Louisiana</strong></td>
                                <td>4.45%</td>
                                <td>Full Credit</td>
                                <td>Parish Level (0-2%)</td>
                                <td>Best trade-in policy</td>
                            </tr>
                            <tr>
                                <td>Texas</td>
                                <td>6.25%</td>
                                <td>Partial Credit</td>
                                <td>Local (Up to 2%)</td>
                                <td>Higher base rate</td>
                            </tr>
                            <tr>
                                <td>Arkansas</td>
                                <td>6.50%</td>
                                <td>No Credit</td>
                                <td>None</td>
                                <td>Higher effective rate</td>
                            </tr>
                            <tr>
                                <td>Mississippi</td>
                                <td>5.00%</td>
                                <td>No Credit</td>
                                <td>None</td>
                                <td>Simple flat rate</td>
                            </tr>
                            <tr>
                                <td>Alabama</td>
                                <td>2.00%</td>
                                <td>Full Credit</td>
                                <td>County Level</td>
                                <td>Lowest base rate</td>
                            </tr>
                        </tbody>
                    </table>
                    
                    <h2 class="numbered-heading">Frequently Asked Questions</h2>
                    <p>Common questions about Louisiana car sales tax are addressed in the FAQ section in the sidebar. This comprehensive resource covers everything from basic calculations to complex tax scenarios.</p>
                    
                    <h2 class="numbered-heading">Legal References and Verification</h2>
                    <p>All calculations and information in this guide are based on current Louisiana law as of December 2026. Primary legal references include:</p>
                    <ul>
                        <li>Louisiana Revised Statute RS 47:305 (Sales Tax Provisions)</li>
                        <li>Louisiana Administrative Code Title 61 (Revenue Regulations)</li>
                        <li>Louisiana Department of Revenue Bulletin 23-001 (Vehicle Tax Guidelines)</li>
                        <li>Louisiana OMV Fee Schedule (2026 Edition)</li>
                    </ul>
                    
                    <p>For official verification or specific tax situations, consult the <a href="https://revenue.louisiana.gov/" target="_blank" rel="noopener">Louisiana Department of Revenue</a> or your local OMV office. Tax rates and regulations may change; always verify current requirements before finalizing vehicle purchases.</p>
                    
                    <div class="highlight-box">
                        <h4><i class="fas fa-exclamation-triangle"></i> Important Disclaimer</h4>
                        <p>This calculator and guide provide estimates based on current Louisiana tax laws and should be used for informational purposes only. Actual taxes and fees may vary based on specific circumstances, vehicle type, and local regulations. Always verify calculations with the Louisiana Department of Revenue or a qualified tax professional before making vehicle purchase decisions.</p>
                    </div>
                </div>
            </main>
            
            <!-- Right Column - Calculator & FAQ -->
            <aside class="sidebar-column">
                <!-- Calculator Widget -->
                <section class="calculator-widget">
                    <div class="widget-header">
                        <div class="widget-icon">
                            <i class="fas fa-calculator"></i>
                        </div>
                        <h2 class="widget-title">Louisiana Tax Calculator</h2>
                    </div>
                    
                    <div class="calculator-form">
                        <div class="form-group">
                            <label for="calcVehiclePrice" class="form-label">Vehicle Purchase Price ($)</label>
                            <input type="number" id="calcVehiclePrice" class="form-input" min="0" step="100" placeholder="e.g., 35000" value="35000">
                            <div class="input-hint">
                                <i class="fas fa-info-circle"></i> Price before taxes and fees
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="calcTradeIn" class="form-label">Trade-in Value ($)</label>
                            <input type="number" id="calcTradeIn" class="form-input" min="0" step="100" placeholder="e.g., 12000" value="12000">
                            <div class="input-hint">
                                <i class="fas fa-info-circle"></i> LA taxes only the net difference
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="calcParish" class="form-label">Select Your Parish</label>
                            <select id="calcParish" class="form-input">
                                <option value="0.0545" selected>Orleans Parish (5.45%)</option>
                                <option value="0.0545">East Baton Rouge (5.45%)</option>
                                <option value="0.051">Jefferson Parish (5.10%)</option>
                                <option value="0.052">Lafayette Parish (5.20%)</option>
                                <option value="0.05">St. Tammany Parish (5.00%)</option>
                                <option value="0.05">Caddo Parish (5.00%)</option>
                                <option value="0.053">Calcasieu Parish (5.30%)</option>
                                <option value="0.048">Ascension Parish (4.95%)</option>
                                <option value="0.0445">Base State Rate Only (4.45%)</option>
                            </select>
                            <div class="input-hint">
                                <i class="fas fa-info-circle"></i> Combined state + parish rate shown
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="calcFees" class="form-label">Title &#038; Registration Fees ($)</label>
                            <input type="number" id="calcFees" class="form-input" min="0" step="5" placeholder="e.g., 185" value="185">
                            <div class="input-hint">
                                <i class="fas fa-info-circle"></i> Estimated fees, actual may vary
                            </div>
                        </div>
                        
                        <button id="calculateButton" class="btn-calculate">
                            <i class="fas fa-calculator"></i> Calculate Total Cost
                        </button>
                    </div>
                    
                    <div class="results-summary">
                        <h3 style="margin-bottom: 15px; color: var(--dark);">Tax Breakdown</h3>
                        
                        <div class="result-item">
                            <span class="result-label">Taxable Amount</span>
                            <span class="result-value" id="resultTaxable">$23,000.00</span>
                        </div>
                        
                        <div class="result-item">
                            <span class="result-label">State Tax (4.45%)</span>
                            <span class="result-value" id="resultStateTax">$1,023.50</span>
                        </div>
                        
                        <div class="result-item">
                            <span class="result-label">Parish Tax</span>
                            <span class="result-value" id="resultParishTax">$230.00</span>
                        </div>
                        
                        <div class="result-item">
                            <span class="result-label">Total Sales Tax</span>
                            <span class="result-value" id="resultTotalTax">$1,253.50</span>
                        </div>
                        
                        <div class="result-item">
                            <span class="result-label">Additional Fees</span>
                            <span class="result-value" id="resultFees">$185.00</span>
                        </div>
                        
                        <div class="result-total result-item">
                            <span class="result-label">Total Vehicle Cost</span>
                            <span class="result-value" id="resultTotal">$24,438.50</span>
                        </div>
                    </div>
                </section>
                
                <!-- FAQ Widget -->
                <section class="faq-widget">
                    <div class="widget-header">
                        <div class="widget-icon">
                            <i class="fas fa-question-circle"></i>
                        </div>
                        <h2 class="widget-title">Frequently Asked Questions</h2>
                    </div>
                    
                    <div class="faq-content">
                        <div class="faq-item">
                            <div class="faq-question">
                                <i class="fas fa-q"></i>
                                How does Louisiana calculate car sales tax?
                            </div>
                            <div class="faq-answer">
                                Louisiana calculates sales tax on the net purchase price (vehicle price minus trade-in value). The state tax rate is 4.45%, and local parishes can add up to 2% additional tax.
                            </div>
                        </div>
                        
                        <div class="faq-item">
                            <div class="faq-question">
                                <i class="fas fa-q"></i>
                                Do all parishes in Louisiana have the same tax rate?
                            </div>
                            <div class="faq-answer">
                                No, parish tax rates vary from 0% to 2% additional on top of the state rate. Orleans and East Baton Rouge parishes have the highest combined rate at 5.45%.
                            </div>
                        </div>
                        
                        <div class="faq-item">
                            <div class="faq-question">
                                <i class="fas fa-q"></i>
                                What is the trade-in tax advantage in Louisiana?
                            </div>
                            <div class="faq-answer">
                                Louisiana offers a full sales tax credit on trade-ins. You only pay tax on the difference between the new vehicle price and your trade-in value, not the full purchase price.
                            </div>
                        </div>
                        
                        <div class="faq-item">
                            <div class="faq-question">
                                <i class="fas fa-q"></i>
                                Are there any tax exemptions for military personnel?
                            </div>
                            <div class="faq-answer">
                                Active-duty military stationed in Louisiana but maintaining legal residence elsewhere may be exempt from Louisiana sales tax. Proper documentation is required.
                            </div>
                        </div>
                        
                        <div class="faq-item">
                            <div class="faq-question">
                                <i class="fas fa-q"></i>
                                How accurate is this calculator?
                            </div>
                            <div class="faq-answer">
                                This calculator uses official Louisiana tax formulas and current rates. However, actual taxes may vary based on specific circumstances—always verify with the Louisiana Department of Revenue.
                            </div>
                        </div>
                        
                        <div class="faq-item">
                            <div class="faq-question">
                                <i class="fas fa-q"></i>
                                What additional fees should I expect?
                            </div>
                            <div class="faq-answer">
                                Expect title fees ($68.50), registration ($20-$80 based on value), license plate ($18), handling ($8), and potential notary fees ($10-$50).
                            </div>
                        </div>
                    </div>
                </section>
            </aside>
        </div>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // Get calculator elements
            const vehiclePriceInput = document.getElementById('calcVehiclePrice');
            const tradeInInput = document.getElementById('calcTradeIn');
            const parishSelect = document.getElementById('calcParish');
            const feesInput = document.getElementById('calcFees');
            const calculateButton = document.getElementById('calculateButton');
            
            // Result elements
            const resultTaxable = document.getElementById('resultTaxable');
            const resultStateTax = document.getElementById('resultStateTax');
            const resultParishTax = document.getElementById('resultParishTax');
            const resultTotalTax = document.getElementById('resultTotalTax');
            const resultFees = document.getElementById('resultFees');
            const resultTotal = document.getElementById('resultTotal');
            
            // Constants
            const STATE_RATE = 0.0445;
            
            // Format currency
            function formatCurrency(amount) {
                return '$' + parseFloat(amount).toLocaleString('en-US', {
                    minimumFractionDigits: 2,
                    maximumFractionDigits: 2
                });
            }
            
            // Calculate and update results
            function calculateTax() {
                // Get values
                const vehiclePrice = parseFloat(vehiclePriceInput.value) || 0;
                const tradeInValue = parseFloat(tradeInInput.value) || 0;
                const totalRate = parseFloat(parishSelect.value);
                const additionalFees = parseFloat(feesInput.value) || 0;
                
                // Calculate parish rate
                const parishRate = totalRate - STATE_RATE;
                
                // Calculate taxable base
                const taxableBase = Math.max(0, vehiclePrice - tradeInValue);
                
                // Calculate taxes
                const stateTax = taxableBase * STATE_RATE;
                const parishTax = taxableBase * parishRate;
                const totalTax = stateTax + parishTax;
                
                // Calculate total cost
                const totalCost = taxableBase + totalTax + additionalFees;
                
                // Update display
                resultTaxable.textContent = formatCurrency(taxableBase);
                resultStateTax.textContent = formatCurrency(stateTax);
                resultParishTax.textContent = formatCurrency(parishTax);
                resultTotalTax.textContent = formatCurrency(totalTax);
                resultFees.textContent = formatCurrency(additionalFees);
                resultTotal.textContent = formatCurrency(totalCost);
                
                // Add animation effect
                resultTotal.style.color = '#059669';
                setTimeout(() => {
                    resultTotal.style.color = '';
                }, 500);
            }
            
            // Event listeners
            calculateButton.addEventListener('click', calculateTax);
            
            // Calculate on input changes
            const inputs = [vehiclePriceInput, tradeInInput, parishSelect, feesInput];
            inputs.forEach(input => {
                input.addEventListener('input', calculateTax);
                input.addEventListener('change', calculateTax);
            });
            
            // Initialize calculation
            calculateTax();
            
            // Add keyboard shortcuts
            document.addEventListener('keydown', function(e) {
                if ((e.ctrlKey || e.metaKey) && e.key === 'Enter') {
                    e.preventDefault();
                    calculateTax();
                }
                
                if (e.key === 'Escape') {
                    vehiclePriceInput.value = 35000;
                    tradeInInput.value = 12000;
                    parishSelect.value = 0.0545;
                    feesInput.value = 185;
                    calculateTax();
                }
            });
            
            // Add input validation
            inputs.forEach(input => {
                if (input.type === 'number') {
                    input.addEventListener('blur', function() {
                        if (this.value < 0) this.value = 0;
                        calculateTax();
                    });
                }
            });
            
            // Parish rate display helper
            parishSelect.addEventListener('change', function() {
                const rate = (parseFloat(this.value) * 100).toFixed(2);
                const parishName = this.options[this.selectedIndex].text.split('(')[0].trim();
                console.log(`Selected ${parishName} with total rate of ${rate}%`);
            });
        });
    </script>
]]></content:encoded>
					
					<wfw:commentRss>https://24car-repair.com/louisiana-car-sales-tax-calculator/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Louisiana Traffic Ticket Calculator: Fines, Costs &#038; Legal Impacts</title>
		<link>https://24car-repair.com/louisiana-traffic-ticket-calculator/</link>
					<comments>https://24car-repair.com/louisiana-traffic-ticket-calculator/#respond</comments>
		
		<dc:creator><![CDATA[Robert]]></dc:creator>
		<pubDate>Fri, 26 Dec 2025 15:33:31 +0000</pubDate>
				<category><![CDATA[Calculator]]></category>
		<category><![CDATA[Louisiana]]></category>
		<guid isPermaLink="false">https://24car-repair.com/?p=4759</guid>

					<description><![CDATA[Louisiana Traffic Ticket Calculator 2026 &#124; Complete Cost Analysis &#038; Fine Estimation Louisiana Traffic Ticket Calculator: Complete Guide to Fines, Costs &#038; Legal Impacts If you&#8217;ve received a traffic citation in Louisiana, understanding the true financial impact requires more than just looking at the base fine. Our comprehensive Louisiana Traffic Ticket Calculator and detailed analysis [&#8230;]]]></description>
										<content:encoded><![CDATA[
<title>Louisiana Traffic Ticket Calculator 2026 | Complete Cost Analysis &#038; Fine Estimation</title>
    
    <!-- Primary CSS -->
    <style>
        /* ====== CORE RESET & VARIABLES ====== */
        :root {
            --primary-blue: #1e3a8a;
            --secondary-blue: #3b82f6;
            --accent-gold: #f59e0b;
            --danger-red: #dc2626;
            --success-green: #10b981;
            --light-bg: #f8fafc;
            --medium-bg: #f1f5f9;
            --dark-text: #1e293b;
            --medium-text: #475569;
            --light-text: #64748b;
            --border-color: #e2e8f0;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
            --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --spacing-xs: 0.5rem;
            --spacing-sm: 1rem;
            --spacing-md: 1.5rem;
            --spacing-lg: 2rem;
            --spacing-xl: 3rem;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html {
            scroll-behavior: smooth;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI', Arial, sans-serif;
            line-height: 1.7;
            color: var(--dark-text);
            background-color: var(--light-bg);
            margin: 0 auto;
          }
        
        /* ====== ALIGENT LAYOUT SYSTEM ====== */
        .layout-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: var(--spacing-xl);
            margin-top: var(--spacing-lg);
        }
        
        @media (min-width: 1024px) {
            .layout-container {
                grid-template-columns: 2fr 1fr;
            }
        }
        
        /* ====== TYPOGRAPHY SYSTEM ====== */
        h1, h2, h3, h4, h5 {
            font-weight: 700;
            line-height: 1.3;
            color: var(--primary-blue);
            margin-bottom: var(--spacing-sm);
        }
        
        h1 {
            font-size: clamp(2.2rem, 5vw, 3rem);
            margin-top: var(--spacing-md);
            padding-bottom: var(--spacing-sm);
            border-bottom: 4px solid var(--accent-gold);
            position: relative;
            counter-reset: section;
        }
        
        h1::before {
            content: "1. ";
            color: var(--accent-gold);
            font-weight: 800;
        }
        
        h2 {
            font-size: clamp(1.8rem, 4vw, 2.2rem);
            margin-top: var(--spacing-xl);
            padding-bottom: var(--spacing-xs);
            border-bottom: 2px solid var(--border-color);
            position: relative;
            counter-increment: section;
        }
        
        h2::before {
            content: counter(section) ". ";
            color: var(--secondary-blue);
            font-weight: 700;
        }
        
        h3 {
            font-size: clamp(1.4rem, 3vw, 1.8rem);
            margin-top: var(--spacing-lg);
            color: var(--medium-text);
            counter-increment: subsection;
        }
        
        h3::before {
            content: counter(section) "." counter(subsection) ". ";
            color: var(--secondary-blue);
            font-weight: 600;
        }
        
        p {
            margin-bottom: var(--spacing-md);
            font-size: 1.1rem;
            line-height: 1.8;
        }
        
        /* ====== SITE HEADER ====== */
        .site-header {
            text-align: center;
            padding: var(--spacing-xl) 0;
            border-bottom: 3px solid var(--border-color);
            margin-bottom: var(--spacing-xl);
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
        }
        
        .site-title {
            color: var(--primary-blue);
            text-decoration: none;
            font-weight: 800;
            letter-spacing: -0.5px;
            margin-bottom: var(--spacing-xs);
            display: inline-block;
        }
        
        .site-subtitle {
            font-size: 1.2rem;
            color: var(--medium-text);
            max-width: 600px;
            margin: 0 auto;
        }
        
        /* ====== MAIN CONTENT AREA ====== */
        .main-content {
            background: white;
            border-radius: var(--radius-lg);
            padding: var(--spacing-xl);
            box-shadow: var(--shadow-md);
        }
        
        /* ====== SIDEBAR SYSTEM ====== */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-lg);
        }
        
        .sidebar-widget {
            background: white;
            border-radius: var(--radius-lg);
            padding: var(--spacing-lg);
            box-shadow: var(--shadow-md);
            border: 1px solid var(--border-color);
        }
        
        /* ====== CALCULATOR WIDGET ====== */
        .calculator-widget {
            background: linear-gradient(135deg, var(--primary-blue), #2563eb);
            color: white;
            border: none;
        }
        
        .calculator-header {
            text-align: center;
            margin-bottom: var(--spacing-lg);
        }
        
        .calculator-header h2 {
            color: white;
            border-bottom: 2px solid rgba(255,255,255,0.3);
            font-size: 1.8rem;
        }
        
        .calculator-form {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-md);
        }
        
        .form-group {
            display: flex;
            flex-direction: column;
        }
        
        .form-group label {
            font-weight: 600;
            margin-bottom: var(--spacing-xs);
            font-size: 1rem;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .form-group label .info-icon {
            color: rgba(255,255,255,0.7);
            cursor: help;
        }
        
        select, input {
            padding: 14px 16px;
            border: 2px solid rgba(255,255,255,0.2);
            border-radius: var(--radius-sm);
            font-size: 1rem;
            background: rgba(255,255,255,0.95);
            transition: all 0.3s ease;
        }
        
        select:focus, input:focus {
            outline: none;
            border-color: var(--accent-gold);
            box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
            background: white;
        }
        
        .calculate-btn {
            background: linear-gradient(135deg, var(--accent-gold), #d97706);
            color: white;
            border: none;
            padding: 18px;
            font-size: 1.2rem;
            font-weight: 700;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: var(--spacing-sm);
        }
        
        .calculate-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
        }
        
        .result-box {
            margin-top: var(--spacing-lg);
            padding: var(--spacing-md);
            background: rgba(255,255,255,0.1);
            border-radius: var(--radius-md);
            border-left: 4px solid var(--accent-gold);
            display: none;
        }
        
        /* ====== INFORMATION BOXES ====== */
        .info-box {
            background: var(--medium-bg);
            border-left: 4px solid var(--secondary-blue);
            padding: var(--spacing-md);
            margin: var(--spacing-lg) 0;
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
        }
        
        .warning-box {
            background: #fef2f2;
            border-left: 4px solid var(--danger-red);
            padding: var(--spacing-md);
            margin: var(--spacing-lg) 0;
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
        }
        
        .tip-box {
            background: #f0f9ff;
            border-left: 4px solid #0ea5e9;
            padding: var(--spacing-md);
            margin: var(--spacing-lg) 0;
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
        }
        
        /* ====== TABLES ====== */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin: var(--spacing-lg) 0;
            box-shadow: var(--shadow-sm);
            border-radius: var(--radius-md);
            overflow: hidden;
        }
        
        .data-table th {
            background: var(--primary-blue);
            color: white;
            text-align: left;
            padding: 16px;
            font-weight: 600;
        }
        
        .data-table td {
            padding: 14px 16px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .data-table tr:nth-child(even) {
            background: var(--light-bg);
        }
        
        .data-table tr:hover {
            background: #e0f2fe;
        }
        
        /* ====== FAQ SECTION ====== */
        .faq-section {
            background: var(--medium-bg);
            border-radius: var(--radius-lg);
            padding: var(--spacing-lg);
            margin-top: var(--spacing-xl);
        }
        
        .faq-item {
            background: white;
            border-radius: var(--radius-md);
            padding: var(--spacing-md);
            margin-bottom: var(--spacing-md);
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
        }
        
        .faq-item:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }
        
        .faq-question {
            font-weight: 700;
            color: var(--primary-blue);
            font-size: 1.1rem;
            margin-bottom: var(--spacing-xs);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .faq-question::before {
            content: "Q:";
            color: var(--accent-gold);
            font-weight: 800;
        }
        
        .faq-answer {
            color: var(--medium-text);
            padding-left: 30px;
        }
        
        /* ====== PARISH GRID ====== */
        .parish-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: var(--spacing-md);
            margin: var(--spacing-lg) 0;
        }
        
        .parish-card {
            background: white;
            border-radius: var(--radius-md);
            padding: var(--spacing-md);
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
        }
        
        .parish-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }
        
        .parish-card h4 {
            color: var(--primary-blue);
            margin-bottom: 5px;
        }
        
        .parish-card .court-cost {
            color: var(--danger-red);
            font-weight: 700;
            font-size: 1.2rem;
        }
        
        /* ====== RESPONSIVE DESIGN ====== */
        @media (max-width: 1023px) {
            .layout-container {
                grid-template-columns: 1fr;
            }
            
            .sidebar {
                order: -1;
            }
        }
        
        @media (max-width: 768px) {
            body {
                padding: 0 15px;
            }
            
            .main-content, .sidebar-widget {
                padding: var(--spacing-md);
            }
            
            .data-table {
                display: block;
                overflow-x: auto;
            }
            
            .parish-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
        }
        
        @media (max-width: 480px) {
            .site-header {
                padding: var(--spacing-lg) 0;
            }
            
            .parish-grid {
                grid-template-columns: 1fr;
            }
        }
        
        /* ====== FOOTER ====== */
        .site-footer {
            margin-top: var(--spacing-xl);
            padding: var(--spacing-lg) 0;
            border-top: 3px solid var(--border-color);
            text-align: center;
            color: var(--light-text);
            font-size: 0.9rem;
        }
        
        /* ====== PRINT STYLES ====== */
        @media print {
            .sidebar, .calculate-btn, .site-footer {
                display: none;
            }
            
            .main-content {
                box-shadow: none;
                padding: 0;
            }
            
            body {
                max-width: none;
                background: white;
            }
        }
    </style>

    <!-- Main Layout Container -->
    <div class="layout-container">
        <!-- Main Content Area -->
        <main class="main-content">
            <!-- Article Header -->
            <h1>Louisiana Traffic Ticket Calculator: Complete Guide to Fines, Costs &#038; Legal Impacts</h1>
            
            <p>If you&#8217;ve received a traffic citation in Louisiana, understanding the true financial impact requires more than just looking at the base fine. Our comprehensive <strong>Louisiana Traffic Ticket Calculator</strong> and detailed analysis below will help you navigate the complex system of fines, court costs, surcharges, and long-term financial consequences that vary across Louisiana&#8217;s 64 parishes.</p>
            
            <div class="info-box">
                <p><strong>Quick Stat:</strong> The average Louisiana traffic ticket costs 65-85% more than the listed fine after mandatory court costs and fees. A $150 speeding ticket can easily exceed $275 in total costs in parishes like Orleans or Jefferson.</p>
            </div>
            
            <!-- Section 1: How Louisiana Traffic Fines Are Structured -->
            <h2>Understanding Louisiana Traffic Fine Structure</h2>
            
            <p>Louisiana&#8217;s traffic fine system operates on a three-tier structure that combines state-mandated base fines with parish-specific fees and statewide surcharges. This multi-layered approach means that identical violations can have significantly different total costs depending on where the citation was issued.</p>
            
            <h3>The Three-Tier Cost System</h3>
            
            <p>Every Louisiana traffic ticket consists of three primary cost components:</p>
            
            <table class="data-table">
                <thead>
                    <tr>
                        <th>Cost Component</th>
                        <th>Who Sets It</th>
                        <th>Typical Range</th>
                        <th>Purpose/Description</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td><strong>Base Fine</strong></td>
                        <td>Louisiana State Legislature (RS 32)</td>
                        <td>$50 &#8211; $1,000+</td>
                        <td>Statutory penalty for the specific violation</td>
                    </tr>
                    <tr>
                        <td><strong>Court Costs</strong></td>
                        <td>Individual Parish Courts</td>
                        <td>$75 &#8211; $165+</td>
                        <td>Operational costs of the judicial system</td>
                    </tr>
                    <tr>
                        <td><strong>State Surcharges</strong></td>
                        <td>Louisiana Highway Safety Commission</td>
                        <td>$35 &#8211; $100+</td>
                        <td>Funding for state safety programs</td>
                    </tr>
                    <tr>
                        <td><strong>Additional Fees</strong></td>
                        <td>Various State Agencies</td>
                        <td>$10 &#8211; $75</td>
                        <td>Victim restitution, judicial expense, etc.</td>
                    </tr>
                </tbody>
            </table>
            
            <!-- Section 2: Parish-by-Parish Cost Analysis -->
            <h2>Parish-Specific Court Cost Analysis</h2>
            
            <p>Louisiana&#8217;s parish-based court system creates dramatic variations in total ticket costs. Below is a detailed breakdown of court costs for major parishes based on 2026 fee schedules:</p>
            
            <div class="parish-grid">
                <div class="parish-card">
                    <h4>Orleans Parish</h4>
                    <p><span class="court-cost">$145</span> Court Cost</p>
                    <p>Highest in state</p>
                </div>
                <div class="parish-card">
                    <h4>Jefferson Parish</h4>
                    <p><span class="court-cost">$128</span> Court Cost</p>
                    <p>Includes technology fee</p>
                </div>
                <div class="parish-card">
                    <h4>East Baton Rouge</h4>
                    <p><span class="court-cost">$118</span> Court Cost</p>
                    <p>Standard city-parish</p>
                </div>
                <div class="parish-card">
                    <h4>Lafayette Parish</h4>
                    <p><span class="court-cost">$112</span> Court Cost</p>
                    <p>Includes courthouse security</p>
                </div>
                <div class="parish-card">
                    <h4>Caddo Parish</h4>
                    <p><span class="court-cost">$115</span> Court Cost</p>
                    <p>Shreveport area</p>
                </div>
                <div class="parish-card">
                    <h4>St. Tammany Parish</h4>
                    <p><span class="court-cost">$135</span> Court Cost</p>
                    <p>Northshore premium</p>
                </div>
            </div>
            
            <!-- Section 3: Violation-Specific Fine Schedule -->
            <h2>Detailed Fine Schedule by Violation Type</h2>
            
            <p>Base fines in Louisiana are established by the Louisiana Revised Statutes, primarily Title 32 (Motor Vehicles and Traffic Regulation). The following table outlines common violations and their statutory base fines:</p>
            
            <table class="data-table">
                <thead>
                    <tr>
                        <th>Violation Description</th>
                        <th>Louisiana RS Code</th>
                        <th>Base Fine Range</th>
                        <th>License Points</th>
                        <th>Insurance Impact</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>Speeding 1-10 mph over limit</td>
                        <td>RS 32:61</td>
                        <td>$125 &#8211; $175</td>
                        <td>2 points</td>
                        <td>15-25% increase</td>
                    </tr>
                    <tr>
                        <td>Speeding 11-20 mph over limit</td>
                        <td>RS 32:61</td>
                        <td>$175 &#8211; $250</td>
                        <td>2 points</td>
                        <td>25-35% increase</td>
                    </tr>
                    <tr>
                        <td>Speeding 21-30 mph over limit</td>
                        <td>RS 32:61</td>
                        <td>$225 &#8211; $300</td>
                        <td>3 points</td>
                        <td>35-50% increase</td>
                    </tr>
                    <tr>
                        <td>Running Red Light</td>
                        <td>RS 32:232</td>
                        <td>$150 &#8211; $225</td>
                        <td>3 points</td>
                        <td>30-45% increase</td>
                    </tr>
                    <tr>
                        <td>Failure to Stop at Stop Sign</td>
                        <td>RS 32:123</td>
                        <td>$100 &#8211; $175</td>
                        <td>3 points</td>
                        <td>25-40% increase</td>
                    </tr>
                    <tr>
                        <td>Illegal U-Turn</td>
                        <td>RS 32:101</td>
                        <td>$100 &#8211; $150</td>
                        <td>2 points</td>
                        <td>20-30% increase</td>
                    </tr>
                    <tr>
                        <td>No Seat Belt (Driver)</td>
                        <td>RS 32:295</td>
                        <td>$50</td>
                        <td>0 points</td>
                        <td>Minimal impact</td>
                    </tr>
                    <tr>
                        <td>Expired Registration (>6 months)</td>
                        <td>RS 47:462</td>
                        <td>$125 &#8211; $200</td>
                        <td>0 points</td>
                        <td>No impact</td>
                    </tr>
                    <tr>
                        <td>No Proof of Insurance</td>
                        <td>RS 32:861</td>
                        <td>$500 &#8211; $750</td>
                        <td>0 points*</td>
                        <td>Severe impact</td>
                    </tr>
                    <tr>
                        <td>Reckless Driving</td>
                        <td>RS 32:58</td>
                        <td>$200 &#8211; $500</td>
                        <td>4 points</td>
                        <td>50-100% increase</td>
                    </tr>
                </tbody>
            </table>
            
            <div class="warning-box">
                <p><strong>Note:</strong> &#8220;No points&#8221; for insurance violations doesn&#8217;t mean no consequences. Louisiana requires SR-22 insurance certification after certain violations, which can triple insurance costs for 3 years.</p>
            </div>
            
            <!-- Section 4: Insurance Impact Analysis -->
            <h2>Long-Term Insurance Cost Implications</h2>
            
            <p>The true cost of a Louisiana traffic ticket extends far beyond the initial fine payment. Insurance rate increases represent the most significant long-term financial impact for most drivers.</p>
            
            <h3>Insurance Increase Calculation Methodology</h3>
            
            <p>Louisiana insurers use a point-based system that correlates with risk assessment:</p>
            
            <table class="data-table">
                <thead>
                    <tr>
                        <th>Violation Points</th>
                        <th>Average Annual Increase</th>
                        <th>3-Year Total Impact</th>
                        <th>Risk Tier Assignment</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>0 points (Non-moving)</td>
                        <td>$0 &#8211; $50</td>
                        <td>$0 &#8211; $150</td>
                        <td>No change</td>
                    </tr>
                    <tr>
                        <td>2 points (Minor moving)</td>
                        <td>$300 &#8211; $500</td>
                        <td>$900 &#8211; $1,500</td>
                        <td>Standard → Preferred-</td>
                    </tr>
                    <tr>
                        <td>3 points (Serious moving)</td>
                        <td>$500 &#8211; $800</td>
                        <td>$1,500 &#8211; $2,400</td>
                        <td>Preferred → Standard</td>
                    </tr>
                    <tr>
                        <td>4+ points (Major violation)</td>
                        <td>$800 &#8211; $1,500+</td>
                        <td>$2,400 &#8211; $4,500+</td>
                        <td>Standard → Non-Standard</td>
                    </tr>
                </tbody>
            </table>
            
            <div class="tip-box">
                <p><strong>Pro Tip:</strong> Multiple violations within 36 months have a compounding effect. Two 2-point violations don&#8217;t equal one 4-point violation—they often trigger &#8220;high-risk driver&#8221; classification with even higher penalties.</p>
            </div>
            
            <!-- Section 5: Legal Options and Defense Strategies -->
            <h2>Legal Options and Defense Strategies</h2>
            
            <p>Before paying any ticket, Louisiana drivers should understand their legal options. Each approach has different costs, time commitments, and potential outcomes.</p>
            
            <h3>Available Options Summary</h3>
            
            <table class="data-table">
                <thead>
                    <tr>
                        <th>Option</th>
                        <th>Typical Cost</th>
                        <th>Time Required</th>
                        <th>Points Assessed</th>
                        <th>Insurance Impact</th>
                        <th>Success Rate</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>Pay Ticket (Guilty)</td>
                        <td>Full fine + costs</td>
                        <td>Immediate</td>
                        <td>Full points</td>
                        <td>Maximum increase</td>
                        <td>100% (conviction)</td>
                    </tr>
                    <tr>
                        <td>Defensive Driving Course</td>
                        <td>$75 &#8211; $150 + court costs</td>
                        <td>4-8 hours</td>
                        <td>0 points</td>
                        <td>Minimal</td>
                        <td>60-80% eligible</td>
                    </tr>
                    <tr>
                        <td>Contest Ticket (Self)</td>
                        <td>Court costs only if win</td>
                        <td>4-8 hours</td>
                        <td>0 if successful</td>
                        <td>None if dismissed</td>
                        <td>15-25% dismissal</td>
                    </tr>
                    <tr>
                        <td>Hire Traffic Attorney</td>
                        <td>$150 &#8211; $500 + possible costs</td>
                        <td>Minimal personal</td>
                        <td>Often reduced/0</td>
                        <td>Reduced/eliminated</td>
                        <td>70-90% reduction</td>
                    </tr>
                    <tr>
                        <td>Negotiate with Prosecutor</td>
                        <td>Reduced fine + costs</td>
                        <td>2-4 hours</td>
                        <td>Often reduced</td>
                        <td>Reduced</td>
                        <td>50-70% success</td>
                    </tr>
                </tbody>
            </table>
            
            <!-- FAQ Section -->
            <div class="faq-section">
                <h2>Frequently Asked Questions</h2>
                
                <div class="faq-item">
                    <div class="faq-question">How accurate is the Louisiana Traffic Ticket Calculator?</div>
                    <div class="faq-answer">
                        <p>Our calculator uses 2026 fee schedules from Louisiana parish courts and the latest insurance rate increase data. It provides estimates within 10-15% of actual costs for most violations. However, actual amounts may vary based on specific circumstances, judge discretion, and updated fee structures.</p>
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question">What happens if I ignore a traffic ticket in Louisiana?</div>
                    <div class="faq-answer">
                        <p>Ignoring a traffic ticket in Louisiana leads to: (1) Additional late fees (typically $25-75), (2) License suspension after 60 days, (3) Possible bench warrant for your arrest, (4) Additional reinstatement fees ($100-300) to restore your license, (5) Possible vehicle registration block. Always address tickets before the court date.</p>
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question">Can I take defensive driving to dismiss a ticket in Louisiana?</div>
                    <div class="faq-answer">
                        <p>Yes, but eligibility varies by parish and violation type. Generally: (1) You must have a valid Louisiana license, (2) No tickets in the past 12 months, (3) Violation cannot be in a construction zone or school zone, (4) Speed cannot exceed 20 mph over limit, (5) Not available for reckless driving or DUI. Check with your specific parish court.</p>
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question">How long do points stay on my Louisiana driving record?</div>
                    <div class="faq-answer">
                        <p>Points remain on your Louisiana driving record for 2 years from the violation date. However, insurance companies typically look back 3-5 years for rate calculations. Multiple points can trigger license suspension: 12 points in 12 months = 90-day suspension; 12 points in 24 months = 45-day suspension.</p>
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question">What&#8217;s the difference between court costs and fines?</div>
                    <div class="faq-answer">
                        <p>Fines are punitive penalties for the violation itself. Court costs are administrative fees that cover the operational expenses of the judicial system. In Louisiana, court costs are mandatory and often exceed the base fine. They include: clerk fees, judicial expense fund, courthouse security, technology fees, and victim restitution funds.</p>
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question">How do I fight a traffic ticket in Louisiana?</div>
                    <div class="faq-answer">
                        <p>To contest a ticket: (1) Plead not guilty by the court date, (2) Request a trial date, (3) Gather evidence (photos, witness statements, calibration records), (4) Research the specific RS code cited, (5) Consider consulting with a traffic attorney, (6) Present your case professionally in court. Many parishes offer online contest options.</p>
                    </div>
                </div>
            </div>
        </main>

        <!-- Sidebar with Calculator and Tools -->
        <aside class="sidebar">
            <!-- Calculator Widget -->
            <div class="sidebar-widget calculator-widget">
                <div class="calculator-header">
                    <h2>Louisiana Ticket Calculator</h2>
                    <p>Estimate your total costs in 60 seconds</p>
                </div>
                
                <form class="calculator-form" id="ticketCalculator">
                    <div class="form-group">
                        <label for="violation">
                            <span class="info-icon">ⓘ</span>
                            Violation Type
                        </label>
                        <select id="violation" name="violation" required>
                            <option value="">&#8212; Select Violation &#8212;</option>
                            <option value="speeding_1-10">Speeding 1-10 mph over</option>
                            <option value="speeding_11-20">Speeding 11-20 mph over</option>
                            <option value="speeding_21-30">Speeding 21-30 mph over</option>
                            <option value="speeding_30+">Speeding 31+ mph over</option>
                            <option value="red_light">Running Red Light</option>
                            <option value="stop_sign">Failure to Stop</option>
                            <option value="illegal_turn">Illegal Turn/U-Turn</option>
                            <option value="no_seatbelt">No Seat Belt</option>
                            <option value="expired_reg">Expired Registration</option>
                            <option value="no_insurance">No Insurance Proof</option>
                            <option value="reckless">Reckless Driving</option>
                        </select>
                    </div>
                    
                    <div class="form-group">
                        <label for="parish">
                            <span class="info-icon">ⓘ</span>
                            Parish Where Cited
                        </label>
                        <select id="parish" name="parish" required>
                            <option value="">&#8212; Select Parish &#8212;</option>
                            <option value="orleans">Orleans Parish</option>
                            <option value="jefferson">Jefferson Parish</option>
                            <option value="east_baton_rouge">East Baton Rouge</option>
                            <option value="lafayette">Lafayette Parish</option>
                            <option value="caddo">Caddo Parish</option>
                            <option value="st_tammany">St. Tammany Parish</option>
                            <option value="calcasieu">Calcasieu Parish</option>
                            <option value="other">Other Parish</option>
                        </select>
                    </div>
                    
                    <div class="form-group">
                        <label for="prior_tickets">
                            <span class="info-icon">ⓘ</span>
                            Prior Tickets (3 years)
                        </label>
                        <select id="prior_tickets" name="prior_tickets">
                            <option value="0">0 &#8211; First offense</option>
                            <option value="1">1 prior ticket</option>
                            <option value="2">2 prior tickets</option>
                            <option value="3">3+ prior tickets</option>
                        </select>
                    </div>
                    
                    <button type="button" class="calculate-btn" onclick="calculateDetailedTotal()">
                        Calculate Total Costs
                    </button>
                </form>
                
                <div class="result-box" id="resultBox">
                    <!-- Results populated by JavaScript -->
                </div>
            </div>
            
            <!-- Quick Reference Widget -->
            <div class="sidebar-widget">
                <h3>📊 Quick Cost Reference</h3>
                <p><strong>Average Total Costs:</strong></p>
                <ul style="margin-left: 1.5rem; margin-top: 10px;">
                    <li>Speeding (1-10 over): $240-280</li>
                    <li>Red Light Violation: $265-310</li>
                    <li>No Seat Belt: $125-160</li>
                    <li>No Insurance: $675-825</li>
                    <li>Reckless Driving: $375-550</li>
                </ul>
                <p style="margin-top: 15px;"><strong>Highest Cost Parishes:</strong></p>
                <ol style="margin-left: 1.5rem;">
                    <li>Orleans (+45% average)</li>
                    <li>St. Tammany (+38%)</li>
                    <li>Jefferson (+32%)</li>
                </ol>
            </div>
            
            <!-- Important Deadlines Widget -->
            <div class="sidebar-widget">
                <h3>⏰ Critical Deadlines</h3>
                <p><strong>15 Days:</strong> Initial response due date for most parishes</p>
                <p><strong>30 Days:</strong> Defensive driving course election deadline</p>
                <p><strong>60 Days:</strong> License suspension begins if unpaid</p>
                <p><strong>180 Days:</strong> Warrant may be issued for failure to appear</p>
                <div class="warning-box" style="margin: 15px 0 0 0; padding: 12px;">
                    <p><strong>Warning:</strong> Deadlines vary by parish. Always check your citation for exact dates.</p>
                </div>
            </div>
        </aside>
    </div>

    <!-- JavaScript for Calculator -->
    <script>
        // Comprehensive Louisiana ticket data
        const detailedTicketData = {
            "speeding_1-10": { 
                base: 135, 
                points: 2, 
                desc: "Speeding 1-10 mph over limit",
                insuranceMultiplier: 1.25 
            },
            "speeding_11-20": { 
                base: 185, 
                points: 2, 
                desc: "Speeding 11-20 mph over limit",
                insuranceMultiplier: 1.35 
            },
            "speeding_21-30": { 
                base: 235, 
                points: 3, 
                desc: "Speeding 21-30 mph over limit",
                insuranceMultiplier: 1.45 
            },
            "speeding_30+": { 
                base: 325, 
                points: 4, 
                desc: "Speeding 31+ mph over limit",
                insuranceMultiplier: 1.60 
            },
            "red_light": { 
                base: 165, 
                points: 3, 
                desc: "Running Red Light",
                insuranceMultiplier: 1.40 
            },
            "stop_sign": { 
                base: 140, 
                points: 3, 
                desc: "Failure to Stop at Stop Sign",
                insuranceMultiplier: 1.35 
            },
            "illegal_turn": { 
                base: 110, 
                points: 2, 
                desc: "Illegal Turn or U-Turn",
                insuranceMultiplier: 1.20 
            },
            "no_seatbelt": { 
                base: 50, 
                points: 0, 
                desc: "No Seat Belt Violation",
                insuranceMultiplier: 1.05 
            },
            "expired_reg": { 
                base: 145, 
                points: 0, 
                desc: "Expired Registration (6+ months)",
                insuranceMultiplier: 1.10 
            },
            "no_insurance": { 
                base: 550, 
                points: 0, 
                desc: "No Proof of Insurance",
                insuranceMultiplier: 1.75 
            },
            "reckless": { 
                base: 275, 
                points: 4, 
                desc: "Reckless Driving",
                insuranceMultiplier: 1.65 
            }
        };

        const detailedParishCosts = {
            "orleans": { 
                name: "Orleans Parish", 
                courtCost: 145, 
                surcharge: 40,
                additionalFees: 25 
            },
            "jefferson": { 
                name: "Jefferson Parish", 
                courtCost: 128, 
                surcharge: 38,
                additionalFees: 20 
            },
            "east_baton_rouge": { 
                name: "East Baton Rouge Parish", 
                courtCost: 118, 
                surcharge: 35,
                additionalFees: 18 
            },
            "lafayette": { 
                name: "Lafayette Parish", 
                courtCost: 112, 
                surcharge: 34,
                additionalFees: 16 
            },
            "caddo": { 
                name: "Caddo Parish", 
                courtCost: 115, 
                surcharge: 36,
                additionalFees: 17 
            },
            "st_tammany": { 
                name: "St. Tammany Parish", 
                courtCost: 135, 
                surcharge: 42,
                additionalFees: 22 
            },
            "calcasieu": { 
                name: "Calcasieu Parish", 
                courtCost: 108, 
                surcharge: 33,
                additionalFees: 15 
            },
            "other": { 
                name: "Other Parish (Average)", 
                courtCost: 110, 
                surcharge: 35,
                additionalFees: 17 
            }
        };

        function calculateDetailedTotal() {
            const violation = document.getElementById('violation').value;
            const parish = document.getElementById('parish').value;
            const priorTickets = parseInt(document.getElementById('prior_tickets').value);
            
            if (!violation || !parish) {
                alert("Please select both a violation type and parish.");
                return;
            }
            
            const ticket = detailedTicketData[violation];
            const parishInfo = detailedParishCosts[parish];
            
            // Calculate base amounts
            let baseFine = ticket.base;
            let courtCost = parishInfo.courtCost;
            let stateSurcharge = parishInfo.surcharge;
            let additionalFees = parishInfo.additionalFees;
            
            // Adjust for prior tickets
            if (priorTickets > 0) {
                const priorMultiplier = 1 + (priorTickets * 0.12);
                baseFine = Math.round(baseFine * priorMultiplier);
                courtCost = Math.round(courtCost * (1 + (priorTickets * 0.05)));
            }
            
            // Calculate insurance impact
            const baseInsuranceRate = 1200; // Average LA annual premium
            let annualIncrease = Math.round(baseInsuranceRate * (ticket.insuranceMultiplier - 1));
            if (priorTickets > 0) {
                annualIncrease *= (1 + (priorTickets * 0.15));
            }
            
            // Calculate totals
            const subtotal = baseFine + courtCost + stateSurcharge + additionalFees;
            const total = subtotal;
            const threeYearInsurance = annualIncrease * 3;
            const fiveYearInsurance = annualIncrease * 5;
            
            // Build results display
            const resultBox = document.getElementById('resultBox');
            resultBox.innerHTML = `
                <h3 style="color: white; margin-top: 0;">Your Detailed Estimate</h3>
                <p><strong>Violation:</strong> ${ticket.desc}</p>
                <p><strong>Parish:</strong> ${parishInfo.name}</p>
                <hr style="margin: 1rem 0; border-color: rgba(255,255,255,0.3);">
                
                <div style="background: rgba(255,255,255,0.15); padding: 15px; border-radius: 8px; margin-bottom: 15px;">
                    <div style="display: flex; justify-content: space-between; margin-bottom: 8px;">
                        <span>Base Fine:</span>
                        <span><strong>$${baseFine.toFixed(2)}</strong></span>
                    </div>
                    <div style="display: flex; justify-content: space-between; margin-bottom: 8px;">
                        <span>Court Costs:</span>
                        <span><strong>$${courtCost.toFixed(2)}</strong></span>
                    </div>
                    <div style="display: flex; justify-content: space-between; margin-bottom: 8px;">
                        <span>State Surcharge:</span>
                        <span><strong>$${stateSurcharge.toFixed(2)}</strong></span>
                    </div>
                    <div style="display: flex; justify-content: space-between; margin-bottom: 12px;">
                        <span>Additional Fees:</span>
                        <span><strong>$${additionalFees.toFixed(2)}</strong></span>
                    </div>
                    <div style="display: flex; justify-content: space-between; padding-top: 12px; border-top: 2px solid rgba(255,255,255,0.3); font-size: 1.3rem;">
                        <span><strong>Total Due:</strong></span>
                        <span><strong style="color: #fbbf24;">$${total.toFixed(2)}</strong></span>
                    </div>
                </div>
                
                <div style="background: rgba(220, 38, 38, 0.2); padding: 15px; border-radius: 8px; border-left: 4px solid #fca5a5;">
                    <p style="margin-bottom: 10px;"><strong>⚠️ Insurance Impact:</strong></p>
                    <p>Estimated annual increase: <strong>$${annualIncrease.toFixed(0)}</strong></p>
                    <p>3-year impact: <strong>$${threeYearInsurance.toFixed(0)}</strong></p>
                    <p>5-year impact: <strong>$${fiveYearInsurance.toFixed(0)}</strong></p>
                </div>
                
                <p style="margin-top: 15px; font-size: 0.9rem; opacity: 0.9;">
                    <strong>Note:</strong> This is an estimate. Actual amounts determined by the court.
                    ${priorTickets > 0 ? 'Prior tickets increase costs significantly.' : ''}
                </p>
            `;
            
            resultBox.style.display = 'block';
            resultBox.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
        }
    </script>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
					<wfw:commentRss>https://24car-repair.com/louisiana-traffic-ticket-calculator/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Louisiana DMV Practice Test</title>
		<link>https://24car-repair.com/louisiana-dmv-practice-test/</link>
					<comments>https://24car-repair.com/louisiana-dmv-practice-test/#respond</comments>
		
		<dc:creator><![CDATA[Robert]]></dc:creator>
		<pubDate>Mon, 08 Dec 2025 09:19:01 +0000</pubDate>
				<category><![CDATA[DMV Practice Test]]></category>
		<category><![CDATA[Louisiana DMV Practice Test]]></category>
		<category><![CDATA[Louisiana]]></category>
		<guid isPermaLink="false">https://24car-repair.com/?p=3340</guid>

					<description><![CDATA[Louisiana DMV Practice Test Louisiana OMV Practice Test Prepare for your Louisiana Driver&#8217;s License Exam Passing Score: 32 correct (80%) Time Limit: 60 seconds per question Select your test category below to begin your practice test. Enter Your Name: Car Driver&#8217;s Test Commercial Driver&#8217;s License (CDL) Motorcycle Test Start Practice Test Time Remaining for this [&#8230;]]]></description>
										<content:encoded><![CDATA[

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Louisiana DMV Practice Test</title>
    <style>
        :root {
            --primary-color: #002776;
            --secondary-color: #f2f2f2;
            --accent-color: #BF0A30;
            --correct-color: #4CAF50;
            --incorrect-color: #f44336;
            --text-color: #333;
            --light-text: #666;
            --card-bg: white;
            --shadow: 0 4px 8px rgba(0,0,0,0.1);
            --louisiana-blue: #002776;
            --louisiana-gold: #FDCC09;
            --louisiana-red: #BF0A30;
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f9f9f9;
            color: var(--text-color);
            line-height: 1.6;

            margin: 0 auto;
            background-image: linear-gradient(to bottom, #f0f7ff, #ffffff);
        }
        
 .controls-panel-2 {
width: 1200px;
padding: 20px;
}
   @media (max-width: 480px) {        
.controls-panel-2 {
width: 390px;
}
}
button {
    color: #000000;
}
button:hover {
    color: #000000;

}   
        
        header {
            text-align: center;
            padding: 20px 0 30px;
            border-bottom: 3px solid var(--louisiana-blue);
            margin-bottom: 30px;
            position: relative;
            background: linear-gradient(to right, var(--louisiana-blue), var(--louisiana-red));
            color: white;
            border-radius: 10px;
        }
        
        h1 {
            color: var(--louisiana-gold);
            margin-bottom: 10px;
            font-size: 2.5rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
        
        .subtitle {
            font-size: 1.2rem;
            margin-bottom: 20px;
        }
        
        .louisiana-flag {
            height: 40px;
            margin-bottom: 15px;
        }
        
        .controls-panel {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            background: var(--card-bg);
            padding: 20px;
            border-radius: 10px;
            box-shadow: var(--shadow);
            margin-bottom: 30px;
            border: 2px solid #e0e7ff;
        }
        
        .name-input-container {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            width: 100%;
            justify-content: center;
        }
        
        .name-input {
            padding: 12px 15px;
            border: 2px solid #ddd;
            border-radius: 5px;
            font-size: 1rem;
            width: 300px;
            max-width: 100%;
            transition: all 0.3s ease;
        }
        
        .name-input:focus {
            border-color: var(--louisiana-blue);
            outline: none;
            box-shadow: 0 0 0 3px rgba(0, 39, 118, 0.1);
        }
        
        .name-label {
            font-weight: 600;
            color: var(--louisiana-blue);
        }
        
        .category-selector {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin-bottom: 15px;
            justify-content: center;
        }
        
        .category-btn {
            padding: 12px 24px;
            background: var(--secondary-color);
            border: 2px solid #ddd;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .category-btn:hover {
            background: #e9e9e9;
            transform: translateY(-2px);
        }
        
        .category-btn.active {
            background: var(--louisiana-blue);
            color: white;
            border-color: var(--louisiana-blue);
            box-shadow: 0 4px 12px rgba(0, 39, 118, 0.2);
        }
        
        .test-info {
            background: rgba(255,255,255,0.2);
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid var(--louisiana-gold);
            margin-bottom: 20px;
            text-align: center;
            border: 1px solid rgba(255,255,255,0.3);
        }
        
        .test-stats {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 10px;
            font-weight: 600;
            flex-wrap: wrap;
        }
        
        .timer-container {
            background: var(--card-bg);
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            margin-bottom: 25px;
            box-shadow: var(--shadow);
            border: 2px solid #e0e7ff;
        }
        
        .timer {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--louisiana-blue);
            margin: 10px 0;
        }
        
        .timer.warning {
            color: var(--louisiana-red);
        }
        
        .timer.danger {
            color: var(--incorrect-color);
            animation: pulse 1s infinite;
        }
        
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.7; }
            100% { opacity: 1; }
        }
        
        .question-card {
            background: var(--card-bg);
            padding: 30px;
            border-radius: 10px;
            box-shadow: var(--shadow);
            margin-bottom: 30px;
            display: none;
            border: 2px solid #e0e7ff;
        }
        
        .question-card.active {
            display: block;
        }
        
        .question-number {
            color: var(--louisiana-blue);
            font-weight: 700;
            font-size: 1.1rem;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
        }
        
        .question-text {
            font-size: 1.3rem;
            margin-bottom: 25px;
            line-height: 1.5;
        }
        
        .options-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            margin-bottom: 25px;
        }
        
        .option {
            padding: 16px 20px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
        }
        
        .option:hover {
            background: #f5f5f5;
            border-color: #bbb;
            transform: translateX(5px);
        }
        
        .option.selected {
            border-color: var(--louisiana-blue);
            background-color: rgba(0, 39, 118, 0.05);
        }
        
        .option.correct {
            border-color: var(--correct-color);
            background-color: rgba(76, 175, 80, 0.1);
        }
        
        .option.incorrect {
            border-color: var(--incorrect-color);
            background-color: rgba(244, 67, 54, 0.1);
        }
        
        .option-label {
            display: inline-block;
            width: 36px;
            height: 36px;
            line-height: 36px;
            text-align: center;
            background: #eee;
            border-radius: 50%;
            margin-right: 15px;
            font-weight: 600;
        }
        
        .option.selected .option-label {
            background: var(--louisiana-blue);
            color: white;
        }
        
        .navigation-buttons {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }
        
        .btn {
            padding: 14px 28px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
        }
        
        .btn-primary {
            background: var(--louisiana-blue);
            color: white;
        }
        
        .btn-primary:hover {
            background: #001a52;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 39, 118, 0.3);
        }
        
        .btn-secondary {
            background: #f0f0f0;
            color: var(--text-color);
        }
        
        .btn-secondary:hover {
            background: #e0e0e0;
            transform: translateY(-2px);
        }
        
        .btn-accent {
            background: var(--louisiana-red);
            color: white;
        }
        
        .btn-accent:hover {
            background: #9c0827;
            transform: translateY(-2px);
        }
        
        .progress-container {
            width: 100%;
            height: 10px;
            background: #eee;
            border-radius: 5px;
            margin: 20px 0;
            overflow: hidden;
        }
        
        .progress-bar {
            height: 100%;
            background: var(--louisiana-blue);
            width: 0%;
            transition: width 0.5s ease;
        }
        
        .results-container {
            background: var(--card-bg);
            padding: 40px;
            border-radius: 10px;
            box-shadow: var(--shadow);
            text-align: center;
            display: none;
            margin-bottom: 30px;
            border: 2px solid #e0e7ff;
        }
        
        .results-container.show {
            display: block;
        }
        
        .results-header {
            color: var(--louisiana-blue);
            margin-bottom: 15px;
            font-size: 2rem;
        }
        
        .tester-name {
            color: var(--louisiana-blue);
            font-weight: 700;
            font-size: 1.3rem;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid #eee;
        }
        
        .score-circle {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            margin: 0 auto 30px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            background: conic-gradient(var(--correct-color) 0% 0%, #eee 0% 100%);
        }
        
        .score-circle-inner {
            width: 160px;
            height: 160px;
            border-radius: 50%;
            background: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        
        .score-percent {
            font-size: 2.8rem;
            font-weight: 700;
            color: var(--text-color);
        }
        
        .score-text {
            font-size: 1.2rem;
            color: var(--light-text);
        }
        
        .pass {
            color: var(--correct-color);
        }
        
        .fail {
            color: var(--incorrect-color);
        }
        
        .result-details {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin: 30px 0;
            flex-wrap: wrap;
        }
        
        .result-box {
            padding: 20px;
            border-radius: 8px;
            min-width: 180px;
            box-shadow: var(--shadow);
            border: 1px solid #eee;
        }
        
        .result-box.correct {
            border-top: 4px solid var(--correct-color);
        }
        
        .result-box.incorrect {
            border-top: 4px solid var(--incorrect-color);
        }
        
        .result-box.skipped {
            border-top: 4px solid var(--louisiana-red);
        }
        
        .result-value {
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 5px;
        }
        
        .result-label {
            color: var(--light-text);
        }
        
        .recommendation {
            background: #f9f9f9;
            padding: 25px;
            border-radius: 8px;
            margin: 30px 0;
            text-align: left;
            border: 1px solid #eee;
        }
        
        .incorrect-questions-section {
            text-align: left;
            margin-top: 40px;
            border-top: 1px solid #eee;
            padding-top: 30px;
            display: none;
        }
        
        .incorrect-questions-section.show {
            display: block;
        }
        
        .incorrect-question {
            padding: 20px;
            border: 1px solid #eee;
            border-radius: 8px;
            margin-bottom: 20px;
            background: #f9f9f9;
            border-left: 4px solid var(--incorrect-color);
        }
        
        .review-section {
            text-align: left;
            margin-top: 40px;
            border-top: 1px solid #eee;
            padding-top: 30px;
            display: none;
        }
        
        .review-section.show {
            display: block;
        }
        
        .review-question {
            padding: 20px;
            border: 1px solid #eee;
            border-radius: 8px;
            margin-bottom: 20px;
            background: #f9f9f9;
        }
        
        .review-question.correct {
            border-left: 4px solid var(--correct-color);
        }
        
        .review-question.incorrect {
            border-left: 4px solid var(--incorrect-color);
        }
        
        .review-question.skipped {
            border-left: 4px solid var(--louisiana-red);
        }
        
        
        .toggle-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        .louisiana-seal {
            width: 60px;
            height: 60px;
            position: absolute;
            top: 20px;
            left: 20px;
            opacity: 0.8;
        }
        
        .mardi-gras {
            background: linear-gradient(90deg, purple 33%, green 33%, green 66%, gold 66%);
            height: 5px;
            width: 100%;
            margin-top: 10px;
            border-radius: 5px;
        }
        
        @media (max-width: 768px) {
            
            h1 {
                font-size: 2rem;
            }
            
            .louisiana-seal {
                position: relative;
                top: 0;
                left: 0;
                margin: 0 auto 15px;
            }
            
            .controls-panel {
                flex-direction: column;
                gap: 20px;
            }
            
            .category-selector {
                width: 100%;
                justify-content: center;
            }
            
            .question-card {
                padding: 20px;
            }
            
            .question-text {
                font-size: 1.1rem;
            }
            
            .navigation-buttons {
                flex-direction: column;
                gap: 10px;
            }
            
            .btn {
                width: 100%;
            }
            
            .result-details {
                gap: 15px;
            }
            
            .result-box {
                min-width: 140px;
            }
            
            .toggle-buttons {
                flex-direction: column;
            }
        }
    </style>
</head>
<body>
<div class="controls-panel-2">

    <header>
        <h1 style="
    color: #FDCC09;
">Louisiana OMV Practice Test</h1>
        <div class="subtitle" style="
    color: #fdcc09;
">Prepare for your Louisiana Driver&#8217;s License Exam</div>
        <div class="test-info">
            <div class="test-stats">
                <div>Passing Score: 32 correct (80%)</div>
                <div>Time Limit: 60 seconds per question</div>
            </div>
            <div>Select your test category below to begin your practice test.</div>
        </div>
        <div class="mardi-gras"></div>
    </header>
    
    <main>
        <div class="controls-panel">
            <div class="name-input-container">
                <span class="name-label">Enter Your Name:</span>
                <input type="text" class="name-input" id="testerName" placeholder="Your Name" maxlength="50">
            </div>
            <div class="category-selector">
                <button class="category-btn active" data-category="car">Car Driver&#8217;s Test</button>
                <button class="category-btn" data-category="cdl">Commercial Driver&#8217;s License (CDL)</button>
                <button class="category-btn" data-category="motorcycle">Motorcycle Test</button>
            </div>
            <button id="startTestBtn" class="btn btn-primary">Start Practice Test</button>
        </div>
        
        <div class="timer-container" style="display: none;">
            <div>Time Remaining for this Question:</div>
            <div class="timer" id="timer">60</div>
            <div>seconds</div>
        </div>
        
        <div class="progress-container" style="display: none;">
            <div class="progress-bar" id="progressBar"></div>
        </div>
        
        <div class="question-card" id="questionCard">
            <div class="question-number">
                <span>Question <span id="currentQuestion">1</span> of 40</span>
                <span>Category: <span id="currentCategory">Car</span></span>
            </div>
            <div class="question-text" id="questionText">
                Loading question&#8230;
            </div>
            <div class="options-container" id="optionsContainer">
                <!-- Options will be dynamically inserted here -->
            </div>
            <div class="navigation-buttons">
                <button id="prevBtn" class="btn btn-secondary">Previous Question</button>
                <button id="skipBtn" class="btn btn-accent">Skip Question</button>
                <button id="nextBtn" class="btn btn-primary">Next Question</button>
            </div>
        </div>
        
        <div class="results-container" id="resultsContainer">
            <h2 class="results-header">Test Results</h2>
            <div class="tester-name" id="testerNameDisplay">Tester: Not Provided</div>
            
            <div class="score-circle" id="scoreCircle">
                <div class="score-circle-inner">
                    <div class="score-percent" id="scorePercentElement">0%</div>
                    <div class="score-text" id="scoreText">Score</div>
                </div>
            </div>
            
            <div id="resultMessage">
                <h3 style="margin-bottom: 10px;">Calculating your results&#8230;</h3>
                <p>You need 32 correct answers (80%) to pass the Louisiana OMV test.</p>
            </div>
            
            <div class="result-details">
                <div class="result-box correct">
                    <div class="result-value" id="correctCount">0</div>
                    <div class="result-label">Correct</div>
                </div>
                <div class="result-box incorrect">
                    <div class="result-value" id="incorrectCount">0</div>
                    <div class="result-label">Incorrect</div>
                </div>
                <div class="result-box skipped">
                    <div class="result-value" id="skippedCount">0</div>
                    <div class="result-label">Skipped</div>
                </div>
            </div>
            
            <div class="recommendation" id="recommendation">
                <!-- Recommendations will be added here -->
            </div>
            
            <div class="toggle-buttons">
                <button id="showIncorrectBtn" class="btn btn-secondary">Show Incorrect Questions</button>
                <button id="reviewTestBtn" class="btn btn-secondary">Review All Questions</button>
                <button id="restartTestBtn" class="btn btn-primary">Take Another Test</button>
            </div>
            
            <div class="incorrect-questions-section" id="incorrectQuestionsSection">
                <h3>Incorrect Questions Review</h3>
                <div id="incorrectQuestionsList">
                    <!-- Incorrect questions will be added here -->
                </div>
            </div>
            
            <div class="review-section" id="reviewSection">
                <h3>Complete Test Review</h3>
                <div id="reviewQuestions">
                    <!-- Review questions will be added here -->
                </div>
            </div>
        </div>
    </main>
    <script>
        // OMV Test Configuration for Louisiana
        const TEST_CONFIG = {
            totalQuestions: 100,
            testQuestions: 40,
            passingScore: 32,  // Louisiana requires 80% to pass
            passingPercent: 80,
            timePerQuestion: 60, // seconds
            categories: ['car', 'cdl', 'motorcycle']
        };
        
        // Question banks for each category with 100 questions each
        const questionBanks = {
            car: generateCarQuestions(),
            cdl: generateCDLQuestions(),
            motorcycle: generateMotorcycleQuestions()
        };
        
        // Test state
        let testState = {
            testerName: '',
            currentCategory: 'car',
            currentQuestionIndex: 0,
            selectedQuestions: [],
            userAnswers: new Array(TEST_CONFIG.testQuestions).fill(null),
            timeRemaining: TEST_CONFIG.timePerQuestion,
            timerInterval: null,
            testStarted: false,
            testCompleted: false,
            incorrectQuestions: []
        };
        
        // DOM Elements
        const nameInput = document.getElementById('testerName');
        const categoryBtns = document.querySelectorAll('.category-btn');
        const startTestBtn = document.getElementById('startTestBtn');
        const timerContainer = document.querySelector('.timer-container');
        const timerElement = document.getElementById('timer');
        const progressContainer = document.querySelector('.progress-container');
        const progressBar = document.getElementById('progressBar');
        const questionCard = document.getElementById('questionCard');
        const currentQuestionElement = document.getElementById('currentQuestion');
        const currentCategoryElement = document.getElementById('currentCategory');
        const questionTextElement = document.getElementById('questionText');
        const optionsContainer = document.getElementById('optionsContainer');
        const prevBtn = document.getElementById('prevBtn');
        const skipBtn = document.getElementById('skipBtn');
        const nextBtn = document.getElementById('nextBtn');
        const resultsContainer = document.getElementById('resultsContainer');
        const testerNameDisplay = document.getElementById('testerNameDisplay');
        const scoreCircle = document.getElementById('scoreCircle');
        const scorePercentElement = document.getElementById('scorePercentElement');
        const scoreText = document.getElementById('scoreText');
        const correctCount = document.getElementById('correctCount');
        const incorrectCount = document.getElementById('incorrectCount');
        const skippedCount = document.getElementById('skippedCount');
        const resultMessage = document.getElementById('resultMessage');
        const recommendation = document.getElementById('recommendation');
        const incorrectQuestionsSection = document.getElementById('incorrectQuestionsSection');
        const incorrectQuestionsList = document.getElementById('incorrectQuestionsList');
        const reviewSection = document.getElementById('reviewSection');
        const reviewQuestions = document.getElementById('reviewQuestions');
        const showIncorrectBtn = document.getElementById('showIncorrectBtn');
        const reviewTestBtn = document.getElementById('reviewTestBtn');
        const restartTestBtn = document.getElementById('restartTestBtn');
        
        // Initialize event listeners
        function initEventListeners() {
            // Category selection
            categoryBtns.forEach(btn => {
                btn.addEventListener('click', () => {
                    categoryBtns.forEach(b => b.classList.remove('active'));
                    btn.classList.add('active');
                    testState.currentCategory = btn.dataset.category;
                    currentCategoryElement.textContent = btn.textContent.replace(' Test', '');
                });
            });
            
            // Start test button
            startTestBtn.addEventListener('click', startTest);
            
            // Navigation buttons
            prevBtn.addEventListener('click', showPreviousQuestion);
            skipBtn.addEventListener('click', skipQuestion);
            nextBtn.addEventListener('click', showNextQuestion);
            
            // Results buttons
            showIncorrectBtn.addEventListener('click', toggleIncorrectQuestions);
            reviewTestBtn.addEventListener('click', toggleReviewSection);
            restartTestBtn.addEventListener('click', restartTest);
        }
        
        // Generate 100 Louisiana Car questions
        function generateCarQuestions() {
            return [
                {
                    id: 1,
                    category: 'car',
                    question: 'What is the maximum speed limit in residential areas in Louisiana unless otherwise posted?',
                    options: ['25 mph', '30 mph', '35 mph', '45 mph'],
                    correctAnswer: 0,
                    topic: 'Speed Limits',
                    explanation: 'In Louisiana, the maximum speed limit in residential areas is 25 mph unless otherwise posted.'
                },
                {
                    id: 2,
                    category: 'car',
                    question: 'When must you use your headlights in Louisiana?',
                    options: ['Only at night', 'From sunset to sunrise', 'When visibility is less than 500 feet', 'Both B and C'],
                    correctAnswer: 3,
                    topic: 'Lighting',
                    explanation: 'Louisiana law requires headlights from sunset to sunrise AND when visibility is less than 500 feet.'
                },
                {
                    id: 3,
                    category: 'car',
                    question: 'What should you do when approaching a stopped school bus with flashing red lights in Louisiana?',
                    options: ['Slow down and proceed with caution', 'Stop until the bus moves again', 'Pass carefully if no children are visible', 'Stop at least 30 feet away'],
                    correctAnswer: 3,
                    topic: 'School Buses',
                    explanation: 'You must stop at least 30 feet away from a school bus with flashing red lights in Louisiana.'
                },
                {
                    id: 4,
                    category: 'car',
                    question: 'What is the legal blood alcohol concentration (BAC) limit for drivers over 21 in Louisiana?',
                    options: ['0.06%', '0.08%', '0.10%', '0.05%'],
                    correctAnswer: 1,
                    topic: 'DUI Laws',
                    explanation: 'The legal BAC limit for drivers over 21 in Louisiana is 0.08%.'
                },
                {
                    id: 5,
                    category: 'car',
                    question: 'How far ahead should you signal before turning in Louisiana?',
                    options: ['50 feet', '100 feet', 'At least 100 feet', '200 feet'],
                    correctAnswer: 2,
                    topic: 'Turning',
                    explanation: 'Louisiana law requires signaling at least 100 feet before turning.'
                },
                {
                    id: 6,
                    category: 'car',
                    question: 'When parking uphill with a curb, how should you turn your wheels?',
                    options: ['Away from the curb', 'Toward the curb', 'Straight', 'It doesn\'t matter'],
                    correctAnswer: 0,
                    topic: 'Parking',
                    explanation: 'When parking uphill with a curb, turn your wheels away from the curb.'
                },
                {
                    id: 7,
                    category: 'car',
                    question: 'What does a solid yellow line on your side of the road mean?',
                    options: ['Passing is allowed', 'No passing allowed', 'You may pass if safe', 'HOV lane'],
                    correctAnswer: 1,
                    topic: 'Road Markings',
                    explanation: 'A solid yellow line on your side means no passing is allowed.'
                },
                {
                    id: 8,
                    category: 'car',
                    question: 'What should you do when you see a flashing yellow traffic light?',
                    options: ['Stop completely', 'Slow down and proceed with caution', 'Speed up to clear intersection', 'Treat as stop sign'],
                    correctAnswer: 1,
                    topic: 'Traffic Signals',
                    explanation: 'A flashing yellow light means proceed with caution.'
                },
                {
                    id: 9,
                    category: 'car',
                    question: 'How long do you have to report an accident to the Louisiana OMV if there is injury, death, or over $500 damage?',
                    options: ['24 hours', '48 hours', '72 hours', 'Immediately to police'],
                    correctAnswer: 0,
                    topic: 'Accidents',
                    explanation: 'Accidents involving injury, death, or over $500 damage must be reported within 24 hours in Louisiana.'
                },
                {
                    id: 10,
                    category: 'car',
                    question: 'What is the minimum following distance behind another vehicle in Louisiana?',
                    options: ['1 second', '2 seconds', '3 seconds', '4 seconds'],
                    correctAnswer: 2,
                    topic: 'Safe Driving',
                    explanation: 'Maintain at least a 3-second following distance for safe driving in Louisiana.'
                },
                {
                    id: 11,
                    category: 'car',
                    question: 'When can you legally make a U-turn in Louisiana?',
                    options: ['Anywhere unless prohibited', 'Only at intersections', 'Never on state highways', 'Only with police permission'],
                    correctAnswer: 0,
                    topic: 'Turning',
                    explanation: 'U-turns are legal in Louisiana unless specifically prohibited by signs.'
                },
                {
                    id: 12,
                    category: 'car',
                    question: 'What does a red circle with a white horizontal bar mean?',
                    options: ['Do not enter', 'No parking', 'One way street', 'Stop ahead'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'A red circle with a white horizontal bar means "Do Not Enter".'
                },
                {
                    id: 13,
                    category: 'car',
                    question: 'What should you do if your vehicle starts to skid?',
                    options: ['Brake hard', 'Steer in the direction of the skid', 'Accelerate quickly', 'Turn wheel opposite skid'],
                    correctAnswer: 1,
                    topic: 'Emergency Procedures',
                    explanation: 'Steer in the direction you want the front of the vehicle to go during a skid.'
                },
                {
                    id: 14,
                    category: 'car',
                    question: 'When must you yield to pedestrians in Louisiana?',
                    options: ['Only at crosswalks', 'Whenever they are in the roadway', 'Only when they have a walk signal', 'Only in school zones'],
                    correctAnswer: 1,
                    topic: 'Right of Way',
                    explanation: 'Drivers must yield to pedestrians at all times when they are in the roadway.'
                },
                {
                    id: 15,
                    category: 'car',
                    question: 'What is the penalty for a first offense of not wearing a seatbelt in Louisiana?',
                    options: ['$10 fine', '$25 fine', '$50 fine', 'No fine, just a warning'],
                    correctAnswer: 2,
                    topic: 'Seatbelt Laws',
                    explanation: 'The fine for not wearing a seatbelt in Louisiana is $50 for a first offense.'
                },
                {
                    id: 16,
                    category: 'car',
                    question: 'How close may you park to a fire hydrant in Louisiana?',
                    options: ['5 feet', '10 feet', '15 feet', '20 feet'],
                    correctAnswer: 2,
                    topic: 'Parking',
                    explanation: 'You may not park within 15 feet of a fire hydrant in Louisiana.'
                },
                {
                    id: 17,
                    category: 'car',
                    question: 'What should you do when you see a stopped emergency vehicle with flashing lights?',
                    options: ['Slow down and proceed', 'Move over or slow down', 'Stop and wait for them to move', 'Speed up to pass quickly'],
                    correctAnswer: 1,
                    topic: 'Emergency Vehicles',
                    explanation: 'Move over to another lane or slow down when passing stopped emergency vehicles with flashing lights.'
                },
                {
                    id: 18,
                    category: 'car',
                    question: 'When driving in heavy rain, what lights should you use?',
                    options: ['High beams', 'Low beams', 'Parking lights only', 'No lights'],
                    correctAnswer: 1,
                    topic: 'Adverse Conditions',
                    explanation: 'Use low beam headlights in heavy rain; high beams will reflect back and reduce visibility.'
                },
                {
                    id: 19,
                    category: 'car',
                    question: 'What does a green arrow traffic signal mean?',
                    options: ['Proceed with caution', 'Protected turn in direction of arrow', 'Yield before turning', 'Stop if possible'],
                    correctAnswer: 1,
                    topic: 'Traffic Signals',
                    explanation: 'A green arrow means you have a protected turn in the direction of the arrow.'
                },
                {
                    id: 20,
                    category: 'car',
                    question: 'How old must you be to get an unrestricted driver\'s license in Louisiana?',
                    options: ['16', '16 years 6 months', '17', '18'],
                    correctAnswer: 2,
                    topic: 'Licensing',
                    explanation: 'You must be 17 years old to get an unrestricted driver\'s license in Louisiana.'
                },
                {
                    id: 21,
                    category: 'car',
                    question: 'What should you do when you hear a siren or see an emergency vehicle approaching?',
                    options: ['Speed up to get out of the way', 'Pull over to the right and stop', 'Continue driving normally', 'Flash your headlights'],
                    correctAnswer: 1,
                    topic: 'Emergency Vehicles',
                    explanation: 'You must pull over to the right and stop for emergency vehicles.'
                },
                {
                    id: 22,
                    category: 'car',
                    question: 'What is the speed limit in school zones during school hours in Louisiana?',
                    options: ['15 mph', '20 mph', '25 mph', '30 mph'],
                    correctAnswer: 1,
                    topic: 'Speed Limits',
                    explanation: 'The speed limit in school zones is 20 mph when children are present in Louisiana.'
                },
                {
                    id: 23,
                    category: 'car',
                    question: 'When is it legal to pass on the right in Louisiana?',
                    options: ['Never', 'When the vehicle ahead is turning left', 'On one-way streets', 'Both B and C'],
                    correctAnswer: 3,
                    topic: 'Passing',
                    explanation: 'Passing on the right is allowed when the vehicle ahead is turning left or on one-way streets.'
                },
                {
                    id: 24,
                    category: 'car',
                    question: 'What does a yellow, diamond-shaped sign indicate?',
                    options: ['Stop ahead', 'Warning of hazard', 'School zone', 'Yield right of way'],
                    correctAnswer: 1,
                    topic: 'Road Signs',
                    explanation: 'Yellow, diamond-shaped signs warn of potential hazards ahead.'
                },
                {
                    id: 25,
                    category: 'car',
                    question: 'How long is a learner\'s permit valid in Louisiana?',
                    options: ['6 months', '1 year', '2 years', '4 years'],
                    correctAnswer: 1,
                    topic: 'Licensing',
                    explanation: 'A Louisiana learner\'s permit is valid for 1 year.'
                },
                {
                    id: 26,
                    category: 'car',
                    question: 'What should you do when your car starts to hydroplane on wet roads?',
                    options: ['Brake hard', 'Accelerate to gain control', 'Steer straight and ease off gas', 'Turn sharply'],
                    correctAnswer: 2,
                    topic: 'Adverse Conditions',
                    explanation: 'When hydroplaning, steer straight and ease off the accelerator.'
                },
                {
                    id: 27,
                    category: 'car',
                    question: 'What is the maximum penalty for a first DUI offense in Louisiana?',
                    options: ['$150 fine', '$500 fine', 'Up to $1,000 fine', 'Up to $10,000 fine'],
                    correctAnswer: 2,
                    topic: 'DUI Laws',
                    explanation: 'Maximum fine for first DUI offense in Louisiana is up to $1,000.'
                },
                {
                    id: 28,
                    category: 'car',
                    question: 'When must you stop for a pedestrian at a crosswalk?',
                    options: ['Only when they are in your lane', 'When they are anywhere in the crosswalk', 'Only at marked crosswalks', 'Only during daylight'],
                    correctAnswer: 1,
                    topic: 'Pedestrian Safety',
                    explanation: 'You must stop for pedestrians anywhere in the crosswalk.'
                },
                {
                    id: 29,
                    category: 'car',
                    question: 'What does a red curb indicate in Louisiana?',
                    options: ['Loading zone', 'No stopping, standing, or parking', 'Parking for disabled only', 'Short-term parking'],
                    correctAnswer: 1,
                    topic: 'Parking',
                    explanation: 'Red curbs indicate no stopping, standing, or parking in Louisiana.'
                },
                {
                    id: 30,
                    category: 'car',
                    question: 'How far must you stay behind an emergency vehicle when it\'s responding to a call?',
                    options: ['100 feet', '200 feet', '300 feet', '500 feet'],
                    correctAnswer: 3,
                    topic: 'Emergency Vehicles',
                    explanation: 'Stay at least 500 feet behind emergency vehicles in Louisiana.'
                },
                {
                    id: 31,
                    category: 'car',
                    question: 'What does a broken yellow line mean?',
                    options: ['No passing', 'Passing allowed when safe', 'Two-way traffic', 'One-way traffic'],
                    correctAnswer: 1,
                    topic: 'Road Markings',
                    explanation: 'Broken yellow lines allow passing when safe.'
                },
                {
                    id: 32,
                    category: 'car',
                    question: 'When should you dim your high beam headlights in Louisiana?',
                    options: ['Within 500 feet of an oncoming vehicle', 'Within 1000 feet of an oncoming vehicle', 'Only in cities', 'Never'],
                    correctAnswer: 0,
                    topic: 'Lighting',
                    explanation: 'Dim high beams within 500 feet of an oncoming vehicle.'
                },
                {
                    id: 33,
                    category: 'car',
                    question: 'What is the minimum age for a learner\'s permit in Louisiana?',
                    options: ['14', '15', '15 years 6 months', '16'],
                    correctAnswer: 1,
                    topic: 'Licensing',
                    explanation: 'Minimum age for learner\'s permit in Louisiana is 15 years old.'
                },
                {
                    id: 34,
                    category: 'car',
                    question: 'When approaching a railroad crossing with flashing lights, you must stop:',
                    options: ['At the crossing', 'Between 15 and 50 feet from tracks', '100 feet from tracks', 'Only if a train is visible'],
                    correctAnswer: 1,
                    topic: 'Railroad Crossings',
                    explanation: 'Stop between 15 and 50 feet from railroad tracks when lights are flashing.'
                },
                {
                    id: 35,
                    category: 'car',
                    question: 'What does a red flashing light mean?',
                    options: ['Proceed with caution', 'Stop and proceed when safe', 'Stop completely', 'Yield'],
                    correctAnswer: 2,
                    topic: 'Traffic Signals',
                    explanation: 'Red flashing light means stop completely.'
                },
                {
                    id: 36,
                    category: 'car',
                    question: 'How long do you have to renew your license before it expires in Louisiana?',
                    options: ['30 days', '60 days', '6 months', '1 year'],
                    correctAnswer: 0,
                    topic: 'Licensing',
                    explanation: 'You can renew your Louisiana license up to 30 days before expiration.'
                },
                {
                    id: 37,
                    category: 'car',
                    question: 'What should you do if you miss your exit on a highway?',
                    options: ['Back up', 'Make a U-turn', 'Continue to next exit', 'Stop and reverse'],
                    correctAnswer: 2,
                    topic: 'Highway Driving',
                    explanation: 'Continue to the next exit if you miss your exit.'
                },
                {
                    id: 38,
                    category: 'car',
                    question: 'What does a green traffic light mean?',
                    options: ['Go if clear', 'Speed up', 'Yield to pedestrians', 'Both A and C'],
                    correctAnswer: 3,
                    topic: 'Traffic Signals',
                    explanation: 'Green light means go if clear, but yield to pedestrians.'
                },
                {
                    id: 39,
                    category: 'car',
                    question: 'When parking downhill with a curb, turn wheels:',
                    options: ['Away from curb', 'Toward curb', 'Straight', 'It doesn\'t matter'],
                    correctAnswer: 1,
                    topic: 'Parking',
                    explanation: 'Turn wheels toward curb when parking downhill.'
                },
                {
                    id: 40,
                    category: 'car',
                    question: 'What should you do when being passed by another vehicle?',
                    options: ['Speed up', 'Move to left lane', 'Slow down slightly', 'Maintain speed'],
                    correctAnswer: 2,
                    topic: 'Passing',
                    explanation: 'Slow down slightly when being passed.'
                },
                {
                    id: 41,
                    category: 'car',
                    question: 'What is the penalty for passing a stopped school bus in Louisiana?',
                    options: ['$100 fine', '$250 fine', '$500 fine', '$1,000 fine'],
                    correctAnswer: 2,
                    topic: 'School Buses',
                    explanation: 'Penalty for passing stopped school bus is up to $500 fine in Louisiana.'
                },
                {
                    id: 42,
                    category: 'car',
                    question: 'When turning left at an intersection, yield to:',
                    options: ['Pedestrians', 'Oncoming traffic', 'Both A and B', 'Neither A nor B'],
                    correctAnswer: 2,
                    topic: 'Turning',
                    explanation: 'Yield to pedestrians and oncoming traffic when turning left.'
                },
                {
                    id: 43,
                    category: 'car',
                    question: 'What does a blue sign indicate?',
                    options: ['Motorist services', 'Warning', 'Regulation', 'Construction'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Blue signs indicate motorist services.'
                },
                {
                    id: 44,
                    category: 'car',
                    question: 'How many hours of driving practice are required for a teen license in Louisiana?',
                    options: ['20 hours', '40 hours', '50 hours', '60 hours'],
                    correctAnswer: 2,
                    topic: 'Licensing',
                    explanation: '50 hours of practice required for teen license in Louisiana.'
                },
                {
                    id: 45,
                    category: 'car',
                    question: 'What should you do if you get tired while driving?',
                    options: ['Open windows', 'Turn up radio', 'Take a break', 'Drink coffee'],
                    correctAnswer: 2,
                    topic: 'Safe Driving',
                    explanation: 'Take a break if tired while driving.'
                },
                {
                    id: 46,
                    category: 'car',
                    question: 'What does a pentagon-shaped sign indicate?',
                    options: ['School zone', 'Stop ahead', 'Yield', 'No passing'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Pentagon-shaped signs indicate school zones.'
                },
                {
                    id: 47,
                    category: 'car',
                    question: 'When should you use your hazard lights in Louisiana?',
                    options: ['When parking illegally', 'When driving slow', 'When stopped on road', 'When warning of hazard'],
                    correctAnswer: 3,
                    topic: 'Emergency Equipment',
                    explanation: 'Use hazard lights to warn other drivers of a hazard ahead.'
                },
                {
                    id: 48,
                    category: 'car',
                    question: 'What is the penalty for littering from a vehicle in Louisiana?',
                    options: ['$50 fine', '$100 fine', '$250 fine', '$500 fine'],
                    correctAnswer: 3,
                    topic: 'Traffic Laws',
                    explanation: 'Littering fine is up to $500 in Louisiana.'
                },
                {
                    id: 49,
                    category: 'car',
                    question: 'When can you drive in a bike lane?',
                    options: ['To pass another vehicle', 'To make a right turn', 'When traffic is heavy', 'Never'],
                    correctAnswer: 1,
                    topic: 'Lane Usage',
                    explanation: 'You may enter bike lane to make a right turn.'
                },
                {
                    id: 50,
                    category: 'car',
                    question: 'What does a brown sign indicate?',
                    options: ['Park and recreation areas', 'Hospital', 'Construction', 'Warning'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Brown signs indicate park and recreation areas.'
                },
                {
                    id: 51,
                    category: 'car',
                    question: 'What is the blood alcohol limit for commercial drivers in Louisiana?',
                    options: ['0.02%', '0.04%', '0.08%', '0.10%'],
                    correctAnswer: 1,
                    topic: 'DUI Laws',
                    explanation: 'Commercial drivers have a 0.04% BAC limit in Louisiana.'
                },
                {
                    id: 52,
                    category: 'car',
                    question: 'When must you turn on headlights in Louisiana?',
                    options: ['30 minutes after sunset', 'When raining', 'Both A and B', 'Only at night'],
                    correctAnswer: 2,
                    topic: 'Lighting',
                    explanation: 'Headlights required 30 minutes after sunset and during rain.'
                },
                {
                    id: 53,
                    category: 'car',
                    question: 'What is the fine for speeding in a construction zone in Louisiana?',
                    options: ['Double the normal fine', 'Triple the fine', 'Same as normal', '$500 minimum'],
                    correctAnswer: 0,
                    topic: 'Speed Limits',
                    explanation: 'Fines are doubled in construction zones in Louisiana.'
                },
                {
                    id: 54,
                    category: 'car',
                    question: 'When parking parallel to a curb, how close must you be?',
                    options: ['6 inches', '12 inches', '18 inches', '24 inches'],
                    correctAnswer: 1,
                    topic: 'Parking',
                    explanation: 'Park within 12 inches of curb.'
                },
                {
                    id: 55,
                    category: 'car',
                    question: 'What does a triangular sign mean?',
                    options: ['Stop', 'Yield', 'No entry', 'Warning'],
                    correctAnswer: 1,
                    topic: 'Road Signs',
                    explanation: 'Triangular signs mean yield.'
                },
                {
                    id: 56,
                    category: 'car',
                    question: 'How long is a driver\'s license valid in Louisiana?',
                    options: ['2 years', '4 years', '6 years', '8 years'],
                    correctAnswer: 2,
                    topic: 'Licensing',
                    explanation: 'Louisiana driver\'s licenses are valid for 6 years.'
                },
                {
                    id: 57,
                    category: 'car',
                    question: 'What should you do at a yellow light?',
                    options: ['Speed up', 'Stop if safe', 'Proceed with caution', 'Both B and C'],
                    correctAnswer: 3,
                    topic: 'Traffic Signals',
                    explanation: 'Stop if safe, otherwise proceed with caution at yellow light.'
                },
                {
                    id: 58,
                    category: 'car',
                    question: 'When can you use the center turn lane?',
                    options: ['For passing', 'For left turns only', 'For through traffic', 'For parking'],
                    correctAnswer: 1,
                    topic: 'Lane Usage',
                    explanation: 'Center turn lane is for left turns only.'
                },
                {
                    id: 59,
                    category: 'car',
                    question: 'What is the minimum insurance coverage in Louisiana?',
                    options: ['15/30/25', '25/50/25', '100/300/50', '20/40/10'],
                    correctAnswer: 0,
                    topic: 'Insurance',
                    explanation: 'Minimum insurance in Louisiana is $15,000/$30,000/$25,000.'
                },
                {
                    id: 60,
                    category: 'car',
                    question: 'When should you use your turn signal?',
                    options: ['Before changing lanes', 'Before turning', '200 feet before turn', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Turning',
                    explanation: 'Use signals before changing lanes, turning, and 200 feet before turn in Louisiana.'
                },
                {
                    id: 61,
                    category: 'car',
                    question: 'What does a red sign usually indicate?',
                    options: ['Warning', 'Regulation', 'Guide', 'Service'],
                    correctAnswer: 1,
                    topic: 'Road Signs',
                    explanation: 'Red signs indicate regulatory information.'
                },
                {
                    id: 62,
                    category: 'car',
                    question: 'How many points cause license suspension in Louisiana?',
                    options: ['10 points in 12 months', '12 points in 12 months', '15 points in 12 months', '20 points in 12 months'],
                    correctAnswer: 1,
                    topic: 'Traffic Laws',
                    explanation: '12 points in 12 months causes suspension in Louisiana.'
                },
                {
                    id: 63,
                    category: 'car',
                    question: 'When must you report an accident in Louisiana?',
                    options: ['Over $500 damage', 'Injury or death', 'Both A and B', 'Hit and run only'],
                    correctAnswer: 2,
                    topic: 'Accidents',
                    explanation: 'Report accidents with over $500 damage or injury/death in Louisiana.'
                },
                {
                    id: 64,
                    category: 'car',
                    question: 'What is the speed limit on rural interstates in Louisiana?',
                    options: ['55 mph', '65 mph', '70 mph', '75 mph'],
                    correctAnswer: 3,
                    topic: 'Speed Limits',
                    explanation: 'Rural interstate speed limit is 75 mph in Louisiana.'
                },
                {
                    id: 65,
                    category: 'car',
                    question: 'When should you check your mirrors?',
                    options: ['Before changing lanes', 'Before braking', 'Every 5-8 seconds', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Safe Driving',
                    explanation: 'Check mirrors before changing lanes, braking, and every 5-8 seconds.'
                },
                {
                    id: 66,
                    category: 'car',
                    question: 'What does a white line parallel to road mean?',
                    options: ['Edge of roadway', 'Lane divider', 'Stop line', 'Crosswalk'],
                    correctAnswer: 0,
                    topic: 'Road Markings',
                    explanation: 'White line parallel to road indicates edge of roadway.'
                },
                {
                    id: 67,
                    category: 'car',
                    question: 'How close can you follow emergency vehicles?',
                    options: ['100 feet', '200 feet', '300 feet', '500 feet'],
                    correctAnswer: 3,
                    topic: 'Emergency Vehicles',
                    explanation: 'Stay 500 feet behind emergency vehicles in Louisiana.'
                },
                {
                    id: 68,
                    category: 'car',
                    question: 'When is it legal to drive off pavement to pass?',
                    options: ['Never', 'On two-lane roads', 'When safe', 'In emergencies only'],
                    correctAnswer: 0,
                    topic: 'Passing',
                    explanation: 'Never drive off pavement to pass.'
                },
                {
                    id: 69,
                    category: 'car',
                    question: 'What should you do if traffic signal is out?',
                    options: ['Treat as stop sign', 'Proceed with caution', 'Wait for police', 'All of the above'],
                    correctAnswer: 0,
                    topic: 'Traffic Signals',
                    explanation: 'Treat out traffic signal as four-way stop.'
                },
                {
                    id: 70,
                    category: 'car',
                    question: 'How long must you have learner\'s permit before road test in Louisiana?',
                    options: ['30 days', '60 days', '90 days', '6 months'],
                    correctAnswer: 3,
                    topic: 'Licensing',
                    explanation: 'Need learner\'s permit for 6 months before road test in Louisiana.'
                },
                {
                    id: 71,
                    category: 'car',
                    question: 'What does orange sign indicate?',
                    options: ['Construction', 'Warning', 'Regulation', 'Guide'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Orange signs indicate construction zones.'
                },
                {
                    id: 72,
                    category: 'car',
                    question: 'When must you yield to funeral procession?',
                    options: ['Always', 'Never', 'When lead vehicle has flag', 'During daylight only'],
                    correctAnswer: 0,
                    topic: 'Right of Way',
                    explanation: 'Always yield to funeral processions.'
                },
                {
                    id: 73,
                    category: 'car',
                    question: 'What is penalty for reckless driving in Louisiana?',
                    options: ['$100 fine', '$250 fine', 'Up to 6 months in jail', 'License suspension only'],
                    correctAnswer: 2,
                    topic: 'Traffic Laws',
                    explanation: 'Reckless driving can result in up to 6 months in jail in Louisiana.'
                },
                {
                    id: 74,
                    category: 'car',
                    question: 'When should you use parking lights?',
                    options: ['When parked', 'When driving', 'In fog', 'Never'],
                    correctAnswer: 0,
                    topic: 'Lighting',
                    explanation: 'Parking lights for parked vehicles only.'
                },
                {
                    id: 75,
                    category: 'car',
                    question: 'What does green sign indicate?',
                    options: ['Guide information', 'Warning', 'Regulation', 'Construction'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Green signs provide guide information.'
                },
                {
                    id: 76,
                    category: 'car',
                    question: 'When must you stop for school bus in Louisiana?',
                    options: ['On two-lane roads', 'On divided highways', 'Both A and B', 'Neither A nor B'],
                    correctAnswer: 0,
                    topic: 'School Buses',
                    explanation: 'Stop for school bus on two-lane roads in Louisiana.'
                },
                {
                    id: 77,
                    category: 'car',
                    question: 'What is legal tint limit on front side windows in Louisiana?',
                    options: ['20%', '30%', '40%', '70%'],
                    correctAnswer: 2,
                    topic: 'Vehicle Equipment',
                    explanation: 'Legal tint limit is 40% VLT on front side windows in Louisiana.'
                },
                {
                    id: 78,
                    category: 'car',
                    question: 'When can you cross double yellow lines?',
                    options: ['To pass', 'To turn left', 'In emergencies', 'All of the above'],
                    correctAnswer: 1,
                    topic: 'Road Markings',
                    explanation: 'Cross double yellow lines to turn left only.'
                },
                {
                    id: 79,
                    category: 'car',
                    question: 'What does flashing red arrow mean?',
                    options: ['Stop then proceed', 'Yield', 'Protected turn', 'No turn allowed'],
                    correctAnswer: 0,
                    topic: 'Traffic Signals',
                    explanation: 'Flashing red arrow means stop then proceed when clear.'
                },
                {
                    id: 80,
                    category: 'car',
                    question: 'How long after moving must you get Louisiana license?',
                    options: ['10 days', '30 days', '60 days', '90 days'],
                    correctAnswer: 1,
                    topic: 'Licensing',
                    explanation: 'Get Louisiana license within 30 days of moving.'
                },
                {
                    id: 81,
                    category: 'car',
                    question: 'What should you do if brake fails?',
                    options: ['Use parking brake', 'Downshift', 'Both A and B', 'Steer off road'],
                    correctAnswer: 2,
                    topic: 'Emergency Procedures',
                    explanation: 'Use parking brake and downshift if brakes fail.'
                },
                {
                    id: 82,
                    category: 'car',
                    question: 'When can you pass on right?',
                    options: ['On one-way streets', 'When left turn lane exists', 'Both A and B', 'Never'],
                    correctAnswer: 2,
                    topic: 'Passing',
                    explanation: 'Pass on right on one-way streets or when left turn lane exists.'
                },
                {
                    id: 83,
                    category: 'car',
                    question: 'What does octagon sign mean?',
                    options: ['Stop', 'Yield', 'School', 'Railroad'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Octagon signs mean stop.'
                },
                {
                    id: 84,
                    category: 'car',
                    question: 'How many passengers can teen driver have in Louisiana?',
                    options: ['0 for first 6 months', '1 for first 6 months', '2 for first 6 months', 'No limit'],
                    correctAnswer: 1,
                    topic: 'Licensing',
                    explanation: 'Teen drivers limited to 1 passenger for first 6 months in Louisiana.'
                },
                {
                    id: 85,
                    category: 'car',
                    question: 'When should you increase following distance?',
                    options: ['In rain', 'At night', 'Behind trucks', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Safe Driving',
                    explanation: 'Increase following distance in rain, at night, and behind trucks.'
                },
                {
                    id: 86,
                    category: 'car',
                    question: 'What does broken white line mean?',
                    options: ['Lane divider', 'Edge of road', 'No passing', 'Merge'],
                    correctAnswer: 0,
                    topic: 'Road Markings',
                    explanation: 'Broken white lines separate lanes going same direction.'
                },
                {
                    id: 87,
                    category: 'car',
                    question: 'When must you use headlights in Louisiana?',
                    options: ['When wipers are on', 'At dusk', 'In tunnels', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Lighting',
                    explanation: 'Use headlights when wipers on, at dusk, and in tunnels.'
                },
                {
                    id: 88,
                    category: 'car',
                    question: 'What is penalty for no insurance in Louisiana?',
                    options: ['$50 fine', '$500 fine', 'License suspension', 'Both B and C'],
                    correctAnswer: 3,
                    topic: 'Insurance',
                    explanation: 'No insurance penalty includes $500 fine and suspension.'
                },
                {
                    id: 89,
                    category: 'car',
                    question: 'When should you slow down in work zone?',
                    options: ['Only when workers present', 'Always', 'During weekdays', 'Never'],
                    correctAnswer: 1,
                    topic: 'Work Zones',
                    explanation: 'Always slow down in work zones.'
                },
                {
                    id: 90,
                    category: 'car',
                    question: 'What does rectangular red sign mean?',
                    options: ['Stop', 'Yield', 'Do not enter', 'Wrong way'],
                    correctAnswer: 2,
                    topic: 'Road Signs',
                    explanation: 'Rectangular red sign means do not enter.'
                },
                {
                    id: 91,
                    category: 'car',
                    question: 'How many feet before turn must you signal?',
                    options: ['50 feet', '100 feet', '200 feet', '300 feet'],
                    correctAnswer: 1,
                    topic: 'Turning',
                    explanation: 'Signal at least 100 feet before turn in Louisiana.'
                },
                {
                    id: 92,
                    category: 'car',
                    question: 'When can you park in handicapped space?',
                    options: ['With permit', 'After 6 PM', 'On Sundays', 'Never without permit'],
                    correctAnswer: 3,
                    topic: 'Parking',
                    explanation: 'Never park in handicapped space without permit.'
                },
                {
                    id: 93,
                    category: 'car',
                    question: 'What does flashing yellow arrow mean?',
                    options: ['Protected turn', 'Permissive turn', 'No turn', 'Yield then turn'],
                    correctAnswer: 1,
                    topic: 'Traffic Signals',
                    explanation: 'Flashing yellow arrow means permissive turn (yield first).'
                },
                {
                    id: 94,
                    category: 'car',
                    question: 'How old for graduated license in Louisiana?',
                    options: ['15 and 6 months', '16', '16 and 6 months', '17'],
                    correctAnswer: 1,
                    topic: 'Licensing',
                    explanation: 'Can get graduated license at 16 in Louisiana.'
                },
                {
                    id: 95,
                    category: 'car',
                    question: 'When should you avoid passing?',
                    options: ['On hills', 'At intersections', 'Near railroads', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Passing',
                    explanation: 'Avoid passing on hills, at intersections, and near railroads.'
                },
                {
                    id: 96,
                    category: 'car',
                    question: 'What does blue curb indicate?',
                    options: ['Handicapped parking', 'Loading zone', 'No parking', 'Fire zone'],
                    correctAnswer: 0,
                    topic: 'Parking',
                    explanation: 'Blue curb indicates handicapped parking.'
                },
                {
                    id: 97,
                    category: 'car',
                    question: 'When must headrest be adjusted?',
                    options: ['Middle of head', 'Top of ears', 'Base of skull', 'Doesn\'t matter'],
                    correctAnswer: 2,
                    topic: 'Safety Equipment',
                    explanation: 'Headrest should be at base of skull.'
                },
                {
                    id: 98,
                    category: 'car',
                    question: 'What does diamond-shaped sign mean?',
                    options: ['Warning', 'Regulation', 'Guide', 'Service'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Diamond-shaped signs are warning signs.'
                },
                {
                    id: 99,
                    category: 'car',
                    question: 'When can you use HOV lane in Louisiana?',
                    options: ['With 2+ people', 'Motorcycles', 'Buses', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Lane Usage',
                    explanation: 'HOV lanes for 2+ people, motorcycles, and buses.'
                },
                {
                    id: 100,
                    category: 'car',
                    question: 'What is Louisiana\'s "Implied Consent Law"?',
                    options: ['Consent to breath test when driving', 'Consent to insurance', 'Consent to vehicle inspection', 'Consent to license check'],
                    correctAnswer: 0,
                    topic: 'DUI Laws',
                    explanation: 'Implied Consent Law means you agree to chemical testing when driving in Louisiana.'
                }
            ];
        }
        
        // Generate 100 Louisiana CDL questions
        function generateCDLQuestions() {
            return [
                {
                    id: 1,
                    category: 'cdl',
                    question: 'What is the minimum tread depth for steering axle tires on a commercial vehicle in Louisiana?',
                    options: ['1/32 inch', '2/32 inch', '4/32 inch', '6/32 inch'],
                    correctAnswer: 2,
                    topic: 'Vehicle Inspection',
                    explanation: 'Steering axle tires must have at least 4/32 inch tread depth in Louisiana.'
                },
                {
                    id: 2,
                    category: 'cdl',
                    question: 'How far ahead should a commercial vehicle signal before turning in Louisiana?',
                    options: ['50 feet', '100 feet', 'At least 100 feet', '200 feet'],
                    correctAnswer: 2,
                    topic: 'Safe Operation',
                    explanation: 'Commercial vehicles should signal at least 100 feet before turning in Louisiana.'
                },
                {
                    id: 3,
                    category: 'cdl',
                    question: 'What is the maximum driving time allowed before taking a break under Louisiana regulations?',
                    options: ['6 hours', '8 hours', '10 hours', '11 hours'],
                    correctAnswer: 3,
                    topic: 'Hours of Service',
                    explanation: 'Maximum driving time is 11 hours after 10 consecutive hours off duty in Louisiana.'
                },
                {
                    id: 4,
                    category: 'cdl',
                    question: 'What should you check during a pre-trip inspection of air brakes in Louisiana?',
                    options: ['Air pressure buildup time', 'Brake adjustment', 'Both A and B', 'Neither A nor B'],
                    correctAnswer: 2,
                    topic: 'Air Brakes',
                    explanation: 'Check both air pressure buildup time and brake adjustment during pre-trip inspection in Louisiana.'
                },
                {
                    id: 5,
                    category: 'cdl',
                    question: 'When backing a commercial vehicle in Louisiana, you should:',
                    options: ['Use mirrors only', 'Get out and look when necessary', 'Rely on a helper', 'Back quickly to minimize time'],
                    correctAnswer: 1,
                    topic: 'Backing',
                    explanation: 'Always get out and look when backing a commercial vehicle if unsure.'
                },
                {
                    id: 6,
                    category: 'cdl',
                    question: 'What is the minimum following distance for commercial vehicles in Louisiana?',
                    options: ['3 seconds', '4 seconds', '5 seconds', '6 seconds'],
                    correctAnswer: 3,
                    topic: 'Following Distance',
                    explanation: 'Commercial vehicles should maintain at least 6 seconds following distance in Louisiana.'
                },
                {
                    id: 7,
                    category: 'cdl',
                    question: 'How should you handle a front-wheel skid in a commercial vehicle on Louisiana roads?',
                    options: ['Brake hard', 'Accelerate', 'Steer in direction you want to go', 'Do nothing'],
                    correctAnswer: 2,
                    topic: 'Skid Control',
                    explanation: 'Steer in the direction you want the front of the vehicle to go during a front-wheel skid.'
                },
                {
                    id: 8,
                    category: 'cdl',
                    question: 'What is the maximum width for a commercial vehicle in Louisiana?',
                    options: ['96 inches', '102 inches', '108 inches', '120 inches'],
                    correctAnswer: 1,
                    topic: 'Vehicle Dimensions',
                    explanation: 'Maximum width for commercial vehicles in Louisiana is 102 inches.'
                },
                {
                    id: 9,
                    category: 'cdl',
                    question: 'When must you use chocks when parking a commercial vehicle in Louisiana?',
                    options: ['Always when parked', 'Only on inclines', 'Never required', 'Only when transporting hazardous materials'],
                    correctAnswer: 0,
                    topic: 'Parking',
                    explanation: 'Always use chocks when parking a commercial vehicle in Louisiana.'
                },
                {
                    id: 10,
                    category: 'cdl',
                    question: 'What is the minimum liability insurance required for commercial vehicles in Louisiana?',
                    options: ['$100,000', '$500,000', '$750,000', '$1,000,000'],
                    correctAnswer: 1,
                    topic: 'Insurance',
                    explanation: 'Minimum liability insurance for commercial vehicles in Louisiana is $500,000.'
                },
                {
                    id: 11,
                    category: 'cdl',
                    question: 'What is the maximum weight allowed on a single axle in Louisiana?',
                    options: ['20,000 lbs', '22,400 lbs', '34,000 lbs', '40,000 lbs'],
                    correctAnswer: 1,
                    topic: 'Weight Limits',
                    explanation: 'Maximum single axle weight is 22,400 lbs in Louisiana.'
                },
                {
                    id: 12,
                    category: 'cdl',
                    question: 'When should you perform a brake check in a commercial vehicle in Louisiana?',
                    options: ['Before starting trip', 'After brake adjustment', 'Both A and B', 'Only during annual inspection'],
                    correctAnswer: 2,
                    topic: 'Air Brakes',
                    explanation: 'Perform brake check before starting trip and after any adjustment.'
                },
                {
                    id: 13,
                    category: 'cdl',
                    question: 'What is the minimum age for a CDL in Louisiana for interstate commerce?',
                    options: ['18', '21', '25', 'No minimum'],
                    correctAnswer: 1,
                    topic: 'Licensing',
                    explanation: 'Minimum age for CDL in Louisiana is 21 for interstate commerce.'
                },
                {
                    id: 14,
                    category: 'cdl',
                    question: 'How often must you check your mirrors while driving in Louisiana?',
                    options: ['Every 5-8 seconds', 'Every minute', 'Only when changing lanes', 'When approaching intersections'],
                    correctAnswer: 0,
                    topic: 'Safe Operation',
                    explanation: 'Check mirrors every 5-8 seconds while driving.'
                },
                {
                    id: 15,
                    category: 'cdl',
                    question: 'What does a low air pressure warning indicate?',
                    options: ['Normal operation', 'Air pressure below 60 psi', 'Brake system failure', 'Tire pressure low'],
                    correctAnswer: 1,
                    topic: 'Air Brakes',
                    explanation: 'Low air pressure warning activates below 60 psi.'
                },
                {
                    id: 16,
                    category: 'cdl',
                    question: 'When must you stop at railroad crossings in Louisiana?',
                    options: ['Only when flashing', 'For all crossings', 'When carrying hazardous materials', 'Both B and C'],
                    correctAnswer: 3,
                    topic: 'Railroad Crossings',
                    explanation: 'Stop at all railroad crossings and always when carrying hazardous materials in Louisiana.'
                },
                {
                    id: 17,
                    category: 'cdl',
                    question: 'What is the maximum length for a single commercial vehicle in Louisiana?',
                    options: ['40 feet', '50 feet', '60 feet', '75 feet'],
                    correctAnswer: 1,
                    topic: 'Vehicle Dimensions',
                    explanation: 'Maximum length for single vehicle is 50 feet in Louisiana.'
                },
                {
                    id: 18,
                    category: 'cdl',
                    question: 'How should you handle a tire blowout?',
                    options: ['Brake hard', 'Steer straight, ease off gas', 'Accelerate', 'Turn quickly'],
                    correctAnswer: 1,
                    topic: 'Emergency Procedures',
                    explanation: 'Steer straight and ease off gas during tire blowout.'
                },
                {
                    id: 19,
                    category: 'cdl',
                    question: 'What must be checked during coupling inspection in Louisiana?',
                    options: ['Fifth wheel locking', 'Air line connections', 'Both A and B', 'Neither A nor B'],
                    correctAnswer: 2,
                    topic: 'Coupling',
                    explanation: 'Check both fifth wheel locking and air line connections.'
                },
                {
                    id: 20,
                    category: 'cdl',
                    question: 'When is a pre-trip inspection required in Louisiana?',
                    options: ['Before each trip', 'Daily', 'Weekly', 'Monthly'],
                    correctAnswer: 1,
                    topic: 'Vehicle Inspection',
                    explanation: 'Pre-trip inspection required daily in Louisiana.'
                },
                {
                    id: 21,
                    category: 'cdl',
                    question: 'What is the blood alcohol limit for CDL holders in Louisiana?',
                    options: ['0.02%', '0.04%', '0.08%', '0.10%'],
                    correctAnswer: 1,
                    topic: 'DUI Laws',
                    explanation: 'CDL holders have 0.04% BAC limit in Louisiana.'
                },
                {
                    id: 22,
                    category: 'cdl',
                    question: 'How many hours off duty required after 70 hours of driving in Louisiana?',
                    options: ['8 hours', '10 hours', '24 hours', '34 hours'],
                    correctAnswer: 3,
                    topic: 'Hours of Service',
                    explanation: '34 hours off duty required after 70 hours of driving in Louisiana.'
                },
                {
                    id: 23,
                    category: 'cdl',
                    question: 'What does anti-lock brake system (ABS) help prevent?',
                    options: ['Wheel lockup', 'Brake fade', 'Air leaks', 'All of the above'],
                    correctAnswer: 0,
                    topic: 'Brake Systems',
                    explanation: 'ABS helps prevent wheel lockup during braking.'
                },
                {
                    id: 24,
                    category: 'cdl',
                    question: 'When must you use seat belts in commercial vehicles in Louisiana?',
                    options: ['Always', 'Only on highways', 'When required by company', 'Never required'],
                    correctAnswer: 0,
                    topic: 'Safety Equipment',
                    explanation: 'Seat belts must always be worn in commercial vehicles in Louisiana.'
                },
                {
                    id: 25,
                    category: 'cdl',
                    question: 'What is the maximum driving time in a 7-day period in Louisiana?',
                    options: ['60 hours', '70 hours', '80 hours', 'No limit'],
                    correctAnswer: 1,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 70 hours driving in 7-day period in Louisiana.'
                },
                {
                    id: 26,
                    category: 'cdl',
                    question: 'How should cargo be secured for Louisiana roads?',
                    options: ['Front to back', 'Side to side', 'Both A and B', 'No requirement'],
                    correctAnswer: 2,
                    topic: 'Cargo Securement',
                    explanation: 'Secure cargo both front to back and side to side.'
                },
                {
                    id: 27,
                    category: 'cdl',
                    question: 'When should you check tire pressure?',
                    options: ['Daily', 'Weekly', 'Monthly', 'Only when flat'],
                    correctAnswer: 0,
                    topic: 'Vehicle Inspection',
                    explanation: 'Check tire pressure daily during pre-trip inspection.'
                },
                {
                    id: 28,
                    category: 'cdl',
                    question: 'What is the purpose of engine retarders?',
                    options: ['Increase speed', 'Help slow vehicle without brakes', 'Improve fuel economy', 'Reduce emissions'],
                    correctAnswer: 1,
                    topic: 'Vehicle Systems',
                    explanation: 'Engine retarders help slow vehicle without using service brakes.'
                },
                {
                    id: 29,
                    category: 'cdl',
                    question: 'When must you have a fire extinguisher in Louisiana?',
                    options: ['Always', 'Only for hazardous materials', 'For passenger vehicles only', 'Not required'],
                    correctAnswer: 0,
                    topic: 'Safety Equipment',
                    explanation: 'Fire extinguisher required in all commercial vehicles in Louisiana.'
                },
                {
                    id: 30,
                    category: 'cdl',
                    question: 'How wide are commercial vehicle mirrors required to show in Louisiana?',
                    options: ['100 feet', '200 feet', '300 feet', '500 feet'],
                    correctAnswer: 1,
                    topic: 'Vehicle Equipment',
                    explanation: 'Mirrors must show 200 feet to rear in Louisiana.'
                },
                {
                    id: 31,
                    category: 'cdl',
                    question: 'What special equipment is required for commercial vehicles in Louisiana during winter?',
                    options: ['Snow chains', 'Winter tires', 'Both A and B', 'No special equipment needed'],
                    correctAnswer: 2,
                    topic: 'Winter Equipment',
                    explanation: 'Snow chains and winter tires may be required in Louisiana during winter.'
                },
                {
                    id: 32,
                    category: 'cdl',
                    question: 'How should you adjust driving for Louisiana\'s foggy conditions?',
                    options: ['Use low beam headlights', 'Reduce speed', 'Increase following distance', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Adverse Conditions',
                    explanation: 'Use low beams, reduce speed, and increase following distance in fog.'
                },
                {
                    id: 33,
                    category: 'cdl',
                    question: 'What is the penalty for violating hours of service in Louisiana?',
                    options: ['Fine only', 'Fine and out-of-service', 'License suspension', 'Jail time'],
                    correctAnswer: 1,
                    topic: 'Hours of Service',
                    explanation: 'Violation results in fine and out-of-service order in Louisiana.'
                },
                {
                    id: 34,
                    category: 'cdl',
                    question: 'When should you use hazard lights in Louisiana?',
                    options: ['When stopped on road', 'In bad weather', 'When moving slowly', 'When warning of hazard'],
                    correctAnswer: 3,
                    topic: 'Emergency Equipment',
                    explanation: 'Use hazard lights to warn other drivers of a hazard.'
                },
                {
                    id: 35,
                    category: 'cdl',
                    question: 'What is the maximum steering wheel play allowed in Louisiana?',
                    options: ['10 degrees', '20 degrees', '30 degrees', '40 degrees'],
                    correctAnswer: 0,
                    topic: 'Vehicle Inspection',
                    explanation: 'Maximum steering wheel play is 10 degrees in Louisiana.'
                },
                {
                    id: 36,
                    category: 'cdl',
                    question: 'How should you handle jackknife prevention?',
                    options: ['Brake smoothly', 'Avoid sudden steering', 'Both A and B', 'Accelerate through turns'],
                    correctAnswer: 2,
                    topic: 'Skid Control',
                    explanation: 'Brake smoothly and avoid sudden steering to prevent jackknife.'
                },
                {
                    id: 37,
                    category: 'cdl',
                    question: 'When must you have reflective triangles in Louisiana?',
                    options: ['All commercial vehicles', 'Only trucks', 'Only at night', 'Not required'],
                    correctAnswer: 0,
                    topic: 'Safety Equipment',
                    explanation: 'Reflective triangles required for all commercial vehicles in Louisiana.'
                },
                {
                    id: 38,
                    category: 'cdl',
                    question: 'What is the maximum height for commercial vehicles in Louisiana?',
                    options: ['12 feet', '13 feet 6 inches', '14 feet', '15 feet'],
                    correctAnswer: 1,
                    topic: 'Vehicle Dimensions',
                    explanation: 'Maximum height is 13 feet 6 inches in Louisiana.'
                },
                {
                    id: 39,
                    category: 'cdl',
                    question: 'How often must log books be updated in Louisiana?',
                    options: ['Daily', 'Weekly', 'Monthly', 'After each trip'],
                    correctAnswer: 0,
                    topic: 'Hours of Service',
                    explanation: 'Log books must be updated daily in Louisiana.'
                },
                {
                    id: 40,
                    category: 'cdl',
                    question: 'When should you check brake adjustment in Louisiana?',
                    options: ['Daily', 'Weekly', 'Monthly', 'Only when problems occur'],
                    correctAnswer: 0,
                    topic: 'Vehicle Inspection',
                    explanation: 'Check brake adjustment daily in Louisiana.'
                },
                {
                    id: 41,
                    category: 'cdl',
                    question: 'What is Louisiana\'s annual inspection requirement for commercial vehicles?',
                    options: ['Annual for vehicles over 26,000 lbs', 'Biennial for all vehicles', 'No requirement', 'Only for diesel vehicles'],
                    correctAnswer: 0,
                    topic: 'Vehicle Regulations',
                    explanation: 'Annual inspection required for commercial vehicles over 26,000 lbs in Louisiana.'
                },
                {
                    id: 42,
                    category: 'cdl',
                    question: 'What special training is required for transporting hazardous materials in Louisiana?',
                    options: ['Hazmat endorsement', 'Security awareness training', 'Both A and B', 'No special training'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Hazmat endorsement and security awareness training required in Louisiana.'
                },
                {
                    id: 43,
                    category: 'cdl',
                    question: 'When must you use engine brake silencers in Louisiana?',
                    options: ['In residential areas', 'At all times', 'Only at night', 'Not required'],
                    correctAnswer: 0,
                    topic: 'Noise Regulations',
                    explanation: 'Engine brake silencers required in residential areas in Louisiana.'
                },
                {
                    id: 44,
                    category: 'cdl',
                    question: 'What is Louisiana\'s idling limitation for commercial vehicles?',
                    options: ['5 minutes', '10 minutes', '15 minutes', 'No limitation'],
                    correctAnswer: 0,
                    topic: 'Environmental Regulations',
                    explanation: 'Maximum 5 minutes idling allowed in Louisiana.'
                },
                {
                    id: 45,
                    category: 'cdl',
                    question: 'What is the penalty for overweight violations in Louisiana?',
                    options: ['$100 per 500 lbs', '$250 per 500 lbs', '$500 per 500 lbs', '$1,000 per 500 lbs'],
                    correctAnswer: 1,
                    topic: 'Weight Limits',
                    explanation: 'Overweight penalty is approximately $250 per 500 lbs over limit in Louisiana.'
                },
                {
                    id: 46,
                    category: 'cdl',
                    question: 'When must you have Louisiana State Police inspection?',
                    options: ['Annually', 'Biennially', 'When requested', 'Never'],
                    correctAnswer: 0,
                    topic: 'Vehicle Inspection',
                    explanation: 'Annual State Police inspection required for certain commercial vehicles in Louisiana.'
                },
                {
                    id: 47,
                    category: 'cdl',
                    question: 'What is required for transporting livestock in Louisiana?',
                    options: ['Special ventilation', 'Frequent rest stops', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Livestock Transport',
                    explanation: 'Special ventilation and frequent rest stops required for livestock transport in Louisiana.'
                },
                {
                    id: 48,
                    category: 'cdl',
                    question: 'How often must you renew medical certificate in Louisiana?',
                    options: ['Every 6 months', 'Every year', 'Every 2 years', 'Every 5 years'],
                    correctAnswer: 1,
                    topic: 'Medical Requirements',
                    explanation: 'Medical certificate must be renewed annually in Louisiana.'
                },
                {
                    id: 49,
                    category: 'cdl',
                    question: 'What is Louisiana\'s requirement for reflective tape on trailers?',
                    options: ['Required on all trailers', 'Only on long trailers', 'Only at night', 'Not required'],
                    correctAnswer: 0,
                    topic: 'Vehicle Equipment',
                    explanation: 'Reflective tape required on all commercial trailers in Louisiana.'
                },
                {
                    id: 50,
                    category: 'cdl',
                    question: 'When must you stop at weigh stations in Louisiana?',
                    options: ['When open and sign says "All Trucks"', 'Only if overweight', 'Only commercial vehicles', 'All of the above'],
                    correctAnswer: 0,
                    topic: 'Weight Stations',
                    explanation: 'Must stop at open weigh stations when sign says "All Trucks" in Louisiana.'
                },
                {
                    id: 51,
                    category: 'cdl',
                    question: 'What is the maximum gross vehicle weight allowed in Louisiana?',
                    options: ['60,000 lbs', '80,000 lbs', '100,000 lbs', '120,000 lbs'],
                    correctAnswer: 1,
                    topic: 'Weight Limits',
                    explanation: 'Maximum gross vehicle weight is 80,000 lbs in Louisiana.'
                },
                {
                    id: 52,
                    category: 'cdl',
                    question: 'How many hours of driving are allowed after 8 consecutive hours off duty?',
                    options: ['8 hours', '10 hours', '11 hours', '12 hours'],
                    correctAnswer: 2,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 11 hours driving after 8 consecutive hours off duty.'
                },
                {
                    id: 53,
                    category: 'cdl',
                    question: 'What is the minimum cargo securement requirement in Louisiana?',
                    options: ['One tie-down per 10 feet', 'One tie-down per 20 feet', 'Based on weight', 'No requirement'],
                    correctAnswer: 0,
                    topic: 'Cargo Securement',
                    explanation: 'Minimum one tie-down per 10 feet of cargo in Louisiana.'
                },
                {
                    id: 54,
                    category: 'cdl',
                    question: 'When must you have a commercial driver\'s license in Louisiana?',
                    options: ['Vehicle over 26,001 lbs', 'Vehicle over 10,000 lbs', 'Any commercial vehicle', 'Only for hazardous materials'],
                    correctAnswer: 0,
                    topic: 'Licensing',
                    explanation: 'CDL required for vehicles over 26,001 lbs in Louisiana.'
                },
                {
                    id: 55,
                    category: 'cdl',
                    question: 'What is the penalty for logbook falsification in Louisiana?',
                    options: ['$250 fine', '$500 fine', '$1,000 fine', 'Civil penalty up to $10,000'],
                    correctAnswer: 3,
                    topic: 'Hours of Service',
                    explanation: 'Logbook falsification can result in civil penalty up to $10,000 in Louisiana.'
                },
                {
                    id: 56,
                    category: 'cdl',
                    question: 'How often must you inspect your fire extinguisher in Louisiana?',
                    options: ['Monthly', 'Quarterly', 'Annually', 'Every 6 months'],
                    correctAnswer: 0,
                    topic: 'Safety Equipment',
                    explanation: 'Fire extinguisher must be inspected monthly in Louisiana.'
                },
                {
                    id: 57,
                    category: 'cdl',
                    question: 'What is the minimum insurance for passenger-carrying vehicles in Louisiana?',
                    options: ['$1.5 million', '$5 million', '$10 million', '$15 million'],
                    correctAnswer: 1,
                    topic: 'Insurance',
                    explanation: 'Minimum $5 million insurance for passenger-carrying vehicles in Louisiana.'
                },
                {
                    id: 58,
                    category: 'cdl',
                    question: 'When must you stop for school buses in Louisiana?',
                    options: ['Always when lights flashing', 'Only on two-lane roads', 'Only in cities', 'Never for commercial vehicles'],
                    correctAnswer: 0,
                    topic: 'School Buses',
                    explanation: 'All vehicles must stop for school buses with flashing lights in Louisiana.'
                },
                {
                    id: 59,
                    category: 'cdl',
                    question: 'What is the maximum tandem axle weight in Louisiana?',
                    options: ['34,000 lbs', '36,000 lbs', '38,000 lbs', '40,000 lbs'],
                    correctAnswer: 0,
                    topic: 'Weight Limits',
                    explanation: 'Maximum tandem axle weight is 34,000 lbs in Louisiana.'
                },
                {
                    id: 60,
                    category: 'cdl',
                    question: 'How many consecutive days off are required in Louisiana?',
                    options: ['1 day in 7', '2 days in 7', '1 day in 30', 'No requirement'],
                    correctAnswer: 0,
                    topic: 'Hours of Service',
                    explanation: 'One consecutive day off required every 7 days in Louisiana.'
                },
                {
                    id: 61,
                    category: 'cdl',
                    question: 'What is required for transporting oversized loads in Louisiana?',
                    options: ['Special permit', 'Escort vehicles', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Oversized Loads',
                    explanation: 'Special permit and escort vehicles required for oversized loads in Louisiana.'
                },
                {
                    id: 62,
                    category: 'cdl',
                    question: 'How far ahead must you signal for lane changes in Louisiana?',
                    options: ['50 feet', '100 feet', '200 feet', '300 feet'],
                    correctAnswer: 1,
                    topic: 'Safe Operation',
                    explanation: 'Signal at least 100 feet before lane changes in Louisiana.'
                },
                {
                    id: 63,
                    category: 'cdl',
                    question: 'What is the penalty for driving without a CDL in Louisiana?',
                    options: ['$100 fine', '$250 fine', '$500 fine', 'Up to $1,000 fine'],
                    correctAnswer: 3,
                    topic: 'Licensing',
                    explanation: 'Driving without CDL can result in up to $1,000 fine in Louisiana.'
                },
                {
                    id: 64,
                    category: 'cdl',
                    question: 'How often must you check wheel nuts on commercial vehicles?',
                    options: ['Daily', 'Weekly', 'Monthly', 'Every 6 months'],
                    correctAnswer: 0,
                    topic: 'Vehicle Inspection',
                    explanation: 'Check wheel nuts daily during pre-trip inspection in Louisiana.'
                },
                {
                    id: 65,
                    category: 'cdl',
                    question: 'What is required for transporting explosives in Louisiana?',
                    options: ['Special placards', 'Fire extinguishers', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Special placards and fire extinguishers required for transporting explosives.'
                },
                {
                    id: 66,
                    category: 'cdl',
                    question: 'How many hours must you be off duty after 14 hours on duty?',
                    options: ['8 hours', '10 hours', '12 hours', '14 hours'],
                    correctAnswer: 1,
                    topic: 'Hours of Service',
                    explanation: '10 consecutive hours off duty required after 14 hours on duty.'
                },
                {
                    id: 67,
                    category: 'cdl',
                    question: 'What is the minimum tread depth for other tires in Louisiana?',
                    options: ['1/32 inch', '2/32 inch', '3/32 inch', '4/32 inch'],
                    correctAnswer: 1,
                    topic: 'Vehicle Inspection',
                    explanation: 'Minimum 2/32 inch tread depth for other tires in Louisiana.'
                },
                {
                    id: 68,
                    category: 'cdl',
                    question: 'When must you use tire chains in Louisiana?',
                    options: ['When signs require', 'In all snow', 'Only in mountains', 'Never required'],
                    correctAnswer: 0,
                    topic: 'Winter Equipment',
                    explanation: 'Use tire chains when signs require in Louisiana.'
                },
                {
                    id: 69,
                    category: 'cdl',
                    question: 'What is the penalty for hours of service violation in Louisiana?',
                    options: ['Warning', 'Fine only', 'Out-of-service order', 'Both B and C'],
                    correctAnswer: 3,
                    topic: 'Hours of Service',
                    explanation: 'Hours violation results in fine and out-of-service order in Louisiana.'
                },
                {
                    id: 70,
                    category: 'cdl',
                    question: 'How many days must you keep logbooks in Louisiana?',
                    options: ['7 days', '14 days', '30 days', '6 months'],
                    correctAnswer: 3,
                    topic: 'Hours of Service',
                    explanation: 'Keep logbooks for 6 months in Louisiana.'
                },
                {
                    id: 71,
                    category: 'cdl',
                    question: 'What is required for transporting flammable liquids?',
                    options: ['Special training', 'Proper placards', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Special training and proper placards required for flammable liquids.'
                },
                {
                    id: 72,
                    category: 'cdl',
                    question: 'How many hours driving in 8-day period is maximum?',
                    options: ['60 hours', '70 hours', '80 hours', '90 hours'],
                    correctAnswer: 2,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 80 hours driving in 8-day period in Louisiana.'
                },
                {
                    id: 73,
                    category: 'cdl',
                    question: 'What is the minimum age for intrastate CDL in Louisiana?',
                    options: ['18', '21', '25', 'No minimum'],
                    correctAnswer: 0,
                    topic: 'Licensing',
                    explanation: 'Minimum age for intrastate CDL is 18 in Louisiana.'
                },
                {
                    id: 74,
                    category: 'cdl',
                    question: 'How often must you inspect emergency equipment?',
                    options: ['Daily', 'Weekly', 'Monthly', 'Quarterly'],
                    correctAnswer: 0,
                    topic: 'Safety Equipment',
                    explanation: 'Inspect emergency equipment daily in Louisiana.'
                },
                {
                    id: 75,
                    category: 'cdl',
                    question: 'What is required for transporting radioactive materials?',
                    options: ['Special endorsement', 'Security plan', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Special endorsement and security plan required for radioactive materials.'
                },
                {
                    id: 76,
                    category: 'cdl',
                    question: 'How many hours off after 60 hours in 7 days?',
                    options: ['24 hours', '34 hours', '48 hours', '60 hours'],
                    correctAnswer: 1,
                    topic: 'Hours of Service',
                    explanation: '34 consecutive hours off after 60 hours in 7 days.'
                },
                {
                    id: 77,
                    category: 'cdl',
                    question: 'What is the penalty for defective brakes in Louisiana?',
                    options: ['Warning', 'Fine', 'Out-of-service', 'Both B and C'],
                    correctAnswer: 3,
                    topic: 'Vehicle Inspection',
                    explanation: 'Defective brakes result in fine and out-of-service order.'
                },
                {
                    id: 78,
                    category: 'cdl',
                    question: 'How many hours driving after 34 hours off?',
                    options: ['60 hours', '70 hours', '80 hours', 'Restarts 70-hour clock'],
                    correctAnswer: 3,
                    topic: 'Hours of Service',
                    explanation: '34 hours off restarts 70-hour clock in Louisiana.'
                },
                {
                    id: 79,
                    category: 'cdl',
                    question: 'What is required for transporting corrosives?',
                    options: ['Special containers', 'Emergency equipment', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Special containers and emergency equipment required for corrosives.'
                },
                {
                    id: 80,
                    category: 'cdl',
                    question: 'How many consecutive hours driving maximum?',
                    options: ['8 hours', '10 hours', '11 hours', '12 hours'],
                    correctAnswer: 2,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 11 consecutive hours driving.'
                },
                {
                    id: 81,
                    category: 'cdl',
                    question: 'What is required for tank vehicles in Louisiana?',
                    options: ['Tank endorsement', 'Special training', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Special Endorsements',
                    explanation: 'Tank endorsement and special training required for tank vehicles.'
                },
                {
                    id: 82,
                    category: 'cdl',
                    question: 'How many hours on duty in 14-hour period maximum?',
                    options: ['11 hours', '12 hours', '13 hours', '14 hours'],
                    correctAnswer: 3,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 14 consecutive hours on duty.'
                },
                {
                    id: 83,
                    category: 'cdl',
                    question: 'What is required for double/triple trailers?',
                    options: ['Double/triple endorsement', 'Special equipment', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Special Endorsements',
                    explanation: 'Double/triple endorsement and special equipment required.'
                },
                {
                    id: 84,
                    category: 'cdl',
                    question: 'How many hours driving in 14-hour period maximum?',
                    options: ['10 hours', '11 hours', '12 hours', '13 hours'],
                    correctAnswer: 1,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 11 hours driving in 14-hour period.'
                },
                {
                    id: 85,
                    category: 'cdl',
                    question: 'What is required for passenger vehicles?',
                    options: ['Passenger endorsement', 'Special insurance', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Special Endorsements',
                    explanation: 'Passenger endorsement and special insurance required.'
                },
                {
                    id: 86,
                    category: 'cdl',
                    question: 'How many hours off after 70 hours in 8 days?',
                    options: ['24 hours', '34 hours', '48 hours', '60 hours'],
                    correctAnswer: 1,
                    topic: 'Hours of Service',
                    explanation: '34 consecutive hours off after 70 hours in 8 days.'
                },
                {
                    id: 87,
                    category: 'cdl',
                    question: 'What is required for school buses?',
                    options: ['School bus endorsement', 'Background check', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Special Endorsements',
                    explanation: 'School bus endorsement and background check required.'
                },
                {
                    id: 88,
                    category: 'cdl',
                    question: 'How many hours driving after 10 hours off?',
                    options: ['8 hours', '10 hours', '11 hours', '12 hours'],
                    correctAnswer: 2,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 11 hours driving after 10 hours off.'
                },
                {
                    id: 89,
                    category: 'cdl',
                    question: 'What is required for transporting gases?',
                    options: ['Special valves', 'Pressure monitoring', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Special valves and pressure monitoring required for gases.'
                },
                {
                    id: 90,
                    category: 'cdl',
                    question: 'How many hours off after 8 days maximum?',
                    options: ['24 hours', '34 hours', '48 hours', '60 hours'],
                    correctAnswer: 1,
                    topic: 'Hours of Service',
                    explanation: '34 consecutive hours off after 8 days maximum.'
                },
                {
                    id: 91,
                    category: 'cdl',
                    question: 'What is required for transporting poisons?',
                    options: ['Special labeling', 'Emergency procedures', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Special labeling and emergency procedures required for poisons.'
                },
                {
                    id: 92,
                    category: 'cdl',
                    question: 'How many hours on duty in 24-hour period maximum?',
                    options: ['10 hours', '12 hours', '14 hours', '16 hours'],
                    correctAnswer: 2,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 14 hours on duty in 24-hour period.'
                },
                {
                    id: 93,
                    category: 'cdl',
                    question: 'What is required for transporting combustibles?',
                    options: ['Fire protection', 'Special storage', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Fire protection and special storage required for combustibles.'
                },
                {
                    id: 94,
                    category: 'cdl',
                    question: 'How many hours driving in 24-hour period maximum?',
                    options: ['8 hours', '10 hours', '11 hours', '12 hours'],
                    correctAnswer: 2,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 11 hours driving in 24-hour period.'
                },
                {
                    id: 95,
                    category: 'cdl',
                    question: 'What is required for transporting oxidizers?',
                    options: ['Special separation', 'Fire control', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Special separation and fire control required for oxidizers.'
                },
                {
                    id: 96,
                    category: 'cdl',
                    question: 'How many days must medical certificate be carried?',
                    options: ['At all times', 'Only at inspection', 'In office', 'Not required'],
                    correctAnswer: 0,
                    topic: 'Medical Requirements',
                    explanation: 'Medical certificate must be carried at all times.'
                },
                {
                    id: 97,
                    category: 'cdl',
                    question: 'What is required for transporting organic peroxides?',
                    options: ['Temperature control', 'Special handling', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Temperature control and special handling required for organic peroxides.'
                },
                {
                    id: 98,
                    category: 'cdl',
                    question: 'How often must you renew CDL in Louisiana?',
                    options: ['Every 4 years', 'Every 6 years', 'Every 8 years', 'Every 10 years'],
                    correctAnswer: 0,
                    topic: 'Licensing',
                    explanation: 'CDL must be renewed every 4 years in Louisiana.'
                },
                {
                    id: 99,
                    category: 'cdl',
                    question: 'What is required for transporting infectious substances?',
                    options: ['Special packaging', 'Biohazard labeling', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Special packaging and biohazard labeling required for infectious substances.'
                },
                {
                    id: 100,
                    category: 'cdl',
                    question: 'What special considerations are needed for driving in Louisiana\'s wet conditions?',
                    options: ['Watch for flooding', 'Reduce speed in rain', 'Be prepared for sudden storms', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Weather Driving',
                    explanation: 'Watch for flooding, reduce speed in rain, and be prepared for sudden storms when driving in Louisiana\'s wet conditions.'
                }
            ];
        }
        
        // Generate 100 Louisiana Motorcycle questions
        function generateMotorcycleQuestions() {
            return [
                {
                    id: 1,
                    category: 'motorcycle',
                    question: 'What is the most important factor in motorcycle safety in Louisiana?',
                    options: ['Helmet use', 'Visibility to other drivers', 'Both A and B', 'Neither A nor B'],
                    correctAnswer: 2,
                    topic: 'Safety',
                    explanation: 'Both helmet use and visibility to other drivers are critical for motorcycle safety in Louisiana.'
                },
                {
                    id: 2,
                    category: 'motorcycle',
                    question: 'When should a motorcycle headlight be used in Louisiana?',
                    options: ['Only at night', 'At all times', 'Only in rain', 'Only on highways'],
                    correctAnswer: 1,
                    topic: 'Lighting',
                    explanation: 'Motorcycle headlights must be used at all times in Louisiana.'
                },
                {
                    id: 3,
                    category: 'motorcycle',
                    question: 'What is the proper way to brake on a motorcycle on Louisiana roads?',
                    options: ['Front brake only', 'Rear brake only', 'Both brakes evenly', 'Depends on conditions'],
                    correctAnswer: 2,
                    topic: 'Braking',
                    explanation: 'Use both brakes evenly for maximum stopping power.'
                },
                {
                    id: 4,
                    category: 'motorcycle',
                    question: 'What should you do to increase visibility to other drivers in Louisiana?',
                    options: ['Wear bright clothing', 'Use headlight at all times', 'Both A and B', 'Neither A nor B'],
                    correctAnswer: 2,
                    topic: 'Visibility',
                    explanation: 'Both wearing bright clothing and using headlights increase visibility.'
                },
                {
                    id: 5,
                    category: 'motorcycle',
                    question: 'How should you handle a turn on a motorcycle on Louisiana roads?',
                    options: ['Slow before the turn', 'Accelerate through the turn', 'Both A and B', 'Neither A nor B'],
                    correctAnswer: 2,
                    topic: 'Turning',
                    explanation: 'Slow before the turn and accelerate gently through the turn.'
                },
                {
                    id: 6,
                    category: 'motorcycle',
                    question: 'What is the minimum insurance required for motorcycles in Louisiana?',
                    options: ['15/30/25', '25/50/25', '50/100/25', '20/40/10'],
                    correctAnswer: 0,
                    topic: 'Insurance',
                    explanation: 'Minimum insurance in Louisiana is $15,000/$30,000/$25,000 for motorcycles.'
                },
                {
                    id: 7,
                    category: 'motorcycle',
                    question: 'Is lane splitting legal in Louisiana?',
                    options: ['Legal in Louisiana', 'Illegal in Louisiana', 'Legal only on highways', 'Legal only in traffic'],
                    correctAnswer: 1,
                    topic: 'Lane Positioning',
                    explanation: 'Lane splitting (riding between lanes) is illegal in Louisiana.'
                },
                {
                    id: 8,
                    category: 'motorcycle',
                    question: 'What should you check during a pre-ride inspection in Louisiana?',
                    options: ['Tires and wheels', 'Lights and electrics', 'Both A and B', 'Neither A nor B'],
                    correctAnswer: 2,
                    topic: 'Pre-Ride Inspection',
                    explanation: 'Check both tires/wheels and lights/electrics during pre-ride inspection.'
                },
                {
                    id: 9,
                    category: 'motorcycle',
                    question: 'How should you carry a passenger on a motorcycle in Louisiana?',
                    options: ['Only with proper equipment', 'Only if licensed for passenger', 'Both A and B', 'No restrictions'],
                    correctAnswer: 2,
                    topic: 'Passengers',
                    explanation: 'You must have proper equipment and be licensed to carry passengers in Louisiana.'
                },
                {
                    id: 10,
                    category: 'motorcycle',
                    question: 'What is the best way to handle road hazards like gravel or sand on Louisiana roads?',
                    options: ['Speed up', 'Brake hard', 'Maintain speed and steer straight', 'Slow down before reaching it'],
                    correctAnswer: 3,
                    topic: 'Hazard Avoidance',
                    explanation: 'Slow down before reaching road hazards like gravel or sand.'
                },
                {
                    id: 11,
                    category: 'motorcycle',
                    question: 'What protective gear should always be worn when riding in Louisiana?',
                    options: ['Helmet', 'Eye protection', 'Both A and B', 'No gear required'],
                    correctAnswer: 2,
                    topic: 'Protective Gear',
                    explanation: 'Always wear helmet and eye protection when riding in Louisiana.'
                },
                {
                    id: 12,
                    category: 'motorcycle',
                    question: 'When should you increase following distance in Louisiana?',
                    options: ['In rain', 'At night', 'On slippery roads', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Following Distance',
                    explanation: 'Increase following distance in rain, at night, and on slippery roads.'
                },
                {
                    id: 13,
                    category: 'motorcycle',
                    question: 'What is the proper lane position for visibility in Louisiana?',
                    options: ['Left third of lane', 'Center of lane', 'Right third of lane', 'Any position'],
                    correctAnswer: 0,
                    topic: 'Lane Positioning',
                    explanation: 'Ride in left third of lane for best visibility.'
                },
                {
                    id: 14,
                    category: 'motorcycle',
                    question: 'How should you handle wet manhole covers or road markings in Louisiana?',
                    options: ['Accelerate over', 'Brake on them', 'Avoid them', 'Ignore them'],
                    correctAnswer: 2,
                    topic: 'Hazard Avoidance',
                    explanation: 'Avoid wet manhole covers and road markings as they can be slippery.'
                },
                {
                    id: 15,
                    category: 'motorcycle',
                    question: 'When should you check tire pressure in Louisiana?',
                    options: ['Daily', 'Weekly', 'Monthly', 'Only when flat'],
                    correctAnswer: 1,
                    topic: 'Tire Maintenance',
                    explanation: 'Check tire pressure weekly and before long trips.'
                },
                {
                    id: 16,
                    category: 'motorcycle',
                    question: 'What is the minimum age for motorcycle license in Louisiana?',
                    options: ['14', '15', '16', '17'],
                    correctAnswer: 2,
                    topic: 'Licensing',
                    explanation: 'Minimum age for motorcycle license is 16 in Louisiana.'
                },
                {
                    id: 17,
                    category: 'motorcycle',
                    question: 'How should you handle strong crosswinds common in Louisiana?',
                    options: ['Lean into wind', 'Slow down', 'Both A and B', 'Speed up'],
                    correctAnswer: 2,
                    topic: 'Adverse Conditions',
                    explanation: 'Lean into wind and slow down in strong crosswinds.'
                },
                {
                    id: 18,
                    category: 'motorcycle',
                    question: 'When should you use turn signals in Louisiana?',
                    options: ['Before changing lanes', 'Before turning', 'Both A and B', 'Only in traffic'],
                    correctAnswer: 2,
                    topic: 'Signaling',
                    explanation: 'Use turn signals before changing lanes and turning.'
                },
                {
                    id: 19,
                    category: 'motorcycle',
                    question: 'What should you do at intersections in Louisiana?',
                    options: ['Cover brakes', 'Watch for turning vehicles', 'Both A and B', 'Speed through'],
                    correctAnswer: 2,
                    topic: 'Intersections',
                    explanation: 'Cover brakes and watch for turning vehicles at intersections.'
                },
                {
                    id: 20,
                    category: 'motorcycle',
                    question: 'How should you carry cargo on a motorcycle in Louisiana?',
                    options: ['Low and centered', 'High on back', 'In one side bag', 'Doesn\'t matter'],
                    correctAnswer: 0,
                    topic: 'Cargo Carrying',
                    explanation: 'Carry cargo low and centered for stability.'
                },
                {
                    id: 21,
                    category: 'motorcycle',
                    question: 'What does ATGATT stand for in motorcycle safety?',
                    options: ['All The Gear All The Time', 'Always Try Going Around Traffic', 'Avoid The Gravel And Tar', 'None of the above'],
                    correctAnswer: 0,
                    topic: 'Safety',
                    explanation: 'ATGATT means All The Gear All The Time for maximum safety.'
                },
                {
                    id: 22,
                    category: 'motorcycle',
                    question: 'When should you use high beam headlight in Louisiana?',
                    options: ['At night on empty roads', 'In fog', 'In traffic', 'Never'],
                    correctAnswer: 0,
                    topic: 'Lighting',
                    explanation: 'Use high beam on empty roads at night for better visibility, but dim for oncoming traffic.'
                },
                {
                    id: 23,
                    category: 'motorcycle',
                    question: 'How should you handle oil spills on road in Louisiana?',
                    options: ['Ride through quickly', 'Avoid if possible', 'Brake hard', 'Accelerate'],
                    correctAnswer: 1,
                    topic: 'Hazard Avoidance',
                    explanation: 'Avoid oil spills as they can cause loss of traction.'
                },
                {
                    id: 24,
                    category: 'motorcycle',
                    question: 'What is countersteering?',
                    options: ['Pushing forward on handlebar', 'Leaning body', 'Both A and B', 'Emergency braking'],
                    correctAnswer: 0,
                    topic: 'Turning',
                    explanation: 'Countersteering means pushing forward on handlebar to initiate turn.'
                },
                {
                    id: 25,
                    category: 'motorcycle',
                    question: 'When should you adjust mirrors in Louisiana?',
                    options: ['Before riding', 'While riding', 'Both A and B', 'Mirrors not needed'],
                    correctAnswer: 0,
                    topic: 'Mirrors',
                    explanation: 'Adjust mirrors before riding for proper rear view.'
                },
                {
                    id: 26,
                    category: 'motorcycle',
                    question: 'What is Louisiana\'s helmet law for motorcycles?',
                    options: ['Helmets required for all riders', 'Only required under 21', 'Only required on highways', 'Not required'],
                    correctAnswer: 1,
                    topic: 'Safety',
                    explanation: 'Helmets required for riders under 21 in Louisiana.'
                },
                {
                    id: 27,
                    category: 'motorcycle',
                    question: 'How should you handle lane positioning safely in Louisiana?',
                    options: ['Stay in lane center', 'Use different positions', 'Ride on shoulder', 'Follow other vehicles'],
                    correctAnswer: 1,
                    topic: 'Lane Positioning',
                    explanation: 'Use different lane positions for visibility and safety.'
                },
                {
                    id: 28,
                    category: 'motorcycle',
                    question: 'What should you do when being passed by a car in Louisiana?',
                    options: ['Speed up', 'Move to center of lane', 'Stay in position, be predictable', 'Weave to get attention'],
                    correctAnswer: 2,
                    topic: 'Being Passed',
                    explanation: 'Stay in position and be predictable when being passed.'
                },
                {
                    id: 29,
                    category: 'motorcycle',
                    question: 'How should you approach railroad tracks in Louisiana?',
                    options: ['Cross at 90 degree angle', 'Speed up', 'Weave across', 'Doesn\'t matter'],
                    correctAnswer: 0,
                    topic: 'Railroad Crossings',
                    explanation: 'Cross railroad tracks at as close to 90 degree angle as possible.'
                },
                {
                    id: 30,
                    category: 'motorcycle',
                    question: 'What is the penalty for not wearing helmet under 21 in Louisiana?',
                    options: ['$10 fine', '$50 fine', '$100 fine', '$250 fine'],
                    correctAnswer: 1,
                    topic: 'Safety',
                    explanation: 'Fine for not wearing helmet under 21 is up to $50 in Louisiana.'
                },
                {
                    id: 31,
                    category: 'motorcycle',
                    question: 'When should you use both brakes in an emergency stop?',
                    options: ['Always', 'Only front brake', 'Only rear brake', 'Depends on speed'],
                    correctAnswer: 0,
                    topic: 'Emergency Braking',
                    explanation: 'Always use both brakes for maximum stopping power in emergency.'
                },
                {
                    id: 32,
                    category: 'motorcycle',
                    question: 'How should you handle riding in groups in Louisiana?',
                    options: ['Staggered formation', 'Single file', 'Side by side', 'Any formation'],
                    correctAnswer: 0,
                    topic: 'Group Riding',
                    explanation: 'Use staggered formation when riding in groups.'
                },
                {
                    id: 33,
                    category: 'motorcycle',
                    question: 'What should you do if you get a flat tire while riding?',
                    options: ['Brake hard', 'Hold handlebars firmly, ease off gas', 'Accelerate', 'Jump off'],
                    correctAnswer: 1,
                    topic: 'Emergency Procedures',
                    explanation: 'Hold handlebars firmly and ease off gas if you get a flat tire.'
                },
                {
                    id: 34,
                    category: 'motorcycle',
                    question: 'When is the most dangerous time to ride in Louisiana?',
                    options: ['First 30 minutes of rain', 'Midnight', 'Noon', 'Sunset'],
                    correctAnswer: 0,
                    topic: 'Safety',
                    explanation: 'First 30 minutes of rain is most dangerous due to oil on road surface.'
                },
                {
                    id: 35,
                    category: 'motorcycle',
                    question: 'How should you adjust speed for curves?',
                    options: ['Slow before curve', 'Brake in curve', 'Accelerate in curve', 'Maintain speed'],
                    correctAnswer: 0,
                    topic: 'Curves',
                    explanation: 'Slow to appropriate speed before entering curve.'
                },
                {
                    id: 36,
                    category: 'motorcycle',
                    question: 'What is the minimum tread depth for motorcycle tires in Louisiana?',
                    options: ['1/32 inch', '2/32 inch', '4/32 inch', 'No requirement'],
                    correctAnswer: 0,
                    topic: 'Tire Maintenance',
                    explanation: 'Minimum tread depth is 1/32 inch for motorcycle tires in Louisiana.'
                },
                {
                    id: 37,
                    category: 'motorcycle',
                    question: 'How should you handle riding over bumps or potholes?',
                    options: ['Stand on pegs', 'Sit normally', 'Speed up', 'Swerve suddenly'],
                    correctAnswer: 0,
                    topic: 'Hazard Avoidance',
                    explanation: 'Stand on pegs to absorb impact when riding over bumps.'
                },
                {
                    id: 38,
                    category: 'motorcycle',
                    question: 'When should you use your horn?',
                    options: ['To alert others of your presence', 'In anger', 'Frequently', 'Never'],
                    correctAnswer: 0,
                    topic: 'Signaling',
                    explanation: 'Use horn to alert others of your presence.'
                },
                {
                    id: 39,
                    category: 'motorcycle',
                    question: 'What is the proper way to make a quick stop?',
                    options: ['Use both brakes, keep bike straight', 'Use rear brake only', 'Swerve', 'Lay bike down'],
                    correctAnswer: 0,
                    topic: 'Emergency Braking',
                    explanation: 'Use both brakes and keep bike straight for quick stop.'
                },
                {
                    id: 40,
                    category: 'motorcycle',
                    question: 'How should you dress for cold weather riding in Louisiana?',
                    options: ['Layers', 'Heavy jacket only', 'Same as warm weather', 'Not important'],
                    correctAnswer: 0,
                    topic: 'Protective Gear',
                    explanation: 'Dress in layers for cold weather riding.'
                },
                {
                    id: 41,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle license in Louisiana?',
                    options: ['Written test', 'Road test', 'Both A and B', 'No test required'],
                    correctAnswer: 2,
                    topic: 'Licensing',
                    explanation: 'Both written and road tests required for motorcycle license.'
                },
                {
                    id: 42,
                    category: 'motorcycle',
                    question: 'How should you handle night riding in Louisiana?',
                    options: ['Reduce speed', 'Increase following distance', 'Use high beam when appropriate', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Night Riding',
                    explanation: 'Reduce speed, increase following distance, and use high beam when appropriate at night.'
                },
                {
                    id: 43,
                    category: 'motorcycle',
                    question: 'What should you check during pre-ride inspection?',
                    options: ['Brakes', 'Chain/belt', 'Fluids', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Pre-Ride Inspection',
                    explanation: 'Check brakes, chain/belt, and fluids during pre-ride inspection.'
                },
                {
                    id: 44,
                    category: 'motorcycle',
                    question: 'How should you handle riding in rain?',
                    options: ['Smooth inputs', 'Increase following distance', 'Avoid painted lines', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Rain Riding',
                    explanation: 'Use smooth inputs, increase following distance, and avoid painted lines in rain.'
                },
                {
                    id: 45,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle endorsement in Louisiana?',
                    options: ['Vision test', 'Knowledge test', 'Skills test', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Licensing',
                    explanation: 'Vision, knowledge, and skills tests required for motorcycle endorsement.'
                },
                {
                    id: 46,
                    category: 'motorcycle',
                    question: 'How should you handle riding in wind?',
                    options: ['Relax grip', 'Lean into wind', 'Reduce speed', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Wind Riding',
                    explanation: 'Relax grip, lean into wind, and reduce speed in windy conditions.'
                },
                {
                    id: 47,
                    category: 'motorcycle',
                    question: 'What should you do before changing lanes?',
                    options: ['Check mirrors', 'Signal', 'Check blind spot', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Lane Changes',
                    explanation: 'Check mirrors, signal, and check blind spot before changing lanes.'
                },
                {
                    id: 48,
                    category: 'motorcycle',
                    question: 'How often should you practice emergency braking?',
                    options: ['Regularly', 'Never', 'Only before test', 'Once a year'],
                    correctAnswer: 0,
                    topic: 'Skills Practice',
                    explanation: 'Practice emergency braking regularly to maintain skills.'
                },
                {
                    id: 49,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle registration in Louisiana?',
                    options: ['Title', 'Insurance', 'Safety inspection', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Registration',
                    explanation: 'Title, insurance, and safety inspection required for registration.'
                },
                {
                    id: 50,
                    category: 'motorcycle',
                    question: 'How should you handle riding on gravel?',
                    options: ['Reduce speed', 'Keep bike upright', 'Smooth inputs', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Gravel Riding',
                    explanation: 'Reduce speed, keep bike upright, and use smooth inputs on gravel.'
                },
                {
                    id: 51,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle safety course in Louisiana?',
                    options: ['Completion card', 'Written test waiver', 'Skills test waiver', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Safety Course',
                    explanation: 'Completion card provides written and skills test waivers.'
                },
                {
                    id: 52,
                    category: 'motorcycle',
                    question: 'How should you handle riding in traffic?',
                    options: ['Stay visible', 'Watch for turning vehicles', 'Have escape route', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Traffic Riding',
                    explanation: 'Stay visible, watch for turning vehicles, and have escape route in traffic.'
                },
                {
                    id: 53,
                    category: 'motorcycle',
                    question: 'What should you do if headlight fails?',
                    options: ['Ride to safe place', 'Use hand signals', 'Both A and B', 'Continue riding'],
                    correctAnswer: 2,
                    topic: 'Equipment Failure',
                    explanation: 'Ride to safe place and use hand signals if headlight fails.'
                },
                {
                    id: 54,
                    category: 'motorcycle',
                    question: 'How should you handle riding on bridges?',
                    options: ['Watch for grates', 'Beware of crosswinds', 'Both A and B', 'Speed up'],
                    correctAnswer: 2,
                    topic: 'Bridge Riding',
                    explanation: 'Watch for grates and beware of crosswinds on bridges.'
                },
                {
                    id: 55,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle insurance in Louisiana?',
                    options: ['Liability', 'Proof of insurance', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Insurance',
                    explanation: 'Liability insurance and proof of insurance required.'
                },
                {
                    id: 56,
                    category: 'motorcycle',
                    question: 'How should you handle riding in fog?',
                    options: ['Use low beam', 'Reduce speed', 'Increase following distance', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Fog Riding',
                    explanation: 'Use low beam, reduce speed, and increase following distance in fog.'
                },
                {
                    id: 57,
                    category: 'motorcycle',
                    question: 'What should you do during pre-ride check?',
                    options: ['Check tires', 'Check lights', 'Check horn', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Pre-Ride Check',
                    explanation: 'Check tires, lights, and horn during pre-ride check.'
                },
                {
                    id: 58,
                    category: 'motorcycle',
                    question: 'How should you handle riding on wet leaves?',
                    options: ['Avoid if possible', 'Reduce speed', 'Smooth inputs', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Hazard Avoidance',
                    explanation: 'Avoid if possible, reduce speed, and use smooth inputs on wet leaves.'
                },
                {
                    id: 59,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle transfer in Louisiana?',
                    options: ['Bill of sale', 'Title transfer', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Ownership Transfer',
                    explanation: 'Bill of sale and title transfer required for motorcycle transfer.'
                },
                {
                    id: 60,
                    category: 'motorcycle',
                    question: 'How should you handle riding in construction zones?',
                    options: ['Reduce speed', 'Watch for debris', 'Follow signs', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Construction Zones',
                    explanation: 'Reduce speed, watch for debris, and follow signs in construction zones.'
                },
                {
                    id: 61,
                    category: 'motorcycle',
                    question: 'What should you do if throttle sticks?',
                    options: ['Pull clutch', 'Turn off engine', 'Both A and B', 'Brake hard'],
                    correctAnswer: 2,
                    topic: 'Emergency Procedures',
                    explanation: 'Pull clutch and turn off engine if throttle sticks.'
                },
                {
                    id: 62,
                    category: 'motorcycle',
                    question: 'How should you handle riding on ice?',
                    options: ['Avoid if possible', 'Walk bike', 'Both A and B', 'Speed up'],
                    correctAnswer: 2,
                    topic: 'Ice Riding',
                    explanation: 'Avoid ice if possible, otherwise walk bike.'
                },
                {
                    id: 63,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle loan in Louisiana?',
                    options: ['Insurance', 'Registration', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Financing',
                    explanation: 'Insurance and registration required for motorcycle loan.'
                },
                {
                    id: 64,
                    category: 'motorcycle',
                    question: 'How should you handle riding at dawn/dusk?',
                    options: ['Use lights', 'Wear reflective gear', 'Both A and B', 'No special precautions'],
                    correctAnswer: 2,
                    topic: 'Low Light Riding',
                    explanation: 'Use lights and wear reflective gear at dawn/dusk.'
                },
                {
                    id: 65,
                    category: 'motorcycle',
                    question: 'What should you do if brake fails?',
                    options: ['Use other brake', 'Downshift', 'Both A and B', 'Jump off'],
                    correctAnswer: 2,
                    topic: 'Emergency Procedures',
                    explanation: 'Use other brake and downshift if one brake fails.'
                },
                {
                    id: 66,
                    category: 'motorcycle',
                    question: 'How should you handle riding in heat?',
                    options: ['Stay hydrated', 'Take breaks', 'Wear light colors', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Heat Riding',
                    explanation: 'Stay hydrated, take breaks, and wear light colors in heat.'
                },
                {
                    id: 67,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle permit in Louisiana?',
                    options: ['Vision test', 'Written test', 'Both A and B', 'No test required'],
                    correctAnswer: 2,
                    topic: 'Permit',
                    explanation: 'Vision and written tests required for motorcycle permit.'
                },
                {
                    id: 68,
                    category: 'motorcycle',
                    question: 'How should you handle riding on sand?',
                    options: ['Reduce speed', 'Keep weight back', 'Both A and B', 'Speed up'],
                    correctAnswer: 2,
                    topic: 'Sand Riding',
                    explanation: 'Reduce speed and keep weight back on sand.'
                },
                {
                    id: 69,
                    category: 'motorcycle',
                    question: 'What should you do if chain breaks?',
                    options: ['Pull clutch', 'Coast to stop', 'Both A and B', 'Brake hard'],
                    correctAnswer: 2,
                    topic: 'Equipment Failure',
                    explanation: 'Pull clutch and coast to stop if chain breaks.'
                },
                {
                    id: 70,
                    category: 'motorcycle',
                    question: 'How should you handle riding in mountains?',
                    options: ['Use lower gears', 'Watch for curves', 'Both A and B', 'No special precautions'],
                    correctAnswer: 2,
                    topic: 'Mountain Riding',
                    explanation: 'Use lower gears and watch for curves in mountains.'
                },
                {
                    id: 71,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle title in Louisiana?',
                    options: ['Application', 'Proof of ownership', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Title',
                    explanation: 'Application and proof of ownership required for title.'
                },
                {
                    id: 72,
                    category: 'motorcycle',
                    question: 'How should you handle riding in snow?',
                    options: ['Avoid if possible', 'Use studded tires', 'Both A and B', 'Speed up'],
                    correctAnswer: 2,
                    topic: 'Snow Riding',
                    explanation: 'Avoid snow if possible, otherwise use studded tires.'
                },
                {
                    id: 73,
                    category: 'motorcycle',
                    question: 'What should you do if engine overheats?',
                    options: ['Pull over', 'Let engine cool', 'Both A and B', 'Continue riding'],
                    correctAnswer: 2,
                    topic: 'Overheating',
                    explanation: 'Pull over and let engine cool if overheating.'
                },
                {
                    id: 74,
                    category: 'motorcycle',
                    question: 'How should you handle riding in groups at night?',
                    options: ['Reduce group size', 'Increase spacing', 'Both A and B', 'No changes'],
                    correctAnswer: 2,
                    topic: 'Group Night Riding',
                    explanation: 'Reduce group size and increase spacing at night.'
                },
                {
                    id: 75,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle safety inspection in Louisiana?',
                    options: ['Annual', 'Biennial', 'At transfer only', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Safety Inspection',
                    explanation: 'Safety inspection required at transfer only in Louisiana.'
                },
                {
                    id: 76,
                    category: 'motorcycle',
                    question: 'How should you handle riding with passenger?',
                    options: ['Adjust suspension', 'Increase following distance', 'Both A and B', 'No changes'],
                    correctAnswer: 2,
                    topic: 'Passenger Riding',
                    explanation: 'Adjust suspension and increase following distance with passenger.'
                },
                {
                    id: 77,
                    category: 'motorcycle',
                    question: 'What should you do if electrical system fails?',
                    options: ['Use hand signals', 'Ride to safety', 'Both A and B', 'Continue riding'],
                    correctAnswer: 2,
                    topic: 'Electrical Failure',
                    explanation: 'Use hand signals and ride to safety if electrical system fails.'
                },
                {
                    id: 78,
                    category: 'motorcycle',
                    question: 'How should you handle riding in forest areas?',
                    options: ['Watch for animals', 'Beware of falling debris', 'Both A and B', 'No special precautions'],
                    correctAnswer: 2,
                    topic: 'Forest Riding',
                    explanation: 'Watch for animals and beware of falling debris in forest areas.'
                },
                {
                    id: 79,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle dealer purchase in Louisiana?',
                    options: ['Sales tax', 'Registration', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Dealer Purchase',
                    explanation: 'Sales tax and registration required for dealer purchase.'
                },
                {
                    id: 80,
                    category: 'motorcycle',
                    question: 'How should you handle riding in hail?',
                    options: ['Seek shelter', 'If riding, reduce speed', 'Both A and B', 'Speed up'],
                    correctAnswer: 2,
                    topic: 'Hail Riding',
                    explanation: 'Seek shelter, if riding reduce speed in hail.'
                },
                {
                    id: 81,
                    category: 'motorcycle',
                    question: 'What should you do if fuel system fails?',
                    options: ['Switch to reserve', 'Ride to station', 'Both A and B', 'Push bike'],
                    correctAnswer: 2,
                    topic: 'Fuel System Failure',
                    explanation: 'Switch to reserve and ride to station if fuel system fails.'
                },
                {
                    id: 82,
                    category: 'motorcycle',
                    question: 'How should you handle riding in thunderstorms?',
                    options: ['Seek shelter', 'Avoid trees', 'Both A and B', 'Continue riding'],
                    correctAnswer: 2,
                    topic: 'Thunderstorm Riding',
                    explanation: 'Seek shelter and avoid trees in thunderstorms.'
                },
                {
                    id: 83,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle private sale in Louisiana?',
                    options: ['Bill of sale', 'Title transfer', 'Both A and B', 'Handshake only'],
                    correctAnswer: 2,
                    topic: 'Private Sale',
                    explanation: 'Bill of sale and title transfer required for private sale.'
                },
                {
                    id: 84,
                    category: 'motorcycle',
                    question: 'How should you handle riding in tornado warning?',
                    options: ['Seek shelter immediately', 'Do not try to outrun', 'Both A and B', 'Ride faster'],
                    correctAnswer: 2,
                    topic: 'Tornado Warning',
                    explanation: 'Seek shelter immediately and do not try to outrun tornado.'
                },
                {
                    id: 85,
                    category: 'motorcycle',
                    question: 'What should you do if tire goes flat?',
                    options: ['Hold handlebars firmly', 'Ease off throttle', 'Both A and B', 'Brake hard'],
                    correctAnswer: 2,
                    topic: 'Flat Tire',
                    explanation: 'Hold handlebars firmly and ease off throttle if tire goes flat.'
                },
                {
                    id: 86,
                    category: 'motorcycle',
                    question: 'How should you handle riding in flood conditions?',
                    options: ['Avoid if possible', 'If riding, go slow', 'Both A and B', 'Speed through'],
                    correctAnswer: 2,
                    topic: 'Flood Riding',
                    explanation: 'Avoid flood if possible, if riding go slow.'
                },
                {
                    id: 87,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle insurance claim in Louisiana?',
                    options: ['Police report', 'Photos', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Insurance Claims',
                    explanation: 'Police report and photos help with insurance claims.'
                },
                {
                    id: 88,
                    category: 'motorcycle',
                    question: 'How should you handle riding in wildfire smoke?',
                    options: ['Wear mask', 'Reduce speed', 'Both A and B', 'No precautions'],
                    correctAnswer: 2,
                    topic: 'Wildfire Smoke',
                    explanation: 'Wear mask and reduce speed in wildfire smoke.'
                },
                {
                    id: 89,
                    category: 'motorcycle',
                    question: 'What should you do if lost control?',
                    options: ['Look where you want to go', 'Stay on brakes', 'Both A and B', 'Close eyes'],
                    correctAnswer: 0,
                    topic: 'Loss of Control',
                    explanation: 'Look where you want to go if losing control.'
                },
                {
                    id: 90,
                    category: 'motorcycle',
                    question: 'How should you handle riding after storm?',
                    options: ['Watch for debris', 'Avoid flooded areas', 'Both A and B', 'No precautions'],
                    correctAnswer: 2,
                    topic: 'Post-Storm Riding',
                    explanation: 'Watch for debris and avoid flooded areas after storm.'
                },
                {
                    id: 91,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle custom build in Louisiana?',
                    options: ['Special inspection', 'Title', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Custom Builds',
                    explanation: 'Special inspection and title required for custom builds.'
                },
                {
                    id: 92,
                    category: 'motorcycle',
                    question: 'How should you handle riding in dust?',
                    options: ['Wear goggles', 'Reduce speed', 'Both A and B', 'Ride through'],
                    correctAnswer: 2,
                    topic: 'Dust Riding',
                    explanation: 'Wear goggles and reduce speed in dust.'
                },
                {
                    id: 93,
                    category: 'motorcycle',
                    question: 'What should you do if animals on road?',
                    options: ['Reduce speed', 'Do not swerve', 'Both A and B', 'Speed up'],
                    correctAnswer: 2,
                    topic: 'Animals on Road',
                    explanation: 'Reduce speed and do not swerve for animals.'
                },
                {
                    id: 94,
                    category: 'motorcycle',
                    question: 'How should you handle riding in urban traffic?',
                    options: ['Be extra alert', 'Watch for opening doors', 'Both A and B', 'Speed through'],
                    correctAnswer: 2,
                    topic: 'Urban Riding',
                    explanation: 'Be extra alert and watch for opening doors in urban traffic.'
                },
                {
                    id: 95,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle import to Louisiana?',
                    options: ['Federal forms', 'State inspection', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Import',
                    explanation: 'Federal forms and state inspection required for import.'
                },
                {
                    id: 96,
                    category: 'motorcycle',
                    question: 'How should you handle riding in hurricane conditions?',
                    options: ['Do not ride', 'If riding, extreme caution', 'Both A and B', 'Normal riding'],
                    correctAnswer: 2,
                    topic: 'Hurricane Riding',
                    explanation: 'Do not ride, if riding use extreme caution in hurricanes.'
                },
                {
                    id: 97,
                    category: 'motorcycle',
                    question: 'What should you do if objects on road?',
                    options: ['Avoid if safe', 'Do not swerve suddenly', 'Both A and B', 'Hit object'],
                    correctAnswer: 2,
                    topic: 'Objects on Road',
                    explanation: 'Avoid if safe, do not swerve suddenly for objects.'
                },
                {
                    id: 98,
                    category: 'motorcycle',
                    question: 'How should you handle riding in freezing rain?',
                    options: ['Do not ride', 'If riding, extreme caution', 'Both A and B', 'Normal riding'],
                    correctAnswer: 2,
                    topic: 'Freezing Rain',
                    explanation: 'Do not ride, if riding use extreme caution in freezing rain.'
                },
                {
                    id: 99,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle export from Louisiana?',
                    options: ['Title', 'Bill of sale', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Export',
                    explanation: 'Title and bill of sale required for export.'
                },
                {
                    id: 100,
                    category: 'motorcycle',
                    question: 'What special considerations are needed for riding in Louisiana\'s varied weather conditions?',
                    options: ['Watch for sudden storms', 'Beware of flooding', 'Watch for alligators on rural roads', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Weather Riding',
                    explanation: 'Watch for sudden storms, beware of flooding, and watch for alligators on rural roads when riding in Louisiana\'s varied weather conditions.'
                }
            ];
        }
        
        // Start the test
        function startTest() {
            const name = nameInput.value.trim();
            if (!name) {
                alert('Please enter your name before starting the test.');
                nameInput.focus();
                return;
            }
            
            testState.testerName = name;
            testState.currentQuestionIndex = 0;
            testState.userAnswers.fill(null);
            testState.testStarted = true;
            testState.testCompleted = false;
            testState.incorrectQuestions = [];
            
            // Select questions based on current category
            const allQuestions = [...questionBanks[testState.currentCategory]];
            testState.selectedQuestions = [];
            
            // If we have fewer than testQuestions, use what we have
            // Otherwise, shuffle and select testQuestions
            if (allQuestions.length <= TEST_CONFIG.testQuestions) {
                testState.selectedQuestions = allQuestions;
            } else {
                // Shuffle array and take first testQuestions
                for (let i = allQuestions.length - 1; i > 0; i--) {
                    const j = Math.floor(Math.random() * (i + 1));
                    [allQuestions[i], allQuestions[j]] = [allQuestions[j], allQuestions[i]];
                }
                
                testState.selectedQuestions = allQuestions.slice(0, TEST_CONFIG.testQuestions);
            }
            
            // Reset UI
            nameInput.disabled = true;
            timerContainer.style.display = 'block';
            progressContainer.style.display = 'block';
            questionCard.classList.add('active');
            resultsContainer.classList.remove('show');
            incorrectQuestionsSection.classList.remove('show');
            reviewSection.classList.remove('show');
            startTestBtn.textContent = 'Restart Test';
            startTestBtn.classList.add('btn-accent');
            
            // Show first question
            showQuestion();
            startTimer();
            
            // Update category display
            const activeCategoryBtn = document.querySelector('.category-btn.active');
            currentCategoryElement.textContent = activeCategoryBtn.textContent.replace(' Test', '');
        }
        
        // Display current question
        function showQuestion() {
            const question = testState.selectedQuestions[testState.currentQuestionIndex];
            
            // Update progress
            currentQuestionElement.textContent = testState.currentQuestionIndex + 1;
            const progress = ((testState.currentQuestionIndex + 1) / testState.selectedQuestions.length) * 100;
            progressBar.style.width = `${progress}%`;
            
            // Update question text
            questionTextElement.textContent = question.question;
            
            // Clear previous options
            optionsContainer.innerHTML = '';
            
            // Add new options
            question.options.forEach((option, index) => {
                const optionElement = document.createElement('div');
                optionElement.className = 'option';
                if (testState.userAnswers[testState.currentQuestionIndex] === index) {
                    optionElement.classList.add('selected');
                }
                
                optionElement.innerHTML = `
                    <div class="option-label">${String.fromCharCode(65 + index)}</div>
                    <div class="option-text">${option}</div>
                `;
                
                optionElement.addEventListener('click', () => selectOption(index));
                optionsContainer.appendChild(optionElement);
            });
            
            // Update navigation buttons
            prevBtn.disabled = testState.currentQuestionIndex === 0;
            nextBtn.textContent = testState.currentQuestionIndex === testState.selectedQuestions.length - 1 ? 'Finish Test' : 'Next Question';
            
            // Reset timer
            resetTimer();
        }
        
        // Select an option
        function selectOption(optionIndex) {
            // Remove selected class from all options
            document.querySelectorAll('.option').forEach(option => {
                option.classList.remove('selected');
            });
            
            // Add selected class to clicked option
            document.querySelectorAll('.option')[optionIndex].classList.add('selected');
            
            // Save answer
            testState.userAnswers[testState.currentQuestionIndex] = optionIndex;
            
            // Auto-advance after 1 second if not the last question
            if (testState.currentQuestionIndex < testState.selectedQuestions.length - 1) {
                setTimeout(() => {
                    showNextQuestion();
                }, 1000);
            }
        }
        
        // Skip question
        function skipQuestion() {
            testState.userAnswers[testState.currentQuestionIndex] = null;
            
            if (testState.currentQuestionIndex < testState.selectedQuestions.length - 1) {
                showNextQuestion();
            } else {
                finishTest();
            }
        }
        
        // Show next question
        function showNextQuestion() {
            if (testState.currentQuestionIndex < testState.selectedQuestions.length - 1) {
                testState.currentQuestionIndex++;
                showQuestion();
            } else {
                finishTest();
            }
        }
        
        // Show previous question
        function showPreviousQuestion() {
            if (testState.currentQuestionIndex > 0) {
                testState.currentQuestionIndex--;
                showQuestion();
            }
        }
        
        // Timer functions
        function startTimer() {
            clearInterval(testState.timerInterval);
            testState.timeRemaining = TEST_CONFIG.timePerQuestion;
            updateTimerDisplay();
            
            testState.timerInterval = setInterval(() => {
                testState.timeRemaining--;
                updateTimerDisplay();
                
                if (testState.timeRemaining <= 0) {
                    clearInterval(testState.timerInterval);
                    // Auto-skip to next question when time expires
                    if (testState.currentQuestionIndex < testState.selectedQuestions.length - 1) {
                        showNextQuestion();
                    } else {
                        finishTest();
                    }
                }
            }, 1000);
        }
        
        function resetTimer() {
            clearInterval(testState.timerInterval);
            testState.timeRemaining = TEST_CONFIG.timePerQuestion;
            updateTimerDisplay();
            startTimer();
        }
        
        function updateTimerDisplay() {
            timerElement.textContent = testState.timeRemaining;
            
            // Update timer color based on remaining time
            timerElement.classList.remove('warning', 'danger');
            if (testState.timeRemaining <= 15) {
                timerElement.classList.add('danger');
            } else if (testState.timeRemaining <= 30) {
                timerElement.classList.add('warning');
            }
        }
        
        // Finish test and show results
        function finishTest() {
            clearInterval(testState.timerInterval);
            testState.testCompleted = true;
            
            // Calculate results
            let correct = 0;
            let incorrect = 0;
            let skipped = 0;
            testState.incorrectQuestions = [];
            
            testState.userAnswers.forEach((answer, index) => {
                const question = testState.selectedQuestions[index];
                if (answer === null) {
                    skipped++;
                } else if (answer === question.correctAnswer) {
                    correct++;
                } else {
                    incorrect++;
                    // Store incorrect question with user's answer and correct answer
                    testState.incorrectQuestions.push({
                        question: question,
                        userAnswer: answer,
                        correctAnswer: question.correctAnswer
                    });
                }
            });
            
            const totalQuestions = testState.selectedQuestions.length;
            const calculatedScorePercent = Math.round((correct / totalQuestions) * 100);
            const passed = correct >= TEST_CONFIG.passingScore;
            
            // Update results display
            correctCount.textContent = correct;
            incorrectCount.textContent = incorrect;
            skippedCount.textContent = skipped;
            scorePercentElement.textContent = `${calculatedScorePercent}%`;
            testerNameDisplay.textContent = `Tester: ${testState.testerName}`;
            
            // Update score circle visualization
            const correctDegree = (correct / totalQuestions) * 360;
            scoreCircle.style.background = `conic-gradient(var(--correct-color) 0deg ${correctDegree}deg, #eee ${correctDegree}deg 360deg)`;
            
            // Update result message
            if (passed) {
                resultMessage.innerHTML = `
                    <h3 style="color: var(--correct-color); margin-bottom: 10px;">Congratulations ${testState.testerName}! You Passed!</h3>
                    <p>You answered ${correct} out of ${totalQuestions} questions correctly (${calculatedScorePercent}%).</p>
                    <p>You met the Louisiana OMV passing requirement of ${TEST_CONFIG.passingScore} correct answers (${TEST_CONFIG.passingPercent}%).</p>
                `;
                scoreText.textContent = "PASSED";
                scoreText.classList.add('pass');
                scoreText.classList.remove('fail');
            } else {
                resultMessage.innerHTML = `
                    <h3 style="color: var(--incorrect-color); margin-bottom: 10px;">Keep Practicing, ${testState.testerName}!</h3>
                    <p>You answered ${correct} out of ${totalQuestions} questions correctly (${calculatedScorePercent}%).</p>
                    <p>You needed ${TEST_CONFIG.passingScore} correct answers (${TEST_CONFIG.passingPercent}%) to pass the Louisiana OMV test.</p>
                `;
                scoreText.textContent = "FAILED";
                scoreText.classList.add('fail');
                scoreText.classList.remove('pass');
            }
            
            // Update recommendation
            if (calculatedScorePercent >= 90) {
                recommendation.innerHTML = `
                    <h4>Excellent Work!</h4>
                    <p>Your score indicates you're well-prepared for the Louisiana OMV exam. Consider reviewing any missed questions and taking the official test soon.</p>
                `;
            } else if (calculatedScorePercent >= TEST_CONFIG.passingPercent) {
                recommendation.innerHTML = `
                    <h4>Good Job!</h4>
                    <p>You passed the practice test! Review the questions you missed and consider taking another practice test before your official Louisiana OMV exam.</p>
                `;
            } else {
                recommendation.innerHTML = `
                    <h4>Areas for Improvement</h4>
                    <p>Focus on the topics where you missed questions. Study the Louisiana OMV manual and take more practice tests to improve your score.</p>
                    <p>You missed ${TEST_CONFIG.passingScore - correct} more questions than allowed to pass. Click "Show Incorrect Questions" below to review your mistakes.</p>
                `;
            }
            
            // Hide question card and show results
            questionCard.classList.remove('active');
            resultsContainer.classList.add('show');
            
            // Update incorrect questions button text
            if (testState.incorrectQuestions.length > 0) {
                showIncorrectBtn.textContent = `Show Incorrect Questions (${testState.incorrectQuestions.length})`;
                showIncorrectBtn.style.display = 'block';
            } else {
                showIncorrectBtn.style.display = 'none';
            }
        }
        
        // Toggle incorrect questions section
        function toggleIncorrectQuestions() {
            if (incorrectQuestionsSection.classList.contains('show')) {
                incorrectQuestionsSection.classList.remove('show');
                showIncorrectBtn.textContent = `Show Incorrect Questions (${testState.incorrectQuestions.length})`;
            } else {
                showIncorrectQuestions();
                incorrectQuestionsSection.classList.add('show');
                showIncorrectBtn.textContent = 'Hide Incorrect Questions';
                // Hide review section if open
                reviewSection.classList.remove('show');
                reviewTestBtn.textContent = 'Review All Questions';
            }
        }
        
        // Show incorrect questions with correct answers
        function showIncorrectQuestions() {
            incorrectQuestionsList.innerHTML = '';
            
            if (testState.incorrectQuestions.length === 0) {
                incorrectQuestionsList.innerHTML = '<p>No incorrect questions to display. Great job!</p>';
                return;
            }
            
            testState.incorrectQuestions.forEach((item, index) => {
                const question = item.question;
                const userAnswer = item.userAnswer;
                const correctAnswer = item.correctAnswer;
                
                const incorrectQuestionElement = document.createElement('div');
                incorrectQuestionElement.className = 'incorrect-question';
                
                incorrectQuestionElement.innerHTML = `
                    <div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
                        <strong>Question ${testState.selectedQuestions.findIndex(q => q.id === question.id) + 1}: ${question.topic}</strong>
                        <span style="font-weight: 600; color: var(--incorrect-color)">Incorrect</span>
                    </div>
                    <p style="margin-bottom: 15px;"><strong>Question:</strong> ${question.question}</p>
                    <div style="margin-bottom: 10px;">
                        ${question.options.map((option, optIndex) => {
                            let optionStyle = '';
                            if (optIndex === correctAnswer) {
                                optionStyle = 'background-color: rgba(76, 175, 80, 0.1); border-left: 3px solid var(--correct-color);';
                            } else if (optIndex === userAnswer) {
                                optionStyle = 'background-color: rgba(244, 67, 54, 0.1); border-left: 3px solid var(--incorrect-color);';
                            }
                            
                            return `
                                <div style="padding: 8px 12px; margin-bottom: 5px; border-radius: 4px; ${optionStyle}">
                                    <strong>${String.fromCharCode(65 + optIndex)}:</strong> ${option}
                                    ${optIndex === correctAnswer ? ' <strong>(Correct Answer)</strong>' : ''}
                                    ${optIndex === userAnswer && optIndex !== correctAnswer ? ' <strong>(Your Answer)</strong>' : ''}
                                </div>
                            `;
                        }).join('')}
                    </div>
                   <div style="font-style: italic;color: #020202;">
                        <strong>Explanation:</strong> ${question.explanation}
                    </div>
                `;
                
                incorrectQuestionsList.appendChild(incorrectQuestionElement);
            });
        }
        
        // Toggle review section
        function toggleReviewSection() {
            if (reviewSection.classList.contains('show')) {
                reviewSection.classList.remove('show');
                reviewTestBtn.textContent = 'Review All Questions';
            } else {
                showReviewSection();
                reviewSection.classList.add('show');
                reviewTestBtn.textContent = 'Hide Review';
                // Hide incorrect questions section if open
                incorrectQuestionsSection.classList.remove('show');
                showIncorrectBtn.textContent = `Show Incorrect Questions (${testState.incorrectQuestions.length})`;
            }
        }
        
        // Show review section with all questions and answers
        function showReviewSection() {
            reviewQuestions.innerHTML = '';
            
            testState.selectedQuestions.forEach((question, index) => {
                const userAnswer = testState.userAnswers[index];
                const isCorrect = userAnswer === question.correctAnswer;
                const isSkipped = userAnswer === null;
                
                let statusClass = '';
                let statusText = '';
                
                if (isSkipped) {
                    statusClass = 'skipped';
                    statusText = 'Skipped';
                } else if (isCorrect) {
                    statusClass = 'correct';
                    statusText = 'Correct';
                } else {
                    statusClass = 'incorrect';
                    statusText = 'Incorrect';
                }
                
                const reviewQuestion = document.createElement('div');
                reviewQuestion.className = `review-question ${statusClass}`;
                
                reviewQuestion.innerHTML = `
                    <div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
                        <strong>Question ${index + 1}: ${question.topic}</strong>
                        <span style="font-weight: 600; color: ${statusClass === 'correct' ? 'var(--correct-color)' : statusClass === 'incorrect' ? 'var(--incorrect-color)' : 'var(--louisiana-red)'}">
                            ${statusText}
                        </span>
                    </div>
                    <p style="margin-bottom: 15px;">${question.question}</p>
                    <div style="margin-bottom: 10px;">
                        ${question.options.map((option, optIndex) => {
                            let optionStyle = '';
                            if (optIndex === question.correctAnswer) {
                                optionStyle = 'background-color: rgba(76, 175, 80, 0.1); border-left: 3px solid var(--correct-color);';
                            } else if (optIndex === userAnswer && !isCorrect) {
                                optionStyle = 'background-color: rgba(244, 67, 54, 0.1); border-left: 3px solid var(--incorrect-color);';
                            }
                            
                            return `
                                <div style="padding: 8px 12px; margin-bottom: 5px; border-radius: 4px; ${optionStyle}">
                                    <strong>${String.fromCharCode(65 + optIndex)}:</strong> ${option}
                                    ${optIndex === question.correctAnswer ? ' <strong>(Correct Answer)</strong>' : ''}
                                    ${optIndex === userAnswer && !isCorrect ? ' <strong>(Your Answer)</strong>' : ''}
                                </div>
                            `;
                        }).join('')}
                    </div>
                    <div style="font-style: italic;color: #020202;">
                        <strong>Explanation:</strong> ${question.explanation}
                    </div>
                `;
                
                reviewQuestions.appendChild(reviewQuestion);
            });
        }
        
        // Restart test
        function restartTest() {
            testState.currentQuestionIndex = 0;
            testState.userAnswers.fill(null);
            testState.testStarted = false;
            testState.testCompleted = false;
            testState.incorrectQuestions = [];
            testState.testerName = '';
            
            // Reset UI
            nameInput.disabled = false;
            nameInput.value = '';
            timerContainer.style.display = 'none';
            progressContainer.style.display = 'none';
            questionCard.classList.remove('active');
            resultsContainer.classList.remove('show');
            incorrectQuestionsSection.classList.remove('show');
            reviewSection.classList.remove('show');
            startTestBtn.textContent = 'Start Practice Test';
            startTestBtn.classList.remove('btn-accent');
            
            // Reset progress bar
            progressBar.style.width = '0%';
            
            // Reset timer display
            clearInterval(testState.timerInterval);
            timerElement.textContent = '60';
            timerElement.classList.remove('warning', 'danger');
            
            // Reset buttons
            showIncorrectBtn.textContent = 'Show Incorrect Questions';
            reviewTestBtn.textContent = 'Review All Questions';
            showIncorrectBtn.style.display = 'block';
        }
        
        // Initialize the application
        document.addEventListener('DOMContentLoaded', () => {
            initEventListeners();
            
            // Set default active category
            currentCategoryElement.textContent = 'Car';
        });
    </script>
</div>
</body>
</html>
]]></content:encoded>
					
					<wfw:commentRss>https://24car-repair.com/louisiana-dmv-practice-test/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
