/* InternHub — single stylesheet, no build step. */
:root {
    --brand: #1463d8;
    --brand-dark: #0d4aa6;
    --brand-soft: #eaf2fe;
    --accent: #ff8a1f;
    --ink: #1c2434;
    --ink-soft: #4b5568;
    --muted: #7a8599;
    --line: #e3e8f0;
    --bg: #f5f7fb;
    --card: #ffffff;
    --ok: #138a4a;
    --ok-soft: #e4f6ec;
    --warn: #a65d00;
    --warn-soft: #fff3df;
    --bad: #c4321e;
    --bad-soft: #fde9e6;
    --info: #5a3fc0;
    --info-soft: #efeafd;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(20, 30, 50, .05), 0 4px 14px rgba(20, 30, 50, .06);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    color: var(--ink);
    background: var(--bg);
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: var(--lh-heading); margin: 0 0 .5em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
img { max-width: 100%; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 28px; padding-bottom: 56px; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-base); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 64px; position: relative; }
.logo { font-weight: var(--fw-bold); font-size: 1.35rem; color: var(--ink); letter-spacing: var(--ls-tight); display: flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .95rem; }
.logo span.hub { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a, .nav button.linklike { padding: 8px 12px; border-radius: 8px; font-weight: var(--fw-medium); }
/* Link colours only: buttons in the nav (e.g. Register) keep their own .btn colours, including on hover. */
.nav a:not(.btn), .nav button.linklike { color: var(--ink-soft); }
.nav a:not(.btn):hover, .nav a.active:not(.btn) { color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.nav .push { margin-left: auto; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: var(--fs-h3); cursor: pointer; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: var(--fs-base); padding: 0 8px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: var(--fw-bold); font-size: .85rem; flex: none; }

/* Mega menus (navbar dropdowns). All classes start with "mm-". */
.nav.nav-right { justify-content: flex-end; align-self: stretch; }
.nav.nav-right .push { margin-left: 8px; }
.nav.nav-right > a { white-space: nowrap; }
.mm-item { display: flex; align-self: stretch; }
.mm-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border: 0; background: none; font: inherit; font-weight: var(--fw-medium); color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.mm-trigger:hover, .mm-trigger.is-current { color: var(--brand); }
.mm-trigger:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 6px; }
.mm-item.is-open .mm-trigger { background: #e3f4fc; color: var(--brand); }
.mm-caret { transition: transform .15s; }
.mm-item.is-open .mm-caret { transform: rotate(180deg); }
.mm-offer { background: var(--accent); color: #fff; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .04em; padding: 1px 6px; border-radius: 4px; line-height: var(--lh-body); }

.mm-panel { position: absolute; top: 100%; right: 16px; width: min(calc(var(--mm-cols) * 250px), calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: 0 18px 40px rgba(20, 30, 50, .18); text-align: left; }
.mm-cols { display: grid; grid-template-columns: repeat(var(--mm-cols), minmax(0, 1fr)); }
.mm-col { padding: 26px 26px 22px; }
.mm-col + .mm-col { border-left: 1px solid var(--line); }
.mm-heading { margin: 0 0 12px; font-weight: var(--fw-semibold); font-size: var(--fs-md); color: #333; }
.mm-links { list-style: none; margin: 0; padding: 0; }
.mm-links li + li { margin-top: 2px; }
.mm-links a { display: block; padding: 6px 0; color: #555e6b; font-size: var(--fs-base); line-height: var(--lh-heading); border-radius: 4px; }
.mm-links a:hover, .mm-links a:focus-visible { color: var(--brand); text-decoration: none; }
.mm-links a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mm-links a.mm-more { color: var(--ink); font-weight: var(--fw-semibold); margin-top: 6px; }
.mm-overlay { position: fixed; inset: 0; z-index: 45; background: rgba(15, 20, 30, .45); }
/* Courses dropdown: as wide as the Internships one, with room for long course names on one line. */
@media (min-width: 961px) {
    #mm-panel-courses { width: min(1000px, calc(100vw - 32px), calc(100% - 32px)); }
    #mm-panel-courses .mm-cols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
    #mm-panel-courses .mm-links a { font-size: var(--fs-base); }
}

/* Buttons and forms */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 18px; border-radius: 8px; border: 1px solid transparent;
    font: inherit; font-weight: var(--fw-semibold); cursor: pointer; text-decoration: none; white-space: nowrap;
    background: var(--brand); color: #fff;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); }
.btn-ok { background: var(--ok); }
.btn-ok:hover { background: #0e6b39; }
.btn-bad { background: #fff; color: var(--bad); border-color: #f1b8ae; }
.btn-bad:hover { background: var(--bad-soft); }
.btn-sm { padding: 5px 12px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 3px solid #9cc0fa; outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.linklike { background: none; border: 0; font: inherit; cursor: pointer; }
form.inline { display: inline; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: var(--fw-semibold); font-size: var(--fs-label); }
.field .hint { font-size: var(--fs-sm); color: var(--muted); }
p.small, p.hint, p.muted { font-size: var(--fs-base); }
label.small { font-size: var(--fs-label); }
.input, select.input, textarea.input {
    width: 100%; padding: 10px 12px; font-family: inherit; font-size: var(--fs-input); line-height: var(--lh-body); color: var(--ink);
    border: 1px solid #cfd7e3; border-radius: 8px; background: #fff;
}
.input:focus { outline: 2px solid rgba(20, 99, 216, .25); border-color: var(--brand); }
textarea.input { min-height: 120px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-weight: var(--fw-medium); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.error { color: var(--bad); font-size: var(--fs-sm); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }

/* Chip / autocomplete inputs */
.chips { position: relative; }
.chips-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 44px; padding: 6px 8px; border: 1px solid #cfd7e3; border-radius: 8px; background: #fff; cursor: text; }
.chips-box:focus-within { outline: 2px solid rgba(20, 99, 216, .25); border-color: var(--brand); }
.chips-input { flex: 1 1 120px; min-width: 120px; border: 0; outline: 0; font: inherit; color: var(--ink); padding: 4px; background: transparent; }
.chips.is-full .chips-input { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #c7dafb; font-size: var(--fs-base); font-weight: var(--fw-medium); line-height: var(--lh-heading); }
.chip-x { border: 0; background: transparent; color: var(--brand-dark); font-size: var(--fs-md); line-height: ; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; padding: 0; }
.chip-x:hover { background: #c7dafb; }
.chips-menu { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(20, 30, 50, .12); max-height: 260px; overflow-y: auto; }
.chips-menu li { padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: var(--fs-nav); }
.chips-menu li.active { background: var(--brand-soft); color: var(--brand-dark); }
.hero-search .chips { flex: 1; }
.hero-search .chips-box { border: 0; min-height: 40px; }

/* Radio pills (work mode, stipend type, etc.) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #cfd7e3; border-radius: 999px; cursor: pointer; font-weight: var(--fw-medium); font-size: var(--fs-label); background: #fff; }
.pills input { accent-color: var(--brand); margin: 0; }
.pills label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: var(--fw-medium); }
.filters details summary { cursor: pointer; color: var(--brand); font-weight: var(--fw-semibold); margin-top: 16px; list-style: none; }
.filters details summary::-webkit-details-marker { display: none; }
.filters details[open] summary { margin-bottom: 4px; }
.step-scale { display: flex; flex-wrap: wrap; gap: 6px; }
.step-scale label { padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: var(--fs-label); cursor: pointer; background: #fff; }
.step-scale input { position: absolute; opacity: 0; pointer-events: none; }
.step-scale label:has(input:checked) { background: var(--brand); color: #fff; border-color: var(--brand); }
.badge.badge-hiring { background: #eaf7ef; color: var(--ok); border-color: #b6e3c8; }
.badge.badge-early { background: #fff6e8; color: var(--warn); border-color: #f5d7a6; }
.tag-more { color: var(--muted); font-size: var(--fs-sm); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-title h2 { margin: 0; }

/* Alerts and badges */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; border: 1px solid; }
.alert-ok { background: var(--ok-soft); border-color: #b6e3c8; color: #0e5c33; }
.alert-bad { background: var(--bad-soft); border-color: #f4c2ba; color: #8b2414; }
.alert ul { margin: 0; padding-left: 18px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); background: var(--bg); color: var(--ink-soft); border: 1px solid var(--line); white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: #b6e3c8; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: #f5d7a6; }
.badge-bad { background: var(--bad-soft); color: var(--bad); border-color: #f4c2ba; }
.badge-info { background: var(--info-soft); color: var(--info); border-color: #d6cbf7; }
.badge-brand { background: var(--brand-soft); color: var(--brand); border-color: #c7dafb; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-soft); margin: 0 6px 6px 0; }

/* Hero */
.hero { background: linear-gradient(135deg, #0d4aa6 0%, #1463d8 55%, #3b82f6 100%); color: #fff; padding: 56px 0 64px; }
.hero h1 { font-size: var(--fs-h1); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); max-width: 680px; }
.hero p { color: #dbe8ff; font-size: var(--fs-base); max-width: 560px; }
.hero-search { display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 12px; max-width: 720px; margin-top: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.hero-search .input { border: 0; }
.hero-search select.input { max-width: 190px; border-left: 1px solid var(--line); border-radius: 0; }
.hero-stats { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: var(--fs-h1); color: #fff; }
.hero-stats span { color: #c3d7fb; font-size: var(--fs-base); }

.section { padding: 40px 0 8px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: var(--fs-h2); }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.category-tile { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: var(--fw-semibold); }
.category-tile:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.category-tile .count { color: var(--muted); font-weight: var(--fw-medium); font-size: var(--fs-base); }

.cta-band { margin-top: 40px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 4px; }

/* Listing card */
.listing-card { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: border-color .15s; }
.listing-card:hover { border-color: #a9c6f5; }
.listing-card .top { display: flex; gap: 12px; align-items: flex-start; }
.listing-card h3 { margin: 0; font-size: var(--fs-h3); }
.listing-card h3 a { color: var(--ink); }
.listing-card .company { color: var(--muted); font-size: var(--fs-base); }
.company-logo { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: var(--fw-bold); flex: none; }
.company-logo.lg { width: 64px; height: 64px; font-size: 1.3rem; border-radius: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-base); color: var(--ink-soft); }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts .ico { color: var(--muted); }
.listing-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; font-size: var(--fs-sm); color: var(--muted); }

/* Browse page */
.browse { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: 84px; }
.filters .field + .field { margin-top: 14px; }
.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.list { display: flex; flex-direction: column; gap: 14px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Detail page */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.detail-head { display: flex; gap: 16px; align-items: flex-start; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 18px 0; }
.fact-grid .k { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fact-grid .v { font-weight: var(--fw-semibold); }
.prose { white-space: pre-line; color: var(--ink-soft); }
.side-sticky { position: sticky; top: 84px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.table th { text-align: left; font-size: var(--fs-th); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: var(--fw-semibold); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--ink-soft); font-weight: var(--fw-semibold); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--brand); }
.tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs .n { color: var(--muted); font-weight: var(--fw-medium); }

/* Stats */
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .n { font-size: var(--fs-h1); font-weight: var(--fw-bold); }
.stat .k { color: var(--muted); font-size: var(--fs-base); }

/* Applicant card */
.applicant { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
.applicant .cover { background: var(--bg); border-radius: 8px; padding: 12px 14px; color: var(--ink-soft); white-space: pre-line; font-size: var(--fs-base); }

/* Auth */
.auth-wrap { max-width: 460px; margin: 40px auto; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--bg); border-radius: 10px; margin-bottom: 18px; }
.role-switch label { text-align: center; padding: 9px; border-radius: 8px; cursor: pointer; font-weight: var(--fw-semibold); color: var(--ink-soft); }
.role-switch input { position: absolute; opacity: 0; pointer-events: none; }
.role-switch-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { .role-switch-3 { grid-template-columns: 1fr; } }
.role-switch input:checked + label { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.demo-box { margin-top: 18px; font-size: var(--fs-base); background: var(--brand-soft); border-radius: 8px; padding: 12px 14px; color: var(--ink-soft); }
.demo-box code { color: var(--ink); }

/* Pagination (Laravel bootstrap-4 markup) */
.pagination { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 20px 0 0; gap: 4px; }
.pagination .page-link { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-soft); }
.pagination a.page-link:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination .active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .disabled .page-link { color: #c0c7d3; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Courses */
.hero.hero-courses { padding: 44px 0 40px; background: linear-gradient(135deg, #10306b 0%, #1463d8 60%, #4f8ff7 100%); }
.hero-courses .hero-search { align-items: center; }
.hero-courses .hero-search .input { flex: 1; }
.quick-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.quick-cats a { color: #fff; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); padding: 6px 14px; border-radius: 999px; font-size: var(--fs-base); font-weight: var(--fw-medium); }
.quick-cats a:hover, .quick-cats a.active { background: #fff; color: var(--brand-dark); text-decoration: none; }

.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: border-color .15s, transform .15s; }
.course-card:hover { border-color: #a9c6f5; transform: translateY(-2px); }
.course-card .body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.course-card h3 { margin: 0; font-size: var(--fs-h3); }
.course-card h3 a { color: var(--ink); }
.course-card h3 a::after { content: ""; position: absolute; inset: 0; }
.course-card { position: relative; }
.course-card .summary { color: var(--ink-soft); font-size: var(--fs-base); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; }
.course-card .tags { position: relative; z-index: 1; }
/* Card parts: rating / learner pills, meta line and "Know more". */
.cc-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-pill { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #cfe6f0; background: #f2fafd; color: #17657f; border-radius: 999px; padding: 1px 10px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.cc-rating { border-color: #fbe2b3; background: #fff8ea; color: #9a5a00; }
.cc-rating .star { color: #f59e0b; }
.cc-new { border-color: #d6ccf6; background: var(--info-soft); color: var(--info); }
.cc-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; color: var(--muted); font-size: var(--fs-base); }
.cc-meta span + span::before { content: "\2022"; margin: 0 8px; color: #b6bfcc; }
.cc-lang { display: flex; align-items: center; gap: 6px; margin: -4px 0 0; color: var(--muted); font-size: var(--fs-base); }
.cc-more { display: inline-flex; align-items: center; gap: 2px; color: var(--brand); font-weight: var(--fw-semibold); font-size: var(--fs-base); white-space: nowrap; }
.course-card:hover .cc-more { text-decoration: underline; }
.course-card .foot .price { flex-wrap: nowrap; }
.course-card .foot .price .off { display: none; }

.course-cover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; color: #fff; background: var(--brand); }
.course-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-cover .mark { font-size: 2.2rem; font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); opacity: .95; text-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.course-cover .cat { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: var(--fs-xs); font-weight: var(--fw-semibold); padding: 2px 10px; border-radius: 999px; }
.course-cover.lg { border-radius: var(--radius); aspect-ratio: 21 / 8; }
.course-cover.lg .mark { font-size: 3.4rem; }
.course-cover.sm { aspect-ratio: 16 / 10; width: 120px; border-radius: 8px; flex: none; }
.course-cover.sm .mark { font-size: 1.3rem; }
.course-cover.sm .cat { display: none; }
.cover-blue { background: linear-gradient(135deg, #0d4aa6, #3b82f6); }
.cover-violet { background: linear-gradient(135deg, #4c2a9e, #8b5cf6); }
.cover-teal { background: linear-gradient(135deg, #0f6e6e, #2bb3a3); }
.cover-orange { background: linear-gradient(135deg, #c2410c, #fb923c); }
.cover-rose { background: linear-gradient(135deg, #9f1239, #f472b6); }
.cover-slate { background: linear-gradient(135deg, #1e293b, #64748b); }
.course-cover::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; right: -20%; bottom: -45%; background: rgba(255, 255, 255, .10); }

.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .now { font-weight: var(--fw-bold); font-size: var(--fs-md); color: var(--ink); }
.price .was { color: var(--muted); text-decoration: line-through; font-size: var(--fs-base); }
.price .off { color: var(--ok); font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.price.lg .now { font-size: var(--fs-h1); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-base); color: var(--ink-soft); }
.rating .star { color: #f59e0b; }
.rating strong { color: var(--ink); }

.sort-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sort-bar select.input { width: auto; padding: 7px 10px; }
.filter-group { border: 0; padding: 0; margin: 0; }
.filter-group legend { float: left; width: 100%; font-weight: var(--fw-semibold); font-size: var(--fs-label); margin-bottom: 8px; padding: 0; }
.filter-group legend + * { clear: both; }
.filters .filter-toggle > summary { list-style: none; cursor: pointer; color: var(--ink); margin-top: 0; }
.filter-toggle > summary::-webkit-details-marker { display: none; }
.filter-toggle > summary .when-closed { display: none; color: var(--brand); font-size: var(--fs-base); font-weight: var(--fw-semibold); }
.filter-group .check { font-size: var(--fs-base); margin: 4px 0; }
.filter-group .check .n { margin-left: auto; color: var(--muted); font-size: var(--fs-sm); }
.filter-group + .filter-group { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.results { transition: opacity .15s; }
.results[aria-busy="true"] { opacity: .45; pointer-events: none; }
.loading-note { display: none; color: var(--muted); font-size: var(--fs-base); }
.results[aria-busy="true"] + .loading-note, .is-loading .loading-note { display: inline; }

.progress { height: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), #34c27a); border-radius: 999px; }
.progress-label { display: flex; justify-content: space-between; font-size: var(--fs-label); color: var(--muted); margin-bottom: 4px; }

.syllabus details { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.syllabus details + details { margin-top: 8px; }
.syllabus summary { cursor: pointer; padding: 12px 14px; font-weight: var(--fw-semibold); display: flex; justify-content: space-between; gap: 12px; list-style: none; }
.syllabus summary::-webkit-details-marker { display: none; }
.syllabus summary::before { content: "\25B8"; color: var(--muted); margin-right: 4px; transition: transform .15s; }
.syllabus details[open] summary::before { transform: rotate(90deg); }
.syllabus summary .title { flex: 1; }
.syllabus summary .meta { color: var(--muted); font-weight: var(--fw-medium); font-size: var(--fs-sm); white-space: nowrap; }
.lesson-list { list-style: none; margin: 0; padding: 0 14px 10px; }
.lesson-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--fs-base); }
.lesson-list .mins { margin-left: auto; color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; }
.lesson-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cfd7e3; flex: none; display: grid; place-items: center; font-size: .7rem; color: #fff; }
.lesson-dot.done { background: var(--ok); border-color: var(--ok); }
.lesson-list li.current { background: var(--brand-soft); margin: 0 -14px; padding: 8px 14px; }
.lesson-list li.current a { font-weight: var(--fw-semibold); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.check-list li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: var(--fw-bold); }
.instructor { display: flex; gap: 14px; align-items: flex-start; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: var(--fw-semibold); }
.faq p { margin: 8px 0 0; color: var(--ink-soft); }

.journey { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.journey li { position: relative; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: var(--fs-base); color: var(--ink-soft); counter-increment: step; }
.journey li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); font-weight: var(--fw-bold); color: var(--ink-soft); margin-bottom: 8px; font-size: var(--fs-sm); }
.journey li strong { display: block; color: var(--ink); }
.journey li.done { border-color: #b6e3c8; background: var(--ok-soft); }
.journey li.done::before { content: "\2713"; background: var(--ok); border-color: var(--ok); color: #fff; }
.journey li.now { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.learn { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.learn .crumbs { font-size: var(--fs-nav); color: var(--muted); margin-bottom: 6px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; }
.enroll-list { display: flex; flex-direction: column; gap: 14px; }
.enroll-item { display: flex; gap: 16px; align-items: flex-start; }
.enroll-item .info { flex: 1; min-width: 0; }
.enroll-item h3 { margin: 0 0 2px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { cursor: pointer; font-size: 1.25rem; color: #cfd7e3; line-height: ; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f59e0b; }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }

.repeater-item { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fff; }
.repeater-item + .repeater-item { margin-top: 12px; }
.repeater-item.module { background: var(--bg); }
.repeater-item .lessons { margin-top: 12px; }
.repeater-head { display: flex; gap: 8px; align-items: center; }
.repeater-head .input { flex: 1; }
.lesson-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 8px; align-items: start; }
.lesson-row textarea.input { grid-column: 1 / -1; min-height: 70px; }
.lesson-extra { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.lesson-extra .input { flex: 1 1 260px; }
.instructor-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 14px; margin: 12px 0 0; }
.instructor-box legend { padding: 0 6px; font-weight: var(--fw-semibold); }
.lesson-video { position: relative; aspect-ratio: 16 / 9; margin-top: 18px; border-radius: var(--radius); overflow: hidden; background: #0d1424; }
.lesson-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-video-title { margin: 22px 0 0; font-size: var(--fs-md); }
.theme-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.theme-picker label { display: flex; flex-direction: column; gap: 4px; align-items: center; font-size: var(--fs-label); cursor: pointer; }
.theme-picker .swatch { width: 64px; height: 38px; border-radius: 8px; border: 2px solid transparent; }
.theme-picker input { position: absolute; opacity: 0; pointer-events: none; }
.theme-picker input:checked + .swatch { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }
.theme-picker input:focus-visible + .swatch { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Footer: popular-search links (components/footer-seo.blade.php). The rest of the footer lives in footer.css. */
/* All classes start with "ihf-" so they can't clash with page styles. */
.ihf { margin-top: 0; line-height: var(--lh-body); }
.ihf-wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.ihf a:hover { text-decoration: none; }

/* Section A: grey quick-search links */
.ihf-seo { background: #eeeeee; padding: 26px 0 12px; border-top: 1px solid #e2e2e2; }
.ihf-group { margin-bottom: 16px; overflow: hidden; }
.ihf-group-title { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: var(--fs-xs); font-weight: var(--fw-bold); color: #333333; letter-spacing: 0; }
.ihf-offer { background: #ff8a1f; color: #fff; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .05em; padding: 1px 6px; border-radius: 3px; line-height: var(--lh-body); }
/* Every link gets a separator on its left; the negative margin pushes the one that starts
   each wrapped line outside the group, where overflow: hidden clips it. */
.ihf-links { list-style: none; margin: 0 0 0 -17px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
.ihf-links li { display: inline-flex; align-items: center; font-size: var(--fs-xs); line-height: var(--lh-body); }
.ihf-links li::before { content: ""; width: 1px; height: 10px; background: #bcbcbc; margin: 0 8px; }
.ihf-links a { color: #5b6878; }
.ihf-links a:hover { color: var(--brand); text-decoration: underline; }

.ihf a:focus-visible { outline: 2px solid #8fb6f5; outline-offset: 2px; border-radius: 4px; }

/* Responsive */
@media (min-width: 961px) and (max-width: 1240px) {
    /* Small laptops: tighten the navbar so long logged-in menus fit on one line. */
    .site-header .container { gap: 12px; }
    .nav { gap: 0; }
    .nav a { padding: 8px 7px; font-size: var(--fs-nav); }
    .mm-trigger { padding: 0 8px; font-size: var(--fs-base); }
    .user-chip { padding: 0 4px; }
    .user-chip .user-name { display: none; }
    .nav .btn-sm { padding: 5px 9px; }
}
@media (min-width: 961px) and (max-width: 1060px) {
    .logo > span:last-child { display: none; }
}
@media (max-width: 960px) {
    .browse, .detail { grid-template-columns: 1fr; }
    .filters, .side-sticky { position: static; }
    .grid-3, .grid-4, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .learn { grid-template-columns: 1fr; }
    .filter-toggle:not([open]) > summary .when-closed { display: inline; }
    .filter-toggle:not([open]) > summary .clear-link { display: none; }
    .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Phones and tablets: the navbar collapses behind the menu button, so long logged-in menus never overflow. */
    .nav-toggle { display: block; }
    .site-header .container { flex-wrap: wrap; }
    .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
    .nav.open { display: flex; }
    .nav .push, .nav.nav-right .push { margin-left: 0; }
    .nav.nav-right { justify-content: flex-start; }
    /* Mega menus become a tap accordion inside the collapsed navbar. */
    .mm-item { display: block; }
    .mm-trigger { width: 100%; justify-content: flex-start; padding: 10px 12px; border-radius: 8px; }
    .mm-caret { margin-left: auto; }
    .mm-panel { position: static; width: auto; border: 0; border-radius: 8px; box-shadow: none; background: var(--bg); margin: 4px 0 8px; }
    .mm-cols { grid-template-columns: 1fr; }
    .mm-col { padding: 12px 14px; }
    .mm-col + .mm-col { border-left: 0; border-top: 1px solid var(--line); }
    .mm-heading { margin-bottom: 4px; font-size: var(--fs-base); }
    .mm-links a { padding: 8px 0; }
    .mm-overlay { display: none; }
}
@media (max-width: 720px) {
    .hero { padding: 36px 0 44px; }
    .hero h1 { font-size: var(--fs-h1); }
    .hero-search { flex-direction: column; }
    .hero-search select.input { max-width: none; border-left: 0; border-top: 1px solid var(--line); }
    .grid-2, .grid-3, .grid-4, .category-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .applicant { grid-template-columns: 1fr; }
    .check-grid { grid-template-columns: 1fr; }
    .card { padding: 16px; }
    .course-grid, .check-list, .journey { grid-template-columns: 1fr; }
    .course-cover.lg { aspect-ratio: 16 / 9; }
    .enroll-item { flex-direction: column; }
    .course-cover.sm { width: 100%; }
    .lesson-row { grid-template-columns: 1fr; }
}
/* Register: student / hiring segmented switch at the top, institute / counsellor cards under the button. */
.reg-role-switch { grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.reg-role-switch label { display: flex; align-items: center; justify-content: center; min-height: 44px; transition: background .15s, color .15s, box-shadow .15s; }
.reg-role-switch input:not(:checked) + label:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
.reg-role-switch input:checked + label { box-shadow: 0 1px 2px rgba(20, 30, 50, .08), 0 0 0 1px #c9dcfb; }
.reg-role-switch input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 1px; }
.reg-role-note { margin: -6px 0 0; padding: 9px 12px; border-radius: 8px; background: var(--brand-soft); color: #23466f; font-size: var(--fs-base); }
.reg-role-note b { color: var(--brand-dark); }
.reg-alt { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.reg-alt-title { margin: 0 0 10px; font-size: var(--fs-h2); font-weight: var(--fw-semibold); color: var(--ink-soft); text-align: center; }
.reg-alt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reg-alt-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.reg-alt-card:hover { border-color: #b5cdf5; box-shadow: 0 6px 16px rgba(20, 60, 140, .08); transform: translateY(-1px); color: var(--ink); text-decoration: none; }
.reg-alt-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.reg-alt-card[aria-current="true"] { border-color: var(--brand); background: var(--brand-soft); }
.reg-alt-card b { display: block; font-size: var(--fs-base); line-height: var(--lh-heading); color: var(--ink); }
.reg-alt-card[aria-current="true"] b { color: var(--brand-dark); }
.reg-alt-card small { display: block; margin-top: 3px; font-size: var(--fs-xs); line-height: var(--lh-heading); color: var(--muted); }
.reg-alt-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); font-size: 18px; }
@media (max-width: 520px) { .reg-alt-grid { grid-template-columns: 1fr; } }

/* Site search results ("All" from the homepage search) */
.srch-tabs { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; margin: 18px 0 8px; padding-bottom: 4px; }
.srch-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #44516a; font-size: var(--fs-nav); font-weight: var(--fw-semibold); text-decoration: none; white-space: nowrap; }
.srch-tab b { font-size: var(--fs-xs); color: #6b778d; }
.srch-tab:hover { border-color: #b9c8ea; }
.srch-tab-active { background: #eef3ff; border-color: #c9d7fb; color: #2450d4; }
.srch-group { margin-top: 28px; }
.srch-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.srch-group-head h2 { margin: 0; font-size: var(--fs-h2); }
.srch-group-head h2 span { font-size: var(--fs-base); color: #6b778d; font-weight: var(--fw-semibold); margin-left: 4px; }
.srch-note { margin: 0 0 10px; }

/* Register page: a wider card (other auth pages keep the narrow .auth-wrap). */
.auth-wrap.reg-wrap { max-width: 740px; padding: 36px 44px 32px; }
.reg-wrap h1 { margin-top: 0; }
.reg-wrap .input { min-height: 46px; }
.reg-wrap .reg-role-switch label { min-height: 46px; }
.reg-wrap .reg-alt-card { padding: 14px 16px; align-items: center; }
@media (max-width: 720px) {
    .auth-wrap.reg-wrap { padding: 28px 24px 24px; margin: 24px auto; }
    .reg-wrap .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .auth-wrap.reg-wrap { padding: 22px 16px 20px; margin: 16px auto; }
    .reg-wrap .grid-2 { grid-template-columns: 1fr; }
}
.page > .crumbs { margin: 0 0 14px; color: var(--muted); }
.page > .crumbs a { color: inherit; }
.page > .crumbs a:hover { color: var(--brand); }
.company-cover { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
