/* Shared white architectural theme for NIMCET pages. */
:root {
  color-scheme: light;
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-dark: #0f172a;
  --text-light: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --primary-color: #4f46e5;
  --accent-color: #059669;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; background: #f8fafc !important; max-width: 100%; overflow-x: clip; }
html body, html body.bg-dark, html body.nimcet-home { background-color: #fff !important; background-image: linear-gradient(to right, rgba(15,23,42,.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(15,23,42,.04) 1px, transparent 1px) !important; background-size: 32px 32px !important; color: #0f172a !important; overflow-x: clip; }
html body::before, html body::after { display:none !important; content:none !important; background-image:none !important; box-shadow:none !important; }
.hero-glow, .ai-glow, .bg-glow { display:none !important; filter:none !important; }
html body.nimcet-home::before, html body.nimcet-home::after { display:none !important; content:none !important; }
img, video, canvas, iframe { max-width: 100%; }
.ui-icon { width: 1em; height: 1em; display: inline-block; flex: 0 0 auto; vertical-align: -.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

header, nav, .navbar, .topbar, footer, .footer {
  background-color: rgba(255, 255, 255, .85) !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05) !important;
  backdrop-filter: blur(12px);
}
.nav-links a, .navbar a, .footer a { color: #475569 !important; }
.nav-links a.active, .navbar a.active { background: #eef2ff !important; color: #3730a3 !important; border-color: #c7d2fe !important; }
.navbar .nav-logo span { background: none !important; color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; }

.card, .glass-card, .hero, .hero-card, .practice-box, .question-card, .course-card, .topic-card,
.panel, .result-card, .score-card, [class*="-card"] {
  background: rgba(255,255,255,.96) !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .055) !important;
  backdrop-filter: none !important;
}
h1, h2, h3, h4, h5, .hero-title, .card-title { color: #0f172a !important; }
p, li, label, .subtitle, .description, .muted { color: #475569; }
input, select, textarea { background: #ffffff !important; color: #0f172a !important; border-color: #cbd5e1 !important; }
button, .btn:not(.btn-primary):not(.btn-success):not(.btn-danger), .pill-btn:not(.active), .tab-btn:not(.active) {
  background: #ffffff !important; color: #334155 !important; border-color: #cbd5e1 !important; box-shadow: none !important;
}
button:hover, .btn:hover, .pill-btn:hover, .tab-btn:hover { background: #f8fafc !important; border-color: #94a3b8 !important; }
button, .btn, a, .card, .glass-card, .hero, .question-card, .course-card, .topic-card { transition: transform .18s cubic-bezier(.16,1,.3,1), opacity .18s cubic-bezier(.16,1,.3,1); }
button:hover:not(:disabled), .btn:hover, .course-card:hover, .topic-card:hover { transform: translateY(-1px); }
button.active, .btn.active, .pill-btn.active, .tab-btn.active, .subject-tab.active, .filter-tab.active {
  background: #ecfdf5 !important; color: #047857 !important; border-color: #6ee7b7 !important;
}
.btn-primary, .primary-btn, .start-btn, .submit-btn, .load-more-btn, .pyq-btn-reset,
.pyq-btn-fapply, .pyq-float-btn, .pyq-year-card-btn, .btn-pyq-retry {
  background: #2563eb !important; color: #ffffff !important; border-color: #2563eb !important; box-shadow: none !important;
}
.btn-primary:hover, .primary-btn:hover, .start-btn:hover, .submit-btn:hover, .load-more-btn:hover,
.pyq-btn-reset:hover, .pyq-btn-fapply:hover, .pyq-float-btn:hover, .pyq-year-card-btn:hover, .btn-pyq-retry:hover {
  background: #047857 !important; border-color: #047857 !important;
}
.correct, .success, .option.correct, .answer-correct { background: #f0fdf4 !important; color: #166534 !important; border-color: #86efac !important; }
.wrong, .error, .option.incorrect, .answer-wrong { background: #fff1f2 !important; color: #be123c !important; border-color: #fda4af !important; }
body[style*="#0b0d19"] > div { background: #ffffff !important; color: #0f172a !important; border: 1px solid #e2e8f0 !important; box-shadow: 0 8px 24px rgba(15, 23, 42, .06) !important; }
body[style*="#0b0d19"] a { color: #4f46e5 !important; }

/* PYQ cards, controls and feedback use a restrained slate/emerald palette. */
.pyq-portal-wrap, .pyq-grid-layout, #view-solver, #questions-container { min-width: 0; max-width: 100%; color: #0f172a !important; }
.pyq-hero, .pyq-card, .pyq-active-bar, .pyq-search-wrap, .pyq-stat-card, .pyq-year-card,
.pyq-filter-modal, .pyq-sheet-drawer, .pyq-modal-card, .pyq-error-box, .pyq-empty-state {
  background: #ffffff !important; color: #0f172a !important; border-color: #e2e8f0 !important;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .055) !important; backdrop-filter: none !important;
}
.pyq-card-head { border-color: #e2e8f0 !important; }
.pyq-question-text, .pyq-question, .pyq-solution, .pyq-explanation, .pyq-opt-val,
.pyq-stat-header, .pyq-active-year-title { color: #0f172a !important; }
.pyq-question-meta, .pyq-hero-desc, .pyq-stat-label, .pyq-accuracy-sub { color: #475569 !important; }
.pyq-qnum { background: #059669 !important; color: #ffffff !important; }
.pyq-badge-year { background: #f1f5f9 !important; color: #334155 !important; border-color: #cbd5e1 !important; }
.pyq-badge-subject { background: #eef2ff !important; color: #3730a3 !important; border-color: #c7d2fe !important; }
.pyq-badge-chapter { background: #ecfdf5 !important; color: #047857 !important; border-color: #a7f3d0 !important; }
.pyq-badge-topic { background: #f8fafc !important; color: #475569 !important; border-color: #cbd5e1 !important; }
.pyq-sub-pill[data-subject="Mathematics"].active { background:#ecfdf5 !important; color:#047857 !important; border-color:#6ee7b7 !important; }
.pyq-sub-pill[data-subject="Reasoning"].active { background:#f5f3ff !important; color:#6d28d9 !important; border-color:#c4b5fd !important; }
.pyq-sub-pill[data-subject="Computer"].active { background:#fffbeb !important; color:#b45309 !important; border-color:#fcd34d !important; }
.pyq-sub-pill[data-subject="English"].active { background:#ecfeff !important; color:#0e7490 !important; border-color:#67e8f9 !important; }
.pyq-opt-btn, .pyq-action-tab, .pyq-btn-back, .pyq-btn-filter, .pyq-corner-btn,
.pyq-sub-pill:not(.active), .solver-lang-btn:not(.active) {
  background: #ffffff !important; color: #334155 !important; border-color: #cbd5e1 !important; box-shadow: none !important;
}
.pyq-opt-btn:hover:not(:disabled), .pyq-action-tab:hover, .pyq-btn-filter:hover { background: #f8fafc !important; color: #0f172a !important; }
.pyq-action-tab.active, .pyq-sub-pill.active, .pyq-year-jump-btn.active, .pyq-m-tab.active,
.solver-lang-btn.active { background: #ecfdf5 !important; color: #047857 !important; border-color: #6ee7b7 !important; box-shadow: none !important; }
.pyq-year-card::before { display: none !important; }
.pyq-year-card:hover { border-color: #a7f3d0 !important; transform: translateY(-2px); }
.pyq-error-box, .pyq-empty-state { max-width: 100%; overflow-wrap: anywhere; color: #334155 !important; }
.pyq-error-box p, .pyq-empty-state p { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.pyq-filter-active-dot, .pyq-bar-fill { background: #059669 !important; box-shadow: none !important; }
.pyq-mobile-float-bar { background: rgba(255,255,255,.98) !important; border-color: #e2e8f0 !important; box-shadow: 0 4px 18px rgba(15,23,42,.12) !important; backdrop-filter: none !important; }
.pyq-float-stat, .pyq-float-stat strong { color: #334155 !important; }
.pyq-meta-row { padding-right: 82px; }
.pyq-bm-btn.bookmarked .pyq-bookmark-icon path { fill: currentColor; }
.material-symbols-rounded { display:inline-flex; vertical-align:-.16em; font-family:'Material Symbols Rounded'; font-weight:normal; font-style:normal; font-size:1.15em; line-height:1; white-space:nowrap; letter-spacing:normal; text-transform:none; font-feature-settings:'liga'; -webkit-font-feature-settings:'liga'; -webkit-font-smoothing:antialiased; font-variation-settings:'FILL' 0,'wght' 500,'GRAD' 0,'opsz' 20; }
.nimcet-math { color:#059669; } .nimcet-reasoning { color:#7c3aed; } .nimcet-computer { color:#d97706; } .nimcet-english { color:#0891b2; }

/* NIMCET home: remove the inherited night-card and AI-glow treatments. */
html body.nimcet-home .nimcet-course-hero { background:transparent !important; }
html body.nimcet-home .gradient-text { background:none !important; color:#2563eb !important; -webkit-text-fill-color:#2563eb !important; }
html body.nimcet-home .nimcet-exam-card { background:rgba(255,255,255,.88) !important; color:#0f172a !important; border:1px solid rgba(15,23,42,.08) !important; box-shadow:0 12px 32px rgba(15,23,42,.08) !important; backdrop-filter:blur(10px) !important; }
html body.nimcet-home .nimcet-exam-card::before { display:none !important; content:none !important; }
html body.nimcet-home .exam-card-kicker { background:#eef2ff !important; color:#3730a3 !important; border-color:#c7d2fe !important; }
html body.nimcet-home .exam-card-top strong, html body.nimcet-home .exam-stat-grid strong,
html body.nimcet-home .score-map-row strong { color:#0f172a !important; }
html body.nimcet-home .exam-stat-grid div, html body.nimcet-home .score-map-row { background:#f8fafc !important; border-color:#e2e8f0 !important; color:#475569 !important; }
html body.nimcet-home .exam-stat-grid span { color:#64748b !important; }
html body.nimcet-home .score-map-row::before { box-shadow:none !important; }
html body.nimcet-home .score-map-row.maths { --score-color:#059669; }
html body.nimcet-home .score-map-row.reasoning { --score-color:#7c3aed; }
html body.nimcet-home .score-map-row.computer { --score-color:#d97706; }
html body.nimcet-home .score-map-row.english { --score-color:#0891b2; }
html body.nimcet-home .exam-card-link { background:#fff !important; color:#1d4ed8 !important; border-color:#bfdbfe !important; }
html body.nimcet-home .hero-highlight-badge { background:#fff !important; color:#334155 !important; border-color:#e2e8f0 !important; box-shadow:none !important; }
html body.nimcet-home .hero-highlight-badge:nth-child(1) .material-symbols-rounded { color:#059669; }
html body.nimcet-home .hero-highlight-badge:nth-child(2) .material-symbols-rounded { color:#7c3aed; }
html body.nimcet-home .hero-highlight-badge:nth-child(3) .material-symbols-rounded { color:#d97706; }
html body.nimcet-home .hero-btns-group .btn:nth-child(1), html body.nimcet-home .nav-cta { background:#2563eb !important; color:#fff !important; border-color:#2563eb !important; box-shadow:0 5px 14px rgba(37,99,235,.16) !important; }
html body.nimcet-home .hero-btns-group .btn:nth-child(n+2) { background:#fff !important; color:#0f172a !important; border-color:#cbd5e1 !important; box-shadow:none !important; }
html body.nimcet-home .hero-btns-group .btn:hover, html body.nimcet-home .nav-cta:hover { background:#1d4ed8 !important; border-color:#1d4ed8 !important; }
html body.nimcet-home .hero-btns-group .btn:nth-child(n+2):hover { background:#f8fafc !important; color:#0f172a !important; border-color:#94a3b8 !important; }
html body.nimcet-home .quick-link-card, html body.nimcet-home .strategy-item, html body.nimcet-home .score-calculator-card { background:rgba(255,255,255,.88) !important; color:#0f172a !important; border-color:#e2e8f0 !important; box-shadow:0 5px 18px rgba(15,23,42,.055) !important; }
html body.nimcet-home .faq-item h3, html body.nimcet-home .faq-item p { color:#0f172a !important; }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; } }

@media (max-width: 960px) {
  .pyq-portal-wrap { width: 100%; max-width: 100%; overflow-x: clip; }
  .pyq-grid-layout { width: 100%; max-width: 100%; }
}
@media (max-width: 640px) {
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  .syllabus-card h2 { flex-wrap:wrap !important; min-width:0; overflow-wrap:anywhere; }
  .syllabus-card h2 .badge { margin-left:auto; max-width:100%; flex:0 1 auto; }
  .radar-summary-grid { grid-template-columns:minmax(0,1fr) !important; width:100% !important; min-width:0 !important; }
  .radar-card { width:100% !important; max-width:100% !important; min-width:0 !important; }
  [class*="-card"] { box-shadow: 0 3px 12px rgba(15, 23, 42, .04) !important; }
  .pyq-portal-wrap { width: 100% !important; max-width: 100% !important; padding: 14px 12px 96px !important; overflow-x: clip !important; }
  #view-solver, .pyq-active-bar, .pyq-active-left, .pyq-active-right, .pyq-sub-pills,
  .pyq-active-filter-strip, .pyq-grid-layout, #questions-container, .pyq-card { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
  .pyq-active-bar { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px !important; overflow: hidden; }
  .pyq-active-left { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 8px !important; }
  .pyq-active-year-title { display: block; text-align: left !important; font-size: 1rem !important; line-height: 1.25; overflow-wrap: anywhere; }
  .pyq-btn-back { width: max-content !important; max-width: 100%; }
  .pyq-active-right { display: grid !important; grid-template-columns: minmax(0,1fr) !important; gap: 8px !important; }
  .pyq-search-wrap { width: 100% !important; min-width: 0 !important; }
  .pyq-btn-filter { width: 100% !important; justify-content: center !important; }
  .solver-lang-group { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100% !important; }
  .solver-lang-btn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .pyq-sub-pills { display: flex; flex-wrap: wrap !important; overflow: visible !important; gap: 8px; }
  .pyq-sub-pill { flex: 0 0 auto !important; max-width: 100%; min-width: 0; white-space: normal; }
  .pyq-options-grid { grid-template-columns: minmax(0,1fr) !important; padding: 10px 12px 8px; }
  .pyq-card-head { padding: 16px 14px 14px !important; }
  .pyq-meta-row { padding-right: 70px !important; }
  .pyq-card-corner-actions { top: 10px; right: 10px; }
  .pyq-card-actions { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 8px; padding: 10px 12px 12px; }
  .pyq-card-actions .pyq-action-tab { width: 100% !important; min-width: 0 !important; min-height: 36px; padding: 7px 4px !important; justify-content: center; }
  .pyq-active-bar, .pyq-card { border-radius: 16px !important; }
  .pyq-error-box, .pyq-empty-state { padding: 24px 12px !important; }
  .pyq-mobile-float-bar { max-width: calc(100% - 28px) !important; padding: 7px 10px !important; box-sizing: border-box !important; }
  .pyq-float-actions { min-width: 0; }
}
