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

        /* Base Styles */
        :root {
            --primary: #1a56db;
            --primary-dark: #1e429f;
            --secondary: #7e22ce;
            --accent: #059669;
            --light: #f8fafc;
            --gray: #64748b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
            --radius: 0.5rem;
        }

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

        body {
            background: linear-gradient(135deg, #f0f9ff 0%, #fef7ff 100%);
            min-height: 100vh;
            color: #1e293b;
        }

        /* Navigation */
        .nav-container {
            background: white;
            box-shadow: var(--shadow);
            padding: 1rem 2rem;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .nav-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 50%;
            display: grid;
            place-items: center;
            color: white;
            font-weight: bold;
        }

        .logo-text {
            font-size: 1.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .quick-links {
            display: flex;
            gap: 1.5rem;
        }

        .quick-link {
            text-decoration: none;
            color: var(--gray);
            font-weight: 500;
            padding: 0.5rem 0;
            position: relative;
            transition: color 0.2s;
        }

        .quick-link:hover {
            color: var(--primary);
        }

        .quick-link.active {
            color: var(--primary);
        }

        .quick-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--primary);
            border-radius: 3px;
        }

        /* Main Content */
        .container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 2rem;
        }

        .page-header {
            background: white;
            border-radius: var(--radius);
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow);
        }

        .page-title {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .page-icon {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 50%;
            display: grid;
            place-items: center;
            color: white;
            font-size: 1.5rem;
        }

        .page-title h1 {
            font-size: 2rem;
            color: #1e293b;
        }

        .page-subtitle {
            color: var(--gray);
            font-size: 1.125rem;
            line-height: 1.6;
        }

        /* Page Specific Styles */
        .content-card {
            background: white;
            border-radius: var(--radius);
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow);
        }

        /* Term Dates Specific */
        .year-group {
            margin-bottom: 2rem;
        }

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

        .term-grid {
            display: grid;
            gap: 1rem;
        }

        .term-card {
            background: var(--light);
            border-left: 4px solid var(--primary);
            padding: 1.25rem;
            border-radius: var(--radius);
        }

        .term-name {
            font-weight: 600;
            color: var(--primary-dark);
            margin-bottom: 0.5rem;
        }

        .term-date {
            color: var(--gray);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }

        .term-event {
            display: flex;
            justify-content: space-between;
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--border);
        }

        .term-event:last-child {
            border-bottom: none;
        }

        /* School Policies Specific */
        .policy-category {
            margin-bottom: 2rem;
        }

        .category-title {
            font-size: 1.25rem;
            color: var(--secondary);
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--border);
        }

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

        .policy-item {
            padding: 1rem;
            border-radius: var(--radius);
            margin-bottom: 0.75rem;
            background: var(--light);
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: transform 0.2s;
        }

        .policy-item:hover {
            transform: translateX(4px);
            background: #f1f5f9;
        }

        .policy-info h3 {
            color: #1e293b;
            margin-bottom: 0.25rem;
        }

        .policy-info p {
            color: var(--gray);
            font-size: 0.875rem;
        }

        .policy-actions {
            display: flex;
            gap: 1rem;
        }

        .btn {
            padding: 0.5rem 1.25rem;
            border-radius: var(--radius);
            border: none;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-view {
            background: var(--primary);
            color: white;
        }

        .btn-view:hover {
            background: var(--primary-dark);
        }

        .btn-download {
            background: white;
            color: var(--primary);
            border: 2px solid var(--primary);
        }

        .btn-download:hover {
            background: var(--light);
        }

        /* Exam Results Specific */
        .results-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .summary-card {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 1.5rem;
            border-radius: var(--radius);
        }

        .summary-value {
            font-size: 2.5rem;
            font-weight: 700;
            margin: 0.5rem 0;
        }

        .summary-label {
            opacity: 0.9;
            font-size: 0.875rem;
        }

        .subject-results {
            margin-top: 2rem;
        }

        .subject-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
        }

        .subject-table th {
            background: var(--light);
            padding: 1rem;
            text-align: left;
            font-weight: 600;
            color: var(--primary-dark);
        }

        .subject-table td {
            padding: 1rem;
            border-bottom: 1px solid var(--border);
        }

        .grade {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 2rem;
            font-weight: 600;
            font-size: 0.875rem;
        }

        .grade-a { background: #dcfce7; color: #166534; }
        .grade-b { background: #f0f9ff; color: #1e40af; }
        .grade-c { background: #fef3c7; color: #92400e; }

        /* Footer */
        .footer {
            background: white;
            border-top: 1px solid var(--border);
            padding: 2rem;
            margin-top: 4rem;
            text-align: center;
            color: var(--gray);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .nav-header {
                flex-direction: column;
                gap: 1rem;
            }

            .quick-links {
                flex-wrap: wrap;
                justify-content: center;
            }

            .container {
                padding: 0 1rem;
            }

            .page-header {
                padding: 1.5rem;
            }

            .page-title {
                flex-direction: column;
                text-align: center;
            }

            .policy-actions {
                flex-direction: column;
                gap: 0.5rem;
            }

            .policy-item {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }

            .subject-table {
                display: block;
                overflow-x: auto;
            }
        }

        /* Tabs for different pages */
        .page-content {
            display: none;
        }

        .page-content.active {
            display: block;
            animation: fadeIn 0.3s ease-in;
        }

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

