/* =========================================================
   AW LEARNDASH ACCORDION
   ========================================================= */

.awaccord {
    --border: #a9cbea;
    --blue-bg: #d9edf8;
    --blue-bg-hover: #cfe6f3;
    --ink: #111;
    --muted: #777;
    --accent: #2f6fb3;
}


/* =========================================================
   PANEL
   ========================================================= */

.awaccord .panel {
    width: 100%;
    max-width: 640px;
    margin: 60px auto 0;
    border: 1px solid var(--border);
    background: #fff;
    box-sizing: border-box;
}

.awaccord .panel-title {
    padding: 14px 16px 18px;
    border-bottom: 1px solid var(--border);

    font-size: 32px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.5px;
}


/* =========================================================
   LEVEL 1 — GROUP
   Blue bars:
   Onboarding
   Finance Best Practice
   Claims Best Practice
   ========================================================= */

.awaccord .group {
    border-bottom: 1px solid var(--border);
}

.awaccord .group:last-child {
    border-bottom: 0;
}

.awaccord .group-header {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    min-height: 64px;
    padding: 15px 13px;

    border: 0;
    border-bottom: 1px solid var(--border);

    background: var(--blue-bg);
    color: var(--ink);

    text-align: left;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 400;

    cursor: pointer;
    box-sizing: border-box;
}

.awaccord .group-header:hover {
    background: var(--blue-bg-hover);
}

.awaccord .group-header:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}


/* Group arrow */

.awaccord .chev {
    flex: 0 0 auto;

    width: 14px;
    height: 14px;

    transition: transform .18s ease;
}

.awaccord .group-header[aria-expanded="true"] .chev {
    transform: rotate(180deg);
}


/* Group opening animation */

.awaccord .group-body {
    display: grid;
    grid-template-rows: 0fr;

    transition: grid-template-rows .22s ease;
}

.awaccord .group-body.is-open {
    grid-template-rows: 1fr;
}

.awaccord .group-body-inner {
    min-height: 0;
    overflow: hidden;
}


/* =========================================================
   LEVEL 2 — SECTION
   Binder set-up
   Front-End Reconciliation
   etc.
   ========================================================= */

.awaccord .section {
    border-bottom: 1px solid var(--border);
}

.awaccord .section:last-child {
    border-bottom: 0;
}

.awaccord .section-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;

    width: 100%;
    padding: 15px 13px;

    border: 0;
    background: #fff;
    color: var(--ink);

    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.awaccord .section-header:hover {
    background: #fafbfc;
}

.awaccord .section-header:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}


/* Section arrow */

.awaccord .section-arrow {
    flex: 0 0 auto;

    width: 12px;
    height: 12px;

    margin-top: 3px;

    transition: transform .18s ease;
}

.awaccord .section-header[aria-expanded="true"] .section-arrow {
    transform: rotate(180deg);
}


/* Section heading/count */

.awaccord .section-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;

    min-width: 0;
}

.awaccord .section-name {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
}

.awaccord .section-count {
    font-size: 11px;
    line-height: 1.3;
    font-weight: 400;
    color: var(--muted);
}


/* Section opening animation */

.awaccord .section-body {
    display: grid;
    grid-template-rows: 0fr;

    transition: grid-template-rows .2s ease;
}

.awaccord .section-body.is-open {
    grid-template-rows: 1fr;
}

.awaccord .section-body-inner {
    min-height: 0;
    overflow: hidden;
    /* padding-bottom: 10px; */
}


/* =========================================================
   LEVEL 3 — CLICKABLE LESSON / TOPIC
   ========================================================= */

.awaccord .step {
    display: block;

    padding: 10px 20px 10px 54px;

    border: 0;

    background: #fff;
    color: var(--ink);

    text-decoration: none;

    box-sizing: border-box;
}

.awaccord .step:hover {
    background: #fafbfc;
}

.awaccord .step:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.awaccord .step-name {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--ink);
}

.awaccord .step-meta {
    margin-top: 2px;

    font-size: 13px;
    line-height: 1.3;
    font-weight: 400;

    color: var(--ink);
}


/* Optional subtitle from our plugin */

.awaccord .step-subtitle {
    margin-top: 2px;

    font-size: 12px;
    line-height: 1.35;

    color: var(--muted);
}


/* =========================================================
   YOUR EXISTING LAYOUT OVERRIDES
   ========================================================= */

.awtopic .awaccord .panel {
    margin-top: 60px;
    margin-bottom: 60px;
}

#mcid47337.awtopic.bdt-container .learndash-wrapper {
    padding: 0;
}

#mcid47337.awtopic.bdt-container {
    padding: 0 !important;
}

#mcid47337.awtopic.bdt-container .awcontent {
    padding-left: 0;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 899px) {

    .awtopic .awaccord .panel {
        width: 100%;
        min-height: auto !important;
        margin-top: 20px;
    }

    .awaccord .panel-title {
        padding: 18px 16px;
        font-size: 28px;
    }

    .awaccord .group-header {
        padding-left: 13px;
        padding-right: 13px;
    }

    .awaccord .section-header {
        padding-left: 13px;
        padding-right: 13px;
    }

    .awaccord .step {
        padding-left: 54px;
        padding-right: 16px;
    }
}

.awaccord .step.is-active {
    background: #f3f7fb;
}

.awaccord .step.is-active .step-name {
    font-weight: 600;
    color: var(--accent);
}