/* JobKonnect theme — loaded after Bootstrap (and AdminLTE on portal pages). */
:root {
    --jc-primary: #00a79d;
    --jc-primary-dark: #00857d;
    --jc-accent: #f59e0b;
    --jc-teal: #2ec4b6;
    --jc-purple: #6f42c1;
    --jc-ink: #13233a;
    --jc-muted: #64748b;
    --jc-surface: #f4f7fb;
    --bs-primary: var(--jc-primary);
    --bs-primary-rgb: 0, 167, 157;
    --bs-link-color: var(--jc-primary);
    --bs-link-color-rgb: 0, 167, 157;
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body { font-family: var(--bs-font-sans-serif); color: var(--jc-ink); }
.btn-primary { --bs-btn-bg: var(--jc-primary); --bs-btn-border-color: var(--jc-primary); --bs-btn-hover-bg: var(--jc-primary-dark); --bs-btn-hover-border-color: var(--jc-primary-dark); --bs-btn-active-bg: var(--jc-primary-dark); --bs-btn-disabled-bg: var(--jc-primary); --bs-btn-disabled-border-color: var(--jc-primary); }
.btn-outline-primary { --bs-btn-color: var(--jc-primary); --bs-btn-border-color: var(--jc-primary); --bs-btn-hover-bg: var(--jc-primary); --bs-btn-hover-border-color: var(--jc-primary); --bs-btn-active-bg: var(--jc-primary); }
.btn-accent { background: var(--jc-accent); border-color: var(--jc-accent); color: #1f1300; font-weight: 600; }
.btn-accent:hover { background: #d98a06; border-color: #d98a06; color: #1f1300; }
.text-primary { color: var(--jc-primary) !important; }
.bg-primary { background-color: var(--jc-primary) !important; }
.form-control:focus, .form-select:focus { border-color: #66cbc4; box-shadow: 0 0 0 .2rem rgba(0, 167, 157, .15); }
.fw-600 { font-weight: 600; }

/* Type badges */
.badge.type-primary { background: rgba(0, 167, 157, .12); color: var(--jc-primary); }
.badge.type-teal    { background: rgba(0, 167, 157, .14); color: #00776f; }
.badge.type-purple  { background: rgba(111, 66, 193, .13); color: var(--jc-purple); }
.badge.type-secondary { background: #e9ecef; color: #495057; }

/* ── Public site ─────────────────────────────────────────────── */
.jc-public { background: #fff; }
.jc-navbar { background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid #e8edf3; }
.jc-navbar .nav-link { font-weight: 500; color: #334155; }
.jc-navbar .nav-link.active, .jc-navbar .nav-link:hover { color: var(--jc-primary); }
.jc-brand { font-weight: 800; font-size: 1.25rem; color: var(--jc-primary); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.jc-logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--jc-primary), var(--jc-teal)); color: #fff; font-size: 1rem; }
.jc-hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(255, 255, 255, .14), transparent), linear-gradient(160deg, #00736c 0%, #00a79d 55%, #00b8ad 100%); color: #fff; padding: 5rem 0 6rem; position: relative; overflow: hidden; }
.jc-hero h1 { font-weight: 800; letter-spacing: -.03em; font-size: clamp(2rem, 4.5vw, 3.3rem); line-height: 1.1; }
.jc-hero .lead { color: rgba(255, 255, 255, .82); }
.jc-hero .hero-search { max-width: 760px; margin: 0; }
.search-field-box { height: 100%; padding: .55rem .65rem; border: 1px solid #d7e0e8; border-radius: .65rem; background: #fff; }
.search-field-box .form-label { display: block; font-weight: 600; }
.search-field-box .form-control, .search-field-box .form-select { min-width: 0; }
/* Hero search: compact boxes, a small label over a borderless field (one frame, not two). */
.jc-hero .search-field-box { display: flex; flex-direction: column; justify-content: center; gap: .1rem; height: 100%; min-height: 0; padding: .4rem .7rem .35rem; border: 0; border-radius: .6rem; box-shadow: 0 4px 12px rgba(0, 0, 0, .1); }
.jc-hero .search-field-box .form-label { color: #64748b !important; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 0 !important; line-height: 1.2; }
.jc-hero .search-field-box .form-control,
.jc-hero .search-field-box .form-select { border: 0; box-shadow: none; padding-top: .05rem; padding-bottom: .05rem; padding-left: 0; font-size: .95rem; min-height: 0; height: auto; background-color: transparent; color: #0f172a; }
.jc-hero .search-field-box .form-select { background-position: right .1rem center; padding-right: 1.4rem; }
.jc-hero .search-field-box .form-select:disabled { color: #94a3b8; }
.jc-hero .search-field-box:focus-within { box-shadow: 0 0 0 3px rgba(252, 211, 77, .65), 0 4px 12px rgba(0, 0, 0, .1); }
.jc-hero .hero-search .form-label { margin-bottom: .25rem; line-height: 1.2; }
.jc-hero .hero-search .form-select { width: 100%; max-width: none; }
.jc-hero .hero-search .btn { flex: 1 1 auto; height: auto; min-height: 52px; white-space: nowrap; font-weight: 600; }
.hero-mode { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.hero-mode-label { font-size: 1.35rem; font-weight: 800; color: #fff; }
.hero-mode-options { display: flex; align-items: center; gap: .6rem; }
.hero-mode-sep { font-size: 1.6rem; font-weight: 300; color: rgba(255, 255, 255, .7); }
.hero-mode-btn { display: inline-flex; align-items: center; gap: .55rem; margin: 0; padding: .7rem 1.5rem; font-size: 1.25rem; font-weight: 800; color: #fff; background: rgba(255, 255, 255, .14); border: 2px solid #fff; border-radius: 12px; cursor: pointer; transition: background-color .15s, color .15s, transform .15s; }
.hero-mode-btn:hover { background: rgba(255, 255, 255, .28); transform: translateY(-1px); }
.btn-check:checked + .hero-mode-btn { color: #1f2933; background: #fcd34d; border-color: #fcd34d; animation: hero-mode-glow 2.4s ease-in-out infinite; }
.btn-check:focus-visible + .hero-mode-btn { outline: 3px solid #fff; outline-offset: 2px; }
@keyframes hero-mode-glow { 0%, 100% { box-shadow: 0 6px 18px rgba(0, 0, 0, .25), 0 0 0 0 rgba(252, 211, 77, .6); } 50% { box-shadow: 0 6px 18px rgba(0, 0, 0, .25), 0 0 0 10px rgba(252, 211, 77, 0); } }
@media (prefers-reduced-motion: reduce) { .btn-check:checked + .hero-mode-btn { animation: none; } .hero-mode-btn { transition: none; } }
@media (max-width: 575.98px) {
    .hero-mode-options { width: 100%; }
    .hero-mode-btn { flex: 1 1 0; justify-content: center; padding: .65rem .5rem; font-size: 1.05rem; }
}
.jc-hero .hero-search .form-control, .jc-hero .hero-search .form-select { border: 0; box-shadow: none; }
.hero-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 16px; padding: 1.25rem; }
.hero-card .num { font-size: 1.8rem; font-weight: 800; }
.section-title { font-weight: 800; letter-spacing: -.02em; }
.section-kicker { text-transform: uppercase; font-size: .75rem; letter-spacing: .12em; color: var(--jc-teal); font-weight: 700; }
.role-card { border: 1px solid #e6ecf2; border-radius: 16px; padding: 1.75rem; height: 100%; transition: transform .15s, box-shadow .15s; background: #fff; text-align: center; }
.role-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 167, 157, .1); }
.role-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.65rem; margin: 0 auto 1rem; overflow: hidden; }
.role-icon .account-type-icon { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.account-type-icon { width: 1.5em; height: 1.5em; object-fit: contain; vertical-align: middle; }
.account-icon-preview { width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; border: 1px solid #dee2e6; border-radius: .5rem; overflow: hidden; font-size: 1.5rem; }
.account-icon-preview .account-type-icon { width: 100%; height: 100%; object-fit: contain; }
.role-icon.inst { background: rgba(0, 167, 157, .1); color: var(--jc-primary); }
.role-icon.ind  { background: rgba(245, 158, 11, .15); color: #b45309; }
.role-icon.tr   { background: rgba(0, 167, 157, .13); color: #00776f; }
.role-icon.cli  { background: rgba(111, 66, 193, .12); color: var(--jc-purple); }
.role-icon.ent  { background: rgba(245, 158, 11, .15); color: #b45309; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--jc-primary); color: #fff; display: grid; place-items: center; font-weight: 700; flex: 0 0 36px; }
.jc-footer { background: #0b1b2e; color: #cbd5e1; }
.jc-footer a { color: #cbd5e1; text-decoration: none; }
.jc-footer a:hover { color: #fff; }
.bg-surface { background: var(--jc-surface); }

/* Vacancy cards */
.vacancy-card { border: 1px solid #e6ecf2; border-radius: 14px; padding: 1.25rem; background: #fff; height: 100%; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.vacancy-card:hover { border-color: #99dcd8; box-shadow: 0 10px 30px rgba(0, 167, 157, .08); }
.vacancy-card .company { color: var(--jc-muted); font-size: .85rem; }
.vacancy-card h5 { font-weight: 700; font-size: 1.05rem; margin: .35rem 0; }
.vacancy-card h5 a { color: var(--jc-ink); text-decoration: none; }
.vacancy-card .meta { font-size: .8rem; color: var(--jc-muted); display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
.org-avatar { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #00857d, #2ec4b6); flex: 0 0 44px; }
.deadline-soon { color: #b45309; font-weight: 600; }

/* ── Auth pages ──────────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { background: linear-gradient(160deg, #00736c, #00a79d 60%, #2ec4b6); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .quote { font-size: 1.6rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: #fff; }
.auth-box { width: 100%; max-width: 420px; }
.auth-register-link { min-height: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: .65rem .4rem; text-align: center; line-height: 1.2; }
.auth-register-link > img, .auth-register-link > .account-type-icon { width: 26px; height: 26px; object-fit: contain; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* Registration */
.reg-section { border: 1px solid #e6ecf2; border-radius: 14px; padding: 1.5rem; margin-bottom: 1.25rem; background: #fff; }
.reg-section > h5 { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.reg-section > h5 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--jc-primary); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.reg-section .form-text { font-size: .76rem; }
.form-label .req { color: #dc3545; }
.choice-card { border: 2px solid #e6ecf2; border-radius: 16px; padding: 1.75rem; height: 100%; text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s, box-shadow .15s; background: #fff; }
.choice-card > .role-icon, .choice-card > h4 { margin-left: auto; margin-right: auto; text-align: center; }
.choice-card:hover { border-color: var(--jc-primary); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 167, 157, .12); color: inherit; }
.role-card > .role-icon { margin-left: auto; margin-right: auto; }
.role-card > h5 { text-align: center; }
.pw-toggle { cursor: pointer; }
.dept-grid { columns: 2; }
@media (min-width: 768px) { .dept-grid { columns: 3; } }

/* ── Portal ──────────────────────────────────────────────────── */
.jc-portal .app-header .nav-link, .jc-portal .app-header .navbar-text { color: #fff; }
.jc-portal .brand-link { color: #fff; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: .55rem; }
.jc-portal .brand-link .jc-logo { width: 30px; height: 30px; font-size: .9rem; }
.jc-notes { width: 340px; max-height: 70vh; overflow-y: auto; }
.jc-notes .dropdown-item { white-space: normal; border-bottom: 1px solid #f1f3f5; }
.jc-bell { font-size: .6rem; }
.stat-card { background: #fff; border: 1px solid #e9ecef; border-radius: .75rem; padding: 1.1rem; height: 100%; display: block; color: inherit; text-decoration: none; transition: box-shadow .15s; }
a.stat-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .06); color: inherit; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.stat-card .stat-label { color: #6c757d; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.stat-card .stat-icon { font-size: 1.35rem; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.page-title { font-size: 1.3rem; font-weight: 700; margin: 0; }
.page-sub { color: #6c757d; font-size: .85rem; }
.card { border-radius: .75rem; border-color: #e9ecef; }
.card-header { background: #fff; font-weight: 600; }
.card-header.d-flex::after { content: none; } /* AdminLTE's clearfix would sit between flex items */
.table td, .table th { vertical-align: middle; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: #6c757d; font-weight: 600; background: #f8fafc; }
.dl-grid { display: grid; grid-template-columns: 180px 1fr; gap: .45rem 1rem; font-size: .9rem; margin: 0; }
.dl-grid dt { color: #6c757d; font-weight: 500; }
.dl-grid dd { margin: 0; }
@media (max-width: 575.98px) { .dl-grid { grid-template-columns: 1fr; } .dl-grid dt { margin-top: .4rem; } }
.timeline { list-style: none; padding-left: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.6rem; border-left: 2px solid #e2e8f0; margin-left: .45rem; }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--jc-primary); border: 2px solid #fff; box-shadow: 0 0 0 1px #cbd5e1; }
.empty-state { text-align: center; padding: 3rem 1rem; color: #6c757d; }
.empty-state i { font-size: 2.4rem; opacity: .4; display: block; margin-bottom: .5rem; }
.prewrap { white-space: pre-line; }
.pagination { margin-bottom: 0; }

/* ── Profiles (companies & trainees) ─────────────────────────── */
.org-avatar-img { object-fit: contain; background: #fff; border: 1px solid #e6ecf2; padding: 2px; }
.org-avatar-lg { width: 96px; height: 96px; border-radius: 18px; display: grid; place-items: center; font-weight: 700; font-size: 2rem; color: #fff; background: linear-gradient(135deg, #00857d, #2ec4b6); flex: 0 0 96px; }
.person-avatar { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.8rem; color: #fff; background: linear-gradient(135deg, #00736c, #00a79d); flex: 0 0 88px; }
.person-avatar-sm { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #00736c, #00a79d); flex: 0 0 44px; }
.person-avatar-img { object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .12); }
.company-hero { background: linear-gradient(135deg, var(--jc-primary-dark), var(--jc-primary) 60%, var(--jc-teal)); color: #fff; }
.company-hero .org-avatar-lg, .company-hero .org-avatar-img { box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.company-hero a { color: #fff; }
.company-card { border: 1px solid #e6ecf2; border-radius: 14px; padding: 1.25rem; background: #fff; height: 100%; display: flex; flex-direction: column; gap: .75rem; transition: border-color .15s, box-shadow .15s; }
.company-card:hover { border-color: #99dcd8; box-shadow: 0 10px 30px rgba(0, 167, 157, .08); }
.check-list { max-height: 240px; overflow-y: auto; border: 1px solid #dee2e6; border-radius: .5rem; padding: .5rem .75rem; background: #fff; }
.profile-meter { height: 8px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.profile-meter > div { height: 100%; background: linear-gradient(90deg, var(--jc-teal), var(--jc-primary)); }
.entry { padding: .85rem 0; border-bottom: 1px solid #eef2f6; }
.entry:last-child { border-bottom: 0; }
.entry .entry-title { font-weight: 600; }
.doc-row { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid #eef2f6; }
.doc-row:last-child { border-bottom: 0; }
.doc-row .bi { font-size: 1.4rem; color: var(--jc-primary); }
/* Service and skill tags: long ones wrap inside their card instead of running out of it */
.badge.badge-wrap { white-space: normal; text-align: left; max-width: 100%; overflow-wrap: anywhere; line-height: 1.35; }
/* Photo gallery under the skills */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; }
.gallery-item { position: relative; margin: 0; min-width: 0; }
.gallery-item img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: .5rem; border: 1px solid #e2e8f0; background: #f8fafc; }
.gallery-item figcaption { margin-top: .2rem; }
.gallery-remove { position: absolute; top: .3rem; right: .3rem; padding: .1rem .35rem; line-height: 1.2; opacity: .9; }

@media print {
    .app-header, .app-sidebar, .app-footer, .no-print { display: none !important; }
    .app-wrapper { display: block !important; min-height: 0 !important; }
    .app-main { margin: 0 !important; }
}

/* ── Services, messaging & ratings ───────────────────────────── */
.rating-stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 1.6rem; color: #cbd5e1; cursor: pointer; transition: color .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f59e0b; }
.star-input input:focus-visible + label { outline: 2px solid var(--jc-primary); border-radius: 4px; }
.msg-thread { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; background: var(--jc-surface); }
.msg { max-width: 78%; padding: .6rem .85rem; border-radius: 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.msg-mine { align-self: flex-end; background: var(--jc-primary); color: #fff; border-bottom-right-radius: 4px; }
.msg-theirs { align-self: flex-start; background: #fff; border: 1px solid #e6ecf2; border-bottom-left-radius: 4px; }
.msg-time { font-size: .7rem; opacity: .7; margin-top: .2rem; text-align: right; }
.msg-file { display: inline-block; margin-top: .35rem; font-size: .85rem; color: inherit; text-decoration: underline; }
.msg-system { align-self: center; font-size: .78rem; color: var(--jc-muted); background: #fff; border: 1px dashed #d6dee8; border-radius: 99px; padding: .2rem .8rem; text-align: center; }
.bg-teal { background-color: var(--jc-teal) !important; }

/* Corporate colour on Bootstrap/AdminLTE parts that don't read --bs-primary */
.form-check-input:checked { background-color: var(--jc-primary); border-color: var(--jc-primary); }
.form-check-input:focus { border-color: #66cbc4; box-shadow: 0 0 0 .2rem rgba(0, 167, 157, .15); }
.nav-pills .nav-link.active, .dropdown-item.active, .dropdown-item:active, .list-group-item.active { background-color: var(--jc-primary); border-color: var(--jc-primary); }
.page-link { color: var(--jc-primary); }
.active > .page-link, .page-link.active { background-color: var(--jc-primary); border-color: var(--jc-primary); }
.progress-bar { background-color: var(--jc-primary); }
.border-primary { border-color: var(--jc-primary) !important; }
a:hover { color: var(--jc-primary-dark); }
.jc-portal .sidebar-menu .nav-link.active { background-color: var(--jc-primary) !important; color: #fff !important; }
.rating-stars.rating-none { color: #cbd5e1; }
.company-hero .rating-stars.rating-none, .company-hero .hero-rating .text-muted { color: rgba(255, 255, 255, .7) !important; }

/* Adverts (self-promotion posters) */
.advert-card { border: 1px solid #e6ecf2; border-radius: 14px; background: #fff; height: 100%; display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.advert-card:hover { border-color: #99dcd8; box-shadow: 0 10px 30px rgba(0, 167, 157, .08); }
.advert-card .poster { aspect-ratio: 4 / 3; background: #f3f6f9; display: grid; place-items: center; overflow: hidden; }
.advert-card .poster img { width: 100%; height: 100%; object-fit: cover; }
.advert-card .poster .bi { font-size: 2.5rem; color: #99dcd8; }
.advert-card .body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.advert-card h5 { font-weight: 700; font-size: 1.02rem; margin: 0; }
.advert-card h5 a { color: var(--jc-ink); text-decoration: none; }
.advert-card .by { font-size: .82rem; color: var(--jc-muted); }
.advert-poster-full { width: 100%; max-height: 80vh; object-fit: contain; background: #f3f6f9; border-radius: 12px; }

/* Account-type choice (register): the type's image fills the card; a frosted-glass
   panel from the title down keeps the text readable over any photo. */
.choice-card-media { position: relative; isolation: isolate; overflow: hidden; padding: 0; min-height: 470px; display: flex; flex-direction: column; justify-content: flex-end; border-color: rgba(255, 255, 255, .6); box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.choice-media { position: absolute; inset: 0; z-index: -1; display: grid; place-items: start center; background: linear-gradient(135deg, var(--jc-primary), #0b7f8a 55%, #134e5e); }
.choice-media.industry, .choice-media.entrepreneur { background: linear-gradient(135deg, #f59e0b, #d97706 55%, #92400e); }
.choice-media.client { background: linear-gradient(135deg, #8b5cf6, #6f42c1 55%, #4c1d95); }
.choice-media > img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .5s ease; }
.choice-media > .bi { font-size: 5.5rem; margin-top: 3.25rem; color: rgba(255, 255, 255, .9); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .18)); }
.choice-card-media:hover .choice-media > img { transform: scale(1.05); }
.choice-glass {
    /* An inset panel: a rectangle inside the card, with the photo showing around it. */
    margin: .75rem; border-radius: 12px;
    padding: 1.1rem 1.2rem 1.2rem; color: #0f172a;
    background: linear-gradient(180deg, rgba(255, 255, 255, .44), rgba(255, 255, 255, .64));
    -webkit-backdrop-filter: blur(11px) saturate(150%); backdrop-filter: blur(11px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 24px rgba(15, 23, 42, .14);
}
.choice-glass p, .choice-glass ul { color: #1e293b; }
.choice-glass h4 { text-align: left; color: #0b1220; }
.choice-glass h5 { color: #0b1220; }
.choice-card-compact { min-height: 400px; }   /* home page partners: shorter text, no list */
.choice-glass .btn { font-size: .94rem; padding-left: .6rem; padding-right: .6rem; white-space: nowrap; }
.choice-glass .btn-outline-primary { background: rgba(255, 255, 255, .78); border-width: 1.5px; font-weight: 600; }
.choice-glass .btn-outline-primary:hover { background: var(--jc-primary); }

/* Public menu: keep each link on one line; it collapses into the toggler below xl. */
.jc-navbar .nav-link { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) { .jc-navbar .navbar-nav .nav-link { padding-left: .4rem; padding-right: .4rem; font-size: .94rem; } }
.choice-card-media:hover { border-color: var(--jc-primary); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .choice-glass { background: rgba(255, 255, 255, .9); }
}
@media (prefers-reduced-motion: reduce) {
    .choice-media > img { transition: none; }
    .choice-card-media:hover .choice-media > img { transform: none; }
}

/* Advert cards: the poster fills the card; details in the glass panel at its foot. */
.advert-card-media { min-height: 380px; }
.advert-card-media .choice-media > img { object-position: center top; }
.advert-card-media .choice-glass { padding: .85rem 1rem .9rem; }
.advert-card-media .choice-glass h5 { font-size: 1.02rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.advert-card-media .advert-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.choice-media.advert { background: linear-gradient(135deg, #0ea5a0, #0b7f8a 55%, #134e5e); }

/* Home hero poster gallery (adverts). Without posters the hero keeps its plain gradient. */
.jc-hero-gallery { background: #0b2a2a; isolation: isolate; }
.jc-hero-gallery .hero-backdrop { position: absolute; inset: -40px; z-index: -2; }
.hero-backdrop-slide { position: absolute; inset: 0; background-size: cover; background-position: center 30%; filter: blur(26px) saturate(125%); transform: scale(1.08); opacity: 0; transition: opacity 1.2s ease; }
.hero-backdrop-slide.is-active { opacity: 1; animation: heroDrift 14s ease-in-out infinite alternate; }
@keyframes heroDrift { from { transform: scale(1.08) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); } }
/* Tint: teal and dark on the left where the text sits, lighter on the right where the poster is. */
.jc-hero-gallery .hero-backdrop-tint { position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(0, 66, 62, .93) 0%, rgba(0, 92, 86, .82) 45%, rgba(0, 60, 56, .45) 100%), radial-gradient(900px 420px at 80% 0%, rgba(255, 255, 255, .10), transparent); }
/* A larger play area: 512px wide makes the 4:5 box 640px tall (was 448 × 560). */
.hero-play { max-width: 512px; margin-inline: auto; padding-bottom: 3.6rem; }   /* room for the half of the panel that hangs below */
.hero-stage { position: relative; aspect-ratio: 4 / 5; width: 100%; margin-inline: auto; border-radius: 18px; box-shadow: 0 28px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); }
.hero-stage-slide { position: absolute; inset: 0; display: block; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; color: inherit; }
.hero-stage-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
/* The poster and its soft fill are clipped to the rounded box; the details panel is not, so it can hang over the bottom edge. */
.hero-stage-media { position: absolute; inset: 0; overflow: hidden; border-radius: 18px; }
.hero-stage-slide img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; padding: .6rem .6rem 3.6rem; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .3)); }
/* The whole poster always shows; any spare space around it is filled with a soft copy of it. */
.hero-stage-fill { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(18px) brightness(.85) saturate(120%); }
/* Glass panel at the bottom of the poster box: who, what, a short description and until when. The poster takes the space above it. */
/* Hangs centred on the bottom edge: half inside the box, half below it. */
.hero-stage-caption { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); z-index: 3; width: calc(100% - 2.5rem); display: block; padding: .55rem .85rem; border-radius: 14px; color: #0f172a; text-align: left;
    background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .8)); -webkit-backdrop-filter: blur(11px) saturate(150%); backdrop-filter: blur(11px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 14px 32px rgba(15, 23, 42, .28); }
.hero-caption-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .15rem; font-size: .85rem; line-height: 1.35; color: #1e293b; overflow-wrap: anywhere; }
.hero-caption-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; margin-top: .35rem; font-size: .8rem; color: #334155; }
.hero-caption-more { font-weight: 600; color: #00776f; }
.hero-stage-slide:hover .hero-caption-more { text-decoration: underline; }
.hero-stage-dots { position: absolute; top: .75rem; right: .75rem; display: flex; gap: .35rem; z-index: 2; }
.hero-stage-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.hero-stage-dots button.is-active { background: #fcd34d; width: 22px; border-radius: 5px; }
.hero-stats-strip { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.hero-stats-strip strong { color: #fff; font-size: 1.05rem; }
@media (max-width: 991.98px) { .hero-play { max-width: 480px; } }
@media (prefers-reduced-motion: reduce) {
    .hero-backdrop-slide.is-active { animation: none; }
    .hero-backdrop-slide, .hero-stage-slide, .hero-stage-slide.is-active { transition: none; }
}

/* System rules hub */
.settings-tile { transition: border-color .15s, box-shadow .15s, transform .15s; }
.settings-tile:hover { border-color: var(--jc-primary); box-shadow: 0 10px 28px rgba(0, 167, 157, .1); transform: translateY(-2px); }
.settings-tile-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; color: var(--jc-primary); background: rgba(0, 167, 157, .1); }

/* System rules: each card of related settings saves on its own; the card just saved is highlighted. */
.setting-row:last-of-type { border-bottom: 0 !important; margin-bottom: 0 !important; padding-bottom: 0 !important; }
.settings-card:target { border-color: var(--jc-primary); box-shadow: 0 0 0 .25rem rgba(0, 167, 157, .15); }
