/* RozgarFactory — Study Material pages */
.study-head,.study-notice,.study-tools,.study-filters,.study-grid,.study-empty{max-width:1160px;margin-left:auto;margin-right:auto}
.study-head{padding-bottom:6px}
.study-head .eyebrow{color:var(--teal)}
.study-notice{margin:6px auto 18px;padding:14px 18px;border:1px solid var(--line);border-left:4px solid var(--teal);border-radius:12px;background:var(--white);color:var(--ink);font-size:15px;line-height:1.55;width:calc(100% - 48px)}
.study-notice a{color:var(--blue);font-weight:800}
.study-tools{display:flex;gap:10px;padding:0 24px;margin-bottom:14px}
.study-tools input[type=search]{flex:1;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--white);font:inherit;color:var(--ink)}
.study-tools input[type=search]:focus{outline:2px solid var(--teal);outline-offset:1px;border-color:transparent}
.study-filters{display:flex;flex-wrap:wrap;gap:8px;padding:0 24px;margin-bottom:6px}
.study-filters .chip{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border:1px solid var(--line);border-radius:30px;background:var(--white);color:var(--ink);font-size:14px;font-weight:700;text-decoration:none}
.study-filters .chip span{font-size:12px;color:var(--muted);font-weight:800}
.study-filters .chip:hover{border-color:var(--teal)}
.study-filters .chip.active{background:var(--navy);border-color:var(--navy);color:#fff}
.study-filters .chip.active span{color:#9fe5df}
.study-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px;padding:18px 24px 40px}
.study-card{display:flex;flex-direction:column;gap:8px;padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--white);color:var(--ink);text-decoration:none;transition:border-color .15s,box-shadow .15s,transform .15s}
.study-card:hover{border-color:var(--teal);box-shadow:var(--shadow);transform:translateY(-2px)}
.study-card h3{margin:4px 0 0;font-size:19px;line-height:1.3}
.study-card p{margin:0;color:var(--muted);font-size:15px;line-height:1.55;flex:1}
.study-card b{color:var(--blue);font-size:14px;margin-top:6px}
.study-tags{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.study-cat{font-size:12px;font-weight:800;letter-spacing:.4px;color:var(--muted);text-transform:uppercase}
.pill.premium{background:#fdf0d8;color:#8a5a00}
.study-empty{margin:20px auto 40px;padding:30px;text-align:center;border:1px dashed var(--line);border-radius:14px;width:calc(100% - 48px)}
.study-empty a{color:var(--blue);font-weight:700}

/* Reader */
.study-reader{max-width:820px;padding:24px 24px 48px}
.study-crumbs{font-size:14px;color:var(--muted);margin-bottom:14px}
.study-crumbs a{color:var(--blue);text-decoration:none;font-weight:700}
.study-crumbs span{margin:0 4px}
.study-reader h1{font-size:clamp(28px,4vw,38px);line-height:1.2;margin:10px 0 8px;color:var(--ink)}
.study-lead{font-size:18px;line-height:1.6;color:var(--muted);margin:0 0 22px}
.note-body{font-size:17px;line-height:1.75;color:var(--ink)}
.note-body h2{font-size:23px;margin:32px 0 10px;padding-top:6px;border-top:1px solid var(--line)}
.note-body h2:first-child{border-top:0;margin-top:0}
.note-body h3{font-size:19px;margin:22px 0 6px}
.note-body p{margin:0 0 14px}
.note-body ul,.note-body ol{margin:0 0 16px;padding-left:22px}
.note-body li{margin-bottom:6px}
.note-body table{width:100%;border-collapse:collapse;margin:8px 0 20px;font-size:15px;display:block;overflow-x:auto}
.note-body th,.note-body td{padding:10px 12px;border:1px solid var(--line);text-align:left;vertical-align:top}
.note-body th{background:var(--mint);color:var(--navy);font-weight:800}
.note-body .keypoints{margin:18px 0 22px;padding:16px 18px;border-radius:12px;background:var(--mint);border:1px solid #bfe9e4}
.note-body .keypoints h3{margin-top:0;color:var(--navy)}
.note-body .keypoints ul{margin-bottom:0}
.note-body .examtip{margin:18px 0;padding:14px 16px;border-left:4px solid #e0a526;background:#fff8e8;border-radius:0 10px 10px 0}
.note-body .note-meta{margin-top:30px;padding-top:14px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}
.note-preview{position:relative;max-height:420px;overflow:hidden}
.note-preview::after{content:"";position:absolute;left:0;right:0;bottom:0;height:140px;background:linear-gradient(rgba(245,248,248,0),var(--bg))}
.study-gate{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px;margin:10px 0 28px;padding:24px;border-radius:16px;background:var(--navy);color:#fff}
.study-gate h2{margin:6px 0 6px;font-size:22px;color:#fff}
.study-gate p{margin:0;color:#c7d6e2;max-width:460px;line-height:1.55}
.study-gate .actions{display:flex;flex-wrap:wrap;gap:10px}
.study-gate .btn.ghost{border-color:#7fa3bb;color:#fff!important}
.study-related{margin-top:30px;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:var(--white)}
.study-related h3{margin:0 0 8px;font-size:16px}
.study-related ul{margin:0;padding-left:18px}
.study-related li{margin:6px 0}
.study-related a{color:var(--blue);font-weight:700;text-decoration:none}
@media (max-width:640px){
.study-tools,.study-filters,.study-grid{padding-left:16px;padding-right:16px}
.study-notice,.study-empty{width:calc(100% - 32px)}
.study-tools .btn{padding:12px 14px}
.study-reader{padding:18px 16px 40px}
.note-body{font-size:16px}
.study-gate{padding:20px}
}
.pill.public{background:#e3f1fb;color:#135f8f}
.pill.members{background:#ddf5f2;color:#087773}
.protected-note .note-body{-webkit-user-select:none;user-select:none}
@media print{.protected-note .note-body{display:none}.protected-note::after{content:"This note is available only on RozgarFactory for registered bankers."}}

main nav.study-filters{flex-direction:row!important;align-items:center;position:static!important;background:none!important;box-shadow:none!important}
main nav.study-filters .chip{display:inline-flex!important;width:auto!important}

.note-body .qa-item{padding:14px 0;border-bottom:1px solid var(--line)}
.note-body .qa-item p{margin:0 0 8px}
.note-body .qa-item details summary{cursor:pointer;color:var(--blue);font-weight:800;font-size:15px}
.note-body .qa-item details[open] summary{margin-bottom:6px}
.note-body .qa-item details p{margin:0;padding:10px 14px;background:var(--mint);border-radius:10px}

/* rf-test-ui */
.login-gate{max-width:640px;margin:0 auto 32px;text-align:center;padding:28px}
.gate-actions,.result-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:18px 0}
.test-best{font-size:14px;color:#0f766e;margin:4px 0 10px}
.answer-review{max-width:900px;margin:24px auto 40px}
.answer-review h2{margin-bottom:14px}
.review-item{border:1px solid #e2e8f0;border-left:5px solid #94a3b8;border-radius:10px;padding:14px 16px;margin:0 0 12px;background:#fff}
.review-item.right{border-left-color:#16a34a}
.review-item.wrong{border-left-color:#dc2626}
.review-item ul{list-style:none;padding:0;margin:8px 0}
.review-item li{padding:6px 10px;border-radius:6px;margin:3px 0}
.review-item li.correct{background:#dcfce7;font-weight:600}
.review-item li.chosen-wrong{background:#fee2e2}
.review-status{font-weight:700;margin:6px 0 2px}
.review-item.right .review-status{color:#16a34a}
.review-item.wrong .review-status{color:#dc2626}
.review-item.skipped .review-status{color:#64748b}
.review-exp{font-size:14px;color:#334155;margin:4px 0 0}
/* rf-qa-table */
.qa-wrap{overflow-x:auto;margin:14px 0 22px;border:1px solid #e3e7ee;border-radius:10px;background:#fff}
.qa-table,.study-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.5}
.qa-table th,.study-table th{background:#f3f6fa;color:#334;text-align:left;font-weight:600;padding:9px 12px;border-bottom:1px solid #e3e7ee;position:sticky;top:0}
.qa-table td,.study-table td{padding:9px 12px;border-bottom:1px solid #eef1f5;vertical-align:top}
.qa-table tr:last-child td,.study-table tr:last-child td{border-bottom:0}
.qa-table tbody tr:nth-child(even),.study-table tbody tr:nth-child(even){background:#fafbfd}
.qa-n{width:42px;color:#889;text-align:center!important}
.qa-q{color:#1d2433}
.qa-blank{color:#99a;letter-spacing:1px}
.qa-a{width:34%;background:#effaf3;border-left:3px solid #1f9d55}
.qa-table th.qa-a{background:#e2f5ea;color:#17673a}
.qa-a b{display:block;color:#137a3f;font-weight:700}
.qa-a small{display:block;color:#5d6b7a;font-size:12.5px;margin-top:2px}
.study-group{max-width:1160px;margin:18px auto 8px;padding:0 24px;box-sizing:border-box}
.study-group h2{font-size:18px;margin:0 0 6px;color:#1d2433}
.study-group h2 span{font-size:12px;background:#eef1f5;color:#556;border-radius:20px;padding:2px 8px;vertical-align:middle}
.study-table .st-title a{color:#1d2433;text-decoration:none;font-weight:600}
.study-table .st-title a:hover{text-decoration:underline}
.st-acc{width:170px}.st-go{width:90px;text-align:right}
.btn.small{padding:5px 12px;font-size:13px;min-height:0}
@media(max-width:600px){
.qa-table thead{display:none}
.qa-table tr{display:block;padding:8px 10px;border-bottom:1px solid #eef1f5}
.qa-table td{display:block;border:0;padding:2px 0}
.qa-table td.qa-n{display:inline;width:auto;text-align:left!important;font-weight:600;color:#556}
.qa-table td.qa-n:after{content:". "}
.qa-table td.qa-q{display:inline}
.qa-a{width:auto;margin-top:6px;padding:6px 8px!important;border-radius:6px}
.st-acc{display:none}.st-go{width:70px}
}
@media(max-width:600px){.study-group{padding:0 14px}}.qa-opts{display:block;color:#667;font-size:13px;margin-top:4px}