body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #0b0c2a;
  }

  /* Header */
  header {
    text-align: center;
    padding: 3rem 1rem 2rem;
    background-color: #0b0c2a;
    color: #f0f0f0;
  }

  header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #f0f0f0;
  }

  .section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-top: 3rem;
    margin-bottom: 1rem;
  }
  .back-button-right {
    display: flex;
    justify-content: flex-end;
    max-width: 900px;
    margin: 0 auto 1rem auto;
    padding-right: 1.5rem; /* matches padding of file-actions */
  }

  .back-button-right a {
    padding: 0.5rem 1.2rem;
    background-color: var(--primary);
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
  }

  .back-button-right a:hover {
    background-color: var(--secondary);
  }
  .grid-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    max-width: 95%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .topic-card {
    background-color: #1f1359;
    color: #f0f0f0;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 430px;
    width: 250px; /* optional, but useful for consistency */
  }

  .topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  }

  .topic-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
  }

  .topic-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--primary);
  }

  .topic-card p {
    font-size: 0.95rem;
    color: #f0f0f0;
    min-height: 60px;
  }

  .topic-card a {
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--primary);
    color: #1f1359;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .topic-card a:hover {
    background-color: var(--secondary);
    color: #1f1359;
  }

  /* Practice Section */
  .practice-section {
    text-align: center;
    margin: 3rem auto;
    padding: 2rem;
    max-width: 800px;
    background-color: #1f1359;
    border-radius: 10px;
    border: 1px solid #100839;
  }

  .practice-section h2 {
    color: var(--primary);
  }

  .practice-section p {
    color: #f0f0f0;
    margin-top: 1rem;
    margin-bottom: 2rem;
  }

  .practice-section a {
    display: inline-block;
    background-color: var(--primary);
    color: #333;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
  }
  .practice-section h4{
    color: var(--primary);
  }

  .practice-section a:hover {
    background-color: var(--secondary);
  }

  /* Footer */
  footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #1f1359;
    color: #f0f0f0;
    margin-top: 4rem;
    font-size: 0.9rem;
  }

  @media(width <= 768px){
    #navbarList{
      background-color: #0d47a1;
    }
    
    .topic-card{
      width: 100%;
    }
  }
    .glowing-spots {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      z-index: 0;
      pointer-events: none;
    }
  
    .glowing-spots span {
      position: absolute;
      display: block;
      width: 30px;
      height: 30px;
      background: radial-gradient(circle, #806aed, transparent 70%);
      border-radius: 50%;
      animation: moveGlow 20s linear infinite;
      opacity: 0.5;
      filter: blur(8px);
    }
  
    @keyframes moveGlow {
      0% {
        transform: translateY(100vh) translateX(0) scale(0.5);
        opacity: 0.2;
      }
  
      50% {
        opacity: 0.8;
      }
  
      100% {
        transform: translateY(-100vh) translateX(50vw) scale(1);
        opacity: 0;
      }
    }
    .cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    margin-left: -20px; /* half width */
    margin-top: -20px;  /* half height */
    border-radius: 50%;
    pointer-events: none;
    background: rgba(134, 110, 237, 0.6);
    box-shadow: 0 0 8px 4px rgba(134, 110, 237, 0.7);
    transition: transform 0.1s ease-out;
    mix-blend-mode: screen;
    z-index: 9999;
    transform: translate3d(0, 0, 0);
  }
