
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
            color: #333;
            line-height: 1.6;
            padding: 0;
            margin: 0;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: #fff;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
        }

        header {
            background: linear-gradient(135deg, #8b0000 0%, #a52a2a 50%, #b22222 100%);
            color: #fff;
            padding: 20px 30px;
            border-bottom: 4px solid #660000;
        }

        header h1 {
            font-size: 2.2em;
            font-weight: bold;
            margin-bottom: 5px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        header p {
            font-size: 1.1em;
            opacity: 0.95;
            margin-top: 5px;
        }

        nav {
            background: #2c2c2c;
            padding: 0;
            border-bottom: 3px solid #8b0000;
        }

        nav ul {
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            padding: 0;
            margin: 0;
        }

        nav ul li {
            margin: 0;
        }

        nav ul li a {
            display: block;
            padding: 15px 20px;
            color: #fff;
            text-decoration: none;
            transition: background 0.3s, color 0.3s;
            font-weight: 500;
            border-right: 1px solid #444;
        }

        nav ul li:last-child a {
            border-right: none;
        }

        nav ul li a:hover {
            background: #8b0000;
            color: #ffd700;
        }

        main {
            padding: 40px 30px;
        }

        h1 {
            font-size: 2.5em;
            color: #8b0000;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 3px solid #8b0000;
        }

        article {
            margin-bottom: 40px;
        }

        article h2 {
            color: #a52a2a;
            font-size: 1.8em;
            margin: 30px 0 15px;
        }

        article h3 {
            color: #b22222;
            font-size: 1.4em;
            margin: 25px 0 12px;
        }

        article p {
            margin-bottom: 18px;
            text-align: justify;
            font-size: 1.05em;
            line-height: 1.8;
        }

        article strong {
            color: #8b0000;
        }

        .transition-section {
            background: #f9f9f9;
            padding: 30px;
            margin: 40px 0;
            border-left: 5px solid #8b0000;
            border-radius: 4px;
        }

        .transition-section p {
            margin-bottom: 15px;
        }

        {% if links %}
        .links-section {
            background: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
            padding: 40px 30px;
            margin-top: 50px;
            border-top: 4px solid #8b0000;
        }

        .links-section h3 {
            color: #8b0000;
            font-size: 1.6em;
            margin: 30px 0 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #b22222;
        }

        .links-section h3:first-child {
            margin-top: 0;
        }

        .links-section ul {
            list-style: none;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px 30px;
            margin-bottom: 35px;
        }

        .links-section ul li {
            padding: 0;
        }

        .links-section ul li a {
            color: #333;
            text-decoration: none;
            padding: 8px 0;
            display: block;
            transition: color 0.3s, padding-left 0.3s;
            position: relative;
        }

        .links-section ul li a:before {
            content: "▸";
            color: #8b0000;
            margin-right: 8px;
            font-weight: bold;
        }

        .links-section ul li a:hover {
            color: #8b0000;
            padding-left: 10px;
        }
        {% endif %}

        footer {
            background: #2c2c2c;
            color: #ccc;
            text-align: center;
            padding: 20px;
            border-top: 3px solid #8b0000;
            font-size: 0.9em;
        }

        @media (max-width: 768px) {
            header h1 {
                font-size: 1.6em;
            }

            header p {
                font-size: 0.95em;
            }

            nav ul {
                flex-direction: column;
            }

            nav ul li a {
                border-right: none;
                border-bottom: 1px solid #444;
            }

            main {
                padding: 25px 20px;
            }

            h1 {
                font-size: 1.8em;
            }

            article h2 {
                font-size: 1.4em;
            }

            article h3 {
                font-size: 1.2em;
            }

            .links-section ul {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .transition-section {
                padding: 20px;
            }
        }

        @media (max-width: 480px) {
            header {
                padding: 15px 20px;
            }

            header h1 {
                font-size: 1.4em;
            }

            main {
                padding: 20px 15px;
            }

            h1 {
                font-size: 1.5em;
            }
        }
    