.htlms-hero,
.htlms-band,
.htlms-library,
.htlms-course-shell,
.htlms-verify,
.htlms-portal,
.htlms-dashboard {
    box-sizing: border-box;
    color: #17211d;
    font-family: inherit;
}

body.home.page-id-5 .site-main {
    max-width: none !important;
    padding: 0 !important;
}

body.home.page-id-5 .content-panel {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.home.page-id-5 article.page {
    margin: 0 !important;
    padding: 0 !important;
}

body.home.page-id-5 article.page > h1 {
    display: none !important;
}

.htlms-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: stretch;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: min(86vh, 860px);
    margin: 0 auto;
    padding: clamp(88px, 10vw, 136px) clamp(20px, 7vw, 96px) clamp(40px, 7vw, 88px);
    background: #071520;
}

.htlms-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(7, 21, 32, 0.94) 0%, rgba(7, 21, 32, 0.76) 42%, rgba(7, 21, 32, 0.22) 100%),
        url("site/holistic-therapy-group.webp?v=20260617") right 8% center / min(76vw, 860px) auto no-repeat;
    animation: htlmsHeroDrift 28s ease-in-out infinite alternate;
}

.htlms-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 36%;
    background: linear-gradient(to bottom, rgba(7, 21, 32, 0), #071520);
}

.htlms-hero__content {
    min-width: 0;
    width: 100%;
    align-self: end;
    max-width: 820px;
}

.htlms-brand-mark {
    width: clamp(58px, 8vw, 96px);
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.htlms-eyebrow {
    margin: 0 0 12px;
    color: #f1b84b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.htlms-hero h1 {
    max-width: 820px;
    margin: 0;
    color: #fff8e8;
    font-size: clamp(2.6rem, 6vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: 0;
    text-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.htlms-hero p {
    max-width: 680px;
    color: rgba(255, 248, 232, 0.78);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.58;
}

.htlms-hero__panel {
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-width: 0;
    min-height: 420px;
    padding: 28px;
    border: 1px solid rgba(255, 248, 232, 0.18);
    border-radius: 8px;
    background: rgba(255, 248, 232, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
}

.htlms-hero__panel span {
    color: #f1b84b;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.htlms-hero__panel strong {
    max-width: 360px;
    margin-top: 8px;
    color: #fff8e8;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.03;
}

.htlms-actions,
.htlms-card-actions,
.htlms-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.htlms-button,
.htlms-complete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.htlms-button:hover,
.htlms-complete-button:hover {
    transform: translateY(-1px);
}

.htlms-button--primary,
.htlms-complete-button {
    background: #173d33;
    color: #fff;
}

.htlms-button--secondary {
    border-color: rgba(255, 248, 232, 0.34);
    background: rgba(255, 248, 232, 0.08);
    color: #fff8e8;
}

@keyframes htlmsHeroDrift {
    from {
        transform: scale(1) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.035) translate3d(-1.2%, 0.8%, 0);
    }
}

.htlms-band {
    border-top: 1px solid rgba(24, 50, 41, 0.08);
    border-bottom: 1px solid rgba(24, 50, 41, 0.08);
    background: #f7faf8;
}

.htlms-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.htlms-feature-grid article {
    padding: 24px 20px;
    background: #f7faf8;
}

.htlms-feature-grid strong {
    display: block;
    margin-bottom: 6px;
    color: #173d33;
    font-size: 1rem;
}

.htlms-feature-grid span {
    color: #52625c;
    line-height: 1.5;
}

.htlms-library,
.htlms-course-shell,
.htlms-verify,
.htlms-portal,
.htlms-dashboard {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(36px, 7vw, 72px) 20px;
}

.htlms-section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 22px;
}

.htlms-section-head h2 {
    max-width: 720px;
    margin: 0;
    color: #12211c;
    font-size: clamp(1.75rem, 3vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: 0;
}

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

.htlms-course-card {
    overflow: hidden;
    border: 1px solid rgba(24, 50, 41, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 46px rgba(22, 36, 31, 0.08);
}

.htlms-course-card__media {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(47,143,123,0.92), rgba(82,54,110,0.86)),
        #173d33;
    color: #fff;
    font-size: 4rem;
    font-weight: 900;
    text-decoration: none;
}

.htlms-course-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.htlms-course-card__body {
    padding: 18px;
}

.htlms-card-meta {
    margin: 0 0 8px;
    color: #8a6116;
    font-size: 0.82rem;
    font-weight: 800;
}

.htlms-course-card h3 {
    margin: 0 0 8px;
    color: #13211c;
    font-size: 1.2rem;
    line-height: 1.2;
}

.htlms-course-card h3 a {
    color: inherit;
    text-decoration: none;
}

.htlms-course-card p {
    color: #52625c;
    line-height: 1.5;
}

.htlms-card-actions {
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(24, 50, 41, 0.08);
}

.htlms-card-actions a,
.htlms-card-actions span {
    color: #173d33;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.htlms-empty,
.htlms-access-box,
.htlms-cert-result,
.htlms-notice {
    padding: 22px;
    border: 1px solid rgba(24, 50, 41, 0.14);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(22, 36, 31, 0.06);
}

.htlms-video {
    position: relative;
    overflow: hidden;
    margin: 24px 0;
    padding: clamp(12px, 2vw, 24px);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(7, 21, 32, 0.92), rgba(23, 61, 51, 0.72)),
        url("site/holistic-therapy-group-980.webp?v=20260617") right 12% center / min(58vw, 620px) auto no-repeat,
        #071520;
    box-shadow: 0 24px 70px rgba(7, 21, 32, 0.22);
}

.htlms-video::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 248, 232, 0.08), rgba(255, 248, 232, 0));
    pointer-events: none;
}

.htlms-video iframe,
.htlms-video video {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 6px;
    background: #071520;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
}

.htlms-outcomes,
.htlms-materials,
.htlms-lessons,
.htlms-gallery {
    margin-top: 28px;
}

.htlms-outcomes ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    list-style: none;
}

.htlms-outcomes li {
    padding: 14px 16px;
    border: 1px solid rgba(24, 50, 41, 0.12);
    border-radius: 8px;
    background: #f7faf8;
}

.htlms-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.htlms-gallery img {
    width: min(420px, 82vw);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    scroll-snap-align: start;
}

.htlms-materials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(24, 50, 41, 0.1);
    border-radius: 8px;
    background: #f7faf8;
}

.htlms-pdfs {
    margin-top: 28px;
}

.htlms-pdfs__head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.htlms-pdfs__head strong {
    color: #13211c;
    font-size: 1.05rem;
}

.htlms-pdfs__head span {
    color: #8a6116;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.htlms-pdf-list {
    display: grid;
    gap: 16px;
}

.htlms-pdf-card {
    overflow: hidden;
    border: 1px solid rgba(24, 50, 41, 0.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(22, 36, 31, 0.06);
}

.htlms-pdf-card__bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(24, 50, 41, 0.1);
    background: #f7faf8;
}

.htlms-pdf-card__bar span {
    min-width: 0;
    overflow: hidden;
    color: #13211c;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.htlms-pdf-card__bar a {
    flex: 0 0 auto;
    color: #173d33;
    font-weight: 800;
    text-decoration: none;
}

.htlms-pdf-card iframe {
    display: block;
    width: 100%;
    height: min(760px, 78vh);
    min-height: 460px;
    border: 0;
    background: #f0f3f1;
}

.htlms-materials strong {
    flex-basis: 100%;
    color: #13211c;
}

.htlms-materials a {
    padding: 9px 12px;
    border-radius: 6px;
    background: #fff;
    color: #173d33;
    font-weight: 800;
    text-decoration: none;
}

.htlms-lesson-list {
    display: grid;
    gap: 14px;
}

.htlms-lesson {
    padding: 18px;
    border: 1px solid rgba(24, 50, 41, 0.12);
    border-radius: 8px;
    background: #fff;
}

.htlms-lesson.is-locked {
    background: #f7faf8;
}

.htlms-lesson__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.htlms-lesson__head span,
.htlms-lesson__head em {
    color: #8a6116;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.htlms-lesson h3 {
    margin: 4px 0 0;
}

.htlms-complete-button.is-complete {
    background: #2f8f7b;
}

.htlms-course-form,
.htlms-verify-form {
    display: grid;
    gap: 14px;
    max-width: 760px;
}

.htlms-course-form label,
.htlms-verify-form label,
.htlms-admin-grid label,
.htlms-admin-wide {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.htlms-course-form input,
.htlms-course-form textarea,
.htlms-verify-form input,
.htlms-admin-grid input,
.htlms-admin-grid select,
.htlms-admin-wide textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(24, 50, 41, 0.18);
    border-radius: 6px;
    padding: 11px 12px;
    background: #fff;
    color: #13211c;
}

.htlms-course-form input[type="file"] {
    padding: 10px;
}

.htlms-checkline {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row;
    gap: 10px !important;
    align-items: center;
    font-weight: 800;
}

.htlms-checkline input {
    width: auto;
}

.htlms-cert-result dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px 16px;
}

.htlms-cert-result dt {
    color: #52625c;
    font-weight: 800;
}

.htlms-cert-result dd {
    margin: 0;
}

.htlms-cert-result.is-invalid {
    border-color: rgba(148, 37, 37, 0.25);
}

.htlms-my-courses {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(24, 50, 41, 0.12);
}

.htlms-my-courses div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(24, 50, 41, 0.08);
}

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

.htlms-admin-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.htlms-admin-page {
    max-width: 1040px;
}

.htlms-admin-panel {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 860px) {
    .htlms-hero,
    .htlms-feature-grid,
    .htlms-course-grid,
    .htlms-outcomes ul,
    .htlms-admin-grid,
    .htlms-admin-checks {
        grid-template-columns: 1fr;
    }

    .htlms-hero__panel {
        min-height: 260px;
    }

    .htlms-hero {
        min-height: 720px;
        max-width: 100vw;
        padding-top: 72px;
        padding-inline: clamp(18px, 6vw, 28px);
    }

    .htlms-hero__content,
    .htlms-hero__panel,
    .htlms-hero h1,
    .htlms-hero p,
    .htlms-eyebrow {
        max-width: 100%;
    }

    .htlms-hero h1,
    .htlms-hero__panel strong,
    .htlms-eyebrow {
        overflow-wrap: break-word;
    }

    .htlms-actions {
        width: 100%;
    }

    .htlms-actions .htlms-button {
        flex: 1 1 180px;
        min-width: min(100%, 180px);
        white-space: normal;
        text-align: center;
        line-height: 1.15;
    }

    .htlms-hero::before {
        background:
            linear-gradient(180deg, rgba(7, 21, 32, 0.9) 0%, rgba(7, 21, 32, 0.74) 54%, rgba(7, 21, 32, 0.94) 100%),
            url("site/holistic-therapy-group-980.webp?v=20260617") center 9% / min(92vw, 560px) auto no-repeat;
    }

    .htlms-brand-mark {
        margin-top: 130px;
    }

    .htlms-section-head {
        display: block;
    }
}

@media (max-width: 640px) {
    .htlms-hero {
        justify-items: start;
    }

    .htlms-hero__content,
    .htlms-hero__panel {
        width: 100%;
        max-width: 336px;
    }

    .htlms-actions .htlms-button {
        flex-basis: 100%;
        width: 100%;
    }

    .htlms-band,
    .htlms-feature-grid,
    .htlms-library,
    .htlms-course-shell,
    .htlms-verify,
    .htlms-portal,
    .htlms-dashboard {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .htlms-feature-grid {
        width: 100%;
        max-width: 390px;
        margin-inline: 0;
    }

    .htlms-feature-grid article {
        width: 100%;
        max-width: 350px;
    }

    .htlms-feature-grid span,
    .htlms-course-card p,
    .htlms-empty p {
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .htlms-hero {
        min-height: auto;
        padding-inline: 20px;
        padding-bottom: 48px;
    }

    .htlms-hero h1 {
        font-size: clamp(2.35rem, 14vw, 3.5rem);
        line-height: 1.04;
    }

    .htlms-hero__panel {
        padding: 22px;
    }
}
