  .exam-page,
        .exam-page * {
            box-sizing: border-box;
        }

        .exam-page {
            --exam-primary: #0b4aa8;
            --exam-primary-dark: #08397f;
            --exam-accent: #2563eb;
            --exam-text: #0f172a;
            --exam-muted: #64748b;
            --exam-border: #dbe7f5;
            --exam-success: #16a34a;
            --exam-shadow: 0 18px 45px rgba(11, 74, 168, 0.10);
            --exam-shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.06);
            font-family: 'Inter', sans-serif;
            background: #f2f2f2;
            color: var(--exam-text);
            min-height: 100vh;
            padding: 24px 14px;
        }

        .exam-shell {
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
        }

        .exam-hero {
            background: linear-gradient(135deg, #003366 0%, #003366 45%, #003366 100%);
            color: #fff;
            border-radius: 32px;
            padding: 38px 34px;
            position: relative;
            overflow: hidden;
            box-shadow: var(--exam-shadow);
            margin-bottom: 24px;
        }

        .exam-hero-content {
            position: relative;
            z-index: 2;
            display: flex;
            justify-content: space-between;
            gap: 20px;
            align-items: flex-start;
            flex-wrap: wrap;
        }

        .exam-hero-left h1 {
            font-size: 38px;
            line-height: 1.1;
            font-weight: 800;
            margin: 0 0 12px;
            color: #fff;
        }

        .exam-hero-left p {
            font-size: 15px;
            line-height: 1.8;
            margin: 0;
            color: rgba(255, 255, 255, 0.88);
        }

        .exam-hero-stat {
            min-width: 220px;
            background: rgba(255, 255, 255, 0.13);
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 20px;
            padding: 16px 18px;
        }

        .exam-hero-stat span {
            display: block;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: rgba(255, 255, 255, 0.74);
            margin-bottom: 8px;
        }

        .exam-hero-stat strong {
            display: block;
            font-size: 24px;
            font-weight: 800;
            color: #fff;
        }

        .exam-main-card {
            background: rgba(255, 255, 255, 0.92);
            border: 1px solid rgba(255, 255, 255, 0.9);
            border-radius: 30px;
            padding: 26px;
            box-shadow: var(--exam-shadow-soft);
        }

        .exam-topbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 18px;
            flex-wrap: wrap;
            margin-bottom: 22px;
        }

        .exam-topbar-text h2 {
            font-size: 25px;
            font-weight: 800;
            margin: 0 0 6px;
        }

        .exam-topbar-text p {
            font-size: 14px;
            color: var(--exam-muted);
            line-height: 1.7;
            margin: 0;
        }

        .exam-filter-form {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            background: #f8fbff;
            border: 1px solid var(--exam-border);
            padding: 12px;
            border-radius: 20px;
        }

        .exam-select-wrap {
            position: relative;
            min-width: 220px;
            flex: 1;
        }

        .exam-select-wrap select {
            width: 100%;
            height: 54px;
            border: 1px solid var(--exam-border);
            border-radius: 16px;
            background: #fff;
            padding: 0 44px 0 16px;
            font-size: 14px;
            font-weight: 600;
            color: var(--exam-text);
            appearance: none;
            outline: none;
        }

        .exam-select-wrap::after {
            content: "▼";
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 11px;
            color: var(--exam-muted);
            pointer-events: none;
        }

        .exam-filter-form button,
        .exam-filter-form a {
            height: 54px;
            border: none;
            border-radius: 16px;
            font-size: 14px;
            font-weight: 700;
            padding: 0 22px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }

        .exam-filter-form button {
            background: linear-gradient(135deg, var(--exam-primary-dark) 0%, var(--exam-accent) 100%);
            color: #fff;
            cursor: pointer;
        }

        .exam-filter-form a {
            background: #eaf3ff;
            color: #0b4aa8;
        }

        .exam-meta-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 18px;
        }

        .exam-badge-live {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            border-radius: 999px;
            background: #ecfdf3;
            color: #15803d;
            font-size: 13px;
            font-weight: 700;
        }

        .exam-badge-live::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--exam-success);
        }

        .exam-meta-note {
            color: var(--exam-muted);
            font-size: 13px;
            font-weight: 500;
        }

        .exam-table-view {
            display: block;
            overflow: hidden;
            border-radius: 22px;
            border: 1px solid #e4edf7;
            background: #fff;
        }

        .exam-table-wrap {
            overflow-x: auto;
            width: 100%;
        }

        .exam-table {
            width: 100%;
            min-width: 1150px;
            border-collapse: separate;
            border-spacing: 0;
        }

        .exam-table thead th {
            background: linear-gradient(135deg, #082f75 0%, #0b4aa8 100%);
            color: #fff;
            text-align: left;
            padding: 18px 16px;
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .exam-table tbody td {
            padding: 16px;
            border-bottom: 1px solid #edf2f8;
            font-size: 14px;
        }

        .exam-table tbody tr:nth-child(even) {
            background: #fbfdff;
        }

        .exam-table tbody tr:hover {
            background: #f4f8ff;
        }

        .exam-class-pill,
        .exam-type-pill,
        .exam-date-pill,
        .exam-time-pill {
            display: inline-block;
            padding: 8px 12px;
            font-size: 13px;
            font-weight: 700;
            white-space: nowrap;
        }

        .exam-class-pill {
            border-radius: 999px;
            background: #eaf3ff;
            color: #0b4aa8;
        }

        .exam-type-pill {
            border-radius: 999px;
            background: #fff7ed;
            color: #c2410c;
        }

        .exam-date-pill {
            border-radius: 12px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
        }

        .exam-time-pill {
            border-radius: 12px;
            background: #eff6ff;
            color: #1d4ed8;
        }

        .exam-subject-name {
            font-weight: 700;
            color: #111827;
        }

        .exam-mobile-cards {
            display: none;
            gap: 16px;
            flex-direction: column;
        }

        .exam-time-card {
            background: #fff;
            border: 1px solid #e8eef7;
            border-radius: 22px;
            padding: 18px;
            box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
            width: 100%;
        }

        .exam-time-card-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 14px;
            flex-wrap: wrap;
        }

        .exam-time-card-top h3 {
            font-size: 17px;
            font-weight: 800;
            line-height: 1.4;
            margin: 0;
        }

        .exam-time-card-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .exam-info-box {
            background: #f8fbff;
            border: 1px solid #edf3fb;
            border-radius: 16px;
            padding: 12px;
        }

        .exam-info-box span {
            display: block;
            font-size: 11px;
            text-transform: uppercase;
            color: var(--exam-muted);
            margin-bottom: 6px;
            font-weight: 700;
        }

        .exam-info-box strong {
            display: block;
            font-size: 14px;
            color: var(--exam-text);
            line-height: 1.5;
            word-break: break-word;
        }

        .exam-no-data {
            background: #fff;
            border: 1px dashed #cfdceb;
            border-radius: 24px;
            padding: 50px 20px;
            text-align: center;
        }

        .exam-no-data h3 {
            font-size: 24px;
            margin: 0 0 8px;
        }

        .exam-no-data p {
            color: var(--exam-muted);
            font-size: 14px;
            line-height: 1.8;
            max-width: 520px;
            margin: 0 auto;
        }

        .exam-footer-note {
            margin-top: 18px;
            text-align: center;
            color: var(--exam-muted);
            font-size: 13px;
        }

        @media (max-width: 768px) {
            .exam-page {
                padding: 12px 0 24px;
            }

            .exam-shell {
                max-width: 100%;
                padding: 0;
            }

            .exam-hero {
                margin: 0 10px 18px;
                padding: 22px 16px;
                border-radius: 20px;
            }

            .exam-hero-left h1 {
                font-size: 24px;
            }

            .exam-hero-left p {
                font-size: 13px;
                line-height: 1.7;
            }

            .exam-hero-stat {
                width: 100%;
                min-width: 100%;
                margin-top: 14px;
            }

            .exam-main-card {
                padding: 0;
                border-radius: 0;
                background: transparent;
                border: none;
                box-shadow: none;
            }

            .exam-topbar {
                display: block;
                margin-bottom: 16px;
                padding: 0 10px;
            }

            .exam-topbar-text {
                background: #fff;
                border-radius: 20px 20px 0 0;
                padding: 18px 16px 8px;
                border: 1px solid #e8eef7;
                border-bottom: none;
            }

            .exam-topbar-text h2 {
                font-size: 20px;
                margin-bottom: 4px;
            }

            .exam-topbar-text p {
                font-size: 13px;
            }

            .exam-filter-form {
                display: block;
                background: #fff;
                border: 1px solid #e8eef7;
                border-top: none;
                border-radius: 0 0 20px 20px;
                padding: 14px 16px 16px;
                width: 100%;
            }

            .exam-select-wrap {
                min-width: 100%;
                margin-bottom: 10px;
            }

            .exam-select-wrap:last-of-type {
                margin-bottom: 0;
            }

            .exam-filter-form button,
            .exam-filter-form a {
                width: 100%;
                margin-top: 10px;
            }

            .exam-meta-row {
                padding: 0 10px;
                margin-bottom: 14px;
            }

            .exam-badge-live {
                font-size: 12px;
                padding: 9px 12px;
            }

            .exam-meta-note {
                font-size: 12px;
            }

            .exam-table-view {
                display: none;
            }

            .exam-mobile-cards {
                display: flex;
                width: 100%;
                padding: 0 10px;
                gap: 14px;
            }

            .exam-time-card {
                width: 100%;
                border-radius: 18px;
                padding: 16px;
            }

            .exam-time-card-top h3 {
                font-size: 16px;
            }

            .exam-time-card-grid {
                grid-template-columns: 1fr;
            }

            .exam-info-box {
                border-radius: 14px;
                padding: 11px 12px;
            }

            .exam-footer-note {
                padding: 0 12px;
                font-size: 12px;
            }

            .exam-no-data {
                margin: 0 10px;
                border-radius: 18px;
                padding: 36px 18px;
            }

            .exam-no-data h3 {
                font-size: 22px;
            }

            .exam-no-data p {
                font-size: 13px;
            }
        }