/*----------------------------------------------------------------------------*/
/*#VIDEO DASHBOARD STYLE*/
/*----------------------------------------------------------------------------*/

.cat-dashboard {
    display: flex;
    max-width: 136rem;
    margin: 6rem auto;
    overflow: hidden;
    border: .1rem solid rgba(23, 54, 74, .12);
    border-radius: .8rem;
    background: #f7f9f8;
    color: var(--primary);
}

.cat-dash-sidebar {
    flex: 0 0 28rem;
    display: flex;
    flex-direction: column;
    gap: 2.8rem;
    padding: 2rem;
    background: var(--secondary);
    color: var(--light);
}

.cat-dash-profile,
.cat-dash-nav,
.cat-dash-main,
.cat-program-grid,
.cat-program-access,
.cat-program-player,
.cat-video-playlist,
.cat-profile-form,
.cat-profile-password,
.cat-logout-modal__dialog {
    display: flex;
    flex-direction: column;
}

.cat-dash-profile,
.cat-dash-nav {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: .8rem;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 1.6rem 3rem rgba(16, 43, 59, .14);
    backdrop-filter: blur(8px);
}

.cat-dash-profile {
    gap: 1.4rem;
    padding: 1.6rem;
}

.cat-dash-profile strong,
.cat-dash-profile span {
    display: block;
}

.cat-dash-profile strong {
    font-size: 1.8rem;
    line-height: 1.2;
}

.cat-dash-profile span {
    margin-top: .4rem;
    color: rgba(255, 255, 255, .68);
    font-size: 1.3rem;
    word-break: break-word;
}

.cat-dash-nav {
    gap: .6rem;
    padding: .8rem;
}

.cat-dash-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.4rem;
    border-radius: .8rem;
    padding: 0 1.4rem;
    color: rgba(255, 255, 255, .78);
    font-weight: 700;
    text-decoration: none;
}

.cat-dash-nav__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    border-radius: 99px;
    padding: 0 .7rem;
    background: var(--light);
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.cat-dash-nav a:hover,
.cat-dash-nav a.is-active {
    color: var(--light);
    background: rgba(255, 255, 255, .14);
}

.cat-dash-main {
    flex: 1 1 auto;
    gap: 2rem;
    min-width: 0;
    padding: 2rem;
}

.cat-dash-hero,
.cat-dash-section,
.cat-program-player {
    border: .1rem solid rgba(23, 54, 74, .1);
    border-radius: .8rem;
    background: var(--light);
}

.cat-dash-hero {
    display: flex;
    justify-content: space-between;
    gap: 2.4rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    background: linear-gradient(135deg, rgba(35, 152, 212, .1), rgba(241, 90, 36, .08)), var(--light);
}


.cat-dash-stat span,
.cat-program-status {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--light);
}

.cat-dash-hero > div:not(.cat-dash-stat) > span { 
    color: var(--secondary); 
    font-weight: 700;
}

.cat-dash-hero h1 {
    margin-top: 1rem;
    font-size: clamp(3rem, 3.6vw, 4.6rem);
    line-height: .95;
}

.cat-dash-hero p {
    max-width: 44rem;
    margin: 1.6rem 0 0;
    line-height: 1.65;
}

.cat-dash-stat {
    flex: 0 0 15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: .8rem;
    background: var(--secondary);
    color: var(--light);
}

.cat-dash-stat strong {
    font-size: 4.6rem;
    line-height: 1;
}

.cat-dash-section,
.cat-program-player {
    padding: clamp(1.5rem, 3vw, 2rem);
    gap: 2rem;
}

.cat-dash-heading {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.cat-dash-heading h2 { margin-bottom: 0; }

.cat-dash-heading h2,
.cat-logout-modal__dialog h2 {
    font-size: 2.4rem;
}

.cat-dash-heading p {
    max-width: 52rem;
    margin: 0;
    line-height: 1.55;
}

.cat-program-grid {
    gap: 1.6rem;
}

.cat-program-card {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    border: .1rem solid #e4e7ec;
    border-radius: .8rem;
    padding: 1.4rem 1.6rem;
    background: #fbfcfc;
}

.cat-program-thumb {
    flex: 0 0 8.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8.6rem;
    height: 8.6rem;
    overflow: hidden;
    border-radius: .8rem;
    background: var(--secondary);
    color: var(--light);
    font-size: 3rem;
    font-weight: 700;
    text-decoration: none;
}

.cat-program-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-program-body {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex: 1 1 auto;
    min-width: 0;
}

.cat-program-body h3 {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.8rem;
    line-height: 1.25;
    margin-bottom: 0;
}

.cat-program-body h3 a {
    color: var(--primary);
    text-decoration: none;
}

.cat-program-body h3 a:hover,
.cat-dash-button {
    color: var(--secondary);
}

.cat-back-link { 
    font-weight: 700; 
    color: var(--primary);
    display: flex;
    align-items: center;
    column-gap: .6rem;
}

.cat-back-link:hover { color: var(--secondary); }

.cat-program-access {
    flex: 0 0 16rem;
    align-items: flex-start;
    gap: .6rem;
}

.cat-program-access p {
    flex: none;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.35;
    text-wrap: pretty;
}

.cat-program-link,
.cat-profile-form button,
.cat-logout-modal__button {
    border: 0;
    border-radius: 5rem;
    font-weight: 700;
    cursor: pointer;
    transition: .3s ease-in-out;
}

.cat-program-link,
.cat-profile-form button,
.cat-logout-modal__button--primary {
    color: var(--light);
    background: var(--secondary);
}

.cat-program-link {
    flex: 0 0 auto;
    min-height: 3.8rem;
    padding: .9rem 1.4rem;
    font-size: 1.3rem;
    text-decoration: none;
}

.cat-program-link:hover,
.cat-profile-form button:hover,
.cat-logout-modal__button:hover {
    transform: translateY(-.3rem);
    box-shadow: 0 1.5rem 3rem rgba(35, 152, 212, .25);
}

.cat-program-description > *:last-child {
    margin-bottom: 0;
}

.cat-program-document {
    width: 100%;
}

.cat-program-document__list {
    display: grid;
    gap: 1rem;
}

.cat-program-document__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    border: 1px solid var(--program-line, #dfe8ed);
    border-radius: .8rem;
    padding: 1.2rem;
    background: #f8faf9;
}

.cat-program-document__name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--program-navy, var(--primary));
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
}

.cat-program-document__name span {
    overflow-wrap: anywhere;
}

.cat-program-document__button {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    flex: 0 0 auto;
    text-decoration: none;
}

.cat-program-document__button svg {
    flex: 0 0 auto;
}

.cat-program-status {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    border-radius: 5rem;
    padding: 0 1rem;
}

.cat-program-status.is-active {
    color: var(--secondary);
    background: #eaf6fb;
}

.cat-program-status.is-expired {
    color: #9f2d1f;
    background: #fff0eb;
}

.cat-empty-programs {
    border: .1rem dashed #b7c5c1;
    border-radius: .8rem;
    padding: 2.8rem;
    background: #f8faf9;
}

.cat-empty-programs p {
    max-width: 62rem;
    margin: 1rem 0 0;
    line-height: 1.6;
}

.cat-profile-form {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.6rem;
}

.cat-profile-form label {
    flex: 1 1 calc(50% - .8rem);
    display: flex;
    flex-direction: column;
    gap: .8rem;
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.cat-profile-form input[type="text"],
.cat-profile-form input[type="password"] {
    width: 100%;
    min-height: 5.2rem;
    border: .1rem solid #e4e7ec;
    border-radius: .8rem;
    padding: 1.3rem 1.4rem;
    background: #f8fafc;
    color: var(--primary);
    font: inherit;
}

.cat-profile-form input:focus {
    border-color: var(--secondary);
    outline: 0;
}

.cat-profile-password,
.cat-profile-form button {
    flex: 1 1 100%;
}

.cat-profile-password {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.6rem;
    border-top: .1rem solid #e4e7ec;
    padding-top: 1.8rem;
}

.cat-profile-password h3 {
    flex: 1 1 100%;
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cat-profile-form button {
    min-height: 5.5rem;
}

.cat-logout-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cat-logout-modal.is-open {
    display: flex;
}

.cat-logout-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(23, 54, 74, .58);
}

.cat-logout-modal__dialog {
    position: relative;
    z-index: 1;
    gap: 1.4rem;
    width: min(100%, 42rem);
    border-radius: .8rem;
    padding: 2.8rem;
    background: var(--light);
    box-shadow: 0 2.4rem 6rem rgba(23, 54, 74, .22);
}

.cat-logout-modal__dialog h2 {
    line-height: 1.2;
    margin-bottom: 0;
}

.cat-logout-modal__dialog p {
    margin: 0;
    line-height: 1.5;
}

.cat-logout-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: .8rem;
}

.cat-logout-modal__button {
    min-width: 8.8rem;
    padding: 1.2rem 1.8rem;
}

.cat-logout-modal__button--secondary {
    color: var(--primary);
    background: rgba(35, 152, 212, .12);
}

.cat-dashboard-panel:not(.is-active) {
    display: none;
}

.program-page {
    --program-blue: var(--secondary);
    --program-blue-soft: #eaf6fb;
    --program-navy: var(--primary);
    --program-muted: #607985;
    --program-line: #dfe8ed;
    --program-soft: #f5f8fa;
}

.program-page .back-link {
    align-self: flex-start;
    margin: .2rem 0 -.4rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.program-page .back-link::before {
    content: "\2190";
}

.program-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(26rem, 1fr);
    gap: 1.8rem;
    align-items: start;
}

.video-panel,
.playlist-card,
.program-info {
    border: 1px solid var(--program-line);
    border-radius: .8rem;
    background: var(--light);
    box-shadow: 0 1.8rem 4.5rem rgba(24, 56, 74, .09);
}

.video-panel {
    padding: 1.6rem;
}

.cat-video-frame {
    position: relative;
    overflow: hidden;
    border-radius: .8rem;
    background: #0f2330;
    aspect-ratio: 16 / 9;
}

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

.cat-video-missing {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2.4rem;
    color: rgba(255, 255, 255, .72);
    text-align: center;
}

.video-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.8rem;
    padding: 1.7rem .3rem .1rem;
}

.eyebrow {
    color: var(--program-blue);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.video-meta-row h2,
.playlist-head h3 {
    color: var(--program-navy);
    line-height: 1.35;
    margin: .4rem 0 0;
}

.video-meta-row h2 {
    font-size: 2rem;
}

.duration-pill {
    flex: 0 0 auto;
    border: 1px solid var(--program-line);
    border-radius: .8rem;
    padding: .9rem 1.2rem;
    background: var(--program-soft);
    text-align: right;
}

.duration-pill span,
.duration-pill strong {
    display: block;
}

.duration-pill span {
    color: var(--program-muted);
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.duration-pill strong {
    color: var(--program-navy);
    font-size: 1.6rem;
    line-height: 1.2;
}

.playlist-card {
    position: sticky;
    top: 1.8rem;
    gap: 0;
    max-height: 43rem;
    overflow: auto;
    padding: 0 1.6rem 1.6rem;
}

.playlist-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    left: 0;
    background-color: #fff;
    z-index: 999;
    border-bottom: 1px solid var(--program-line);
    padding-block: 1.6rem;
    margin-bottom: 1rem;
}

.playlist-head h3 {
    font-size: 1.5rem;
}

.progress-copy {
    color: var(--program-muted);
    font-size: 1.2rem;
    white-space: nowrap;
}

.playlist {
    display: grid;
    gap: .9rem;
}

.cat-video-playlist__heading {
    padding: .8rem .2rem .2rem;
}

.cat-video-playlist__heading h4 {
    margin: 0;
    color: var(--program-navy);
    font-family: 'Inter 18pt';
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
}

.cat-video-playlist__item {
    border: 1px solid var(--program-line);
    border-radius: .8rem;
    overflow: hidden;
    background: var(--light);
    color: var(--primary);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.cat-video-playlist__item:hover {
    background-color: #f7f9f8;
    border-color: #bcd7e5;
}

.cat-video-playlist__item.is-active {
    border-color: #b9dff0;
    background: var(--program-blue-soft);
}

.cat-video-playlist__item.is-completed {
    border-color: rgba(46, 125, 50, .32);
}

.cat-video-playlist__link {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr) 2.2rem;
    align-items: center;
    gap: .9rem;
    min-height: 5.4rem;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
}

.cat-video-playlist__number {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: .8rem;
    background: var(--program-blue);
    color: var(--light);
    font-size: 1rem;
    font-weight: 800;
}

.cat-video-playlist__copy {
    min-width: 0;
}

.cat-video-playlist__title,
.cat-video-playlist__copy small {
    display: block;
}

.cat-video-playlist__title {
    font-family: 'Inter 18pt';
    overflow: hidden;
    font-size: 1.4rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-video-playlist__copy small {
    margin-top: .2rem;
    color: var(--program-muted);
    font-size: 1rem;
    line-height: 1.2;
}

.cat-video-complete {
    position: relative;
    display: block;
    width: 2.2rem;
    height: 2.2rem;
    cursor: pointer;
}

.cat-video-complete:focus-visible { outline: none !important; }

.cat-video-complete input {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    cursor: pointer;
}

.cat-video-complete__box {
    position: absolute;
    inset: 0;
    border: 1.5px solid #bfd0d8;
    border-radius: .3rem;
    background: var(--light);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.cat-video-complete__box::after {
    content: "\2713";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--light);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0;
}

.cat-video-complete input:checked + .cat-video-complete__box {
    border-color: #2e7d32;
    background: #2e7d32;
}

.cat-video-complete input:checked + .cat-video-complete__box::after {
    opacity: 1;
}

.program-info {
    padding: 2rem;
}

.program-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.8rem;
    border-bottom: 1px solid var(--program-line);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.program-heading h1 {
    color: var(--program-navy);
    font-size: clamp(3.1rem, 3.2vw, 3.8rem);
    line-height: 1.08;
    margin: .8rem 0;
}

.subtitle {
    max-width: 72rem;
    margin: 0;
    color: var(--program-muted);
    font-size: 1.2rem;
    line-height: 1.6;
}

.access-card {
    flex: 0 0 19rem;
    border-radius: .8rem;
    padding: 1.5rem 1.6rem;
    background: var(--program-navy);
    color: var(--light);
}

.access-card span,
.access-card strong,
.access-card small {
    display: block;
}

.access-card span {
    font-size: .9rem;
    letter-spacing: .08em;
    opacity: .65;
    text-transform: uppercase;
}

.access-card strong {
    margin: .2rem 0;
    font-size: 1.8rem;
}

.access-card small {
    font-size: 1rem;
    line-height: 1.4;
    opacity: .72;
}

.content-grid {
    display: grid;
    gap: 2rem;
    border-bottom: 1px solid var(--program-line);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.content-card h3 {
    color: var(--program-navy);
    font-size: 2rem;
    line-height: 1.35;
    margin: .5rem 0 1.2rem;
}

.content-card.dynamic-copy *:last-child { margin-bottom: 0; }

.content-card p,
.content-card li {
    font-size: 1.6rem;
    line-height: 1.7;
}

.content-card ul,
.content-card ol {
    margin: 1.3rem 0 0;
    padding-left: 1.8rem;
}

.cat-profile-form input.is-invalid {
    border-color: #b8402d;
    background: #fff8f6;
}

.cat-profile-password label {
    flex: 1 1 calc(33.333% - 1.1rem);
    position: relative;
    padding-bottom: 1.8rem;
}

.cat-profile-field-error {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 100%;
    color: #9f2d1f;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
    pointer-events: none;
}

.cat-profile-field-error:empty {
    display: none;
}

@media (max-width: 1100px) {
    .program-hero,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .playlist-card {
        position: static;
    }

    .program-heading {
        flex-direction: column;
    }

    .access-card {
        flex-basis: auto;
        width: 100%;
    }
}

@media (max-width: 1200px) {
    .cat-program-card {
        align-items: flex-start;
        min-height: 0;
    }

    .cat-program-body {
        align-items: flex-start;
        flex-direction: column;
        gap: .9rem;
    }

    .cat-program-access {
        order: 3;
        flex-basis: auto;
        gap: .4rem;
    }

    .cat-program-body h3 {
        order: 1;
        flex: none;
        width: 100%;
    }

    .cat-program-link {
        order: 2;
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    .cat-dashboard {
        flex-direction: column;
        width: 100%;
        margin: 3rem auto;
    }

    .cat-dash-sidebar {
        flex-basis: auto;
        padding: 2.2rem;
    }

    .cat-dash-nav {
        flex-direction: row;
    }

    .cat-dash-nav a {
        flex: 1 1 0;
        justify-content: center;
    }

    .cat-program-card,
    .cat-program-body {
        align-items: center;
    }

    .cat-program-body {
        flex-direction: row;
    }

    .cat-program-access {
        order: 0;
        flex-basis: 16rem;
    }

    .cat-program-body h3 {
        order: 0;
        flex: 1 1 auto;
        width: auto;
    }

    .cat-program-link {
        order: 0;
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .cat-program-card,
    .cat-program-body {
        align-items: flex-start;
        flex-direction: column;
    }

    .cat-program-access {
        flex-basis: auto;
    }

    .cat-program-link {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 700px) {
    .cat-dashboard {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .cat-dash-nav,
    .cat-dash-hero,
    .cat-program-card,
    .cat-program-body,
    .cat-profile-form,
    .cat-profile-password {
        flex-direction: column;
    }

    .cat-dash-stat,
    .cat-program-link,
    .cat-profile-form label,
    .cat-profile-password label {
        flex-basis: auto;
        width: 100%;
    }

    .cat-program-card,
    .cat-program-body {
        align-items: flex-start;
    }

    .cat-program-access {
        flex-basis: auto;
    }

    .cat-program-link {
        text-align: center;
    }

    .cat-dash-stat {
        flex-basis: auto;
        min-height: 11rem;
    }

    .program-info,
    .video-panel {
        padding: 1.4rem;
    }

    .playlist-card { padding: 0 1.4rem 1.4rem; }

    .video-meta-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .duration-pill {
        width: 100%;
        text-align: left;
    }

    .program-heading h1 {
        font-size: 3.1rem;
    }

    .content-card {
        padding: 1.7rem;
    }

    .cat-video-playlist__link {
        grid-template-columns: 3.2rem minmax(0, 1fr) 2.2rem;
    }

    .cat-program-document__item {
        align-items: stretch;
        flex-direction: column;
    }

    .cat-program-document__button {
        justify-content: center;
        width: 100%;
    }
}
