.calc-box{background:#eff6ff;border:1px solid #bfdbfe;border-left:5px solid #1e3a8a;border-radius:10px;padding:16px 18px;margin:18px auto;max-width:960px;line-height:1.65;text-align:left}
.calc-meta{font-size:.85rem;color:#475569;margin:8px 0 0}
.calc-glance{width:100%;border-collapse:collapse;margin:10px 0}
.calc-glance th,.calc-glance td{border:1px solid #cbd5e1;padding:8px 10px;text-align:left;vertical-align:top;font-size:.95rem}
.calc-glance th{background:#f1f5f9;width:32%}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
@media (max-width:640px){
            .calc-glance.stack,.calc-glance.stack tbody,.calc-glance.stack tr,.calc-glance.stack td{display:block;width:100%}
            .calc-glance.stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
            .calc-glance.stack tr{border:1px solid #cbd5e1;border-radius:8px;padding:8px 10px;margin:0 0 8px;background:#fff}
            .calc-glance.stack td{border:0;padding:0;font-size:.88rem;line-height:1.45}
            .calc-glance.stack td:first-child{font-weight:600;color:#1e3a8a}
            .calc-glance.stack td:nth-child(2){color:#475569}
            .calc-glance.stack td:nth-child(3){margin-top:2px}
            .calc-glance.stack.stack-pair td:nth-child(1),.calc-glance.stack.stack-pair td:nth-child(2){display:inline;width:auto}
            .calc-glance.stack.stack-pair td:nth-child(2)::before{content:" \00b7 ";color:#94a3b8}
            .calc-glance.stack.stack-pair td:nth-child(3){display:block;margin-top:3px}
        }
.calc-section{max-width:960px;margin:28px auto;padding:0 14px;line-height:1.7;text-align:left}
.calc-section h2{color:#1e3a8a;font-size:1.3rem;margin:0 0 10px}
.calc-section h3{font-size:1.05rem;margin:16px 0 6px}
.calc-section ul{padding-left:22px;margin:8px 0}
.calc-section li{margin:5px 0}
.calc-formula{background:#f8fafc;border:1px dashed #94a3b8;border-radius:8px;padding:8px 12px;margin:8px 0;overflow-x:auto;font-family:"Cambria Math","Times New Roman",serif;font-size:1rem}
.calc-toc{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:10px 0}
.calc-toc a{background:#eff6ff;border:1px solid #bfdbfe;border-radius:20px;padding:4px 12px;color:#1d4ed8;text-decoration:none;font-size:.85rem}
.calc-img{display:block;max-width:100%;height:auto;margin:14px auto;border-radius:10px}
.course-card-wrapper { display: flex; flex-direction: column; min-width: 0; }
.sem-syllabus-link {
      display: block; text-align: center; font-size: 0.8rem;
      margin-top: 8px; padding: 6px 10px; color: #1e3a8a;
      text-decoration: none; border: 1px solid #dbe4f5; border-radius: 8px;
      background: #f5f8ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
.sem-syllabus-link:hover { background: #e8effe; text-decoration: none; }
.page-meta { font-size: 0.88rem; color: #555; margin: 0.2rem 0 1rem; }
.steps-glance { list-style: none; counter-reset: s; margin: 12px 0 8px; padding: 0; }
.steps-glance li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; line-height: 1.5; }
.steps-glance li::before { content: counter(s); flex: 0 0 28px; height: 28px; border-radius: 50%; background: #1565c0; color: #fff; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
h2[id^="step-"] { scroll-margin-top: 90px; }
#mca-semester-1-syllabus .exam-pattern-note,#mca-semester-2-syllabus .exam-pattern-note,#mca-semester-3-syllabus .exam-pattern-note,#mca-semester-4-syllabus .exam-pattern-note{margin-bottom:0.25rem}
#mca-semester-1-syllabus .subject-intro,#mca-semester-2-syllabus .subject-intro,#mca-semester-3-syllabus .subject-intro,#mca-semester-4-syllabus .subject-intro{margin-top:0.15rem;max-width:100%}
/* GLOBAL syllabus format: every syllabus semester section (MCA, M.Com, M.Sc., BCA, B.Sc., MDU ...) gets the same tight margins/padding as MCA */
.subject-section[id$="-syllabus"] .subject-intro-wrapper{margin-top:0.75rem}
.subject-section[id$="-syllabus"] .exam-pattern-note{margin-bottom:0.25rem}
.subject-section[id$="-syllabus"] .subject-intro{margin-top:0.15rem;max-width:100%}
/* Collapsible "at a glance" table (open on PC, collapsed on phone via inline script) */
.glance-details{border:1px solid #bfdbfe;border-radius:10px;background:#fff;overflow:hidden}
.glance-details>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;background:#eff6ff;color:#1e3a8a;font-weight:700;font-size:1.05rem}
.glance-details>summary::-webkit-details-marker{display:none}
.glance-details>summary::after{content:"+";font-size:1.4rem;line-height:1}
.glance-details[open]>summary::after{content:"\2212"}
.glance-details .calc-glance{margin:0;border:0}
@media (max-width:640px){.glance-details .calc-glance.stack{padding:10px 10px 2px}}
@media (min-width:641px){.glance-details .calc-glance th:first-child,.glance-details .calc-glance td:first-child{width:22%;white-space:nowrap}}

/* ── Assignments semester cards: every card same width/height, never grows with content ── */
.course-grid.single-card{grid-template-columns:minmax(0,1fr);max-width:460px;margin-left:auto;margin-right:auto;gap:0}
.course-grid.single-card .card-link{display:block;width:100%;min-width:0}
.course-grid.single-card .course-card{box-sizing:border-box;width:100%;display:flex;flex-direction:column;align-items:center;min-height:210px}
.course-grid.single-card .course-card h3{white-space:normal;margin-bottom:10px}
.course-grid.single-card .course-card p{width:100%;margin-bottom:15px;line-height:1.5;min-height:4.5em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.course-grid.single-card .course-card .action-btn{margin-top:auto;flex:0 0 auto}
.course-grid.single-card .course-card > :not(h3):not(p):not(.action-btn){margin-top:8px}
