@charset "utf-8";
/* CSS Document */

        /* Base Styles */
        :root {
            --primary: #1a237e;
            --primary-light: #534bae;
            --secondary: #0d47a1;
            --accent: #e53935;
            --warning: #ff9800;
            --light: #f5f5f5;
            --dark: #212121;
            --gray: #757575;
            --border: #e0e0e0;
            --shadow: 0 2px 4px rgba(0,0,0,0.1);
            --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
            --radius: 8px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
            color: var(--dark);
            line-height: 1.6;
            min-height: 100vh;
            padding-bottom: 2rem;
        }

        /* Header */
        .header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 2rem 0;
            position: relative;
            overflow: hidden;
        }

        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            position: relative;
            z-index: 1;
        }

        .school-header {
            text-align: center;
            margin-bottom: 1.5rem;
        }

        .school-name {
            font-size: 2.5rem;
            font-weight: 700;
            letter-spacing: 1px;
            margin-bottom: 0.5rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
        }

        .school-motto {
            font-size: 1.1rem;
            opacity: 0.9;
            font-style: italic;
        }

        .page-title {
            text-align: center;
            font-size: 2rem;
            margin-bottom: 0.5rem;
            position: relative;
            display: inline-block;
            left: 50%;
            transform: translateX(-50%);
        }

        .page-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 25%;
            right: 25%;
            height: 4px;
            background: white;
            border-radius: 2px;
        }

        /* Warning Banner */
        .warning-banner {
            background: linear-gradient(135deg, #fff3cd, #ffeaa7);
            border-left: 5px solid var(--warning);
            padding: 1rem;
            margin: 2rem 0;
            border-radius: 0 var(--radius) var(--radius) 0;
            box-shadow: var(--shadow);
        }

        .warning-banner h3 {
            color: #856404;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .warning-banner p {
            color: #856404;
            font-size: 0.95rem;
        }

        /* Rules Container */
        .rules-container {
            display: grid;
            grid-template-columns: 300px 1fr;
            gap: 2rem;
            margin-top: 2rem;
        }

        /* Navigation */
        .rules-nav {
            background: white;
            border-radius: var(--radius);
            padding: 1.5rem;
            box-shadow: var(--shadow);
            height: fit-content;
            position: sticky;
            top: 2rem;
        }

        .nav-title {
            color: var(--primary);
            font-size: 1.2rem;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--border);
        }

        .nav-list {
            list-style: none;
        }

        .nav-item {
            margin-bottom: 0.75rem;
        }

        .nav-link {
            color: var(--gray);
            text-decoration: none;
            padding: 0.5rem;
            display: block;
            border-radius: 4px;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .nav-link:hover {
            color: var(--primary);
            background: var(--light);
            padding-left: 1rem;
        }

        .nav-link.active {
            color: white;
            background: var(--primary);
        }

        /* Rules Content */
        .rules-content {
            background: white;
            border-radius: var(--radius);
            padding: 2rem;
            box-shadow: var(--shadow-lg);
        }

        .rule-section {
            margin-bottom: 3rem;
            scroll-margin-top: 2rem;
        }

        .rule-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--border);
        }

        .rule-number {
            background: var(--primary);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            font-weight: bold;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .rule-title {
            color: var(--primary);
            font-size: 1.5rem;
            font-weight: 600;
        }

        .rule-details {
            padding-left: 1rem;
        }

        .rule-item {
            margin-bottom: 1.5rem;
            position: relative;
            padding-left: 1.5rem;
        }

        .rule-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.75rem;
            width: 8px;
            height: 8px;
            background: var(--primary-light);
            border-radius: 50%;
        }

        .sub-rule {
            margin: 0.75rem 0 0.75rem 1.5rem;
            padding-left: 1rem;
            border-left: 2px solid var(--border);
        }

        .highlight-box {
            background: #e8f4fd;
            border-left: 4px solid var(--primary);
            padding: 1.25rem;
            border-radius: 0 var(--radius) var(--radius) 0;
            margin: 1rem 0;
        }

        .highlight-box p {
            margin-bottom: 0.5rem;
        }

        .highlight-box p:last-child {
            margin-bottom: 0;
        }

        .rule-note {
            background: #fff8e1;
            padding: 1rem;
            border-radius: var(--radius);
            margin: 1rem 0;
            font-size: 0.95rem;
            border-left: 4px solid var(--warning);
        }

        .penalty-box {
            background: #ffebee;
            padding: 1rem;
            border-radius: var(--radius);
            margin: 1rem 0;
            border-left: 4px solid var(--accent);
        }

        .penalty-title {
            color: var(--accent);
            font-weight: 600;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* Footer Note */
        .footer-note {
            background: var(--light);
            padding: 2rem;
            border-radius: var(--radius);
            margin-top: 3rem;
            text-align: center;
            border: 2px dashed var(--gray);
        }

        .footer-note h3 {
            color: var(--accent);
            margin-bottom: 1rem;
        }

        .footer-note p {
            color: var(--dark);
            font-weight: 500;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .rules-container {
                grid-template-columns: 1fr;
            }
            
            .rules-nav {
                position: static;
                margin-bottom: 1rem;
            }
            
            .school-name {
                font-size: 2rem;
            }
            
            .page-title {
                font-size: 1.75rem;
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 1rem;
            }
            
            .header {
                padding: 1.5rem 0;
            }
            
            .school-name {
                font-size: 1.75rem;
            }
            
            .rules-content {
                padding: 1.5rem;
            }
            
            .rule-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
        }

        /* Print Styles */
        @media print {
            .header {
                background: white !important;
                color: black !important;
                padding: 1rem 0 !important;
            }
            
            .rules-nav {
                display: none;
            }
            
            .rules-container {
                grid-template-columns: 1fr;
            }
            
            body {
                background: white !important;
            }
            
            .footer-note {
                border: 1px solid black;
            }
        }

        /* Icons */
        .icon {
            font-size: 1.2em;
            vertical-align: middle;
        }
  