
h4 {
    text-decoration: underline;
    font-size: 2em;
}

h5 {
    color: #926f98;
    font-size: 1.5em;
}
  
  /* Custom sizing and padding for MathJax output */
  .equation-display {
    font-size: 1.1em;
    margin: 25px 0;
    padding: 15px;
    color: #2c3e50;
    background-color: #fdfdfd;
    border-radius: 4px;
    overflow-x: auto; /* Adds horizontal scrolling if the screen is too narrow */
  }

  h-2 {
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-top: 40px;
}

/* 1. THEOREM / PROOF BOX (Classic Academic Style) */
.math-box-theorem {
    background-color: #fafbfc;
    border-left: 4px solid #2980b9;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    width: 400px;
}
.math-box-theorem .box-label {
    font-weight: bold;
    font-size: 1.5em;
    color: #2980b9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

/* 2. CHALKBOARD BOX (Retro/Classroom Style) */
.math-box-chalkboard {
    background-color: #1e272e;
    color: #ffffff;
    border: 3px solid #485460;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6), 0 4px 10px rgba(0,0,0,0.15);
    position: relative;
}
.math-box-chalkboard::before {
    content: "✏️";
    position: absolute;
    top: 10px;
    right: 15px;
    opacity: 0.7;
}
.math-box-chalkboard .box-label {
    color: #ffd32a;
    font-weight: bold;
    display: block;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

/* 3. CYBER / QUANTUM GLOW BOX (Modern Tech Style) */
.math-box-quantum {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}
.math-box-quantum .box-label {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.math-box-quantum p {
    color: #cbd5e1;
}

/* 4. MINIMAL GRAPH PAPER BOX (Clean Blueprint Style) */
.math-box-graph {
    background-color: #ffffff;
    background-image: 
        linear-gradient(to right, rgba(0, 150, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 150, 255, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid #d0e4ff;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}
.math-box-graph .box-label {
    background-color: #e1f0ff;
    color: #0066cc;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}


  