
        .tabs-container {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .tab-btn {
            padding: 12px 24px;
            background: #fff;
            border: 1px solid var(--accent-red);
            border-radius: 12px;
            color: var(--accent-red);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: var(--shadow-sm);
            font-family: var(--font-family);
        }

        .tab-btn:hover {
            background: rgba(214, 59, 29, 0.05);
            transform: scale(1.02);
            box-shadow: var(--shadow-md);
        }

        .tab-btn.active {
            background: var(--accent-red);
            color: white;
            box-shadow: var(--shadow-md);
        }

        .tab-content {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .tab-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .content-section {
            background: rgba(255, 255, 255, 0.6);
            padding: 30px;
            border-radius: 16px;
            margin-bottom: 25px;
            border: 1px solid rgba(139, 0, 0, 0.1);
            box-shadow: var(--shadow-sm);
        }

        .content-section h3 {
            color: var(--accent-red);
            margin-bottom: 20px;
            font-size: 1.4em;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
        }

        .boolean-element {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 8px;
            margin: 5px;
            border: 1px solid var(--accent-red);
            font-weight: 600;
            transition: all 0.2s ease;
            cursor: pointer;
            box-shadow: var(--shadow-sm);
        }

        .boolean-element:hover {
            transform: scale(1.02);
            box-shadow: var(--shadow-md);
        }

        .logic-gate {
            width: 150px;
            height: 140px;
            background: linear-gradient(135deg, #fff 0%, rgba(255, 248, 240, 0.9) 100%);
            border: 2px solid var(--accent-red);
            border-radius: 16px;
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin: 12px;
            padding: 12px;
            cursor: default;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            box-shadow: var(--shadow-sm);
            overflow: hidden;
        }

        .logic-gate::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
            transition: left 0.5s;
        }

        .logic-gate:hover::before {
            left: 100%;
        }

        .logic-gate:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 12px 28px rgba(214, 59, 29, 0.3);
            border-color: var(--accent-gold);
        }

        .gate-label {
            font-size: 1.3em;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--accent-red);
            letter-spacing: 1px;
        }

        .gate-symbol {
            font-size: 2em;
            color: var(--text-primary);
            margin: 5px 0;
        }

        .gate-formula {
            font-family: 'Courier New', monospace;
            font-size: 0.9em;
            color: var(--text-secondary);
            background: rgba(214, 59, 29, 0.08);
            padding: 4px 10px;
            border-radius: 6px;
            margin-top: 6px;
            font-weight: 600;
            border: 1px solid rgba(214, 59, 29, 0.2);
        }

        .gates-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
            justify-items: center;
            margin: 20px 0;
            padding: 10px;
        }

        @media (min-width: 768px) {
            .gates-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .truth-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid rgba(139, 0, 0, 0.15);
            box-shadow: var(--shadow-sm);
        }

        .truth-table th {
            background: var(--accent-red);
            color: white;
            padding: 14px 12px;
            font-weight: 600;
            font-size: 0.95em;
            letter-spacing: 0.5px;
        }

        .truth-table td {
            padding: 12px 10px;
            text-align: center;
            border-bottom: 1px solid rgba(139, 0, 0, 0.08);
            font-size: 0.95em;
        }

        .truth-table tr:last-child td {
            border-bottom: none;
        }

        .truth-table tr:hover {
            background: rgba(214, 59, 29, 0.05);
        }

        .circuit-canvas {
            width: 100%;
            height: 400px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 12px;
            border: 1px solid rgba(139, 0, 0, 0.2);
            margin: 15px 0;
        }

        .law-card {
            background: rgba(255, 255, 255, 0.7);
            padding: 18px 20px;
            border-radius: 12px;
            margin: 12px 0;
            border-left: 5px solid var(--accent-red);
            transition: all 0.2s ease;
            box-shadow: var(--shadow-sm);
        }

        .law-card:hover {
            transform: translateX(5px);
            box-shadow: var(--shadow-md);
            background: rgba(255, 255, 255, 0.85);
        }

        .law-name {
            font-weight: 700;
            color: var(--accent-red);
            font-size: 1.15em;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .law-formula {
            font-family: 'Courier New', monospace;
            background: rgba(139, 0, 0, 0.06);
            padding: 10px 14px;
            border-radius: 8px;
            margin: 8px 0;
            font-size: 1em;
            border: 1px solid rgba(139, 0, 0, 0.12);
            letter-spacing: 0.5px;
        }

        .ideology-tag {
            display: inline-block;
            padding: 4px 12px;
            background: rgba(255, 255, 255, 0.7);
            border-radius: 20px;
            font-size: 0.85em;
            margin: 3px;
            border: 1px solid var(--accent-red);
            color: var(--accent-red);
            font-weight: 600;
        }

        .interactive-demo {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 248, 240, 0.5) 100%);
            padding: 30px;
            border-radius: 16px;
            margin: 25px 0;
            border: 2px solid rgba(214, 59, 29, 0.2);
            box-shadow: var(--shadow-md);
            transition: all 0.3s ease;
        }

        .interactive-demo:hover {
            box-shadow: 0 12px 32px rgba(214, 59, 29, 0.15);
            transform: translateY(-2px);
        }

        .interactive-demo h3 {
            color: var(--accent-red);
            font-size: 1.3em;
            margin-bottom: 15px;
            font-weight: 700;
        }

        .input-switch {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin: 10px 15px;
        }

        .switch {
            width: 60px;
            height: 30px;
            background: rgba(139, 0, 0, 0.1);
            border-radius: 15px;
            position: relative;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid rgba(139, 0, 0, 0.2);
        }

        .switch.on {
            background: var(--accent-red);
        }

        .switch-handle {
            width: 22px;
            height: 22px;
            background: white;
            border-radius: 50%;
            position: absolute;
            top: 3px;
            left: 3px;
            transition: all 0.2s ease;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
            border: 2px solid #fff;
        }

        .switch.on .switch-handle {
            left: 32px;
        }

        .output-display {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 15px 25px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 12px;
            margin: 15px 0;
            border: 1px solid rgba(139, 0, 0, 0.2);
            font-size: 1.2em;
            font-weight: bold;
            box-shadow: var(--shadow-sm);
        }

        .output-led {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: rgba(139, 0, 0, 0.2);
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
            transition: all 0.2s ease;
        }

        .output-led.on {
            background: var(--accent-red);
            box-shadow: 0 0 20px var(--accent-red), 0 0 30px rgba(214, 59, 29, 0.5);
        }

        .application-card {
            background: rgba(255, 255, 255, 0.6);
            padding: 25px;
            border-radius: 14px;
            margin: 18px 0;
            border: 1px solid rgba(139, 0, 0, 0.15);
            box-shadow: var(--shadow-sm);
            transition: all 0.2s ease;
        }

        .application-card:hover {
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }

        .application-card h4 {
            color: var(--accent-red);
            margin-bottom: 15px;
            font-size: 1.25em;
            font-weight: 700;
        }

        .application-card ul {
            margin-left: 20px;
        }

        .application-card ul li {
            margin: 10px 0;
        }

        .highlight-box {
            background: rgba(255, 248, 220, 0.7);
            padding: 20px 25px;
            border-radius: 12px;
            border-left: 5px solid var(--accent-gold);
            margin: 25px 0;
            box-shadow: var(--shadow-sm);
        }

        .highlight-box h4 {
            font-size: 1.2em;
            margin-bottom: 12px;
            font-weight: 700;
        }
    