/* Home page "About JobRojgar" + FAQ (Views/Jobs/Index.cshtml, section.hab). Light + dark. */
.hab { --hab-ink: #0f172a; --hab-text: #334155; --hab-muted: #64748b; --hab-line: #e5e9f2; --hab-card: #fff; --hab-soft: #f6f8fc; --hab-brand: #1d4ed8; --hab-navy: #0a2463;
    padding: 34px 0 30px; background: linear-gradient(180deg, #f5f8ff 0%, #fff 60%); color: var(--hab-text); font-family: 'Inter', 'Open Sans', 'Open Sans Fallback', 'Segoe UI', Arial, sans-serif; }
html[data-theme="dark"] .hab { --hab-ink: #f1f5f9; --hab-text: #cbd5e1; --hab-muted: #94a3b8; --hab-line: #1e293b; --hab-card: #0f172a; --hab-soft: #111a2e; --hab-brand: #93c5fd; --hab-navy: #bfdbfe; background: transparent; }
.hab .container { max-width: 1140px; }
.hab h2, .hab h3 { font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; }
.hab a { color: var(--hab-brand); }

/* heading */
.hab-head { max-width: 860px; margin: 0 auto 22px; text-align: center; }
.hab-eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #1d4ed8; background: #dbeafe; }
html[data-theme="dark"] .hab-eyebrow { color: #bfdbfe; background: rgba(59, 130, 246, .18); }
.hab-head h2 { margin: 12px 0 10px; font-size: clamp(1.35rem, 1rem + 1.3vw, 1.9rem); font-weight: 800; line-height: 1.2; color: var(--hab-navy); }
.hab-head h2 span { color: #dc2626; }
html[data-theme="dark"] .hab-head h2 span { color: #f87171; }
.hab-head p { margin: 0; font-size: .98rem; line-height: 1.7; color: var(--hab-text); }

/* cards */
.hab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.hab-card { padding: 20px 22px; border-radius: 18px; background: var(--hab-card); border: 1px solid var(--hab-line); box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 30px -24px rgba(15, 23, 42, .4); min-width: 0; }
.hab-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.06rem; font-weight: 800; color: var(--hab-ink); }
.hab-card h3 i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; font-size: .95rem; color: #1d4ed8; background: #dbeafe; }
html[data-theme="dark"] .hab-card h3 i { color: #93c5fd; background: rgba(59, 130, 246, .16); }
.hab-intro { background: linear-gradient(160deg, #0a2463 0%, #1d4ed8 100%); border: 0; color: rgba(255, 255, 255, .9); }
.hab-intro h3 { color: #fff; }
.hab-intro h3 i { color: #fde047; background: rgba(255, 255, 255, .14); }
html[data-theme="dark"] .hab-intro h3 i { color: #fde047; background: rgba(255, 255, 255, .14); }
.hab-ticks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.hab-ticks li { position: relative; padding-left: 28px; font-size: .9rem; line-height: 1.55; }
.hab-ticks li::before { content: '\f00c'; font-family: FontAwesome; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; color: #0a2463; background: #86efac; }
.hab-ticks b { color: #fff; }
.hab-note { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: .8rem; line-height: 1.5; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .1); }
.hab-note i { margin-right: 5px; color: #fde047; }

.hab-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hab-facts li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 13px; background: var(--hab-soft); border: 1px solid var(--hab-line); }
.hab-facts li > i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: .85rem; color: #fff; background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.hab-facts b { display: block; font-size: .86rem; color: var(--hab-ink); }
.hab-facts span { font-size: .78rem; line-height: 1.4; color: var(--hab-muted); }

.hab-exams { margin-bottom: 16px; }
.hab-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hab-chips a { padding: 6px 14px; border-radius: 999px; font-size: .84rem; font-weight: 700; text-decoration: none !important; color: var(--hab-ink) !important; background: var(--hab-soft); border: 1px solid var(--hab-line); transition: border-color .15s, color .15s, background .15s; }
.hab-chips a:hover { border-color: #1d4ed8; color: #1d4ed8 !important; background: #eff6ff; }
html[data-theme="dark"] .hab-chips a:hover { color: #bfdbfe !important; background: rgba(59, 130, 246, .14); }
.hab-exams p { margin: 0; font-size: .88rem; color: var(--hab-muted); }

.hab-steps { list-style: none; margin: 0; padding: 0; counter-reset: hab; display: grid; gap: 12px; }
.hab-steps li { counter-increment: hab; position: relative; padding-left: 40px; min-height: 28px; font-size: .9rem; line-height: 1.55; }
.hab-steps li::before { content: counter(hab); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .82rem; color: #fff; background: #dc2626; }

.hab-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .85rem; border: 1px solid var(--hab-line); border-radius: 12px; overflow: hidden; }
.hab-table th { padding: 9px 12px; text-align: left; font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #0a2463; }
html[data-theme="dark"] .hab-table th { background: #1e3a8a; }
.hab-table td { padding: 9px 12px; border-top: 1px solid var(--hab-line); color: var(--hab-text); vertical-align: top; }
.hab-table tbody tr:nth-child(even) td { background: var(--hab-soft); }
.hab-table td b { color: var(--hab-ink); white-space: nowrap; }

.hab-ad { margin: 16px 0 0; text-align: center; overflow: hidden; }

/* FAQ accordion */
.hab-faq h3 { margin-bottom: 10px; }
.hab-q { border-top: 1px solid var(--hab-line); }
.hab-q:first-of-type { border-top: 0; }
.hab-q summary { position: relative; display: block; padding: 13px 34px 13px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: .95rem; color: var(--hab-ink); }
.hab-q summary::-webkit-details-marker { display: none; }
.hab-q summary::after { content: '\f067'; font-family: FontAwesome; position: absolute; right: 2px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; color: #1d4ed8; background: #dbeafe; transition: transform .2s; }
html[data-theme="dark"] .hab-q summary::after { color: #93c5fd; background: rgba(59, 130, 246, .16); }
.hab-q[open] summary::after { content: '\f068'; }
.hab-q summary:hover { color: #1d4ed8; }
html[data-theme="dark"] .hab-q summary:hover { color: #bfdbfe; }
.hab-q summary:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; border-radius: 6px; }
.hab-q p { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: .9rem; line-height: 1.65; color: var(--hab-text); background: var(--hab-soft); }

@media (max-width: 767.98px) {
    .hab { padding: 24px 0 20px; }
    .hab-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
    .hab-card { padding: 16px; border-radius: 16px; }
    .hab-head { text-align: left; }
    .hab-head p { font-size: .92rem; }
}
@media (max-width: 420px) { .hab-facts { grid-template-columns: minmax(0, 1fr); } .hab-table { font-size: .8rem; } .hab-table th, .hab-table td { padding: 8px; } }
@media (prefers-reduced-motion: reduce) { .hab * { transition: none !important; } }
