
:root {
    --primary: #1d4ed8;
    --primary-dark: #1e3a8a;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --border: #e2e8f0;
    --success: #15803d;
    --danger: #b91c1c;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', 'Noto Sans Devanagari', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.hp-container { max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.hp-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.hp-nav-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 12px 18px; gap: 12px; }
.hp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.hp-logo-badge { width: 38px; height: 38px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.hp-brand-title { font-weight: 800; font-size: 17px; line-height: 1.2; }
.hp-brand-sub { font-size: 12px; color: var(--muted); }
.hp-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-tab { border: 1px solid var(--border); background: #fff; color: var(--text); padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; }
.hp-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.hp-tab-cta { border-color: var(--primary); color: var(--primary); }
.hp-tab-cta.active { background: var(--primary); color: #fff; }
.hp-main { padding: 24px 18px 48px; }
.hp-section { display: none; }
.hp-section.active { display: block; }
.hp-hero { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; padding: 28px; border-radius: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.hp-hero h1 { margin: 8px 0; font-size: 26px; }
.hp-hero p { margin: 0; opacity: 0.92; max-width: 620px; }
.hp-pill { display: inline-block; background: rgba(255,255,255,0.18); padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.hp-hero-actions { display: flex; gap: 10px; }
.hp-btn { padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid transparent; }
.hp-btn-primary { background: var(--primary); color: #fff; }
.hp-hero .hp-btn-primary { background: #fff; color: var(--primary-dark); }
.hp-btn-outline { background: transparent; border-color: #cbd5e1; color: inherit; }
.hp-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.hp-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.hp-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.hp-section-head h2 { margin: 0; font-size: 20px; }
.hp-section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.hp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hp-table th, .hp-table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; }
.hp-form-row { margin-bottom: 12px; }
.hp-form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.hp-form-row input, select, textarea { width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: inherit; font-size: 14px; }
.hp-calc-box { background: #eff6ff; border: 1px solid #bfdbfe; padding: 12px; border-radius: 8px; margin-top: 10px; }
.hp-badge-pass { background: #dcfce7; color: var(--success); padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 12px; }
.hp-badge-fail { background: #fee2e2; color: var(--danger); padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 12px; }
.hp-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hp-filters select { width: auto; }
.hp-pyq-list { display: flex; flex-direction: column; gap: 14px; }
.hp-opt-btn { display: block; width: 100%; text-align: left; padding: 10px 14px; margin-top: 8px; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; cursor: pointer; font-size: 14px; }
.hp-opt-btn.correct { background: #dcfce7; border-color: #22c55e; color: #14532d; font-weight: 600; }
.hp-opt-btn.wrong { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; }
.hp-exp-box { margin-top: 10px; padding: 10px 12px; background: #f1f5f9; border-left: 3px solid var(--primary); font-size: 13px; border-radius: 4px; }
.hp-typing-toolbar { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.hp-tool-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.hp-tool-group select { width: auto; padding: 6px 10px; }
.hp-switch-label { display: inline-flex; align-items: center; gap: 6px; background: #f1f5f9; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.hp-stats-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: #0f172a; color: #fff; padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; }
.hp-stat { flex: 1; min-width: 90px; }
.hp-stat span { display: block; font-size: 11px; color: #94a3b8; text-transform: uppercase; }
.hp-stat strong { font-size: 20px; font-family: 'JetBrains Mono', monospace; }
.hp-next-key strong { color: #38bdf8; }
.hp-passage-box { background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 18px; font-size: 19px; line-height: 1.85; max-height: 210px; overflow-y: auto; margin-bottom: 14px; user-select: none; }
.hp-passage-box.hindi-font { font-family: 'Noto Sans Devanagari', sans-serif; font-size: 21px; }
.hp-char-current { background: #fde047; border-bottom: 2px solid #ca8a04; border-radius: 2px; }
.hp-typing-input { font-size: 18px; line-height: 1.7; border: 2px solid var(--primary); }
.hp-result-box { margin-top: 16px; border: 2px solid var(--primary); background: #eff6ff; }
.hp-ad-slot { background: #f1f5f9; border: 1px dashed #cbd5e1; color: #64748b; text-align: center; padding: 12px; border-radius: 8px; font-size: 12px; margin-bottom: 20px; }
.hp-footer { background: #0f172a; color: #cbd5e1; padding: 36px 0 20px; margin-top: 40px; }
.hp-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 24px; }
.hp-footer-heading { color: #fff; font-weight: 700; margin-bottom: 10px; font-size: 15px; }
.hp-footer-links { list-style: none; padding: 0; margin: 0; }
.hp-footer-links li { margin-bottom: 6px; }
.hp-footer-links a { color: #cbd5e1; text-decoration: none; font-size: 14px; }
.hp-footer-links a:hover { color: #fff; text-decoration: underline; }
.hp-footer-desc { font-size: 13px; color: #94a3b8; margin: 0; }
.hp-footer-bottom { border-top: 1px solid #1e293b; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.hp-page-article h1 { margin-top: 0; }
