:root {
    --nav-glow-1: #00e5ff; /* bright cyan */
    --nav-glow-2: #7c4dff; /* electric violet */
    --nav-glow-3: rgba(255,255,255,0.95);
}

/* Remove unwanted margin/padding at top */
body, .site-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    background: #f9f9fb;
    color: #333;
    line-height: 1.6;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    margin-bottom: 20px;
    }

footer {
    text-align: center;
    padding: 15px 0;
}

/* ---------- Accessibility helpers ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Base ---------- */
html { box-sizing: border-box; }
*,*::before,*::after { box-sizing: inherit; }

/* ---------- Header / Global Nav ---------- */
header {
    background: linear-gradient(90deg, #0d47a1, #1976d2);
    color: white;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: .5px;
    white-space: nowrap;
}
.logo {
  position: relative;
  color: white;
  text-decoration: none;
  display: inline-block;
}

.logo::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  left: 0;
  bottom: -4px;
  background: linear-gradient(90deg, var(--nav-glow-1), var(--nav-glow-2));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.logo:hover::after {
  width: 100%;
}

/* Remove underline and set header link color to white */
.site-header a {
  text-decoration: none;
  color: #fff;
}

/* ---------- Navigation ---------- */
nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 28px;
    }

    nav ul li a {
        text-decoration: none;
        color: white;
        font-size: 1.05em;
        font-weight: 600;
        position: relative;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    nav ul li a::after {
        content: "";
        position: absolute;
        width: 0;
        height: 3px;
        left: 0;
        bottom: -4px;
        background: linear-gradient(90deg, var(--nav-glow-1), var(--nav-glow-2));
        border-radius: 2px;
        transition: width 0.4s ease;
    }

    nav ul li a:hover {
        color: #fff;
        transform: scale(1.07);
        text-shadow: 0 0 6px var(--nav-glow-3), 0 0 16px var(--nav-glow-1), 0 0 28px var(--nav-glow-2);
        filter: drop-shadow(0 0 4px var(--nav-glow-1));
    }

    nav ul li a:hover::after {
        width: 100%;
    }

    nav ul li a:focus-visible {
        outline: none;
        color: #fff;
        text-shadow: 0 0 6px var(--nav-glow-1), 0 0 16px var(--nav-glow-2);
    }

/* ---------- Layout Container ---------- */
.container {
    padding: 60px 20px 80px;
    max-width: 1280px;
    margin: 0 auto;
}

/* ---------- Glass Card Base (shared) ---------- */
.card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 32px;
    margin-bottom: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 1px solid rgba(255,255,255,0.4);
    position: relative;
    overflow: hidden;
    opacity: 0; /* for entrance */
    transform: translateY(20px) scale(.98);
    animation: fadeUp .8s cubic-bezier(.2,.6,.3,1) forwards;
    animation-delay: .15s;
}

.card::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.card:hover::before { opacity: 1; }

.card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15), 0 0 20px rgba(255,255,255,0.4);
    border: 1px solid rgba(41, 11, 159, 0.6);
}
.card h2 {
    margin-top: 0;
    font-size: 2rem; /* Larger for main heading */
    color: #0d47a1;
    font-family: 'Playfair Display', serif;
}
.card h3 {
    font-size: 1.5rem; /* Slightly smaller for subheading */
}
.card ol {
    font-size: 1.15rem; /* List font size */
    margin: 1em 0 0 1.2em;
    padding: 0;
}
.card ol li {
    font-size: 1.1rem; /* List item font size */
    margin-bottom: 0.5em;
}
.card ol li a {
    font-size: 1.1rem; /* Link font size */
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}
.card ol li a:hover,
.card ol li a:focus-visible {
    color: #1976d2;
    text-shadow: 0 2px 8px rgba(25, 118, 210, 0.18);
    outline: none;
}
/* Remove or adjust the global .card, .card * font-size if needed */
/* Removed empty ruleset for .card, .card * */

/* ...existing code... */
.neu-card {
  background: #e0e0e0;
  border-radius: 18px;
  box-shadow: 8px 8px 24px #bebebe, -8px -8px 24px #ffffff;
  transition: box-shadow 0.2s;
}
/* Hover effect card style */
.hover-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.hover-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(60,60,60,0.18), 0 1.5px 8px rgba(0,0,0,0.08);
  z-index: 1;
}
/* ---------- Subjects Grid ---------- */
.subject-card {
    position: relative;
}

/* Upper Left Label */
.corner-label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 2px 10px 3px;
    font-size: .75rem;
    font-weight: 700;
    border-radius: 999px;
    background: var(--badge-bg);
    color: #000;
    line-height: 1.2;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: .5px;
}
/* ---------- Subjects Grid ---------- */
.subjects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 28px;
    margin-top: 20px;
}
.subject-card {
    --accent1: #ff8a00;
    --accent2: #e52e71;
    --badge-bg: #d35400;
    --badge-text: #fff;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    padding: 56px 25px 52px;
    text-align: center;
    border-radius: 16px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s ease, color 0.35s ease;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(.98);
    animation: fadeUp .7s cubic-bezier(.2,.6,.3,1) forwards;
    animation-delay: var(--delay,0s);
}
.subject-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 0;
    height: 3px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    border-radius: 2px;
    transition: width 0.45s ease;
}
.subject-card .badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 2px 10px 3px;
    font-size: .75rem;
    font-weight: 700;
    border-radius: 999px;
    background: var(--badge-bg);
    color: var(--badge-text);
    line-height: 1.2;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.subject-card .badge.soon {
    background: repeating-linear-gradient(-45deg, var(--badge-bg), var(--badge-bg) 6px, rgba(255,255,255,.35) 6px, rgba(255,255,255,.35) 12px);
    color: #000;
}
.subject-icon {
    display: inline-block;
    margin-bottom: 16px;
    width: 48px;
    height: 48px;
}
.subject-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--accent1);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: stroke 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}
.subject-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 0 22px var(--accent1), 0 0 44px var(--accent2);
    border: 1px solid var(--accent1);
    color: #0d47a1;
}
.subject-card:hover::after { width: 60%; }
.subject-card:hover .subject-icon svg {
    stroke: var(--accent2);
    filter: drop-shadow(0 0 4px var(--accent1)) drop-shadow(0 0 10px var(--accent2));
    transform: scale(1.08);
}
.subject-card:hover .subject-title {
    color: #000;
    text-shadow: 0 0 4px #fff, 0 0 12px var(--accent1), 0 0 24px var(--accent2);
}
.subject-card:focus-visible {
    outline: none;
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 0 0 3px var(--accent2), 0 0 18px var(--accent1);
    border: 1px solid var(--accent2);
}
.subject-card .subject-title {
    display: block;
    font-size: 1.25em;
    font-weight: 600;
    color: #0d47a1;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
    0% {opacity:0;transform:translateY(20px) scale(.98);}
    100%{opacity:1;transform:translateY(0) scale(1);}
}

@media (max-width:600px){
        header {
            flex-direction: column;
            gap: 10px;
            text-align: center;
        }

        
        nav ul { gap: 15px; }
        .subject-card { padding: 48px 20px 44px; }
    }

@keyframes fadeInMenu { 800px) {
    from {opacity:0;transform:translateY(10px) scale(.98);}
    to {opacity:1;transform:translateY(0) scale(1);}   flex-wrap: wrap;
};

/* ---------- Responsive ---------- */
        gap: 10px;
        text-align: center;
    }
    .nav-toggle {
        display: inline-block;: column;
    }
    .primary-nav .menu {
        flex-direction: column;   max-height: 0;
        gap: 0;
        align-items: stretch;
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;100vh; /* big enough */
    }
    .primary-nav.open .menu {primary-nav .menu > li {
        max-height: 100vh; /* big enough */
    }
    .primary-nav .menu > li {
        width: 100%;primary-nav .menu > li > a {
        text-align: left;
    }
    
    .primary-nav .menu > li > a {
    padding: 14px 16px;
    }

    .primary-nav .menu {
        display: block;
    }

    .primary-nav .sub-menu {
        position: static;
        border-radius: 0;
        width: 100%;
        box-shadow: none;
        min-width: 0;
        animation: none;
    }

      <!-- Questions Paper -->
    .question {
      background: #f1f1f1;
      padding: 25px;
      margin-bottom: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .question h3 {
      margin-bottom: 10px;
    }
    .options label {
      display: block;
      margin-bottom: 5px;
    }
    .submit-btn, .reset-btn {
      margin-top: 10px;
      padding: 8px 14px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
    }
    .submit-btn {
      background: #007bff;
      color: white;
    }
    .submit-btn:hover {
      background: #0056b3;
    }
    .reset-btn {
      background: #ffc107;
      color: black;
      margin-left: 10px;
    }
    .reveal {
      display: none;
      margin-top: 10px;
      padding: 10px;
      border-left: 4px solid;
      border-radius: 4px;
    }
    .correct {
      background: #d4edda;
      color: #155724;
      border-color: #28a745;
    }
    .incorrect {
      background: #f8d7da;
      color: #721c24;
      border-color: #dc3545;
    }
    .not-attempted {
      background: #fff3cd;
      color: #856404;
      border-color: #ffc107;
    }
    .explanation {
      margin-top: 5px;
      font-style: italic;
      color: #555;
    }
  
    .reveal {
      display: inline-block;
      width: 45%;
      vertical-align: top;
      float: right;
    }
    .question .options {
      width: 50%;
      float: left;
    }
    .question::after {
      content: "";
      display: block;
      clear: both;
    }
    .score-box {
      margin-top: 30px;
      padding: 15px;
      background: #e7f3fe;
      border-left: 4px solid #2196F3;
      font-weight: bold;
    }
    .global-buttons {
      margin-top: 20px;
    }
    .global-buttons button {
      padding: 10px 20px;
      margin-right: 10px;
      font-size: 16px;
      cursor: pointer;
      border-radius: 5px;
      border: none;
    }
    .submit-all-btn {
      background-color: #28a745;
      color: white;
    }
    .reset-all-btn {
      background-color: #6c757d;
      color: white;
    }
    .save-btn {
      background-color: #007bff;
      color: white;
    }
