/* MedJob reusable components. Load after the existing site styles.
   Prompt font faces are provided by the existing site font stylesheet. */
.mdj {
    --mdj-primary: #3c6260;
    --mdj-accent: #409f75;
    --mdj-soft: #eff4f2;
    --mdj-soft-hover: #e7f0ed;
    --mdj-border: #dce6e2;
    --mdj-text: #666666;
    --mdj-muted: #888888;
    --mdj-surface: #ffffff;
    --mdj-radius: 3px;
    color: var(--mdj-text);
    font-family: 'promptregular', sans-serif;
    font-size: 1.5rem;
    line-height: 1.5;
}
.heading-divider-center{
    margin: 15px auto;
}
.mdj, .mdj * { box-sizing: border-box; }
.mdj .mdj-tag, .mdj .mdj-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--mdj-primary);
    background: var(--mdj-soft);
    font-family: 'promptmedium', sans-serif;
    font-size: 1.2rem;
    line-height: 1.5;
}
.mdj .mdj-tag { margin-bottom: 14px; }
.mdj .mdj-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    color: var(--mdj-text);
    background: var(--mdj-surface);
    border: 1px solid var(--mdj-border);
    border-radius: var(--mdj-radius);
    text-decoration: none;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.mdj a.mdj-box:hover, .mdj a.mdj-box:focus-visible {
    color: var(--mdj-text);
    border-color: var(--mdj-accent);
    text-decoration: none;
    box-shadow: none;
}
.mdj .mdj-name {
    margin: 0 0 8px;
    color: var(--mdj-primary);
    font-family: 'promptbold', sans-serif;
    font-size: 1.8rem;
    font-weight: normal;
    line-height: 1.4;
}
/* Card h3 headings follow the existing article-card size. */
.mdj .mdj-box h3 {
    font-family: 'promptmedium', sans-serif;
    font-size: 1.6rem;
    font-weight: normal;
    line-height: 1.5;
}
.mdj .mdj-desc { flex-grow: 1; margin: 0 0 15px; color: var(--mdj-text); font-size: 1.4rem; line-height: 1.65; }
.mdj .mdj-box--row { flex-direction: row; align-items: center; gap: 14px; }
.mdj .mdj-body { flex: 1; min-width: 0; }
.mdj .mdj-meta { color: var(--mdj-muted); font-size: 1.2rem; }
.mdj .mdj-icon { display: block; flex-shrink: 0; margin-bottom: 12px; font-size: 3.6rem; line-height: 1.2; }
.mdj .mdj-box--row .mdj-icon { margin-bottom: 0; font-size: 3.2rem; }
.mdj .mdj-box--row .mdj-name { margin-bottom: 3px; font-size: 1.5rem; }
.mdj .mdj-box--hero { position: relative; padding: 30px; border: 2px solid var(--mdj-accent); background: var(--mdj-soft); }
.mdj .mdj-box--hero .mdj-badge { align-self: flex-end; margin-bottom: 10px; color: var(--mdj-surface); background: var(--mdj-primary); }
.mdj .mdj-box--hero .mdj-icon { font-size: 5rem; }
.mdj .mdj-more { display: inline-block; margin-top: auto; color: var(--mdj-primary); font-family: 'promptmedium', sans-serif; font-size: 1.4rem; }
.mdj .mdj-check { margin: 0 0 18px; padding: 14px 16px; list-style: none; background: var(--mdj-surface); border: 1px solid var(--mdj-border); border-radius: 3px; }
.mdj .mdj-check li { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 1.3rem; }
.mdj .mdj-check li:last-child { margin-bottom: 0; }
.mdj .mdj-check li::before { content: '✓'; flex-shrink: 0; color: var(--mdj-accent); }
.mdj .mdj-panel { padding: 35px 30px; background: var(--mdj-soft); border: 1px solid var(--mdj-border); border-radius: 12px; }
.mdj .mdj-panel--brand { color: var(--mdj-surface); background: linear-gradient(135deg, var(--mdj-primary), var(--mdj-accent)); border: 0; }
.mdj .mdj-actions { margin-top: 26px; text-align: center; }
.mdj .mdj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    padding: 10px 32px;
    color: var(--mdj-surface);
    background: var(--mdj-primary);
    border: 1px solid var(--mdj-primary);
    border-bottom: 4px solid var(--mdj-accent);
    border-radius: 0;
    font-family: 'promptregular', sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}
.mdj .mdj-btn:hover { color: var(--mdj-surface); background: var(--mdj-accent); border-color: var(--mdj-accent); text-decoration: none; }
.mdj .mdj-btn--line { color: var(--mdj-primary); background: var(--mdj-surface); }
.mdj .mdj-btn--line:hover { color: var(--mdj-primary); background: var(--mdj-soft-hover); }
.mdj .mdj-link { color: var(--mdj-primary); text-decoration: none; font-family: 'promptmedium', sans-serif; }
.mdj .mdj-link:hover { color: var(--mdj-accent); text-decoration: underline; }
.mdj .mdj-link--light { color: var(--mdj-surface); }
.mdj .mdj-link--light:hover { color: var(--mdj-surface); }
.mdj .mdj-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px 40px; margin-top: 28px; }
.mdj .mdj-stat { text-align: center; }
.mdj .mdj-value { color: var(--mdj-primary); font-family: 'promptbold', sans-serif; font-size: 3.2rem; line-height: 1.3; }
.mdj .mdj-caption { margin-top: 4px; color: var(--mdj-text); font-size: 1.3rem; }
.mdj a:focus-visible, .mdj button:focus-visible { outline: 3px solid var(--mdj-accent); outline-offset: 4px; }
@media (max-width: 767.98px) {
            .mdj .mdj-panel { padding: 28px 18px; }
    .mdj .mdj-box--hero { padding: 22px 18px; }
    .mdj .mdj-stats { gap: 18px 24px; }
    .mdj .mdj-value { font-size: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) {
    .mdj .mdj-box, .mdj .mdj-btn { transition: none; }
}

/* Homepage layout. Section spacing follows the site's basic-section. */
/* Green guide section; heading typography remains the existing site's. */
.mdj.mdj-home-guides {
    background: linear-gradient(135deg, var(--mdj-primary), var(--mdj-accent));
}
.mdj-home-guides > .container > .heading {
    color: var(--mdj-surface);
}
.mdj-home-guides > .container > .heading .heading-divider {
    background: var(--mdj-surface);
}
.mdj-home-guides > .container > .mdj-actions > a {
    color: var(--mdj-surface);
}
.mdj .mdj-home-cats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.mdj .mdj-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.mdj .mdj-home-grid > .mdj-box--hero { grid-row: span 2; }
@media (max-width: 991px) {
    .mdj .mdj-home-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .mdj .mdj-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mdj .mdj-home-grid > .mdj-box--hero { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 520px) {
    .mdj .mdj-home-cats, .mdj .mdj-home-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Featured salary card: larger title than the other guide cards. */
.mdj .mdj-box.mdj-box--hero h3 {
    font-family: 'promptbold', sans-serif;
    font-size: 2.2rem;
    line-height: 1.4;
}
@media (max-width: 767.98px) {
    .mdj .mdj-box.mdj-box--hero h3 {
        font-size: 2rem;
    }
}

/* Match the preview: description fills space above highlights. */
.mdj .mdj-box--hero > p {
    flex-grow: 1;
    margin: 0 0 18px;
}
.mdj .mdj-box--hero .mdj-check {
    flex-shrink: 0;
    margin-bottom: 15px;
}
.mdj .mdj-box--hero .mdj-more {
    margin-top: 0;
}
