/*
Theme Name: IndigoCare Academy
Theme URI: https://indigocare.eu/
Author: IndigoCare - Thomas Bruninx
Description: Branded learning platform for IndigoCare professional partners.
Version: 1.0.0
Text Domain: indigocare-academy
*/

:root {
    --ica-blue: #384a9f;
    --ica-blue-dark: #0c2b78;
    --ica-blue-deep: #082363;
    --ica-red: #a72436;
    --ica-red-bright: #cf112d;
    --ica-ink: #071c58;
    --ica-muted: #5f6b85;
    --ica-line: #dfe4ee;
    --ica-soft: #f4f6fb;
    --ica-success: #19945c;
    --ica-radius: 8px;
    --ica-shadow: 0 3px 14px rgba(8, 35, 99, .08)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: var(--ica-ink);
    background: #fff;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55
}

a {
    color: var(--ica-blue);
    text-decoration: none
}

a:hover {
    color: var(--ica-red)
}

img:not(:where(.chapter-text img)) {
    max-width: 100%;
    height: auto
}

.container {
    max-width: 1180px
}

.material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
    vertical-align: middle
}

.screen-reader-text {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px)
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar {
    font-family: "Roboto", Arial, sans-serif;
    color: var(--ica-ink);
    font-weight: 700;
    letter-spacing: -.025em
}

h1 {
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    line-height: 1.02
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.12
}

h3 {
    font-size: 1.25rem
}

::selection {
  background-color: var(--ica-red);
  color: #ffffff;
}

.eyebrow {
    font-size: .72rem;
    color: var(--ica-red);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .08em
}

.text-muted {
    color: var(--ica-muted) !important
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--ica-line);
    position: sticky;
    top: 0;
    z-index: 1000
}

.navbar {
    min-height: 78px
}

.navbar-brand img {
    width: 132px;
    height: 46px;
    object-fit: contain
}

.navbar-nav {
    gap: 1.4rem
}

.nav-link {
    position: relative;
    color: var(--ica-ink) !important;
    font-size: .88rem;
    font-weight: 600;
    padding: 1.65rem .25rem !important
}

.nav-link.active:after,
.nav-link:hover:after {
    content: "";
    position: absolute;
    height: 3px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ica-red)
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--ica-ink);
    font-size: .88rem;
    font-weight: 600;
    background: transparent;
    border: 0;
    padding: 0
}

.profile-chip img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover
}

.profile-chip:hover,
.profile-chip:focus-visible {
    color: var(--ica-blue)
}

.profile-chip:focus-visible {
    outline: 3px solid rgba(25, 118, 210, .22);
    outline-offset: 4px;
    border-radius: 4px
}

.profile-chip.dropdown-toggle::after {
    display: none
}

.account-dropdown .dropdown-menu {
    min-width: 210px;
    margin-top: .8rem;
    padding: .45rem;
    border: 1px solid var(--ica-line);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(9, 32, 71, .14)
}

.account-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .75rem;
    border-radius: 5px;
    color: var(--ica-ink);
    font-size: .86rem;
    font-weight: 600
}

.account-dropdown .dropdown-item:hover,
.account-dropdown .dropdown-item:focus {
    color: var(--ica-blue);
    background: rgba(25, 118, 210, .08)
}

.account-dropdown .account-logout {
    color: var(--ica-red)
}

.btn {
    border-radius: 5px;
    font-size: .85rem;
    font-weight: 700;
    padding: .72rem 1.25rem
}

.btn-danger {
    background: var(--ica-red-bright);
    border-color: var(--ica-red-bright)
}

.btn-outline-primary {
    color: var(--ica-blue);
    border-color: var(--ica-blue)
}

.btn-outline-primary:hover {
    background: var(--ica-blue);
    border-color: var(--ica-blue)
}

.hero {
    min-height: 530px;
    background: #f3f5f9 center/cover no-repeat;
    display: flex;
    align-items: center
}

.hero-copy {
    max-width: 560px;
    padding: 5rem 0
}

.hero-copy p {
    max-width: 470px;
    color: #283a68;
    font-size: 1.08rem
}

.public-home-hero {
    position: relative;
    isolation: isolate;
    color: #fff;
    background-position: center;
    background-size: cover
}

.public-home {
    max-width: 100%;
    overflow-x: clip
}

.public-home .splide {
    max-width: 100%
}

.public-home-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(4, 23, 72, .9) 0%, rgba(9, 40, 105, .72) 52%, rgba(9, 40, 105, .22) 100%)
}

.public-home-hero .hero-copy {
    max-width: 600px
}

.public-home-hero h1,
.public-home-hero .hero-text p {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .24)
}

.public-home-hero .hero-text {
    max-width: 510px;
    margin-bottom: 1.5rem;
    font-size: 1.08rem
}

.public-home-hero .hero-text > :last-child,
.public-home-copy > :last-child {
    margin-bottom: 0
}

.public-home-copy {
    margin-bottom: 1.5rem
}

.public-home-info h2,
.public-home-bottom h2 {
    max-width: 520px
}

.public-course-card {
    cursor: default
}

.feature-band .public-course-card h3 {
    color: var(--ica-ink)
}

.public-course-card .course-card__body {
    min-height: 150px
}

.page-intro {
    padding: 58px 0;
    color: #fff;
    background: linear-gradient(90deg, rgba(11, 43, 122, .98), rgba(56, 74, 159, .92)), var(--ica-image-hero-healthcare) center 43%/cover
}

.page-intro h1 {
    font-size: 2.35rem;
    color: #fff;
    margin: 0 0 .25rem
}

.page-intro p {
    margin: 0;
    color: rgba(255, 255, 255, .87)
}

.content-section {
    padding: 80px 0
}

.content-section img:not(:where(.chapter-text img)) {
    border-radius: var(--ica-radius);
    box-shadow: var(--ica-shadow);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover
}

.feature-band {
    padding: 68px 0;
    background: linear-gradient(135deg, var(--ica-blue-deep), var(--ica-blue));
    color: #fff
}

.feature-band h2,
.feature-band h3 {
    color: #fff
}

.course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: var(--ica-radius);
    overflow: hidden;
    color: var(--ica-ink);
    box-shadow: 0 8px 25px rgba(5, 25, 74, .18)
}

.course-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover
}

.course-card__body {
    padding: 1.25rem
}

.course-card p {
    font-size: .88rem;
    color: var(--ica-muted)
}

.progress {
    height: 6px;
    background: #e2e5ec;
    border-radius: 10px
}

.progress-bar {
    background: linear-gradient(90deg, #00a59a, var(--ica-blue))
}

.splide__arrow {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .4)
}

.splide__arrow svg {
    fill: #fff
}

.splide__pagination {
    bottom: -2rem
}

.splide__pagination__page.is-active {
    background: #fff
}

.dashboard {
    padding: 32px 0 80px;
    background: #fff
}

.widget {
    height: 100%;
    border: 1px solid var(--ica-line);
    border-radius: var(--ica-radius);
    padding: 1.4rem;
    background: #fff;
    box-shadow: var(--ica-shadow)
}

.widget h2 {
    font-size: 1.05rem;
    margin: 0 0 1.2rem
}

.badge-score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0
}

.badge-ring {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 7px solid #e4e8f1;
    border-top-color: #008ad7;
    display: grid;
    place-items: center;
    color: var(--ica-blue)
}

.metric {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1
}

.learning-row {
    display: grid;
    grid-template-columns: 38px 1fr 45px;
    gap: 12px;
    align-items: center;
    padding: .65rem 0
}

.learning-row+.learning-row {
    border-top: 1px solid #edf0f5
}

.learning-icon {
    width: 34px;
    height: 34px;
    background: #eef2ff;
    border-radius: 5px;
    display: grid;
    place-items: center;
    color: var(--ica-blue)
}

.learning-row strong {
    display: block;
    font-size: .84rem
}

.learning-row small {
    font-size: .74rem
}

.news-row {
    display: grid;
    grid-template-columns: 34px 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: .75rem 0;
    border-bottom: 1px solid #edf0f5;
    color: inherit;
    text-decoration: none
}

.news-row:hover strong {
    color: var(--ica-red)
}

.news-row:last-child {
    border: 0
}

.news-row strong {
    display: block;
    font-size: .83rem
}

.news-row small {
    color: var(--ica-muted)
}

.partner-mark {
    font-size: 2.5rem;
    color: var(--ica-blue)
}

.partner-logo {
    width: 58px;
    height: 48px;
    object-fit: contain;
    flex: 0 0 auto
}

.data-table {
    width: 100%;
    border-collapse: collapse
}

.data-table th {
    font-size: .69rem;
    text-transform: uppercase;
    color: var(--ica-muted);
    padding: .6rem;
    border-bottom: 1px solid var(--ica-line)
}

.data-table td {
    padding: .65rem;
    font-size: .82rem;
    border-bottom: 1px solid #edf0f5
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: .45rem
}

.filterbar {
    display: flex;
    gap: 1.7rem;
    align-items: center;
    padding: 1.2rem 0 1.6rem;
    overflow: auto
}

.filterbar a {
    white-space: nowrap;
    color: var(--ica-ink);
    font-size: .83rem
}

.filterbar a.active {
    color: var(--ica-blue);
    font-weight: 700;
    border-bottom: 3px solid var(--ica-red);
    padding-bottom: .85rem
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px
}

.course-list-card {
    display: grid;
    grid-template-columns: 165px 1fr;
    border: 1px solid var(--ica-line);
    border-radius: var(--ica-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--ica-shadow)
}

.course-list-card img {
    width: 100%;
    height: 100%;
    min-height: 145px;
    object-fit: cover
}

.course-list-card__body {
    padding: 1.1rem
}

.status {
    font-size: .74rem;
    font-weight: 700;
    color: #0085ca
}

.status.finished {
    color: var(--ica-success)
}

.curriculum {
    border: 1px solid var(--ica-line);
    border-radius: var(--ica-radius);
    overflow: hidden
}

.curriculum-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--ica-line)
}

.curriculum-module-title {
    margin: 2.5rem 0 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid rgba(7, 28, 88, 0.12);
    color: var(--ica-navy, #071c58);
}

.curriculum-module-title:first-child {
    margin-top: 0;
}

.curriculum-row:last-child {
    border: 0
}

.curriculum-row.is-locked {
    color: var(--ica-muted);
    background: #f7f8fb
}

.chapter-number {
    min-width: 44px;
    height: 28px;
    padding: 0 .4rem;
    background: #eef2ff;
    border-radius: 5px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--ica-blue)
}

.lesson-content {
    max-width: 850px;
    margin: auto
}

.lesson-content h2 {
    font-size: 2rem
}

.lesson-content p {
    color: #354260
}

.chapter-top-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 850px;
    margin: 0 auto
}

.chapter-top-actions .btn,
.chapter-lesson-nav .btn,
.chapter-lesson-nav button {
    display: inline-flex;
    align-items: center;
    gap: .35rem
}

.chapter-sidebar-toggle {
    position: fixed;
    z-index: 1038;
    top: max(132px, 22vh);
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    width: 48px;
    padding: .8rem .55rem 1rem;
    border: 0;
    border-radius: 0 10px 10px 0;
    color: #fff;
    background: var(--ica-blue-deep);
    box-shadow: 0 8px 24px rgba(7, 28, 88, .22);
    transition: width .2s ease, background-color .2s ease, box-shadow .2s ease
}

.chapter-sidebar-toggle:hover,
.chapter-sidebar-toggle:focus-visible,
.chapter-sidebar-toggle[aria-expanded="true"] {
    color: #fff;
    background: var(--ica-blue);
    box-shadow: 0 10px 28px rgba(7, 28, 88, .3)
}

.chapter-sidebar-toggle:focus-visible,
.chapter-course-sidebar a:focus-visible,
.chapter-course-sidebar button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px
}

.chapter-sidebar-toggle .material-symbols-outlined {
    position: relative;
    z-index: 1;
    font-size: 23px
}

.chapter-sidebar-toggle__label {
    position: relative;
    z-index: 1;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .025em
}

.chapter-course-sidebar {
    --bs-offcanvas-width: min(360px, calc(100vw - 32px));
    color: var(--ica-ink);
    border-right: 0;
    box-shadow: 16px 0 40px rgba(7, 28, 88, .16)
}

.chapter-course-sidebar__header {
    align-items: flex-start;
    padding: 1.4rem 1.25rem 1rem;
    border-bottom: 1px solid var(--ica-line);
    background: #fff
}

.chapter-course-sidebar__header > div {
    min-width: 0;
    padding-right: .75rem
}

.chapter-course-sidebar__eyebrow {
    display: block;
    margin-bottom: .25rem;
    color: var(--ica-red);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase
}

.chapter-course-sidebar .offcanvas-title {
    overflow-wrap: anywhere;
    color: var(--ica-ink);
    font-size: 1.18rem;
    line-height: 1.25
}

.chapter-course-sidebar__body {
    padding: 1rem 0 2rem;
    overscroll-behavior: contain;
    background: #fbfcff
}

.chapter-course-sidebar__course-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: 0 1rem 1.1rem;
    color: var(--ica-blue);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none
}

.chapter-course-sidebar__course-link:hover {
    color: var(--ica-red)
}

.chapter-course-sidebar__course-link .material-symbols-outlined {
    font-size: 19px
}

.chapter-sidebar-module + .chapter-sidebar-module {
    margin-top: 1.25rem
}

.chapter-sidebar-module h3,
.chapter-sidebar-page-nav h3 {
    margin: 0;
    padding: .65rem 1rem;
    color: var(--ica-ink);
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere
}

.chapter-sidebar-module h3 span {
    display: block;
    margin-bottom: .15rem;
    color: var(--ica-muted);
    font-size: .66rem;
    letter-spacing: .055em;
    text-transform: uppercase
}

.chapter-sidebar-module ol,
.chapter-sidebar-page-nav ol {
    margin: 0;
    padding: 0;
    list-style: none
}

.chapter-sidebar-module__empty {
    margin: 0 .65rem;
    padding: .55rem .65rem;
    color: var(--ica-muted);
    font-size: .72rem;
    font-style: italic
}

.chapter-sidebar-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: .15rem .65rem;
    align-items: center;
    margin: 0 .65rem .3rem;
    padding: .7rem .65rem;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--ica-ink);
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease
}

a.chapter-sidebar-item:hover {
    border-color: #dbe2f2;
    color: var(--ica-blue);
    background: #fff
}

.chapter-sidebar-item.is-current {
    border-color: rgba(56, 74, 159, .2);
    background: #eef2ff;
    box-shadow: inset 3px 0 0 var(--ica-blue)
}

.chapter-sidebar-item.is-locked {
    cursor: not-allowed;
    color: #78839a;
    background: #f1f3f7
}

.chapter-sidebar-item__number {
    grid-row: 1 / span 2;
    align-self: start;
    padding-top: .05rem;
    color: var(--ica-blue);
    font-size: .76rem;
    font-weight: 800
}

.chapter-sidebar-item.is-locked .chapter-sidebar-item__number {
    color: #7b8497
}

.chapter-sidebar-item__content {
    min-width: 0
}

.chapter-sidebar-item__content strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: .8rem;
    line-height: 1.3
}

.chapter-sidebar-item__content small {
    display: block;
    margin-top: .18rem;
    color: var(--ica-muted);
    font-size: .68rem
}

.chapter-sidebar-item__state {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: #087bb6;
    font-size: .66rem;
    font-weight: 700
}

.chapter-sidebar-item__state .material-symbols-outlined {
    font-size: 15px
}

.chapter-sidebar-item.is-complete .chapter-sidebar-item__state {
    color: var(--ica-success)
}

.chapter-sidebar-item.is-locked .chapter-sidebar-item__state {
    color: #6f788a
}

.chapter-sidebar-page-nav {
    margin: 1.6rem 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--ica-line)
}

.chapter-sidebar-page-nav h3 {
    padding: 0 0 .65rem;
    font-size: .9rem
}

.chapter-sidebar-page-nav li + li {
    margin-top: .15rem
}

.chapter-sidebar-page-nav a {
    display: block;
    padding: .48rem .65rem;
    border-radius: 6px;
    color: var(--ica-blue);
    font-size: .77rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-decoration: none
}

.chapter-sidebar-page-nav a:hover {
    color: var(--ica-red);
    background: #fff
}

.chapter-header h1 {
    font-size: clamp(2.15rem, 3.5vw, 2.6rem);
    line-height: 1.12;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.chapter-excerpt {
    font-size: 1.15rem;
    color: var(--ica-muted)
}

.chapter-featured-image,
.chapter-image {
    margin: 1rem 0 1.25rem
}

.chapter-page .chapter-featured-image img,
.chapter-page .chapter-image img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain
}

.chapter-text img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto
}

.chapter-text img.alignleft {
    float: left;
    margin: .35rem 1.5rem 1rem 0
}

.chapter-text img.alignright {
    float: right;
    margin: .35rem 0 1rem 1.5rem
}

.chapter-text::after {
    display: table;
    clear: both;
    content: ""
}

.chapter-heading {
    scroll-margin-top: 110px;
    margin-top: 2.4rem;
    margin-bottom: 1.25rem
}

.chapter-text > :last-child {
    margin-bottom: 0
}

.chapter-horizontal-line {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid var(--ica-line);
    opacity: 1
}

.chapter-whitespace {
    display: block;
    width: 100%;
    max-height: 1000px
}

.chapter-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    margin: 2rem 0;
    overflow: hidden;
    border-radius: var(--ica-radius);
    background: #071c58;
    box-shadow: var(--ica-shadow)
}

.chapter-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0
}

.chapter-toc {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid var(--ica-line);
    border-radius: var(--ica-radius);
    background: #f7f9fc
}

.chapter-toc h2 {
    margin-bottom: 1rem;
    font-size: 1.35rem
}

.chapter-toc ol {
    margin: 0;
    padding-left: 1.25rem
}

.chapter-toc li + li {
    margin-top: .45rem
}

.chapter-toc-level-2 { margin-left: 1rem }
.chapter-toc-level-3 { margin-left: 2rem }
.chapter-toc-level-4 { margin-left: 3rem }
.chapter-toc-level-5 { margin-left: 4rem }
.chapter-toc-level-6 { margin-left: 5rem }

.chapter-lesson-nav > div {
    display: flex;
    align-items: center
}

.lesson-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem
}

.quiz-shell {
    max-width: 1000px;
    margin: auto
}

.answer {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--ica-line);
    border-radius: 5px;
    margin: .65rem 0;
    cursor: pointer
}

.answer:hover,
.answer.selected {
    border-color: var(--ica-blue);
    background: #f3f5ff
}

.answer-letter {
    font-weight: 700
}

.quiz-question {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0
}

.quiz-question legend {
    float: none;
    width: auto
}

.lesson-nav form {
    margin: 0
}

.quiz-navigation {
    align-items: center;
    gap: 1rem
}

.quiz-navigation .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem
}

.result-badge {
    width: 118px;
    height: 118px;
    margin: auto;
    border: 10px solid #1685d1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--ica-blue);
    font-size: 3rem
}

.result-score {
    font-size: 4rem;
    font-weight: 800;
    color: var(--ica-blue)
}

.certificate-row {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 1.2rem;
    border: 1px solid var(--ica-line);
    border-radius: var(--ica-radius);
    margin-bottom: 1rem;
    box-shadow: var(--ica-shadow)
}

.certificate-icon {
    width: 50px;
    height: 56px;
    color: #fff;
    background: var(--ica-blue);
    clip-path: polygon(50% 0, 93% 22%, 85% 75%, 50% 100%, 15% 75%, 7% 22%);
    display: grid;
    place-items: center
}

.certificate-badge-image {
    width: 54px;
    height: 54px;
    object-fit: contain
}

.certificate-empty__icon {
    color: var(--ica-blue);
    font-size: 3.5rem;
    margin-bottom: 1rem
}

.certificate-team-table td,
.certificate-team-table th {
    vertical-align: middle
}

.settings-nav {
    border: 1px solid var(--ica-line);
    border-radius: var(--ica-radius);
    overflow: hidden
}

.settings-nav a {
    display: flex;
    gap: .7rem;
    padding: 1rem;
    color: var(--ica-ink);
    border-bottom: 1px solid var(--ica-line)
}

.settings-nav a.active {
    background: var(--ica-blue);
    color: #fff
}

.settings-nav a.logout {
    color: var(--ica-red)
}

.settings-panel h2,
.settings-panel h3 {
    color: var(--ica-blue)
}

.settings-panel h3 {
    font-size: 1.05rem
}

.two-factor-status,
.two-factor-unavailable,
.two-factor-revalidate {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 1.5rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid var(--ica-line);
    border-radius: var(--ica-radius);
    background: var(--ica-soft)
}

.two-factor-status.is-enabled {
    border-color: rgba(28, 135, 78, .24);
    background: rgba(28, 135, 78, .07)
}

.two-factor-status>.material-symbols-outlined,
.two-factor-unavailable>.material-symbols-outlined,
.two-factor-revalidate>.material-symbols-outlined {
    color: var(--ica-blue);
    font-size: 2rem
}

.two-factor-status.is-enabled>.material-symbols-outlined {
    color: var(--ica-success)
}

.two-factor-status strong,
.two-factor-status span,
.two-factor-unavailable h3,
.two-factor-revalidate h3 {
    display: block
}

.two-factor-status span {
    margin-top: .2rem;
    color: var(--ica-muted);
    font-size: .9rem
}

.two-factor-unavailable h3,
.two-factor-revalidate h3 {
    margin-bottom: .3rem
}

.two-factor-provider-grid {
    display: grid;
    gap: 1rem
}

.two-factor-provider-card {
    overflow: hidden;
    border: 1px solid var(--ica-line);
    border-radius: var(--ica-radius);
    background: #fff
}

.two-factor-provider-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--ica-line);
    background: var(--ica-soft)
}

.two-factor-provider-heading h3 {
    display: inline;
    margin: 0
}

.two-factor-recommended {
    display: inline-block;
    margin-left: .45rem;
    padding: .15rem .45rem;
    border-radius: 999px;
    color: var(--ica-blue);
    background: rgba(56, 74, 159, .1);
    font-size: .7rem;
    font-weight: 700;
    vertical-align: middle
}

.two-factor-switch {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
    cursor: pointer
}

.two-factor-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0
}

.two-factor-switch>span[aria-hidden="true"] {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #aeb5c6;
    transition: background .2s ease
}

.two-factor-switch>span[aria-hidden="true"]::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    content: "";
    transition: transform .2s ease
}

.two-factor-switch input:checked+span {
    background: var(--ica-blue)
}

.two-factor-switch input:checked+span::after {
    transform: translateX(20px)
}

.two-factor-switch input:focus-visible+span {
    outline: 3px solid rgba(56, 74, 159, .25);
    outline-offset: 2px
}

.two-factor-provider-options {
    padding: 1.15rem
}

.two-factor-provider-options p:last-child,
.two-factor-provider-options ol:last-child {
    margin-bottom: 0
}

.two-factor-provider-options .description,
.two-factor-provider-options em {
    color: var(--ica-muted);
    font-size: .85rem
}

.two-factor-provider-options .button,
.two-factor-provider-options input[type="submit"],
.two-factor-backup-codes-wrapper .button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: .45rem .8rem;
    border: 1px solid var(--ica-blue);
    border-radius: 5px;
    color: var(--ica-blue);
    background: #fff;
    font-weight: 600;
    text-decoration: none
}

.two-factor-provider-options input[type="text"] {
    display: block;
    width: min(100%, 260px);
    margin: .5rem 0;
    padding: .65rem .75rem;
    border: 1px solid var(--ica-line);
    border-radius: 5px
}

#two-factor-qr-code {
    display: grid;
    width: min(100%, 230px);
    min-height: 205px;
    place-items: center;
    padding: .75rem;
    border: 1px solid var(--ica-line);
    border-radius: 8px;
    background: #fff
}

#two-factor-qr-code svg {
    display: block;
    width: 100%;
    height: auto
}

.two-factor-backup-codes-list-wrap {
    display: inline-block;
    max-width: 100%;
    margin: 1rem 0;
    padding: 1rem 1.25rem;
    border-radius: 7px;
    background: var(--ica-soft)
}

.two-factor-backup-codes-unused-codes {
    margin: 0;
    padding-left: 1.5rem;
    font-family: monospace
}

.two-factor-primary {
    max-width: 440px
}

.two-factor-primary small {
    display: block;
    margin-top: .4rem
}

@media (max-width: 575px) {
    .two-factor-provider-heading {
        align-items: flex-start
    }

    .two-factor-recommended {
        display: block;
        width: fit-content;
        margin: .4rem 0 0
    }

    .two-factor-provider-options .button,
    .two-factor-provider-options input[type="submit"] {
        width: 100%;
        justify-content: center;
        margin-top: .5rem
    }

    .two-factor-backup-codes-unused-codes {
        column-count: 1 !important
    }
}

.partner-logo-editor {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 1.25rem;
    align-items: center
}

.partner-logo-editor>img,
.partner-logo-editor>.material-symbols-outlined {
    width: 112px;
    height: 82px;
    border: 1px solid var(--ica-line);
    border-radius: var(--ica-radius);
    background: var(--ica-soft);
    object-fit: contain;
    padding: .75rem
}

.partner-logo-editor>.material-symbols-outlined {
    display: grid;
    place-items: center;
    color: var(--ica-blue);
    font-size: 2.5rem
}

.domain-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .5rem;
    margin-bottom: .5rem
}

.domain-row .btn {
    display: grid;
    place-items: center;
    padding-inline: .75rem
}

.readonly-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

.readonly-list a {
    padding: .45rem .7rem;
    border-radius: 999px;
    background: var(--ica-soft);
    font-size: .85rem;
    font-weight: 600
}

.course-default-list {
    display: grid;
    gap: .6rem;
    padding: .9rem;
    border: 1px solid var(--ica-line);
    border-radius: .75rem;
    max-height: 16rem;
    overflow-y: auto
}

.peer-filters {
    display: grid;
    grid-template-columns: minmax(190px, 1.5fr) repeat(3, minmax(145px, 1fr)) auto;
    gap: .65rem
}

.peer-table th,
.peer-table td {
    vertical-align: middle;
    white-space: nowrap
}

.peer-table td:nth-child(2) {
    min-width: 240px
}

.table-sort {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    color: inherit
}

.table-sort .material-symbols-outlined {
    font-size: 1rem
}

.peer-link {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--ica-blue);
    text-align: left
}

.peer-link span:not(.avatar) {
    display: grid
}

.peer-link small {
    color: var(--ica-muted);
    font-weight: 400
}

.bulk-assign-bar {
    display: grid;
    grid-template-columns: auto minmax(230px, 1fr) auto;
    gap: .75rem;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--ica-radius);
    background: var(--ica-soft)
}

.bulk-assign-bar select,
.peer-assign-form select {
    min-height: 92px
}

.settings-pagination {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-top: 1.5rem
}

.settings-pagination a {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--ica-line);
    border-radius: 50%
}

.settings-pagination a.active {
    border-color: var(--ica-blue);
    background: var(--ica-blue);
    color: #fff
}

.peer-modal-alert:not(:empty),
.peer-page-alert:not(:empty) {
    margin-bottom: 1rem
}

.peer-course-table td,
.peer-course-table th {
    vertical-align: middle
}

.peer-certificate {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: .75rem;
    align-items: center;
    padding: .75rem 0;
    border-bottom: 1px solid var(--ica-line)
}

.peer-certificate img,
.peer-certificate>.material-symbols-outlined {
    width: 42px;
    height: 42px;
    object-fit: contain
}

.peer-certificate>.material-symbols-outlined {
    display: grid;
    place-items: center;
    color: var(--ica-blue)
}

.peer-certificate span:nth-child(2) {
    display: grid
}

.peer-certificate small {
    color: var(--ica-muted)
}

@media (max-width: 991px) {
    .settings-nav {
        display: flex;
        overflow-x: auto
    }

    .settings-nav a {
        flex: 0 0 auto;
        border-right: 1px solid var(--ica-line);
        border-bottom: 0
    }

    .peer-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .peer-filters .btn {
        grid-column: 1 / -1
    }
}

@media (max-width: 575px) {
    .partner-logo-editor,
    .peer-filters,
    .bulk-assign-bar,
    .peer-certificate {
        grid-template-columns: 1fr
    }

    .partner-logo-editor>img,
    .partner-logo-editor>.material-symbols-outlined {
        width: 100%;
        height: 120px
    }

    .bulk-assign-bar .btn,
    .peer-certificate .btn {
        width: 100%
    }
}

.form-control {
    border-color: var(--ica-line);
    padding: .75rem
}

.form-label {
    font-size: .78rem;
    font-weight: 700
}

.auth-section {
    padding: 64px 0;
    background: var(--ica-soft)
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .82fr);
    min-height: 620px;
    overflow: hidden;
    border: 1px solid var(--ica-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(8, 35, 99, .12)
}

.auth-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 56px;
    color: #fff;
    background-position: center;
    background-size: cover
}

.auth-visual::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(145deg, rgba(8, 35, 99, .92), rgba(56, 74, 159, .56))
}

.auth-visual-login {
    background-image: var(--ica-image-learning-tablet)
}

.auth-visual-signup {
    background-image: var(--ica-image-mission-care)
}

.auth-visual>div {
    position: relative;
    z-index: 1;
    max-width: 470px
}

.auth-visual h1,
.auth-visual p {
    color: #fff
}

.auth-visual h1 {
    margin: 12px 0 18px;
    font-size: clamp(2.4rem, 4vw, 4rem)
}

.auth-visual p {
    max-width: 430px;
    margin: 0;
    font-size: 1.08rem
}

.auth-eyebrow {
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase
}

.auth-panel {
    display: grid;
    place-items: center;
    padding: 52px
}

.auth-form-wrap {
    width: 100%;
    max-width: 440px
}

.auth-form-wrap h2 {
    margin-bottom: 8px;
    font-size: 2rem
}

.auth-form {
    display: grid;
    gap: 20px;
    margin-top: 28px
}

.auth-form .form-control {
    min-height: 48px;
    border-radius: 6px
}

.auth-form .form-control:focus {
    border-color: var(--ica-blue);
    box-shadow: 0 0 0 3px rgba(56, 74, 159, .12)
}

.auth-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.auth-check {
    display: flex;
    gap: 9px;
    align-items: center;
    color: var(--ica-muted);
    cursor: pointer
}

.auth-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--ica-blue)
}

.auth-help-link {
    margin-bottom: .5rem;
    font-size: .78rem;
    font-weight: 600
}

.auth-submit {
    min-height: 48px;
    font-weight: 700
}

.ica-turnstile-wrap {
    width: 100%;
    min-height: 65px;
    overflow: hidden;
    border-radius: 7px
}

.ica-turnstile-wrap .cf-turnstile {
    width: 100%
}

.auth-form .auth-submit:disabled {
    cursor: wait;
    opacity: .65
}

@media (max-width: 340px) {
    .ica-turnstile-wrap {
        overflow-x: auto
    }
}

.auth-switch {
    margin: 28px 0 0;
    text-align: center;
    color: var(--ica-muted)
}

.auth-alert {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 6px
}

.auth-alert-error {
    border: 1px solid rgba(167, 36, 54, .22);
    color: #7d1b2a;
    background: rgba(167, 36, 54, .07)
}

.auth-success {
    padding: 30px 0 10px;
    text-align: center
}

.auth-success .material-symbols-outlined {
    color: var(--ica-success);
    font-size: 54px
}

.auth-success h3 {
    margin: 16px 0 8px;
    font-size: 1.45rem
}

.auth-success p {
    margin-bottom: 24px;
    color: var(--ica-muted)
}

.ica-toast-container {
    z-index: 1095;
    width: min(390px, calc(100vw - 1rem));
    margin-top: 96px
}

.ica-toast {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(7, 28, 88, .22)
}

.ica-toast-header {
    color: var(--ica-ink);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(0, 0, 0, .08)
}

.ica-toast-header .material-symbols-outlined {
    font-size: 1.3rem
}

.ica-toast[data-toast-type="success"] .ica-toast-header .material-symbols-outlined {
    color: var(--ica-success)
}

.ica-toast[data-toast-type="error"] .ica-toast-header .material-symbols-outlined {
    color: var(--ica-red)
}

.ica-toast[data-toast-type="warning"] .ica-toast-header .material-symbols-outlined {
    color: #9a6700
}

.ica-toast[data-toast-type="info"] .ica-toast-header .material-symbols-outlined {
    color: var(--ica-blue)
}

.ica-toast .toast-body {
    padding: 1rem;
    font-weight: 500
}

.ica-toast .toast-body a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline
}

.ica-toast-actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem
}

@media (max-width: 575px) {
    .ica-toast-container {
        top: 0 !important;
        right: .5rem !important;
        left: .5rem !important;
        width: auto;
        margin-top: 62px;
        padding: 0 !important
    }
}

.form-text {
    display: block;
    margin-top: 7px;
    color: var(--ica-muted)
}

.site-footer {
    background: linear-gradient(135deg, var(--ica-blue-deep), var(--ica-blue));
    color: rgba(255, 255, 255, .82);
    padding: 60px 0 25px
}

.site-footer h3 {
    color: #fff;
    font-size: 1rem
}

.site-footer a {
    color: #fff
}

.footer-logo {
    width: 150px;
    max-height: 60px;
    object-fit: contain
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .2);
    margin-top: 40px;
    padding-top: 22px;
    font-size: .78rem;
    text-align: center
}

@media(max-width:991px) {
    .navbar-nav {
        gap: 0
    }

    .account-dropdown {
        margin: 0;
        padding: .15rem 0 .65rem;
        border-top: 1px solid var(--ica-line)
    }

    .account-dropdown .profile-chip {
        width: 100%;
        padding: .8rem .25rem;
        text-align: left
    }

    .account-dropdown .profile-chip .material-symbols-outlined:last-child {
        margin-left: auto;
        transition: transform .2s ease
    }

    .account-dropdown .profile-chip[aria-expanded="true"] .material-symbols-outlined:last-child {
        transform: rotate(180deg)
    }

    .account-dropdown .dropdown-menu {
        position: static !important;
        inset: auto !important;
        transform: none !important;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0 0 .25rem 2.7rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none
    }

    .account-dropdown .dropdown-item {
        padding: .6rem .25rem
    }

    .account-dropdown .dropdown-divider {
        margin: .25rem 0
    }

    .auth-shell {
        grid-template-columns: 1fr
    }

    .auth-visual {
        min-height: 300px;
        padding: 42px
    }

    .nav-link {
        padding: .8rem .25rem !important
    }

    .hero {
        min-height: 620px;
        background-position: 63% center
    }

    .hero-copy {
        padding: 3.5rem 0;
        max-width: 52%
    }

    .course-grid {
        grid-template-columns: 1fr
    }

    .page-intro {
        padding: 44px 0
    }
}

@media(max-width:575px) {
    .auth-section {
        padding: 24px 0
    }

    .auth-shell {
        min-height: 0;
        border-radius: 10px
    }

    .auth-visual {
        min-height: 235px;
        padding: 28px
    }

    .auth-panel {
        padding: 32px 24px
    }

    .auth-name-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:767px) {
    body {
        font-size: 14px
    }

    .navbar {
        min-height: 68px
    }

    .navbar-brand img {
        width: 112px
    }

    .hero {
        min-height: 710px;
        background-position: 67% bottom;
        background-size: auto 58%;
        align-items: flex-start
    }

    .hero-copy {
        max-width: 100%;
        padding: 2.8rem 0
    }

    .hero-copy p {
        max-width: 100%
    }

    .public-home-hero {
        min-height: 560px;
        background-position: center;
        background-size: cover;
        align-items: center
    }

    .public-home-hero::before {
        background: rgba(4, 23, 72, .76)
    }

    .public-home-hero .hero-copy {
        max-width: 100%;
        padding: 4rem 0
    }

    .content-section {
        padding: 55px 0
    }

    .content-section .row {
        gap: 2rem
    }

    .course-list-card {
        grid-template-columns: 110px 1fr
    }

    .course-list-card img {
        min-height: 175px
    }

    .page-intro h1 {
        font-size: 1.9rem
    }

    .news-row {
        grid-template-columns: 30px 1fr auto
    }

    .news-row time {
        display: none
    }

    .data-table {
        min-width: 650px
    }

    .certificate-row {
        grid-template-columns: 48px 1fr
    }

    .certificate-row .btn {
        grid-column: 2
    }

    .lesson-nav {
        gap: 12px
    }

    .chapter-top-actions,
    .chapter-lesson-nav {
        align-items: stretch;
        flex-direction: column
    }

    .chapter-top-actions .btn,
    .chapter-lesson-nav .btn,
    .chapter-lesson-nav button,
    .chapter-lesson-nav form {
        width: 100%;
        justify-content: center
    }

    .chapter-sidebar-toggle {
        top: 74px;
        width: 42px;
        padding: .7rem .45rem .85rem
    }

    .chapter-sidebar-toggle__label {
        font-size: .66rem
    }

    .chapter-course-sidebar {
        --bs-offcanvas-width: calc(100vw - 20px)
    }

    .chapter-toc-level-4,
    .chapter-toc-level-5,
    .chapter-toc-level-6 {
        margin-left: 2rem
    }

    .quiz-navigation {
        align-items: stretch;
        flex-direction: column
    }

    .quiz-navigation .btn {
        width: 100%
    }

    .site-footer {
        text-align: center
    }
}
.email-notification-switch {
    padding: 1rem 1rem 1rem 3.5rem;
    margin: 0 0 .75rem;
    border: 1px solid #dce3f1;
    border-radius: .65rem;
    background: #fff;
}
.email-notification-switch .form-check-input { margin-left: -2.5rem; }

.course-card__audience {
    margin-top: auto;
    padding: 0 1.25rem 1rem;
    text-align: right;
}

.course-card__audience span {
    display: inline-block;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: #eef2f8;
    color: var(--ica-blue);
    font-size: .75rem;
    font-weight: 600;
}

.course-list-card__body {
    display: flex;
    flex-direction: column;
}

.course-card__actions,
.course-list-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: auto;
    padding-top: .75rem;
}

.course-card__actions > .btn,
.course-list-card__actions > .btn {
    min-width: 0;
}

.course-card__actions .course-card__audience,
.course-list-card__actions .course-card__audience {
    margin: 0 0 0 auto;
    padding: 0;
}
